@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Colors - Derived from Stitch Design System */
    --primary: #13004f; /* Deep Navy */
    --primary-container: #28166f;
    --on-primary: #ffffff;
    --secondary: #944b00; /* Vibrant Orange */
    --secondary-container: #fd8611;
    --on-secondary: #ffffff;
    --background: #fbf9f8; /* Warm Cream */
    --on-background: #1b1c1c;
    --surface: #ffffff;
    --surface-variant: #efeded;
    --on-surface: #1b1c1c;
    --on-surface-variant: #484551;
    --outline: #797582;
    --outline-variant: #c9c4d3;
    
    /* Typography */
    --font-headline: 'Newsreader', serif;
    --font-body: 'Public Sans', sans-serif;
    
    /* Spacing */
    --unit: 8px;
    --container-max: 1200px;
    --section-gap: 80px;
    
    /* Shapes - Aligned with Stitch Soft Rounding */
    --radius-xs: 0.125rem; /* 2px */
    --radius-sm: 0.25rem;  /* 4px - Primary Buttons */
    --radius-md: 0.5rem;   /* 8px - Information Cards */
    --radius-lg: 0.75rem;  /* 12px */
    
    /* Transitions */
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-gap) 0;
}

.grid {
    display: grid;
    gap: 24px;
}

.flex {
    display: flex;
    gap: 16px;
    align-items: center;
}

.label-lg {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.label-sm {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-container);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 0, 79, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-container);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 75, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-contact {
    display: flex;
    gap: 24px;
}

.top-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-links a {
    color: var(--on-primary);
    opacity: 0.8;
}

.top-links a:hover {
    opacity: 1;
}

.mini-button {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
}

.mini-button.gold {
    background: var(--secondary);
    color: white;
}

/* News Ticker */
.news-ticker {
    background-color: var(--surface);
    border-bottom: 1px solid var(--outline);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-label {
    background-color: var(--primary);
    color: white;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.ticker-content {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-size: 14px;
    color: var(--primary);
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Navigation */
nav {
    background-color: var(--surface);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo span {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-logo strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--secondary);
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-base);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Home Hero Section */
.home-hero {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 15s linear infinite;
}

.hero-slide-a { background-image: linear-gradient(rgba(19, 0, 79, 0.7), rgba(19, 0, 79, 0.7)), url('https://images.unsplash.com/photo-1541339907198-e08756ebafe3?auto=format&fit=crop&q=80'); animation-delay: 0s; }
.hero-slide-b { background-image: linear-gradient(rgba(19, 0, 79, 0.7), rgba(19, 0, 79, 0.7)), url('https://images.unsplash.com/photo-1523050853051-f750004c2139?auto=format&fit=crop&q=80'); animation-delay: 5s; }
.hero-slide-c { background-image: linear-gradient(rgba(19, 0, 79, 0.7), rgba(19, 0, 79, 0.7)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80'); animation-delay: 10s; }

@keyframes slideShow {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(19, 0, 79, 0.4), transparent);
    z-index: 2;
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-copy {
    max-width: 650px;
}

.eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 16px;
}

.eyebrow.dark { color: var(--primary); }
.eyebrow.light { color: rgba(255,255,255,0.7); }

.hero-copy h1 {
    color: #ffffff;
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: var(--font-headline);
}

.hero-copy p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Admission Card */
.admission-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: var(--on-background);
}

.form-kicker {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 8px;
    display: block;
}

.admission-card h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--primary);
}

.admission-card p {
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.admission-card input, 
.admission-card select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--background);
}

.admission-card input:focus, 
.admission-card select:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

.form-wide {
    grid-column: 1 / -1;
}

.consent {
    display: flex;
    gap: 12px;
    font-size: 12px;
    margin: 20px 0;
    line-height: 1.4;
    opacity: 0.8;
}

.consent input {
    width: auto;
    margin-top: 4px;
}

/* Notices Band */
.notices-band {
    background-color: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid var(--outline-variant);
}

.notices-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-pills {
    display: flex;
    gap: 12px;
}

.notice-pills a {
    padding: 8px 20px;
    border-radius: 100px;
    background-color: var(--background);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--outline-variant);
}

.notice-pills a:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Welcome Section */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.welcome-section h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.welcome-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.8;
}

.photo-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 16px;
}

.mosaic-card {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.mosaic-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.mosaic-card span { position: relative; z-index: 2; }

.mosaic-large { grid-row: 1 / 3; background-image: url('https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&q=80'); }
.mosaic-small-a { background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80'); }
.mosaic-small-b { background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&q=80'); }

/* Faculty & Programmes */
.section-heading {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 { font-size: 42px; margin-bottom: 16px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: var(--transition-base);
    border: 1px solid var(--outline-variant);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(19, 0, 79, 0.08);
    border-color: var(--primary);
}

.category-card .material-symbols-outlined {
    font-size: 40px;
    color: var(--secondary);
}

/* Split Feature */
.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: #ffffff;
}

.feature-panel {
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.vocational-panel { background-color: var(--primary); }
.phd-panel { background-color: var(--primary-container); border-left: 1px solid rgba(255,255,255,0.1); }

.feature-panel h2 { color: #ffffff; font-size: 36px; }
.feature-panel p { opacity: 0.8; font-size: 18px; }

/* Highlights */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-card .material-symbols-outlined {
    font-size: 32px;
    color: var(--secondary);
}

.highlight-card h3 { font-size: 20px; color: var(--primary); }
.highlight-card p { font-size: 15px; opacity: 0.7; }

/* Campus Section */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.campus-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.campus-image {
    height: 200px;
    background-color: var(--surface-variant);
    background-size: cover;
    background-position: center;
}

.campus-card > div { padding: 24px; }
.campus-card h3 { font-size: 18px; margin-bottom: 12px; }
.campus-card p { font-size: 14px; opacity: 0.7; }

/* Support Section */
.support-section {
    background-color: var(--primary);
    color: #ffffff;
    padding: 80px 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.support-section h2 { color: #ffffff; font-size: 42px; margin-bottom: 24px; }
.support-section p { font-size: 18px; opacity: 0.8; }

.support-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.support-card .material-symbols-outlined { font-size: 64px; color: var(--secondary); margin-bottom: 20px; }
.support-card h3 { color: #ffffff; margin-bottom: 16px; }
.support-card a { display: block; font-size: 20px; font-weight: 700; margin-bottom: 8px; }

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 80px 0 40px;
}

footer h4 {
    color: var(--on-primary);
    margin-bottom: 24px;
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
}
