/* ==========================================================================
   REQUIREMENT SECTION STYLES
   ========================================================================== */

#sec-requirement {
    margin-bottom: 2.5rem;
}

.requirement-lead-text {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1.75rem;
}

/* Diagram Container */
.requirement-diagram-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
    overflow: visible;
}

/* Left Central Bubble */
.requirement-center-bubble {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.company-shall-img {
    width: 100%;
    max-width: 230px;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: 60px;
}

/* Connector spacer - reserves flex space between bubble and cards */
.req-connector-spacer {
    flex: 0 0 90px;
    min-width: 90px;
    position: relative;
}

/* Absolutely positioned SVG connector drawn by JavaScript */
.req-connector-abs-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
}

/* Right Cards List */
.requirement-cards-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.req-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    position: relative;
}

.req-card:hover {
    border-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.08);
}

.req-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.req-card-text {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

/* Numbered Box Container */
.requirement-numbered-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.req-num-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.req-num-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.num-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #0056b3;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.num-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
}

/* Note Banner Box */
.requirement-note-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #ebf5ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.note-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #0056b3;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.note-content-text {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.5;
}

.note-content-text strong {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   RIGHT SIDEBAR - VIDEO CARD & FAQ ACCORDION
   ========================================================================== */

.toc-card {
    margin-bottom: 1.5rem;
}

/* Compact YouTube Video Banner Card */
.sidebar-video-banner-card {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    overflow: hidden;
    height: 155px;
    box-shadow: 0 4px 14px rgba(0, 56, 168, 0.06);
    transition: all 0.25s ease;
}

.sidebar-video-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 56, 168, 0.12);
    border-color: #3b82f6;
}

.video-card-top-tag {
    display: inline-block;
    background-color: #0f2c59;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.video-card-top-logo {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;
    z-index: 3;
}

.video-card-top-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-card-header-group {
    max-width: 165px;
    position: relative;
    z-index: 3;
}

.video-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 2px 0 4px 0;
}

.video-card-title span {
    color: #0038a8;
}

.video-card-step-badge {
    display: inline-block;
    color: #0038a8;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    border-bottom: 1.5px solid #0038a8;
    line-height: 1.1;
    margin-bottom: 8px;
}

/* Center Play Button */
.video-play-btn-circle {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 56, 168, 0.25);
    z-index: 4;
    transition: all 0.2s ease;
}

.sidebar-video-banner-card:hover .video-play-btn-circle {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #0038a8;
}

.sidebar-video-banner-card:hover .video-play-btn-circle svg {
    fill: #ffffff;
}

/* Bottom Footer Badges */
.video-card-footer-badges {
    position: absolute;
    bottom: 8px;
    left: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.isi-icon-mini {
    height: 24px;
    display: flex;
    align-items: center;
}

.isi-icon-mini img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.video-badge-pill {
    background-color: #0f2c59;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.video-badge-sub {
    background-color: #ffffff;
    color: #0038a8;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

/* Right Presenter Avatar Circle with Arc */
.video-card-presenter-arc {
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #0f2c59;
    padding: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.presenter-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
}

.presenter-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Sidebar Card */
.sidebar-faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.faq-card-header {
    background-color: #002b7a;
    color: #ffffff;
    padding: 0.8rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-header-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.faq-card-header h3 {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
}

/* FAQ Accordion Items */
.faq-accordion-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item.active {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.06);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 0.85rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
}

.faq-num-tag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0056b3;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    margin-right: 12px;
}

.faq-num-tag::after {
    content: '';
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background-color: #cbd5e1;
}

.faq-q-text {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    flex: 1;
}

.faq-toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-toggle-icon svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.faq-item.active .faq-toggle-icon {
    background-color: #e0f2fe;
    color: #0056b3;
    transform: rotate(180deg);
}

.faq-answer-body {
    display: none;
    padding: 0 0.85rem 0.85rem 2.75rem;
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
}

.faq-item.active .faq-answer-body {
    display: block;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .requirement-diagram-container {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .req-connector-wrapper, .req-connector-spacer, .req-connector-abs-svg {
        display: none;
    }
}

/* ==========================================
   SECTION 05: MANDATORY DOCUMENTS REQUIRED (COMPACT)
   ========================================== */
.doc-lead-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 1.15rem;
}

.doc-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.doc-item-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem 0.95rem;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.doc-item-card:hover {
    border-color: #0056b3;
    box-shadow: 0 3px 10px rgba(0, 86, 179, 0.08);
}

.doc-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #ebf5ff;
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon-box svg {
    width: 18px;
    height: 18px;
}

.doc-num-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0056b3;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-sep-line {
    width: 1px;
    height: 16px;
    background-color: #cbd5e1;
    flex-shrink: 0;
    margin: 0 2px;
}

.doc-title-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    flex: 1;
}

