/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #003366;
    /* Deep Blue from logo */
    --secondary-color: #ffffff;
    --accent-color: #f0f0f0;
    --text-color: #333;
    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Home page base */
.home-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    background: #111;
}

/* Admissions button top-right */
.admissions-btn {
    position: fixed;
    top: 24px;
    right: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding-inline: 32px;
    z-index: 10;
}

/* Hero Section */
.hero {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    background-image: url('../assets/shoolbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    min-height: 100vh; /* always at least full viewport height */
    padding: 48px 40px 80px; /* top/bottom spacing for full-height distribution */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* spread logo block and nav over full height */
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--primary-color);
}

.hero-logo {
    width: 102px; /* +6px larger */
    height: auto;
}

.hero-title-block {
    color: var(--primary-color);
}

.school-name {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5em;
    font-size: calc(2.8rem + 6px); /* increase by ~6px */
}

.school-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: calc(1.6rem + 6px); /* increase by ~6px */
}

.school-location {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-top: 6px;
}

.school-estd {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.8em;
    margin-top: 16px;
}

/* Navigation Grid */
.nav-grid-section {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0 0; /* now controlled by hero's flex spacing */
}

.nav-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-item {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.nav-item i {
    font-size: 1.2rem;
}

.break {
    flex-basis: 100%;
    height: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-grid {
        gap: 10px;
    }

    .nav-item {
        padding: 10px 20px;
        font-size: 0.8rem;
        min-width: 120px;
    }

    .hero {
        padding: 56px 16px 72px; /* balanced for smaller screens */
    }

    .hero-logo {
        width: 78px; /* +6px on mobile */
    }

    .school-name {
        font-size: calc(2rem + 6px);
        letter-spacing: 0.35em;
    }

    .school-subtitle {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 64px;  /* move content slightly up */
        padding-bottom: 120px;
    }

    .hero-inner {
        transform: translateY(6px); /* move down slightly on large screens */
    }
}