/* ============================================
   ATECHABAD ACADEMY - REDESIGNED STYLESHEET
   Modern Educational Theme: Emerald & White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;

    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --accent-coral: #f97316;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        linear-gradient(180deg, rgba(220,230,225,0.88) 0%, rgba(225,232,228,0.88) 40%, rgba(220,230,225,0.88) 100%),
        url('../img/aabg.jpg') center/400px repeat;
    background-attachment: local, local;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-base);
}

header.transparent {
    background: transparent;
}

header.scrolled {
    background: rgba(6, 78, 59, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    height: 80px;
    width: auto;
    transition: var(--transition-base);
}

.logo-text {
    display: none;
}

header.transparent .logo-text {
    color: var(--white);
}

header.scrolled .logo-text {
    color: var(--emerald-200);
}

.youtube-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

.youtube-logo:hover {
    transform: scale(1.15);
}

/* Nav links */
nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

header.transparent nav ul li a {
    color: rgba(255, 255, 255, 0.85);
}

header.transparent nav ul li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

header.scrolled nav ul li a {
    color: rgba(255, 255, 255, 0.85);
}

header.scrolled nav ul li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

nav ul li a.nav-cta {
    background: var(--emerald-600);
    color: var(--white) !important;
    font-weight: 600;
    padding: 8px 20px;
}

nav ul li a.nav-cta:hover {
    background: var(--emerald-700) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* ---- Dropdown Menu ---- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    gap: 4px !important;
}

.dropdown-toggle .chevron {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.dropdown.open .dropdown-toggle .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all var(--transition-base);
    z-index: 1100;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.88rem !important;
    color: var(--gray-700) !important;
    white-space: nowrap;
    transition: all var(--transition-fast) !important;
}

.dropdown-menu li a:hover {
    background: var(--emerald-50) !important;
    color: var(--emerald-700) !important;
}

.dropdown-menu li a .dd-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 6px 0;
}

/* ---- Nav Icons (Profile & Cart) ---- */
.nav-icon {
    position: relative;
    padding: 8px !important;
    border-radius: var(--radius-full) !important;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

header.transparent .nav-icon svg {
    color: rgba(255, 255, 255, 0.85);
}

header.scrolled .nav-icon svg {
    color: rgba(255, 255, 255, 0.85);
}

header.transparent .nav-icon:hover svg {
    color: var(--white);
}

header.scrolled .nav-icon:hover svg {
    color: var(--white);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--accent-coral);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    transition: transform var(--transition-fast);
}

.cart-badge.bump {
    animation: cartBump 0.3s ease;
}

@keyframes cartBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

/* Nav utilities row on mobile */
.nav-utilities {
    display: none;
}

/* Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.bar {
    height: 2.5px;
    width: 100%;
    border-radius: 4px;
    transition: all var(--transition-base);
}

header.transparent .bar {
    background-color: var(--white);
}

header.scrolled .bar {
    background-color: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--emerald-600);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-white {
    background: var(--white);
    color: var(--emerald-800);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-coral);
    color: var(--white);
}

.btn-accent:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 2px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--emerald-100);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--emerald-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    background: var(--emerald-100);
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--emerald-600);
    transition: all var(--transition-base);
}

.card-link:hover {
    color: var(--emerald-800);
    gap: 10px;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.card-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-600) 50%, var(--emerald-500) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin-top: 16px;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.footer-column ul li a:hover {
    color: var(--emerald-400);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    transform: translateY(-3px);
}

.social-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.social-icon:hover img {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--gray-400);
    transition: color var(--transition-base);
}

.footer-bottom a:hover {
    color: var(--emerald-400);
}

/* ============================================
   PRIVACY POLICY OVERLAY
   ============================================ */
.privacy-policy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
}

.privacy-policy-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

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

.privacy-policy-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.privacy-policy-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-policy-content ul {
    padding-left: 0;
    margin-bottom: 16px;
}

.privacy-policy-content ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1;
}

.close-btn:hover {
    background: var(--accent-red);
    color: var(--white);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--emerald-600);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--emerald-800);
}

/* ============================================
   CONTENT CONTAINER
   ============================================ */
.contentcontainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ============================================
   TABLES
   ============================================ */
.timetable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.timetable th {
    background: var(--emerald-800);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timetable td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.timetable tr:last-child td {
    border-bottom: none;
}

.timetable tr:hover td {
    background: var(--emerald-50);
}

.past-exam {
    background: var(--gray-50) !important;
    color: var(--gray-400) !important;
}

/* ============================================
   SUBJECT CARDS
   ============================================ */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.subject-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.subject-card-header {
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500));
    color: var(--white);
    padding: 24px;
    position: relative;
    border-radius:15px;
    border:2px solid black;
}


.subject-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    opacity: 0.6;
}

.subject-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    color:white;
}

.subject-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.subject-content {
    padding: 24px;
}

.resource-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-base);
}

.faq-question:hover {
    color: var(--emerald-700);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gray-400);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--emerald-600);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* ============================================
   CLOCK / DATE
   ============================================ */
#dateDisplay,
#clock {
    position: fixed;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 900;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

#dateDisplay {
    bottom: 64px;
}

