/* Course Detail Page Custom Styles */

/* Mobile Menu Toggle Animation */
#mobileMenuToggle.active span:nth-child(1) {
    position: absolute;
    transform: rotate(45deg);
}

#mobileMenuToggle.active span:nth-child(2) {
    opacity: 0;
}

#mobileMenuToggle.active span:nth-child(3) {
    position: absolute;
    transform: rotate(-45deg);
}

/* Mobile navigation - below lg breakpoint (1024px) */
@media (max-width: 1023px) {
    #mainNav {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px);
        background-color: #333333;
        flex-direction: column;
        gap: 11.5px;
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        overflow-y: auto;
    }

    #mainNav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    #mainNav a {
        width: 100%;
        text-align: center;
        text-decoration: none;
        padding: 10px 0;
        font-size: 20px;
        line-height: 100%;
        font-weight: 600;
    }

    #mainNav a:hover {
        text-decoration: underline;
    }

    #mainNav button {
        width: 100%;
        margin-top: 48px;
    }
}

/* Tab Navigation */
.tab-button {
    color: #BEBEBE;
    background-color: transparent !important;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #FFFFFF;
    background-color: transparent !important;
    border-bottom-color: #F0A763;
}

.tab-button:hover:not(.active) {
    color: #FFFFFF;
    background-color: transparent !important;
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Curriculum Accordion */
.curriculum-toggle > div > svg {
    transition: transform 0.2s ease-in-out;
    color: #FFFFFF;
}

.curriculum-toggle.active > div > svg {
    transform: rotate(180deg);
    color: #F0A763;
}

.curriculum-toggle.active h3 {
    color: #F0A763;
}

.curriculum-content {
    transition: max-height 0.3s ease-in-out;
}

/* Curriculum card background on active (mobile) - applies to parent container */
.curriculum-toggle.active {
    background-color: #1A1A1A;
    border-radius: 8px 8px 0 0;
}

.curriculum-toggle.active ~ .curriculum-content {
    background-color: #1A1A1A;
    border-radius: 0 0 8px 8px;
}

/* Curriculum card background on active (desktop) */
@media (min-width: 1024px) {
    .curriculum-toggle.active {
        background-color: transparent;
        border-radius: 0;
    }

    .curriculum-toggle.active ~ .curriculum-content {
        background-color: #333333;
        border-radius: 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #F0A763;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E09653;
}

/* Sticky Pricing Card */
@media (min-width: 1024px) {
    .lg\:sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}
