/* ===== VARIABLES ===== */
:root {
    --max-width: 1200px;
    --space: 1.5rem;
    --radius: 8px;
    --bg: #f5f5f5;
    --white: #ffffff;
    --text: #222;
}

/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== BASE ===== */
body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ===== LAYOUT ===== */
.container {
    width: min(100% - 2rem, var(--max-width));
    margin: auto;
}

.section {
    padding: var(--space) 0;
}

/* ===== HEADER & FOOTER ===== */
.site-header,
.site-footer {
    background: var(--white);
    padding: var(--space) 0;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: var(--space);
    margin-top: var(--space);
}

/* ===== LOCK TOP BAR COLOR ===== */
.top-bar {
    background: #000364 !important;
    color: #ffffff;
}


/* ===== ITEMS ===== */
.item {
    background: var(--white);
    padding: var(--space);
    border-radius: var(--radius);
    text-align: center;
}

/* ===== IMAGE HANDLING ===== */
.image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ddd;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== RESPONSIVE GRID ===== */
@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MARQUEE : ADMISSIONS NOTICE ===== */
.marquee-wrap {
    background: #ffeb3b;
    /* yellow background */
    overflow: hidden;
    width: 100%;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.marquee span {
    display: inline-block;
    padding-right: 5rem;
    /* spacing between repeated text */
    white-space: nowrap;
    font-weight: bold;
}

/* Smooth infinite scroll */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* scroll half width for duplicated content */
    }
}

/* Optional: pause on hover */
.marquee-wrap:hover .marquee {
    animation-play-state: paused;
}


/* Keyframes: scroll full width of content */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===== END MARQUEE ===== */

/* ===== TOP CONTACT & SOCIAL BAR ===== */
.top-bar {
    width: 100%;
    background: #000364;
    color: #fff;
    animation: slideDown 0.6s ease-out;
}

.top-bar-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    /* single line on mobile */
    gap: 0.5rem;
}

/* Left side */
.top-bar-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.call-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.call-link:hover {
    opacity: 0.7;
}

/* Right side */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.top-bar-right a {
    text-decoration: none;
}

/* Call Now Button */
.call-now-btn {
    background: #fff;
    color: #000364;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.call-now-btn:hover {
    background: #fff200;
    transform: scale(1.05);
}

/* Entry Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== END TOP CONTACT & SOCIAL BAR ===== */

/* ===== SOCIAL ICONS (FONT AWESOME) ===== */
.social-icon i {
    font-size: 1.1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Brand colors */
.instagram {
    color: #E4405F;
}

.facebook {
    color: #1877F2;
}

.youtube {
    color: #FF0000;
}

.maps {
    color: #34A853;
}

.whatsapp {
    color: #25D366;
}

.social-icon:hover i {
    transform: scale(1.2);
    opacity: 0.85;
}

/* ===== END SOCIAL ICONS ===== */

/* ===== MAIN HEADER : MOBILE-FIRST SINGLE LINE ===== */
.main-header {
    background: #eef1ff;
    /* light background */
    color: #000364;
    /* primary color */
}

.main-header-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: row;
    /* row for mobile */
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    /* force single line */
    gap: 0.5rem;
}

/* Logo boxes */
.logo-box {
    width: 40px;
    /* mobile logo size */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* School name block */
.school-name {
    text-align: center;
    flex: 1;
    /* take remaining space */
}

.school-name h1 {
    font-size: 0.9rem;
    line-height: 1.1;
    font-weight: bold;
}

.school-name p {
    font-size: 0.65rem;
    margin-top: 0.1rem;
}

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 768px) {
    .main-header-container {
        padding: 1rem;
        gap: 1rem;
    }

    .logo-box {
        width: 90px;
        height: 90px;
    }

    .school-name h1 {
        font-size: 1.4rem;
    }

    .school-name p {
        font-size: 0.85rem;
    }
}

/* ===== END MAIN HEADER ===== */

/* ===== SCROLLABLE IMAGE GALLERY ===== */
.scroll-gallery {
    padding: 1rem 0;
    background: var(--bg);
    overflow: hidden;
    /* hide scrollbar */
}

