/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #ecc94b;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

body {
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Global Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.center { text-align: center; align-items: center; }

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin-bottom: 30px;
}
.center .title-underline { margin: 0 auto 30px auto; }

/* --- HEADER & NAVIGATION --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo-container img {
    height: 80px;
    object-fit: contain;
}

.school-titles { text-align: center; }
.school-titles h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}
.hindi-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 400;
    margin-top: 5px;
}

.main-nav {
    background-color: var(--primary-color);
    padding: 10px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

/* Offset for smooth scrolling with sticky header */
section { scroll-margin-top: 150px; }

/* --- HOME SECTION --- */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.home-banner img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.home-banner img:hover { transform: scale(1.02); }

.home-about p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: justify;
}

/* --- VERTICALS & PEOPLE CARDS --- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vertical-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.vertical-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-bottom: 4px solid var(--accent-color);
}

.vertical-card .icon-wrapper {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.vertical-card h3 { color: var(--primary-color); margin-bottom: 10px; }
.vertical-card p { color: var(--text-light); }

/* People Cards */
.person-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.person-card:hover { transform: translateY(-5px); box-shadow: var(--hover-shadow); }
.person-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.person-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition);
}
.person-card:hover .person-img-wrapper img { transform: scale(1.05); }
.person-info { padding: 20px; border-bottom: 4px solid var(--secondary-color); }
.person-info h3 { color: var(--primary-color); }
.person-info p { color: var(--text-light); font-weight: 600; margin-top: 5px; }

/* --- UPDATES SECTION --- */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.update-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-color);
}

.update-card:hover { transform: translateX(5px); box-shadow: var(--hover-shadow); }

.update-date {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}
.update-info h3 { font-size: 1.1rem; }

.btn-download {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.btn-download:hover { background-color: var(--primary-color); }
.btn-image { background-color: #2b9eb0; }
.btn-image:hover { background-color: #1a7482; }

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.contact-list i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3, .footer-links h3, .footer-social h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a:hover { color: var(--accent-color); padding-left: 5px; transition: var(--transition); }

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: var(--transition);
}
.social-icons a:hover { color: var(--accent-color); }

.footer-bottom {
    background-color: #10223d;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .home-grid, .contact-grid { grid-template-columns: 1fr; }
    .header-top { flex-direction: column; gap: 15px; text-align: center; }
    .school-titles h1 { font-size: 1.5rem; }
    .nav-links { flex-wrap: wrap; gap: 15px; }
}

@media (max-width: 600px) {
    .update-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-download { width: 100%; justify-content: center; }
}

/* --- CATEGORIZED ROW LAYOUT FOR PEOPLE SECTION --- */
#people-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    align-items: center; /* This is the magic line that fixes the left-corner issue! */
}

.people-category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px; 
}

.people-category-row .person-card {
    flex: 0 1 320px; 
    width: 100%;
    max-width: 320px; /* This stops the card from stretching too wide */
}