/* ===== ACADEMICS PAGE SPECIFIC STYLES ===== */
:root {
    --ac-hero-h: 460px;
    --card-radius: 18px;
    --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.footer {
    background: var(--bg-alt);
    padding: 80px 0 20px;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-family: var(--font-body);
    position: relative;
    padding-bottom: 10px;
    color: var(--text-primary);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--border);
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary), 0.3);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.footer-links a::before {
    content: '›';
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 25px;
    gap: 0;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px 0 0 50px;
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(var(--primary), 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.back-to-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(var(--primary), 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(var(--secondary), 0.4);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

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

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

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 60px 0 20px;
    }
}

/* HERO BANNER */
.ac-hero {
    position: relative;
    height: var(--ac-hero-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 100px;
    background: #07111e;
}

.ac-hero img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.ac-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 17, 30, 0.4), rgba(7, 17, 30, 0.9));
}

.ac-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ac-hero-content .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.ac-hero-content .breadcrumb a { color: inherit; text-decoration: none; transition: color 0.3s; }
.ac-hero-content .breadcrumb a:hover { color: #fff; }

.ac-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.ac-hero-content h1 span { color: #fbbf24; }

.ac-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* SECTION HELPERS */
.section-header { margin-bottom: 4rem; text-align: center; }
.sec-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.sec-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    margin-bottom: 1rem;
}
.sec-title span { color: #fbbf24; }
.sec-desc {
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* OVERVIEW SECTION */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.overview-video {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    aspect-ratio: 16/9;
}
.overview-video img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: #fff;
    color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 10px rgba(255,255,255,0.2);
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: #fbbf24; color: #fff; }

.method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.m-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}
.m-card:hover { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); transform: translateY(-5px); }
.m-card i { font-size: 1.5rem; color: #3b82f6; margin-bottom: 1rem; }
.m-card h3 { font-size: 1rem; color: #fff; margin-bottom: 0.5rem; }
.m-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* GRADE STRUCTURE */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.grade-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.grade-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #3b82f6, #fbbf24);
}
.grade-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.06); border-color: rgba(251, 191, 36, 0.3); }
.grade-icon {
    width: 70px; height: 70px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}
.grade-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 1rem; }
.grade-card .range { font-size: 0.85rem; color: #fbbf24; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.grade-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; margin-bottom: 1.5rem; }
.btn-syllabus {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    transition: 0.3s;
}
.btn-syllabus:hover { background: #fff; color: #07111e; }

/* CURRICULUM TABS */
.curriculum-section { background: rgba(255, 255, 255, 0.02); }
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.tab-btn.active { background: #3b82f6; border-color: #3b82f6; color: #fff; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.subject-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}
.subject-card:hover { transform: scale(1.03); background: rgba(255, 255, 255, 0.07); }
.subject-card i { width: 50px; height: 50px; background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.subject-card.science i { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.subject-card.math i { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.subject-info h4 { color: #fff; font-size: 1rem; margin-bottom: 0.2rem; }
.subject-info p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* CALENDAR */
.calendar-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.calendar-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}
.cal-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}
.cal-month {
    width: 100px;
    text-align: right;
    padding-right: 3rem;
    color: #fbbf24;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
}
.cal-marker {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 12px; height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.2);
    z-index: 1;
}
.cal-content {
    flex: 1;
    padding-left: 3rem;
}
.cal-content h4 { color: #fff; margin-bottom: 0.5rem; }
.cal-content p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; line-height: 1.5; }

/* EXAMINATION SYSTEM */
.exam-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}
.exam-table th, .exam-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.exam-table th { background: rgba(255, 255, 255, 0.05); color: #fbbf24; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
.exam-table td { color: rgba(255, 255, 255, 0.8); }
.weight-badge { padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.weight-high { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.weight-mid { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.weight-low { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* LABS GALLERY */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.lab-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}
.lab-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.lab-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: 0.3s;
}
.lab-card:hover .lab-overlay { opacity: 1; }
.lab-card:hover img { transform: scale(1.1); }
.lab-overlay h4 { color: #fff; margin-bottom: 0.3rem; }
.lab-overlay p { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }

/* ACHIEVEMENTS */
.academic-achieve { background: linear-gradient(135deg, #07111e 0%, #0d1b3e 100%); position: relative; }
.hall-of-fame {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.topper-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.topper-img {
    width: 100px; height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    border: 3px solid #fbbf24;
    padding: 3px;
}
.topper-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.topper-card h4 { color: #fff; margin-bottom: 0.3rem; }
.topper-card .score { font-size: 1.4rem; font-weight: 800; color: #fbbf24; margin-bottom: 0.5rem; display: block; }
.topper-card .exam { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 1px; }

/* DIGITAL LEARNING */
.digital-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.df-card {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.df-card i { font-size: 2.5rem; color: #3b82f6; }
.df-info h4 { color: #fff; margin-bottom: 0.5rem; }
.df-info p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; line-height: 1.6; }

/* RESOURCES */
.resource-box {
    background: #fff;
    color: #07111e;
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.resource-text h3 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 0.5rem; }
.resource-text p { color: #4b5563; }
.resource-list { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-download {
    background: #07111e;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-download:hover { background: #3b82f6; transform: translateY(-3px); }

/* =========================================
   COMPREHENSIVE RESPONSIVE STYLES
   ========================================= */

/* Large Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .grade-grid,
    .df-card,
    .lab-grid,
    .hall-of-fame {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .digital-features {
        grid-template-columns: 1fr;
    }

    .ac-sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ac-hero-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

/* Medium Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .grade-grid,
    .hall-of-fame {
        grid-template-columns: 1fr;
    }

    .tab-nav {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .resource-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cal-month {
        padding-right: 1.5rem;
        font-size: 1rem;
    }

    .cal-content {
        padding-left: 1.5rem;
    }

    .ac-sections-grid {
        grid-template-columns: 1fr;
    }

    .ac-hero {
        height: 400px;
    }

    .ac-hero-content h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }
}

/* Small Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
    .ac-hero {
        height: 350px;
    }

    .ac-hero-content h1 {
        font-size: 1.8rem;
    }

    .ac-hero-content p {
        font-size: 0.9rem;
    }

    .card {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .footer-col h3 {
        font-size: 1.1rem;
    }
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .ac-hero-content h1 {
        font-size: 1.5rem;
    }

    .grade-grid,
    .df-card,
    .lab-grid {
        grid-template-columns: 1fr;
    }
}