.scroll-gallery .scroll-container {
    display: flex;
    width: max-content;
    animation: scrollGallery 60s linear infinite;
    /* auto scroll */
}

.scroll-gallery .gallery-wrapper {
    display: flex;
    gap: 0.6rem;
}

.scroll-gallery .gallery-wrapper a {
    flex: 0 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.scroll-gallery .gallery-wrapper a img {
    width: 300px;
    /* bigger thumbnails */
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

.scroll-gallery .gallery-wrapper a:hover {
    transform: scale(1.1);
}

/* Automatic scroll animation */
@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* adjust to loop */
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .scroll-gallery .gallery-wrapper a img {
        width: 250px;
        height: 250px;
    }
}


/* ===== STICKY NAVBAR ===== */
.main-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: #000364;
    /* primary color */
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-links li a:hover {
    color: #ffeb3b;
    /* yellow hover */
}

/* Contact Us special styling */
.contact-link {
    background: hsl(212, 100%, 50%);
    /* red button */
    color: #ffffff;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-link:hover {
    background: #0566ee;
    color: #000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    /* increased opacity */
    transition: background 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        /* keep in single line */
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        /* prevent stacking */
        gap: 0.5rem;
    }

    .nav-links {
        flex-direction: row;
        /* keep horizontal */
        gap: 0.5rem;
        overflow-x: auto;
        /* allow horizontal scroll if too many links */
    }

    .nav-links li a {
        white-space: nowrap;
        /* prevent wrapping */
        padding: 0.3rem 0.5rem;
    }

    /* optional scrollbar hidden for smooth look */
    .nav-links::-webkit-scrollbar {
        display: none;
    }
}

/* ===== MOBILE NAVBAR FONT & SIZE FIX ===== */
@media (max-width: 600px) {

    .nav-logo {
        font-size: 0.85rem;
    }

    .nav-links li a {
        font-size: 0.75rem;
        padding: 0.2rem 0.35rem;
    }

    .contact-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.45rem;
    }
}

/* ===== ABOUT CARDS ===== */
.about-cards {
    background: var(--bg);
}

.about-cards-grid {
    display: grid;
    gap: 1rem;
}

/* Card base */
.about-card {
    padding: 1.2rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card backgrounds */
.about-card.management {
    background: #000364;
    /* primary */
}

.about-card.school {
    background: #0a7c4a;
    /* green */
}

.about-card.college {
    background: #7c1c0a;
    /* maroon */
}

/* Header (icon + heading inline) */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.about-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* Text */
.about-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Read more */
.read-more {
    display: inline-block;
    margin-top: 0.6rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.read-more:hover {
    transform: translateX(4px);
    opacity: 0.85;
}

/* Hover effect */
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* ===== INDIVIDUAL COLORS ===== */

/* Management */
.about-card.management h3,
.about-card.management .read-more {
    color: #ffeb3b;
}

.about-card.management p {
    color: #e0e0ff;
}

/* School */
.about-card.school h3,
.about-card.school .read-more {
    color: #b6ffda;
}

.about-card.school p {
    color: #e9fff4;
}

/* College */
.about-card.college h3,
.about-card.college .read-more {
    color: #ffd6d6;
}

.about-card.college p {
    color: #ffecec;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop layout */
@media (min-width: 768px) {
    .about-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== ICON COLORS PER CARD ===== */

/* Management */
.about-card.management .about-icon {
    color: #ffeb3b;
    /* same as heading */
}

/* School */
.about-card.school .about-icon {
    color: #b6ffda;
}

/* College */
.about-card.college .about-icon {
    color: #ffd6d6;
}

/* ===== END ABOUT CARDS ===== */


/* ===== FACILITIES SECTION (DARK) ===== */
.facilities-section {
    background: #020437;
    /* dark primary */
    padding: 2.5rem 0;
}

/* Section heading */
.section-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
    position: relative;

}

/* Yellow accent underline */
.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #ffeb3b;
    display: block;
    margin: 0.4rem auto 0;
    border-radius: 3px;
}


/* Grid */
.facilities-grid {
    display: grid;
    gap: 1rem;
}

/* Card */
.facility-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.9rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Icon */
.facility-icon {
    font-size: 1.8rem;
    color: #000364;
    flex-shrink: 0;
}

/* Text */
.facility-card h4 {
    margin-bottom: 0.3rem;
    color: #000364;
    font-size: 0.95rem;
}

.facility-card p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #444;
}

/* Responsive layout */
@media (min-width: 600px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 12 cards = 3 rows */
    }
}

