:root {
    --primary-color: #000000;
    --secondary-color: #E77500;
    /* Princeton Orange */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-gray: #f4f4f4;
    --border-color: #ddd;
    --font-heading: 'Source Serif Pro', serif;
    /* Classic University feel */
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Header & Nav */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.header-top a {
    margin-left: 1rem;
    color: #ccc;
}

.header-top a:hover {
    color: var(--secondary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-color: #333;
    /* Fallback */
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    /* Placeholder gradient overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #cc6600;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

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

.news-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #111;
    color: #ccc;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-col a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    color: #666;
}

/* Homepage Redesign - Stanford Style */

.section-full {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--primary-color);
    color: white;
}

.intro-text {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-color);
}

/* Feature Splits (Image Left/Right) */
.feature-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-split:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.8;
}

.feature-link {
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}

.feature-link:hover {
    border-bottom-color: var(--secondary-color);
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {

    .feature-split,
    .feature-split:nth-child(even) {
        flex-direction: column;
    }

    .feature-image {
        width: 100%;
        height: 300px;
    }

    .intro-text {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Admissions Redesign & Complex Footer */

/* Admissions Hero */
.hero-large {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}

.hero-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
}

.hero-large-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: white;
    padding-left: 2rem;
    /* Align left like Stanford */
}

.hero-large-content h1 {
    font-size: 4rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-large-content p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Top Scroll Banner */
.top-scroll-banner {
    background-color: #000;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.scroll-content {
    display: inline-block;
    animation: scroll-continuous 30s linear infinite;
}

.scroll-content span {
    display: inline-block;
    padding-right: 300px;
    /* Increased space between the text repeats */
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes scroll-continuous {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Secondary Nav (Sub-nav) */
.sub-nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 60px;
    /* Below main header */
    z-index: 900;
}

.sub-nav ul {
    display: flex;
    gap: 2rem;
}

.sub-nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sub-nav a:hover {
    color: var(--secondary-color);
}

/* Card Grid (Find Your Path) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.path-card {
    background: white;
    border-left: 4px solid var(--secondary-color);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.path-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.path-card a {
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Affordability Section */
.affordability-section {
    background-color: #f4f4f4;
    padding: 6rem 0;
    text-align: center;
}

.affordability-content h2 {
    font-size: 2.5rem;
}

/* Stanford-style Footer */
.global-footer {
    background-color: #2e2d29;
    color: white;
    font-size: 0.95rem;
}

.footer-top-bar {
    background-color: #1f1e1b;
    /* Slightly darker */
    padding: 0.75rem 0;
    font-size: 0.85rem;
}

.footer-top-bar .container {
    display: flex;
    justify-content: space-between;
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid-stanford {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand h2 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-brand .logo-sub {
    color: #ccc;
    font-size: 1rem;
    display: block;
    margin-bottom: 2rem;
}

.footer-col-s h4 {
    color: #eee;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

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

.footer-col-s a {
    color: #ccc;
    transition: color 0.2s;
}

.footer-col-s a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom-bar {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #999;
}

.footer-links-inline {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .footer-grid-stanford {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* Generic Page Header & Academic Lists */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.academic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.school-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 4px;
}

.school-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}