:root {
    --color-primary: #002366;
    /* Deep Royal Blue */
    --color-primary-dark: #001540;
    --color-accent: #d4af37;
    /* Gold */
    --color-accent-hover: #b5952f;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-bg-light: #f4f7fa;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    --shadow-card: 0 10px 30px rgba(0, 0, .1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-header);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, .1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: var(--color-primary);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-white-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Glassmorphism Utility */
.glassmorphism {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Header */
.header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, .05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.location-badge {
    font-family: var(--font-header);
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
}

.nav-list a:hover {
    color: var(--color-accent);
}

.btn-nav {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--color-primary-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
}

/* Notice Ticker */
.notice-ticker {
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 900;
}

.notice-label {
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0, 0, .1);
}

.ticker-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-content {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
    font-family: var(--font-header);
    font-size: 0.9rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Hero Section */
.hero {
    height: 85vh;
    /* Viewport height - header */
    background: url(asstes/coloring-5017865.jpg) no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 35, 102, 0.2), rgba(0, 35, 102, 0.4));
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    /* Card on the right */
    width: 100%;
}

.hero-card {
    width: 50%;
    max-width: 600px;
    padding: 40px;
    backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--color-primary);
}

.hero-card h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #444;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: var(--font-header);
    color: var(--color-primary);
}

.feature-list i {
    color: var(--color-accent);
}

.about-image {
    min-height: 400px;
    background: url(asstes/pexels-n-voitkevich-5554658.jpg) no-repeat center center/cover;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.stat-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 30px;
    text-align: center;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chairman Section */
.chairman-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    background: var(--color-white);
    padding: 20px;
}

.chairman-img-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 3/4;
}

.chairman-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chairman-content h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.chairman-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.chairman-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.2);
    display: block;
    margin-bottom: -20px;
    font-family: serif;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background-color: var(--color-bg-light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-header);
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-accent);
}

.event-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.event-details p {
    font-size: 0.95rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 35, 102, 0.9), rgba(0, 35, 102, 0.9)), url(hero.png);
    background-size: cover;
    background-attachment: fixed;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-white-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

/* Admission Form */
.form-container {
    max-width: 600px;
}

.section-desc {
    color: #666;
    margin-bottom: 40px;
}

.glassmorphism-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-header);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer h3,
.footer h4 {
    color: var(--color-white);
    margin-bottom: 25px;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a {
    opacity: 0.8;
}

.footer ul li a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 10px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, .1);
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-container {
        justify-content: center;
    }

    .hero-card {
        width: 100%;
        max-width: 100%;
        margin: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    /* ---- CHAIRMAN SECTION UPDATED HERE ---- */
    .chairman-container {
        display: flex;
        flex-direction: column; /* Ensures Image on Top, Text on Bottom */
        gap: 30px;
    }

    .chairman-img-wrapper {
        width: 100%; /* Big and clear */
        max-width: 100%;
    }
    /* ------------------------------------- */

    .footer-content {
        grid-template-columns: 1fr;
    }
}