/* ===== END FACILITIES SECTION ===== */


/* ===== ADMISSIONS CALL TO ACTION ===== */
.admissions-cta {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #ffffff;
    padding: 2.5rem 0;
}


.admissions-cta-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

/* Text */
.admissions-text h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #ffeb3b;
}

.admissions-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f1f1f1;
}

/* Buttons */
.admissions-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Individual buttons */
.call-btn {
    background: #ffffff;
    color: #000364;
}

.whatsapp-btn {
    background: #25D366;
    color: #ffffff;
}

.apply-btn {
    background: #ffeb3b;
    color: #000364;
}

/* Hover */
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* Desktop layout */
@media (min-width: 768px) {
    .admissions-cta-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .admissions-actions {
        justify-content: flex-end;
    }

    .admissions-text h2 {
        font-size: 1.9rem;
    }
}

/* ===== END ADMISSIONS CTA ===== */
/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    background: #f5f5f5;
    /* soft contrasting background */
    padding: 3rem 0;
}

.why-grid {
    display: grid;
    gap: 1rem;
}

/* Individual card */
.why-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Icon */
.why-icon {
    font-size: 2rem;
    color: #000364;
    /* primary color */
    margin-bottom: 0.6rem;
}

/* Heading */
.why-card h4 {
    font-size: 1rem;
    color: #000364;
    margin-bottom: 0.3rem;
}

/* Text */
.why-card p {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.4;
}

/* Responsive Grid */
@media (min-width: 600px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scroll animation (same as about cards) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== WHY CHOOSE US SECTION - MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .why-card {
        padding: 0.6rem;
    }

    .why-icon {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .why-card h4 {
        font-size: 0.85rem;
        color: #000364;
        /* dark heading for readability */
    }

    .why-card p {
        font-size: 0.75rem;
        color: #333;
        /* slightly darker text for contrast */
        line-height: 1.3;
    }
}

.why-choose-us .section-title {
    color: #000364;
    /* dark heading for light background */
}

/* ===== RESULTS & ACHIEVEMENTS - HIGH VISUAL IMPACT ===== */
.results-section {
    background: linear-gradient(135deg, #020437, #1a237e);
    /* deep to royal indigo */
    padding: 3rem 0;
    color: #ffffff;
}

.results-title {
    color: #ffeb3b;
    /* bright yellow heading */
    text-align: center;
    margin-bottom: 2rem;
}

/* Statistics Tiles */
.results-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.result-card {
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Individual bright cards */
.result-card:nth-child(1) {
    background: #ffeb3b;
    color: #000364;
}

.result-card:nth-child(2) {
    background: #00bcd4;
    color: #000;
}

.result-card:nth-child(3) {
    background: #ff7043;
    color: #000;
}

.result-card:nth-child(4) {
    background: #8bc34a;
    color: #000;
}

.result-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.result-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Hover effect */
.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Responsive Grid */
@media (min-width: 600px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Scrolling Banner Gallery */
.results-banner {
    overflow: hidden;
    padding: 1.2rem 0;
    background: #0d1b54;
    /* dark gradient deep blue */
}

.results-banner .gallery-wrapper a img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #ffeb3b;
    /* glowing border */
    box-shadow: 0 4px 16px rgba(255, 235, 59, 0.4);
}

.results-banner .gallery-wrapper a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(255, 235, 59, 0.6);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .results-banner .gallery-wrapper a img {
        width: 180px;
        height: 120px;
    }
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background: #020437;
    /* deep blue to match brand */
    color: #ffffff;
    padding: 2rem 0 0 0;
    /* remove bottom padding, footer-bottom has its own */
    font-size: 0.85rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: auto;
}

/* Top section */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1 1 250px;
}

.footer-about h4,
.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #ffeb3b;
    /* yellow headings */
}

.footer-about p,
.footer-links ul li a,
.footer-contact p {
    color: #f1f1f1;
    line-height: 1.4;
    text-decoration: none;
}

