/* FAQ Page Styles */

/* Banner Section - Shared with other pages */
.page-banner {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/logo/summit-banner.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 50px 20px;
}

    .page-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--ast-global-color-5) 100%);
        opacity: 0.7;
        z-index: 1;
    }

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.page-banner-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* FAQ Content Section - Modern Design */
.faq-content-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 500px;
    padding: 80px 0;
    position: relative;
}

    .faq-content-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, transparent 0%, rgba(28, 65, 121, 0.1) 10%, rgba(28, 65, 121, 0.2) 50%, rgba(28, 65, 121, 0.1) 90%, transparent 100%);
        pointer-events: none;
    }

.faq-item {
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

    .faq-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .faq-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .faq-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .faq-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .faq-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .faq-item:nth-child(6) {
        animation-delay: 0.35s;
    }

    .faq-item:nth-child(7) {
        animation-delay: 0.4s;
    }

    .faq-item:nth-child(8) {
        animation-delay: 0.45s;
    }

    .faq-item:nth-child(9) {
        animation-delay: 0.5s;
    }

    .faq-item:nth-child(10) {
        animation-delay: 0.55s;
    }

    .faq-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .faq-item:hover::before {
        opacity: 1;
    }

    .faq-item:hover {
        border-color: rgba(28, 65, 121, 0.2);
        box-shadow: 0 8px 30px rgba(28, 65, 121, 0.12);
        transform: translateX(5px);
    }

/* Question Icon Circle */
.faq-question {
    position: relative;
}

    .faq-question::before {
        content: '?';
        position: absolute;
        left: 25px;
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        border-radius: 50%;
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-heading);
        box-shadow: 0 3px 10px rgba(28, 65, 121, 0.3);
        transition: all 0.3s ease;
        z-index: 1;
        line-height: 1;
    }

.faq-item:hover .faq-question::before {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(28, 65, 121, 0.4);
}

.faq-button {
    width: 100%;
    padding: 25px 30px 25px 75px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    position: relative;
}

    .faq-button:hover {
        background: linear-gradient(90deg, rgba(28, 65, 121, 0.05) 0%, transparent 100%);
    }

    .faq-button:not(.collapsed) {
        background: linear-gradient(90deg, rgba(28, 65, 121, 0.08) 0%, rgba(28, 65, 121, 0.02) 100%);
    }

    .faq-button:focus {
        box-shadow: none;
        outline: none;
    }

.faq-question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.faq-button:hover .faq-question-text {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(28, 65, 121, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.faq-button:not(.collapsed) .faq-icon {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: #ffffff;
}

/* Answer Section */
.faq-answer {
    padding: 20px 30px 30px 75px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    border-top: 1px solid rgba(28, 65, 121, 0.1);
    margin-top: 5px;
    position: relative;
}

    .faq-answer::before {
        content: '';
        position: absolute;
        left: 42.5px;
        top: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary-color) 0%, rgba(28, 65, 121, 0.2) 50%, transparent 100%);
    }

    .faq-answer p {
        margin-bottom: 1.2rem;
    }
    
    .faq-answer p:first-child {
        margin-top: 0;
    }

        .faq-answer p:last-child {
            margin-bottom: 0;
        }

    .faq-answer ul,
    .faq-answer ol {
        margin-bottom: 1.2rem;
        padding-left: 2rem;
    }

    .faq-answer li {
        margin-bottom: 0.7rem;
        position: relative;
    }

    .faq-answer ul li::marker {
        color: var(--primary-color);
    }

    .faq-answer a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
    }

        .faq-answer a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
        }

        .faq-answer a:hover::after {
            width: 100%;
        }

.faq-empty {
    padding: 60px 20px;
}

/* Number Badge for FAQ Items */
.accordion {
    counter-reset: faq-counter;
}

.faq-item {
    counter-increment: faq-counter;
}

.faq-question::after {
    content: counter(faq-counter, decimal-leading-zero);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(28, 65, 121, 0.05);
    font-family: var(--font-heading);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 0;
}

.faq-item:hover .faq-question::after {
    color: rgba(28, 65, 121, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-banner {
        min-height: 200px;
        padding: 40px 20px;
    }

    .page-banner-title {
        font-size: 2rem;
    }

    .faq-content-section {
        padding: 50px 0;
    }

    .faq-question::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        left: 20px;
    }

    .faq-button {
        padding: 20px 20px 20px 65px;
    }

    .faq-question-text {
        font-size: 1.05rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .faq-answer {
        padding: 18px 20px 25px 65px;
        font-size: 0.98rem;
    }

        .faq-answer::before {
            left: 34.5px;
        }

    .faq-question::after {
        font-size: 2rem;
        right: 50px;
    }
}

@media (max-width: 576px) {
    .page-banner {
        min-height: 180px;
        padding: 30px 20px;
    }

    .page-banner-title {
        font-size: 1.75rem;
    }

    .faq-content-section {
        padding: 40px 0;
    }

    .faq-question::before {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
        left: 15px;
    }

    .faq-button {
        padding: 18px 15px 18px 55px;
    }

    .faq-question-text {
        font-size: 0.98rem;
    }

    .faq-icon {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .faq-answer {
        padding: 15px 15px 20px 55px;
        font-size: 0.92rem;
    }

        .faq-answer::before {
            left: 28.5px;
        }

    .faq-question::after {
        font-size: 1.5rem;
        right: 45px;
        opacity: 0.7;
    }
}
