:root {
    color-scheme: light;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f6f7fb;
    color: #1f2933;
}
a {
    color: inherit;
    text-decoration: none;
}
header.top-bar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.contact-bar {
    background: linear-gradient(90deg, #09203f 0%, #537895 100%);
    color: #ffffff;
    padding: 0.55rem 4vw;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}
.contact-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4vw;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-link {
    display: inline-flex;
}
.branding img {
    width: 58px;
    height: auto;
    display: block;
}
.branding-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.branding-text a {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
}
.branding-text span {
    font-size: 0.92rem;
    color: #475569;
}
nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
nav a {
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
nav a:hover,
nav a:focus {
    color: #2563eb;
    border-color: #2563eb;
}
nav a.active {
    color: #2563eb;
    border-color: #2563eb;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #0f172a;
}
.menu-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}
main {
    display: grid;
    gap: 4rem;
    padding: 4rem clamp(1.5rem, 4vw, 3rem) 6rem;
    max-width: 1200px;
    margin: 0 auto;
}
main section {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
main section.visible {
    opacity: 1;
    transform: translateY(0);
}
main section h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #0f172a;
}
footer {
    background-color: #0f172a;
    color: #cbd5f5;
    padding: 2.5rem 4vw;
}
footer .footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}
footer h3 {
    margin: 0 0 0.9rem;
    color: #ffffff;
}
footer p,
footer a {
    margin: 0 0 0.4rem;
    color: #cbd5f5;
    font-size: 0.95rem;
}
footer a:hover {
    color: #ffffff;
}
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}
#back-to-top.show {
    display: flex;
}
/* Page-specific Hero Styles */
.hero {
    position: relative;
    display: grid;
    align-items: center;
    padding: 6rem 4vw;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
}
.hero-content {
    position: relative;
    max-width: 780px;
    display: grid;
    gap: 1.4rem;
}
.hero h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    margin: 0;
    line-height: 1.1;
}
.hero p {
    font-size: 1.15rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}
/* index.html hero */
body[data-page="home"] .hero {
    min-height: 70vh;
    background-image: url("https://images.unsplash.com/photo-1496302662116-35cc4f36df92?auto=format&fit=crop&w=1800&q=80");
}
body[data-page="home"] .hero::after {
    background: rgba(9, 32, 63, 0.75);
}
/* academics.html hero */
body[data-page="academics"] .hero {
    min-height: 60vh;
    background-image: url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1800&q=80");
}
body[data-page="academics"] .hero::after {
    background: rgba(16, 41, 73, 0.78);
}
/* admissions.html hero */
body[data-page="admissions"] .hero {
    min-height: 60vh;
    background-image: url("https://images.unsplash.com/photo-1491841550275-ad7854e35ca6?auto=format&fit=crop&w=1800&q=80");
}
body[data-page="admissions"] .hero::after {
    background: rgba(9, 32, 63, 0.78);
}
/* campus-life.html hero */
body[data-page="campus-life"] .hero {
    min-height: 60vh;
    background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");
}
body[data-page="campus-life"] .hero::after {
    background: rgba(9, 32, 63, 0.76);
}
/* research.html hero */
body[data-page="research"] .hero {
    min-height: 60vh;
    background-image: url("https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=1800&q=80");
}
body[data-page="research"] .hero::after {
    background: rgba(16, 36, 68, 0.78);
}
/* contact.html hero */
body[data-page="contact"] .hero {
    min-height: 55vh;
    background-image: url("https://images.unsplash.com/photo-1509822929063-6b6cfc9b42f2?auto=format&fit=crop&w=1800&q=80");
}
body[data-page="contact"] .hero::after {
    background: rgba(9, 32, 63, 0.78);
}
/* Other specific styles from pages */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.hero-actions a {
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}
.cta-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-actions a:hover {
    transform: translateY(-2px);
}
.feature-grid, .schools-grid, .steps-grid, .community-grid, .priority-grid, .resources-grid, .visit-grid, .support-grid, .wellness-grid, .events-list {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.highlight-grid, .immersive-grid, .financial-grid, .life-grid, .labs-grid, .form-and-map, .contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card, .school-card, .step-card, .priority-card, .contact-card, .wellness-card, .community-item, .resource-item, .visit-item, .support-item, .event-item {
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), #ffffff 48%);
}
.highlight-card, .immersive-card, .financial-card, .life-card, .lab-card, .map-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
img {
    max-width: 100%;
    height: auto;
}
.hero {
    border-radius: 0;
    opacity: 1;
    transform: none;
    min-height: 40vh;
}
.highlight-card {
    display: grid;
    gap: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(4px);
}
.highlight-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.highlight-card h3 {
    margin-top: 0;
}
.intro {
    display: grid;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
.events-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.visit-section {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.visit-block {
    padding: 1.6rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), #ffffff 48%);
}
.partnerships {
    display: grid;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
form {
    display: grid;
    gap: 1rem;
}
input, textarea, select {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
textarea { min-height: 160px; resize: vertical; }
button[type="submit"] {
    justify-self: start;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(124, 58, 237, 0.35);
}
/* Responsive Styles */
@media (max-width: 768px) {
    .header-main {
        position: relative;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 4vw;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    nav.active {
        display: flex;
    }
    main section {
        padding: 2rem 1.8rem;
    }
    .hero {
        padding: 4.5rem 6vw;
    }
}