/* Quick Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.4rem;
}

.footer-links ul li a {
    color: #f1f1f1;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffeb3b;
}

/* Contact & Social */
.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.footer-social a {
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.footer-bottom {
    width: 100%;
    /* full width of viewport */
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.75rem;
    background: #000000;
    /* solid black */
    color: #ffffff;
    margin: 0;
    /* remove extra margin */
}



/* Mobile adjustments */
/* ===== FOOTER MOBILE FIX ===== */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        /* stack columns */
        gap: 0.8rem;
        /* smaller gap between stacked items */
        padding-bottom: 1rem;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        flex: 1 1 100%;
        /* full width */
        margin-bottom: 0;
        /* remove extra margin if any */
    }

    .footer-about p,
    .footer-links ul,
    .footer-contact p {
        margin-bottom: 0.5rem;
        /* small spacing for readability */
    }
}

.about-card-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.about-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #eef1ff; /* light background for each section */
    padding: 1rem;
    border-radius: var(--radius);
}

.about-icon i {
    font-size: 2.2rem;
    color: #000364;  /* primary color */
}

.about-text h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000364;
}

.about-text p {
    font-size: 0.9rem;
    color: #222;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-detail {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-icon i {
        font-size: 2rem;
    }
}

/* ===== ACADEMICS PAGE ===== */

.academics-hero {
    text-align: center;
    padding: 2rem 1rem;
}

.academics-hero h1 {
    color: #000364;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.academics-hero p {
    max-width: 700px;
    margin: auto;
    color: #444;
    font-size: 1rem;
}

/* Academic Cards */
.academic-levels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 2rem 0;
}

.academic-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.card-icon {
    font-size: 2.2rem;
    color: #000364;
    margin-bottom: 0.6rem;
}

.academic-card h3 {
    color: #020437;
    margin-bottom: 0.4rem;
}

.academic-card p {
    font-size: 0.95rem;
    color: #555;
}

.academic-card .read-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: #000364;
    font-weight: bold;
    text-decoration: none;
}

.academic-card .read-more:hover {
    transform: translateX(4px);
}

/* Details Section */
.academics-details {
    margin: 2.5rem 0;
}

.details-block {
    background: #f4f6ff;
    padding: 1.5rem;
    border-left: 5px solid #000364;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.details-block h2 {
    color: #000364;
    margin-bottom: 0.4rem;
}

.details-block p {
    color: #444;
    font-size: 0.95rem;
}

/* Desktop */
@media (min-width: 768px) {
    .academic-levels {
        grid-template-columns: repeat(4, 1fr);
    }

    .academics-hero h1 {
        font-size: 2.4rem;
    }
}

/* ===== END ACADEMICS PAGE ===== */
/* ===== DOWNLOADS SECTION : ENHANCED ===== */

.downloads-section {
    margin: 3rem 0;
    text-align: center;
}

/* Headings */
.section-title {
    font-size: 1.9rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.8rem;
}

/* Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Cards */
.download-card {
    padding: 1.6rem;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Card hover */
.download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* Card color themes */
.download-card {
    background: linear-gradient(135deg, #000364, #020437);
}

.puc-card {
    background: linear-gradient(135deg, #5803a2, #9f06aa);
}

/* Icons */
.download-icon {
    font-size: 2.6rem;
    margin-bottom: 0.7rem;
    color: #fff;
}

/* Titles */
.download-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
}

/* List */
.download-card ul {
    list-style: none;
    padding: 0;
}

.download-card ul li {
    margin: 0.6rem 0;
}

/* Download links */
.download-card ul li a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    animation: blinkGlow 1.8s infinite;
    transition: background 0.3s ease, transform 0.3s ease;
}

.download-card ul li a:hover {
    background: #fff200;
    color: #020437;
    transform: scale(1.08);
}

/* Blink animation */
@keyframes blinkGlow {
    0% {
        box-shadow: 0 0 0 rgba(255,255,255,0);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 15px rgba(255,255,255,0.8);
        opacity: 0.85;
    }
    100% {
        box-shadow: 0 0 0 rgba(255,255,255,0);
        opacity: 1;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== END DOWNLOADS SECTION ===== */

/* ===== DOWNLOADS SECTION : HIGHLIGHT ===== */

.downloads-section {
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
    border: 2px dashed #000364;
    border-radius: 22px;
    padding: 2.5rem 1.5rem;
    margin: 4rem auto;
    max-width: 1200px;
    position: relative;
}

/* Ribbon badge */
.downloads-section::before {
    content: "IMPORTANT DOWNLOADS";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #000364;
    color: #fff;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 20px;
    font-weight: bold;
}

/* Section title stronger */
.downloads-section .section-title {
    color: #020437;
    font-weight: 800;
}

/* Cards pulse slightly */
.download-card {
    animation: softPulse 4s infinite;
}

/* Different pulse timing for PU */
.puc-card {
    animation-delay: 1.5s;
}

/* Soft pulse animation */
@keyframes softPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.015);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile spacing */
@media (max-width: 480px) {
    .downloads-section {
        padding: 2rem 1rem;
    }
}

/* ===== END DOWNLOADS HIGHLIGHT ===== */
/* ======================================
   CONTACT PAGE STYLES
====================================== */

/* Main Section */
.contact-section {
    padding: 4rem 1.5rem 3rem;
    background: #f5f8fc;
    text-align: center;
}

.contact-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0b3c5d;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* Grid */
.contact-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
}

/* Base Card */
.contact-card {
    background: #ffffff;
    padding: 1.8rem 1.6rem;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.15);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Individual Card Colors */
.contact-card.phone {
    border-top: 6px solid #1e90ff;
}
.contact-card.phone h3 {
    color: #1e90ff;
}

.contact-card.email {
    border-top: 6px solid #ff6b35;
}
.contact-card.email h3 {
    color: #ff6b35;
}

.contact-card.address {
    border-top: 6px solid #2ecc71;
}
.contact-card.address h3 {
    color: #2ecc71;
}

.contact-card.whatsapp {
    border-top: 6px solid #25d366;
}
.contact-card.whatsapp h3 {
    color: #25d366;
}

/* Quick Action Buttons */
.contact-actions {
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #0b3c5d, #1e6091);
}

.action-btn {
    padding: 0.9rem 1.6rem;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.action-btn.call {
    background: #1e90ff;
}

.action-btn.whatsapp {
    background: #25d366;
}

.action-btn.map {
    background: #ff6b35;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 420px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-actions {
        padding: 2.5rem 1rem;
    }
}

/* ======================================
   END CONTACT PAGE STYLES
====================================== */
/* ===== SCROLL REVEAL (SAFE DEFAULT VISIBLE) ===== */
.reveal {
    opacity: 1;                 /* visible by default */
    transform: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animate only when JS is enabled */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ABOUT SECTION UNIQUE STYLES ===== */
.about-main h1 {
    font-size: 2.8rem;
    text-align: center;
    color: #1a237e;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.about-main-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center all cards horizontally */
    gap: 30px;
}

.about-main-card {
    flex: 1 1 300px;
    max-width: 360px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    padding: 30px 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-main-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-main-icon {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #42a5f5, #478ed1);
    transition: transform 0.4s ease;
}

.about-main-card:hover .about-main-icon {
    transform: scale(1.2);
}

/* Different icon colors per card */
.about-main-card:nth-child(1) .about-main-icon { background: linear-gradient(135deg, #ff7043, #ff5722); }
.about-main-card:nth-child(2) .about-main-icon { background: linear-gradient(135deg, #29b6f6, #0288d1); }
.about-main-card:nth-child(3) .about-main-icon { background: linear-gradient(135deg, #66bb6a, #388e3c); }

.about-main-text h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0d47a1;
}

.about-main-text p {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-main-card {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .about-main-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .about-main-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* existing last styles */
@media (max-width: 768px) {
    .about-detail {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ===== TOP BAR OVERFLOW FIX ===== */
.top-bar-container {
    align-items: center;
    overflow: hidden;
}

.top-bar-right {
    flex-shrink: 0;
    max-width: 100%;
}

.call-now-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .top-bar-container {
        padding: 0.4rem 0.4rem;
    }

    .call-now-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .top-bar-right {
        gap: 0.3rem;
    }

    .call-now-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

