/* ==========================================================================
   F.A.Q Section
   ========================================================================== */
.faq-section {
    background-color: #ffffff;
    color: #111111;
    padding: 3rem 0; /* Reduced space */
    position: relative;
    overflow: visible; /* Important for sticky */
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

.faq-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: #0d1b2a; /* Dark Blue */
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    max-width: 300px;
}

/* Sticky Container */
.faq-sticky-container {
    position: sticky;
    top: 120px; /* Offset from fixed header */
    height: max-content;
    z-index: 10;
}

/* Right side contact */
.faq-contact-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    max-width: 200px;
}

.faq-email-link {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0d1b2a; /* Dark Blue */
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-email-link:hover {
    border-color: #0d1b2a;
}

/* Accordion Styling */
.faq-accordion {
    border-top: 1px solid #e5e5e5;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 2rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    color: #333;
}

.faq-num {
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    margin-right: 2rem;
}

.faq-icon {
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.faq-question:hover .faq-icon {
    background-color: #000000;
}

.faq-item.active .faq-icon {
    background-color: #111;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 0 2rem 3.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 739.98px) {
    .faq-section {
        background-color: #e5e5e5; /* Light grey background from screenshot */
        padding: 1rem 1rem 1.25rem 1rem !important; /* Added ~half cm to the bottom */
        overflow: hidden; /* Prevent mobile scroll jank */
    }
    
    .faq-sticky-container {
        position: relative;
        top: 0;
        margin-bottom: 0.5rem !important; /* Further compressed */
    }
    
    .faq-title {
        font-size: 2.8rem !important; /* Slightly smaller to fit better */
        color: #111; /* Solid black */
        letter-spacing: -1px;
        margin-bottom: 0 !important; /* Removed margin completely */
    }
    
    .faq-subtitle {
        display: none !important; /* Hide description on mobile */
    }
    
    .faq-accordion {
        border-top: none; /* Removed top border */
    }
    
    .faq-item {
        border-bottom: 1px solid #d4d4d4; /* Thin border between items */
    }
    
    .faq-question {
        padding: 0.5rem 0 !important; /* Extremely compressed */
        font-size: 1rem !important;
        font-weight: 700;
        color: #555555;
    }
    
    .faq-icon {
        background-color: #b3b3b3; /* Light grey circle */
        width: 10px;
        height: 10px;
    }
    
    .faq-answer-inner {
        padding: 0 0 0.5rem 0 !important; /* Extremely compressed */
    }
    
    .faq-num {
        display: none; /* Hide numbers on mobile */
    }
}

/* 
=========================================================
   NEW STRUCTURAL LAYOUT FOR STICKY FAQ (DESKTOP ONLY)
=========================================================
*/
@media (min-width: 740px) {
    .faq-section,
    .faq-section .container-fluid,
    .faq-layout {
        overflow: visible !important;
        transform: none !important;
        perspective: none !important;
        contain: none !important;
        filter: none !important;
    }

    .faq-layout {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) minmax(420px, 2fr) minmax(180px, 0.7fr);
        align-items: start;
        column-gap: 3rem;
    }

    .faq-intro {
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        align-self: start;
        height: max-content;
    }

    .faq-list {
        position: relative;
        min-width: 0;
    }

    .faq-contact {
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        align-self: start;
        height: max-content;
    }
}

@media (max-width: 739.98px) {
    .faq-layout {
        display: block;
    }
    
    .faq-intro,
    .faq-contact {
        position: static;
    }
}    
