/* ==========================================================================
   Base Styles and Variables (Oxford UI Clone)
   ========================================================================== */
:root {
    --color-navy: #002147;
    /* Oxford Blue */
    --color-gold: #c3a365;
    /* Subtle Gold */
    --color-gray-border: #e8e8e8;
    --color-bg-main: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text-dark: #111111;
    --color-text-gray: #555555;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --nav-height: 90px;
    --grid-column-gap: 2rem;
    --max-width: 1600px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-bg-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Page Loader (Minimalist Transition)
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-border);
    border-top: 3px solid var(--color-navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Background Grid Lines (Signature Oxford UI Style)
   ========================================================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    z-index: 0;
}

.bg-grid-line {
    border-right: 1px solid var(--color-gray-border);
}

.bg-grid-line:first-child {
    border-left: 1px solid var(--color-gray-border);
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */
.site-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--color-gray-border);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-navy);
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-center {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Pill shaped navigation groups */
.nav-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray-border);
    border-radius: 40px;
    padding: 0.5rem 1.5rem;
    background: #fff;
}

.nav-item {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--color-gold);
}

.nav-item i {
    font-size: 0.7rem;
    color: var(--color-text-gray);
}

/* Vertical separator in nav groups */
.nav-separator {
    width: 1px;
    height: 15px;
    background-color: var(--color-gray-border);
    margin: 0 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray-border);
    border-radius: 40px;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    width: 200px;
    justify-content: space-between;
    background: #fff;
    position: relative;
    /* Added for dropdown positioning */
}

.search-box input {
    border: none;
    outline: none;
    font-size: 0.85rem;
    width: 100%;
}

.search-box button {
    background: var(--color-navy);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* cursor: pointer; */
    /* Removed per user request, making it non-clickable */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
    /* Make it non-clickable */
    transition: background 0.3s ease, transform 0.3s ease;
}

.search-box:focus-within button {
    background: var(--color-gold);
}

.btn-login {
    background-color: var(--color-navy);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-navy);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrapper {
    padding: 2rem;
    width: 100%;
}

.hero-box {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: #e5e9f0;
    /* Fallback */
}

