/* ==========================================================================
   MOHACADEMY SYLLABUS HUB CENTRAL STYLING ENGINE (FULLY RESPONSIVE)
   ========================================================================== */

:root {
    --primary-blue: #007bff;
    --primary-dark-blue: #0056b3;
    --accent-gold: #ffb703;
    --dark-slate: #1e293b;
    --light-slate: #f8fafc;
    --border-gray: #e2e8f0;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --text-light: #f8f9fa;
    --success-green: #2ecc71;
    --header-height: 80px;
}

/* ==========================================================================
   ENHANCED HERO SECTION - FULL RE-ENGINEERING FOR PERFECT RESPONSIVENESS
   ========================================================================== */
.hero-section.general-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    padding: calc(var(--header-height) + 60px) 0 80px 0;
    background: url('../images/syllabuses-hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(0, 86, 179, 0.65));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section.general-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-section.general-hero p {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 35px auto;
    color: rgba(248, 249, 250, 0.9);
}

.hero-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Custom Hero Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary-hero {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

.btn-primary-hero:hover {
    background-color: #f1a208;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.3);
}

.btn-secondary-hero {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary-hero:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   INFO SECTIONS & GENERIC ARCHITECTURE
   ========================================================================== */
.info-overview-section, .syllabus-accordion-section, .grading-system-section {
    padding: 80px 0;
    background-color: var(--light-slate);
}

.syllabus-accordion-section {
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-blocks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.info-block {
    background: #ffffff;
    border: 1px solid var(--border-gray);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateY(-4px);
}

.info-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-block h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.info-block p {
    font-family: 'Lato', sans-serif;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   DYNAMIC GCE ACCORDION COMPONENT
   ========================================================================== */
.accordion-suite {
    max-width: 950px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--light-slate);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    margin-bottom: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 15px -3px rgba(0, 123, 255, 0.08);
}

.accordion-header {
    padding: 22px 30px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background-color: rgba(0, 123, 255, 0.02);
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.subject-code-tag {
    background-color: var(--dark-slate);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.accordion-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.accordion-header .icon-right {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item.active .accordion-header .icon-right {
    color: var(--primary-blue);
}

/* Dynamic slide animation framework container */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    border-top: 1px solid transparent;
}

.accordion-item.active .accordion-content {
    border-top-color: var(--border-gray);
}

.content-inner-wrapper {
    padding: 30px;
}

/* Inner Examination Cards Design */
.exam-papers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.paper-summary-card {
    background: var(--light-slate);
    border: 1px solid var(--border-gray);
    padding: 20px;
    border-radius: 8px;
}

.paper-summary-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.paper-meta {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.paper-summary-card p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Module Specific Bullets */
.syllabus-modules-box h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    border-left: 4px solid var(--accent-gold);
    padding-left: 10px;
}

.module-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-bullet-list li {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 10px 0 10px 25px;
    position: relative;
    border-bottom: 1px dashed var(--border-gray);
}

.module-bullet-list li:last-child {
    border-bottom: none;
}

.module-bullet-list li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--success-green);
    font-size: 0.95rem;
}

/* ==========================================================================
   CAMEROON GCE GRADING TABLE SECTION
   ========================================================================== */
.table-responsive-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-gray);
    background: #ffffff;
}

.gce-grading-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: 'Lato', sans-serif;
    min-width: 500px;
}

.gce-grading-table th {
    background-color: var(--dark-slate);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 18px 24px;
    font-size: 1rem;
}

.gce-grading-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-dark);
    font-size: 1rem;
}

.gce-grading-table tr:last-child td {
    border-bottom: none;
}

.gce-grading-table tr:nth-child(even) {
    background-color: var(--light-slate);
}

/* Grade Alphanumeric Badges */
.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
}

.grade-a { background-color: #d32f2f; }
.grade-b { background-color: #f57c00; }
.grade-c { background-color: #fbc02d; color: #000; }
.grade-d { background-color: #388e3c; }
.grade-e { background-color: #1976d2; }
.grade-o { background-color: #7b1fa2; }
.grade-f { background-color: #616161; }

.note-box {
    max-width: 850px;
    margin: 25px auto 0 auto;
    background-color: rgba(0, 123, 255, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.note-box p {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
}


/* ==========================================================================
   GRID & HERO RESPONSIVE BREAKPOINTS (AIRTIGHT COMPATIBILITY)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section.general-hero h1 { font-size: 2.85rem; }
    .exam-papers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-section.general-hero {
        min-height: 420px;
        padding: calc(var(--header-height) + 40px) 0 60px 0;
    }

    .hero-section.general-hero h1 {
        font-size: 2.25rem;
        margin-bottom: 15px;
    }

    .hero-section.general-hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .info-blocks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exam-papers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .accordion-header {
        padding: 18px 20px;
    }

    .content-inner-wrapper {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.85rem;
    }

    /* Transform Chatbot to Native Bottom Sheet */
    .moh-chat-window-card {
        position: fixed !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 75vh !important;
        max-width: 100vw !important;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) scale(1) !important;
        margin: 0 !important;
        z-index: 100000 !important;
    }
    .moh-chat-window-card.active { transform: translateY(0) scale(1) !important; }
    .moh-fab-container { transform: none !important; }
    .moh-avatar-badge { position: fixed !important; bottom: 20px !important; right: 20px !important; }
}

@media (max-width: 480px) {
    .hero-section.general-hero h1 {
        font-size: 1.85rem;
    }

    .hero-section.general-hero p {
        font-size: 1rem;
    }

    .hero-action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        justify-content: center;
        padding: 12px 20px;
    }

    .accordion-header h3 {
        font-size: 1.15rem;
    }

    .subject-code-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .gce-grading-table th, .gce-grading-table td {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}