/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Poppins:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Transparent Floating Header & Navigation */
header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

/* Logo & School Name */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Menu Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.nav-links a:hover {
    color: #fca5a5;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Slideshow Section with Zoom-Ins & Correct Responsive Flow */
.hero-slideshow-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Persistent Floating Hexagons */
.hero-hexagons {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.85;
    z-index: 3;
    transition: opacity 0.3s ease, left 0.3s ease;
}

/* Slide Container */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 7rem 8% 4rem calc(2rem + 450px + 3rem);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active-slide {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background Photo */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1);
}

.hero-slide.active-slide .hero-bg {
    animation: bgZoomIn 8s ease-out forwards;
}

@keyframes bgZoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.09);
    }
}

/* Text Container */
.hero-content {
    max-width: 750px;
    width: 100%;
    text-align: left;
    z-index: 6;
    position: relative;
    margin: 0;
}

.hero-slide.active-slide .hero-subtitle {
    animation: zoomInElement 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-slide.active-slide .hero-title {
    animation: zoomInElement 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-slide.active-slide .hero-description {
    animation: zoomInElement 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-slide.active-slide .hero-buttons {
    animation: zoomInElement 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes zoomInElement {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title span {
    color: #38bdf8;
    display: block;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background-color: #14532d;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(20, 83, 45, 0.3);
}

.btn-primary-custom:hover {
    background-color: #166534;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

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

/* Hero Arrows & Navigation Dots */
.hero-prev, .hero-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.9rem 1.1rem;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.3rem;
    background-color: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    z-index: 15;
    transition: background-color 0.3s ease;
}

.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

.hero-prev:hover, .hero-next:hover {
    background-color: #14532d;
}

.hero-dot-container {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.hero-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot.active, .hero-dot:hover {
    background-color: #14532d;
    transform: scale(1.25);
}

/* News & Admissions Section Styles */
.news-section {
    padding: 6rem 6%;
    background-color: #f8fafc;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #14532d;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #0f172a;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #14532d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-badge {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    width: fit-content;
}

.news-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.news-card p {
    font-family: 'Inter', sans-serif;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.read-more {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #14532d;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    color: #166534;
    text-decoration: underline;
}

/* Footer Styles */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 5rem 6% 2rem 6%;
    font-family: 'Inter', sans-serif;
    border-top: 4px solid #14532d;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    word-break: break-word;
}

.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    position: relative;
    letter-spacing: 0.5px;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #14532d;
    margin-top: 0.4rem;
}

.footer-col p, .footer-col small {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-bottom-bar {
    max-width: 1250px;
    margin: 2rem auto 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-bar #me {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.footer-motto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #fca5a5;
}

/* Responsiveness */
@media (max-width: 1440px) {
    .hero-hexagons {
        left: 1.5rem;
    }
    .hero-slide {
        padding-left: calc(2rem + 450px + 2rem); 
    }
}

@media (max-width: 1024px) {
    .hero-hexagons {
        transform: translateY(-50%) scale(0.9);
        left: 0.5rem;
    }
    .hero-slide {
        padding: 7rem 6% 4rem calc(1rem + 400px + 1rem);
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #1e3a8a;
        padding: 1rem 2rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-slide {
        padding: 6rem 1.5rem 3rem 1.5rem;
        align-items: center;
        justify-content: center;
    }

    .hero-prev, .hero-next {
        display: none;
    }

    .hero-hexagons {
        transform: translateY(-50%) scale(0.6);
        left: -1.5rem;
        opacity: 0.7;
    }

    .hero-content {
        text-align: left;
        margin: 0 auto;
        padding-left: 2rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    /* Footer single-column stacking */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 5% 2rem 5%;
    }
}
/* Custom Page Loading Animation */
#page-loader {
    position: fixed;
    inset: 0;
    background-color: #0f172a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spinLoader 0.9s linear infinite;
    margin-bottom: 1.25rem;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: pulseLoader 1.5s ease-in-out infinite alternate;
}

@keyframes pulseLoader {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.news-card .read-more { align-self: flex-start; }

/* Navigation fit for 7 links */
@media (max-width: 1180px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.85rem; }
}
@media (min-width: 901px) and (max-width: 1060px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; align-items: flex-start; width: 100%;
        position: absolute; top: 100%; left: 0; background-color: #1e3a8a;
        padding: 1rem 2rem; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); gap: 1rem;
    }
    .nav-links.active { display: flex; }
}