/* Massive text behind/inside image */
.hero-giant-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    z-index: 3;
    /* Changed to sit above image with blend mode */
    pointer-events: none;
    letter-spacing: -5px;
    mix-blend-mode: overlay;
    /* Oxford effect */
    animation: textTrackingIn 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes textTrackingIn {
    0% {
        letter-spacing: 50px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        letter-spacing: -5px;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Soften the image slightly so text behind can show, or use mix-blend-mode */
    opacity: 0.9;
    animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Bottom overlay info bar */
.hero-info-bar {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.hero-info-year {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-info-text {
    max-width: 500px;
    text-align: left;
}

.hero-info-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.hero-info-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-controls {
    display: flex;
    gap: 0.5rem;
}

.hero-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.hero-btn:hover {
    background: #f0f0f0;
}

/* ==========================================================================
   Content Grid Sections (Glance / Danismanlar)
   ========================================================================== */
.section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8rem 2rem;
    border-bottom: 1px solid var(--color-gray-border);
}

.col-header {
    grid-column: 1 / 2;
    padding-right: 2rem;
}

.recap-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-gray);
    letter-spacing: 1px;
    margin-bottom: 5rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 500;
    color: var(--color-text-dark);
    letter-spacing: -1px;
}

.col-content {
    grid-column: 2 / 5;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.huge-intro-text {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--color-text-dark);
    max-width: 800px;
    letter-spacing: -0.5px;
}

.huge-intro-text span {
    color: #888;
}

/* ==========================================================================
   Oxford Style Schedule Grid & Accordion
   ========================================================================== */
.oxford-schedule-wrapper {
    margin-top: 2rem;
    font-family: inherit;
}

.oxford-schedule-desktop-headers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.oxford-desktop-header {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.oxford-schedule-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.oxford-day-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oxford-mobile-header {
    display: none;
    /* Hidden on desktop */
}

.oxford-course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oxford-course-card {
    background-color: var(--color-navy);
    color: #ffffff;
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.oxford-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.course-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.course-time,
.course-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* ==========================================================================
   Dark Section (About Us)
   ========================================================================== */
.section-dark {
    background-color: #111111;
    color: #ffffff;
    padding: 8rem 0;
    margin: 4rem 2rem 2rem 2rem;
    /* Adjusted bottom margin so it doesn't collide with footer */
    border-radius: 40px;
}

.dark-content-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.col-header-dark {
    grid-column: 1 / 2;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.recap-label-dark {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    display: block;
    font-style: italic;
}

.dark-content-centered {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-text-dark-centered {
    font-size: 3rem;
    line-height: 1.3;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -1px;
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Cards Grid (Advisors/Students)
   -------------------------------------------------------------------------- */
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    transition: all 0.5s ease;
}

.cards-row.list-view {
    display: flex;
    flex-direction: column;
}

.data-card {
    background-color: var(--color-bg-alt);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
}

.cards-row.list-view .data-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transform: none;
    /* Disable hover lift in list view for stability */
}

.cards-row.list-view .data-card:hover {
    background-color: #f0f2f5;
}

.card-label {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cards-row.list-view .card-label {
    margin-bottom: 0;
    width: 80px;
    flex-shrink: 0;
}

.card-title {
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -1px;
}

.cards-row.list-view .card-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    width: 30%;
}

.card-desc {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    flex-grow: 1;
}

.cards-row.list-view .card-desc {
    margin-bottom: 0;
    margin-left: 2rem;
}

/* Base button */
.btn-email {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-navy);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
    width: fit-content;
}

.cards-row.list-view .btn-email {
    margin-top: 0;
    margin-left: 2rem;
    flex-shrink: 0;
}

.btn-email:hover {
    opacity: 0.9;
}

/* Mobile responsive handling for List View */
@media (max-width: 768px) {
    .cards-row.list-view {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cards-row.list-view .data-card {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 0.8rem;
        padding: 1rem 1.2rem;
        min-width: 0;
    }

    .cards-row.list-view .card-label {
        display: none;
        /* Hide initials icon to save space */
    }

    .cards-row.list-view .card-title {
        font-size: 1.1rem;
        width: 100%;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* Truncate long names */
    }

    .cards-row.list-view .card-desc {
        margin-left: 0;
        margin-bottom: 0;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .cards-row.list-view .btn-email {
        margin-left: 0;
        margin-top: 0;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* View Controls (Search + Toggle) */
.view-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 1.2rem 2rem;
    border-radius: 40px;
    border: 1px solid var(--color-gray-border);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    background-color: var(--color-bg-alt);
}

.search-input:focus {
    border-color: var(--color-navy);
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.05);
    background-color: var(--color-bg-main);
}

.view-toggles {
    display: flex;
    gap: 0.5rem;
    background: transparent;
    padding: 0;
    border-radius: 40px;
    border: none;
}

.view-btn {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-gray-border);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text-gray);
    

/* ==========================================================================
   Student Links Styles
   ========================================================================== */
.student-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-gray-border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-navy);
    transition: all 0.3s ease;
    text-align: center;
}

.student-link-item:hover {
    background-color: var(--color-navy);
    color: #ffffff;
    border-color: var(--color-navy);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.15);
}

@media (max-width: 768px) {
    .student-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 0.5rem !important;
    }
    .student-link-item {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn:hover {
    border-color: var(--color-navy);
}

.view-btn.active {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-center {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .search-box {
        display: none;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 2rem;
    }

    .col-header {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .recap-label {
        margin-bottom: 2rem;
    }

    .col-content {
        grid-column: 1 / -1;
        padding-left: 0;
    }

    .huge-intro-text {
        font-size: 2rem;
    }

    .bg-grid {
        display: none;
        /* Hide background grid on smaller screens to avoid clutter */
    }

    /* Dark Section Responsiveness */
    .intro-text-dark-centered {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 1rem;
    }

    .hero-box {
        height: 60vh;
        min-height: 400px;
        border-radius: 20px;
    }

    .hero-info-bar {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-controls {
        align-self: flex-end;
    }

    .cards-row {
        grid-template-columns: 1fr;
    }

    .hero-giant-text {
        font-size: 35vw;
    }

    .oxford-schedule-desktop-headers {
        display: none;
    }

    .oxford-schedule-columns {
        grid-template-columns: 1fr;
        gap: 0;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    }

    .oxford-day-column {
        border-bottom: 1px solid #e5e7eb;
        gap: 0;
    }

    .oxford-day-column:last-child {
        border-bottom: none;
    }

    .oxford-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1.2rem 1.5rem;
        background: #ffffff;
        border: none;
        font-family: inherit;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--color-text-dark);
        cursor: pointer;
        transition: background-color 0.2s, color 0.2s;
    }

    .oxford-mobile-header i {
        transition: transform 0.3s ease;
    }

    .oxford-day-column.active .oxford-mobile-header {
        background: #fdf5e6;
        /* Beige/gold tint matching image */
        color: var(--color-navy);
        font-weight: 600;
    }

    .oxford-day-column.active .oxford-mobile-header i {
        transform: rotate(180deg);
    }

    .oxford-course-list {
        display: none;
        /* Hidden by default on mobile */
        padding: 0 1.5rem 1.5rem 1.5rem;
        background: #fdf5e6;
        /* Match open header background */
    }

    .oxford-day-column.active .oxford-course-list {
        display: flex;
    }

    .section-dark {
        padding: 4rem 1rem;
        margin: 2rem 1rem;
        border-radius: 20px;
    }

    .intro-text-dark-centered {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-navy);
    transition: color 0.2s;
}

.mobile-nav-links a:hover {
    color: var(--color-gold);
}

/* Global Nav Search Autocomplete */
.search-box {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    /* removed max-height since we only show 5 results and don't want a scrollbar */
    overflow: hidden;
    /* Hide all scrollbars */
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, padding-left 0.2s;
    /* Removed translate to keep hover minimal; see script.js for stagger */
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--color-bg-alt);
    padding-left: 1.8rem;
    /* Slight indent on hover */
}

.search-result-item:hover .search-result-name {
    color: var(--color-gold);
    /* User requested secondary gold color on hover */
}

.search-result-name {
    font-weight: 500;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    transition: color 0.2s;
    /* Smooth transition for gold text */
}

.search-result-no {
    font-size: 0.75rem;
    color: var(--color-text-gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--color-bg-alt);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.oxford-footer {
    background-color: #111111;
    color: #ffffff;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    margin: 4rem 2rem 2rem 2rem;
    width: calc(100% - 4rem);
    /* Fixed: Prevent expanding beyond constraints */
    border-radius: 40px;
    container-type: inline-size;
}

.oxford-footer-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.footer-logo-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-logo {
    width: 180px;
    height: auto;
}

.footer-links-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.5);
    /* Dimmed text like Oxford */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-giant-text {
    font-size: 20.5vw;
    /* Fallback for very old browsers */
    font-size: 20.9cqw;
    /* Container query scaling */
    font-weight: 800;
    line-height: 0.75;
    letter-spacing: -0.5cqw;
    text-align: center;
    color: #ffffff;
    margin-top: 4rem;

    /* Gradient mask to fade out the bottom of the text */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.1) 80%, rgba(17, 17, 17, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    position: relative;
    z-index: 1;
    user-select: none;
    margin-bottom: -1.2cqw;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .oxford-footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-logo-area {
        justify-content: flex-start;
    }

    .footer-links-area {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-links-area {
        grid-template-columns: 1fr;
    }
}