/* Variables & Reset */
:root {
    --primary: #a40000;
    --secondary: #f1c40f;
    --dark: #111;
    --light: #f7f5f5;
    --white: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: var(--light);
    overflow-x: hidden;
}

/* Top Bar & Header */
.top-bar {
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px 5%;
    font-size: 13px;
}

.top-login {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
}

header {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo img {
    height: 65px;
    width: auto;
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: bold;
    margin-left: 20px;
    font-size: 14px;
}

.apply-button {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Description Card */
.intro-section {
    padding: 40px 5%;
}

.description-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 8px solid var(--primary);
}

.description-card h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Filter Bar */
.filter-bar {
    background: var(--dark);
    color: white;
    padding: 20px 5%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group select {
    padding: 10px;
    border-radius: 5px;
    margin-left: 10px;
}

/* Course Cards */
.course-grid {
    padding: 40px 5%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-card {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.card-image {
    flex: 1;
    position: relative;
    min-height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--dark);
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 20px;
    font-size: 12px;
}

.card-content {
    flex: 1.5;
    padding: 30px;
    position: relative;
}

.school-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.school-pill.fashion {
    background: #e3f2fd;
    color: #1976d2;
}

.highlights {
    list-style: none;
    margin: 15px 0;
}

.highlights li {
    margin-bottom: 5px;
    color: #555;
}

.schedule-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 14px;
}

.price-tag {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 10px;
}

/* Action Hub */
.action-hub {
    padding: 40px 5%;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hub-btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.paystack {
    background: #000;
}

.whatsapp {
    background: #25d366;
}

.call {
    background: #007bff;
}

.hub-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* FAQ Accordion */
.faq-section {
    padding: 60px 5%;
    background: var(--light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item-main {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item-main>.faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1.2rem;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question.faq-red {
    background-color: var(--primary);
}

.faq-question.faq-yellow {
    background-color: var(--secondary);
    color: var(--dark);
}

.faq-question.faq-dark {
    background-color: var(--dark);
}

.faq-item-main>.faq-question::after {
    content: '\f0fe';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.faq-item-main.active>.faq-question::after {
    transform: rotate(45deg);
}

.faq-item-main>.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item-main.active>.faq-answer {
    max-height: 1000px;
    /* High enough for nested content */
}

/* Nested Question Styling */
.faq-container-nested {
    padding: 0.5rem 1rem 1rem;
    background: #fdfdfd;
}

.faq-container-nested .faq-item {
    border-bottom: 1px solid #eee;
}

.faq-container-nested .faq-item:last-child {
    border-bottom: none;
}

.faq-container-nested .faq-question {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--dark);
}

.faq-container-nested .faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-container-nested .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-container-nested .faq-answer p {
    padding: 0 1rem 1rem 1.5rem;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    border-left: 3px solid var(--primary);
}

.faq-container-nested .faq-item.active .faq-answer {
    max-height: 200px;
}


/* Styling for the More FAQ Button */
.more-faq {
    text-align: center;
    /* Centers the button horizontally */
    margin-top: 40px;
    /* Adds space below the last accordion item */
    width: 100%;
}

.more-faq a {
    display: inline-block;
    background-color: var(--primary);
    /* GH Schools Red */
    color: var(--white);
    padding: 14px 35px;
    border-radius: 30px;
    /* Rounded pill shape */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.more-faq a:hover {
    background-color: var(--dark);
    /* Turns black on hover */
    transform: translateY(-3px);
    /* Lifts up slightly */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Icon Animation */
.more-faq a i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.more-faq a:hover i {
    transform: translateX(5px);
    /* Arrow shifts right on hover */
}

/* Map Section */
.map-section {
    background: var(--white);
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-container {
    width: 100%;
    margin-bottom: 25px;
}

.map-button-wrapper {
    margin-bottom: 25px;
}

.map-app-btn {
    display: inline-block;
    background: var(--dark);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.map-app-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.map-app-btn i {
    margin-right: 8px;
}

.map-address-card {
    padding: 0 5%;
    text-align: center;
    max-width: 800px;
}

.map-address-card p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.map-address-card i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 10px;
}

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
    border-top: 4px solid var(--primary);
}

.site-footer p {
    font-size: 14px;
    opacity: 0.8;
}



.map-link-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--dark);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: var(--shadow);
    font-weight: bold;
}

.hamburger {
    display: none;
    /* Hidden on Desktop */
    color: var(--primary);
}

/* Modal default hidden state */
.mobile-nav-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-modal.show {
    opacity: 1;
    pointer-events: auto;
}

/* Add this after .logo img { height: 60px; } */

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #444;
    font-weight: bold;
    text-transform: uppercase;
}

.logo-text small {
    font-size: 10px;
    letter-spacing: 1px;
    color: #666;
    text-transform: uppercase;
}


.nav-container {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

/* DESKTOP ONLY ENHANCEMENTS */
@media (min-width: 769px) {
    .hero-slider {
        height: 80vh;

    }

    .slide {
        background-position: center 15%;
    }

    .hero-overlay h1 {
        font-size: 4rem;
        /* Slightly larger text for the bigger canvas */
        margin-bottom: 20px;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }

    .course-card {
        flex-direction: column;
    }

    .price-tag {
        position: static;
        margin-top: 20px;
        text-align: center;
    }

    .hamburger {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: var(--primary);

        /* THE FIX: Pinning to the top right */
        position: absolute;
        top: 20px;
        /* Distance from the top of the white header */
        right: 5%;
        /* Distance from the right edge */
        padding: 5px;
        z-index: 1001;
    }

    .nav-links {
        display: none;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .logo img {
        height: 45px;
    }

    .logo-text strong {
        font-size: 13px;

    }

    .logo-text small {
        font-size: 8px;
        letter-spacing: 0.5px;
        white-space: nowrap;
        display: block;
    }

    .hamburger {
        margin-left: auto;
        padding: 5px;
    }
}

.no-results {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #888;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    padding: 10px;
    /* Larger touch target */
}
/* Card Footer & New Buttons */
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.price-badge {
    background: var(--dark);
    color: var(--white);
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pay-btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-btn:hover {
    background: #800000;
    transform: translateY(-2px);
}


/* Update Mobile styles for new footer */
@media (max-width: 768px) {
    .card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-badge, .pay-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* FAQ Modal Styles */
.faq-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.faq-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.faq-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    max-height: 80vh; /* Allow scrolling inside if too tall */
    overflow-y: auto;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.faq-modal.show .faq-modal-content {
    transform: translateY(0);
}

.close-faq-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-faq-btn:hover {
    color: var(--primary);
}

.faq-modal-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}