.doc-info-note-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 0.65rem 0.95rem;
}

.doc-info-circle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #0056b3;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: serif, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info-note-text {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

/* ==========================================
   SECTION 06: PROCESS OF GRANT OF BIS LICENCE
   ========================================== */
.process-section-grid {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    align-items: flex-start;
}

/* Left Panel: Diagram Box */
.process-diagram-left-card {
    flex: 0 0 50%;
    max-width: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-bg-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.process-diagram-bg-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Right Panel: Detailed Steps (Compact & Smaller Text) */
.process-details-right-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proc-step-card {
    display: flex;
    gap: 0.65rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.proc-step-card.step-orange { border-left: 3.5px solid #f97316; }
.proc-step-card.step-red { border-left: 3.5px solid #ef4444; }
.proc-step-card.step-purple { border-left: 3.5px solid #a855f7; }
.proc-step-card.step-blue { border-left: 3.5px solid #3b82f6; }
.proc-step-card.step-teal { border-left: 3.5px solid #14b8a6; }

.proc-step-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.proc-step-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.proc-step-icon-box svg {
    width: 16px;
    height: 16px;
}

.bg-orange { background-color: #fef3c7; color: #d97706; }
.bg-red { background-color: #fee2e2; color: #dc2626; }
.bg-purple { background-color: #f3e8ff; color: #9333ea; }
.bg-blue { background-color: #dbeafe; color: #2563eb; }
.bg-teal { background-color: #ccfbf1; color: #0d9488; }

.proc-step-body {
    flex: 1;
}

.proc-step-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.proc-step-num {
    font-size: 12px;
    font-weight: 800;
}

.color-orange { color: #d97706; }
.color-red { color: #dc2626; }
.color-purple { color: #9333ea; }
.color-blue { color: #2563eb; }
.color-teal { color: #0d9488; }

.proc-step-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.proc-step-bullets {
    margin: 0;
    padding-left: 0.95rem;
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
}

.proc-step-bullets li {
    margin-bottom: 2px;
}

.proc-step-bullets li:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .process-section-grid {
        flex-direction: column;
    }
    .process-diagram-left-card {
        flex: initial;
        max-width: 100%;
        width: 100%;
    }
    .requirement-center-bubble {
        flex: initial;
        width: 100%;
    }

    .company-shall-img {
        max-width: 200px;
    }
}

@media (max-width: 992px) {
    .requirement-diagram-container {
        flex-direction: column;
        align-items: center;
    }

    .requirement-center-bubble {
        flex: 0 0 auto;
        width: 100%;
        margin: 0 auto 1.25rem auto;
        justify-content: center;
    }

    .company-shall-img {
        margin-left: 0 !important;
        margin: 0 auto !important;
        max-width: 190px;
    }

    .req-connector-spacer,
    .req-connector-abs-svg {
        display: none !important;
    }

    .requirement-cards-list {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .req-card {
        padding: 0.55rem 0.85rem;
    }

    .req-card-text {
        font-size: 12px;
    }

    .requirement-note-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* YouTube Video Modal Popup Styles */
.video-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal-backdrop.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