#clock {
    bottom: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(5px);
        padding: 88px 32px 32px;
        z-index: 999;
        transition: right var(--transition-base);
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 4px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: flex;
        padding: 12px 16px;
        font-size: 1rem;
        color: var(--gray-700) !important;
        border-radius: var(--radius-md);
    }

    nav ul li a:hover {
        background: var(--emerald-50) !important;
        color: var(--emerald-700) !important;
    }

    /* Dropdown on mobile */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        border-radius: var(--radius-md);
        padding: 4px 0 4px 12px;
        margin-top: 4px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
    }

    .dropdown.open .dropdown-menu {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu li a {
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
    }

    /* Nav icon utilities on mobile */
    .nav-icon-desktop {
        display: none !important;
    }

    .nav-utilities {
        display: flex;
        gap: 8px;
        padding: 16px 0;
        margin-top: 12px;
        border-top: 1px solid var(--gray-100);
    }

    .nav-utilities a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: var(--radius-md);
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--gray-700);
        background: var(--gray-50);
        flex: 1;
        justify-content: center;
        transition: all var(--transition-base);
    }

    .nav-utilities a:hover {
        background: var(--emerald-50);
        color: var(--emerald-700);
    }

    .nav-utilities svg {
        width: 18px;
        height: 18px;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .resource-links {
        grid-template-columns: 1fr;
    }

    .contentcontainer {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
    }

    .card {
        padding: 24px;
    }
}

/* ============================================
   ABOUT + CONTACT COMBINED PAGE
   ============================================ */
.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

@media (max-width: 768px) {
    .about-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.about-block h2,
.contact-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.about-block p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.value-item {
    padding: 20px;
    background: var(--emerald-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--emerald-100);
}

.value-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--emerald-800);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .about-values {
        grid-template-columns: 1fr;
    }
}

/* Contact form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--emerald-600);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
}

.submit-btn:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Contact info cards */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.contact-method-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--emerald-100);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--emerald-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-method-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.contact-method-info p,
.contact-method-info a {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.contact-method-info a:hover {
    color: var(--emerald-600);
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.team-member {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);

    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--emerald-700);
    font-weight: 700;
}

.team-member h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.team-member p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   INNER PAGE HEADER (solid, not transparent)
   ============================================ */
header.solid {
    background: linear-gradient(135deg, var(--emerald-900) 0%, #064e3b 50%, #065f46 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

header.solid .logo-text {
    color: var(--white);
}

header.solid nav ul li a {
    color: rgba(255, 255, 255, 0.85);
}

header.solid nav ul li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

header.solid .bar {
    background-color: var(--white);
}

header.solid .nav-icon svg {
    color: rgba(255, 255, 255, 0.85);
}

header.solid .nav-icon:hover svg {
    color: var(--white);
}

header.solid.scrolled {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.5) 0%, rgba(6, 95, 70, 0.5) 50%, rgba(5, 46, 22, 0.5) 100%);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.3);
}

header.solid.scrolled .logo-text {
    color: var(--emerald-200);
}

header.solid.scrolled nav ul li a {
    color: rgba(255, 255, 255, 0.85);
}

header.solid.scrolled nav ul li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

header.solid.scrolled .bar {
    background-color: var(--white);
}

header.solid.scrolled .nav-icon svg {
    color: rgba(255, 255, 255, 0.85);
}

header.solid.scrolled .nav-icon:hover svg {
    color: var(--white);
}

/* ============================================
   UNIVERSITY RESOURCES PAGE
   ============================================ */
.subject-section {
    padding: 70px 0;
}

.subject-section.alt-bg {
    background: rgba(240, 253, 244, 0.6);
}

.subject-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.subject-card {
    display: flex;
    gap: 20px;
    padding: 28px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--emerald-100);
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.subject-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(6, 78, 59, 0.14), 0 0 0 1px rgba(16, 185, 129, 0.12);
    border-color: var(--emerald-300);
}

.subject-card-soon {
    opacity: 0.7;
}

.subject-card-soon:hover {
    opacity: 0.85;
}

.subject-card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.subject-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.subject-card-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 14px;
}

.subject-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--emerald-600);
    transition: color 0.2s;
}

.subject-card:hover .subject-card-link {
    color: var(--emerald-700);
}

.coming-soon-tag {
    color: var(--gray-400) !important;
    font-style: italic;
    font-weight: 500 !important;
}

/* CTA Section (university/generic pages) */
main > .cta-section {
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500)) !important;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
}

main > .cta-section::before {
    background: none !important;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb */
.breadcrumb {
    margin-top: 20px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: black;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .subject-cards-grid {
        grid-template-columns: 1fr;
    }
    .subject-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cta-section h2 {
        font-size: 1.6rem;
    }
}

/* ============================================
   COMMENT REACTIONS (Like / Dislike)
   ============================================ */
.comment-reactions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    margin-right: 8px;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1;
}

.reaction-btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    color: var(--gray-700);
}

.reaction-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.reaction-btn:active i {
    transform: scale(1.3);
}

.reaction-btn.active-like {
    background: var(--emerald-50);
    border-color: var(--emerald-400);
    color: var(--emerald-700);
}

.reaction-btn.active-like:hover {
    background: var(--emerald-100);
    border-color: var(--emerald-500);
}

.reaction-btn.active-dislike {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.reaction-btn.active-dislike:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.reaction-count {
    min-width: 8px;
    text-align: center;
}

@keyframes reactionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.reaction-btn.pop i {
    animation: reactionPop 0.3s ease;
}
