/* home.css - SEAS Home Page Styles */

:root {
    /* Brand Colors */
    --seas-red: #C8102E;
    --seas-red-dark: #A30D25;
    --seas-navy: #1E3C72;
    --seas-navy-dark: #1E2A4A;
    --seas-holistic-bg: #0f1b3d;
    --seas-purple: #862C91;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-bg-light: #f9fafb;
    --color-bg-gray: #f5f5f5;
    --color-border: #eee;
    --color-border-medium: #ddd;
    --color-text-primary: #333333;
    --color-text-body: #4b5563;
    --color-text-muted: #666666;
    --color-text-light: #999999;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-script: 'Dancing Script', cursive;

    /* Spacing */
    --section-padding: 4rem 0;
    --container-max: 1200px;

    /* Shadows */
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-fan: 0 4px 15px rgba(0,0,0,0.2);
    --shadow-fan-hover: 0 8px 25px rgba(0,0,0,0.3);

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
}

/* ===== Hero Slider Section ===== */
.banner-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-slides {
    position: relative;
    width: 100%;
}

.slide {
    position: relative;
    width: 100%;
    display: block;
}

.slide img,
.slide picture img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slide picture {
    display: block;
    width: 100%;
}

/* Hero overlay content */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.10) 100%);
    display: flex;
    align-items: center;
    z-index: 2;
    color: white;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    pointer-events: auto;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Slider morph transition elements */
.slide-morph-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.slide-morph-container.active {
    display: block;
}

.morph-image-out,
.morph-image-in {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.morph-image-out {
    opacity: 1;
}

.morph-image-in {
    opacity: 0;
}

.slide-morph-container.morph-transition .morph-image-out {
    animation: morph-fade-out 1.6s ease-in-out forwards;
}

.slide-morph-container.morph-transition .morph-image-in {
    animation: morph-fade-in 1.6s ease-in-out forwards;
}

@keyframes morph-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes morph-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Slider navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 3;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.slider-arrow-left {
    left: 20px;
}

.slider-arrow-right {
    right: 20px;
}

.slider-arrow svg {
    stroke: white;
}

/* Slider indicators */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: white;
}

.indicator:hover {
    background: rgba(255,255,255,0.6);
}


/* ===== Welcome Section ===== */
.welcome-section {
    padding: 3.5rem 0 1rem;
    background-color: #ffffff;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #C8102E;
    text-align: center;
    margin-bottom: 0.25rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
    .welcome-subtitle {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1d1752;
        margin-top: -0.25rem;
        letter-spacing: 0.2px;
    }
}

.welcome-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}


/* ===== Button Styles ===== */
.btn {
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-light {
    background-color: #C8102E;
    color: #ffffff;
    border: none;
}

.btn-light:hover {
    background-color: #A30D25;
    color: #ffffff;
}

.btn-primary {
    background-color: #C8102E;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #A30D25;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #C8102E;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}


/* ===== Staggered Gallery (Highlights) ===== */
.highlights-section {
    padding: 1rem 0 3rem;
    background: #ffffff;
}

.highlights-section > .container {
    max-width: none;
    padding: 0;
}

/* Desktop banner (hidden on mobile) */
.highlights-banner {
    display: block;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}

.highlights-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .highlights-banner { display: none; }
}

/* Mobile staggered gallery (hidden on desktop) */
.highlights-section > .container {
    display: none;
}

@media (max-width: 768px) {
    .highlights-section > .container {
        display: block;
    }
}

.staggered-gallery {
    display: flex;
    gap: 20px;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 60px;
    align-items: flex-start;
    box-sizing: border-box;
}

.staggered-item {
    flex: 1;
    min-width: 0;
}

.staggered-item:nth-child(1) {
    margin-top: 90px;
}

.staggered-item:nth-child(2) {
    margin-top: 60px;
}

.staggered-item:nth-child(3) {
    margin-top: 30px;
}

.staggered-item:nth-child(4) {
    margin-top: 0;
}

.staggered-image {
    border-radius: 12px;
    overflow: hidden;
}

.staggered-image picture,
.staggered-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.staggered-caption {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.45;
    margin-top: 16px;
    text-align: center;
}

.highlights-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}


/* ===== Programs Fan Layout ===== */
.programs-section {
    padding: 4rem 0;
    background-color: transparent;
}

.programs-description {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}

/* 3D cover-flow stage for the Programs cards */
.program-fan-container {
    position: relative;
    width: 100%;
    height: 520px;
    max-width: none;
    margin: 0;
    padding: 0;
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: visible;
}

.fan-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 340px;
    margin-top: -170px; /* vertical-center anchor */
    margin-left: -100px; /* horizontal-center anchor */
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transform-style: preserve-3d;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    transition: transform 0.5s ease-out, z-index 0.5s, filter 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Universal hover — works on every card regardless of position */
.fan-card:hover {
    filter: brightness(1.12) saturate(1.1);
    box-shadow: 0 18px 44px rgba(0,0,0,0.55), 0 0 0 3px rgba(196, 31, 50, 0.6);
    z-index: 20 !important;
}

.fan-card:focus-visible {
    outline: 3px solid #c41f32;
    outline-offset: 4px;
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* All cards share identical size; the JS writes per-card transforms
   (translateX/translateZ/rotateY) and z-index based on position relative to center. */
.fan-card.is-center {
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

.fan-card:hover {
    filter: brightness(1.05);
}

.programs-banner {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programs-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.25);
}

.programs-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.programs-cta {
    text-align: center;
    margin-top: 2rem;
}


/* ===== Stats / Why Choose GIFT Section (Dark Navy) ===== */
.stats-section {
    padding: 3.5rem 0;
    background: #1d1752;
    color: white;
}

@media (min-width: 769px) {
    .stats-section {
        padding-bottom: 6rem;
    }
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: white;
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    position: relative;
}

/* Vertical dividers between stat items */
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 55px;
    width: 1px;
    background: rgba(255,255,255,0.25);
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

.stat-item-icon .stat-icon {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

.stat-item-icon .stat-icon img {
    width: auto;
    height: 45px;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.stat-item-icon .stat-icon-leaf img {
    width: auto;
    height: 45px;
}

.stats-cta {
    text-align: center;
    margin-top: 2rem;
}


/* ===== Holistic Development Section (separate from Why Choose GIFT) ===== */
.holistic-section {
    padding: 2.5rem 0;
    background: #ffffff;
    color: #1E2A4A;
}

.holistic-infographic-desktop {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.holistic-infographic-mobile {
    display: none;
    width: 100%;
    height: auto;
    margin: 0;
}

.holistic-cta {
    text-align: center;
    margin-top: 2rem;
}


/* ===== Video Carousel (Students & Alumni) ===== */
.students-section {
    padding: 4rem 0;
    background: #ffffff;
}

.students-description {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}

.alumni-section {
    padding: 4rem 0;
    background: #ffffff;
}

.alumni-description {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}

/* Video Carousel layout */
.video-carousel {
    display: grid;
    grid-template-columns: 50px 200px 1fr 200px 50px;
    gap: 15px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.carousel-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #999;
}

.carousel-arrow:hover {
    border-color: #6b7280;
    color: #6b7280;
}

.carousel-arrow svg {
    stroke: currentColor;
}

.carousel-info {
    text-align: left;
    padding: 0 10px;
}

.carousel-meet {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #999;
    margin-bottom: 5px;
}

.carousel-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #C8102E;
    line-height: 1.2;
    margin-bottom: 8px;
}

.carousel-role {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.carousel-main {
    width: 100%;
    min-width: 0;
}

.carousel-video-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #eee;
}

.carousel-video-wrap.has-video,
.carousel-side-thumb.has-video {
    cursor: pointer;
}

/* Hide the play overlay when no video is wired up to avoid an inert UI. */
.carousel-video-wrap:not(.has-video) .play-button,
.carousel-side-thumb:not(.has-video) .play-button-sm {
    display: none;
}

.carousel-video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(200, 16, 46, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.carousel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carousel-side-card {
    border-radius: 8px;
    overflow: hidden;
    background: #f0f4ff;
    border: 2px solid #e0e8f5;
}

.carousel-side-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.carousel-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: rgba(200, 16, 46, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button-sm::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent white;
    margin-left: 2px;
}

.carousel-side-info {
    padding: 8px 10px;
}

.carousel-side-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.carousel-side-role {
    font-size: 0.75rem;
    color: #C8102E;
    line-height: 1.3;
}


/* ===== Testimonial Carousel ===== */
.testimonial-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    color: #999;
}

.testimonial-arrow:hover {
    border-color: #6b7280;
    color: #6b7280;
}

.testimonial-arrow svg {
    stroke: currentColor;
}

.testimonial-box {
    flex: 1;
    display: flex;
    gap: 0;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    align-items: stretch;
}

.testimonial-photo {
    width: 250px;
    flex-shrink: 0;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #C8102E;
    margin-bottom: 10px;
}

.testimonial-name [data-student-name] {
    font-weight: 700;
    color: #C8102E;
}

.testimonial-name [data-student-program] {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
}


/* ===== Alumni Testimonial Section ===== */
.alumni-testimonial-section {
    display: flex;
    gap: 0;
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    align-items: stretch;
}

.alumni-testimonial-photo {
    width: 320px;
    flex-shrink: 0;
    position: relative;
}

.alumni-testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-testimonial-text {
    padding: 25px 30px;
    display: flex;
    align-items: center;
}

.alumni-testimonial-text p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
    text-align: justify;
}


/* ===== Alumni Photo Strip ===== */
.alumni-strip {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.strip-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    color: #999;
}

.strip-arrow:hover {
    border-color: #6b7280;
    color: #6b7280;
}

.strip-arrow svg {
    stroke: currentColor;
}

.alumni-strip-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.alumni-strip-track::-webkit-scrollbar {
    display: none;
}

.alumni-strip-item {
    width: 100px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.72;
    display: block;
}

.alumni-strip-item:hover,
.alumni-strip-item:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
    outline: none;
}

.alumni-strip-item.is-active {
    border-color: #c41f32;
    opacity: 1;
}

.alumni-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ===== Recognition Section ===== */
.recognition-bg-section {
    width: 100%;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.recognition-bg-image {
    display: block;
    width: 100%;
    height: auto;
}

.recognition-section {
    padding: 3rem 0 4rem;
    background: #ffffff;
}

.recognition-description {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
}

.recognition-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 2rem;
    align-items: stretch;
}

.recognition-logo-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
}

.recognition-logo-wrap {
    width: 100%;
    line-height: 0;
}

.recognition-logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.recognition-logo-text {
    padding: 18px 20px 22px;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    text-align: justify;
}

.recognition-cta {
    text-align: center;
    margin-top: 1rem;
}

.recognition-strip {
    width: 100%;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.recognition-strip-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== Pre-footer auditorium banner ===== */
.prefooter-banner {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.prefooter-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .recognition-logos {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
    }
    .recognition-logo-item:nth-child(n+3) {
        display: none;
    }
}


/* ===== Faculty Intro Section (plain white, centered text — mockup-match) ===== */
.faculty-intro-section {
    background: #fff;
    padding: 3.5rem 0 2rem;
    text-align: center;
}

.faculty-intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: #C8102E;
    margin: 0 0 1rem;
}

.faculty-intro-desc {
    max-width: 760px;
    margin: 0 auto;
    color: #4b5563;
    line-height: 1.8;
    padding: 0 15px;
    font-size: 0.95rem;
}


/* ===== Dean Section ===== */
.dean-section {
    padding: 3rem 0;
    background: #ffffff;
    position: relative;
}

.dean-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: stretch;
}

.dean-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dean-badge {
    background: #C8102E;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 8px 8px 0 0;
}

.dean-content {
    background: #f5f5f5;
    padding: 25px;
    flex: 1;
    border-radius: 0 0 0 8px;
}

.dean-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E3C72;
    margin-bottom: 4px;
}

.dean-position {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.dean-bio {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.7;
    text-align: justify;
}

.dean-photo {
    width: 380px;
    flex-shrink: 0;
}

.dean-photo picture,
.dean-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 8px 8px 0;
}


/* ===== Faculty Grid ===== */
.faculty-grid-section {
    padding: 2rem 0 4rem;
    background: #ffffff;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.faculty-card {
    text-align: center;
    border: 1px solid #e5e7eb;
    padding: 0 0 1.5rem;
    background: #fff;
    overflow: hidden;
}

.faculty-photo {
    margin: 0 0 1rem;
    display: block;
    line-height: 0;
}

.faculty-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    margin: 0;
}

.faculty-name {
    font-size: 1rem;
    font-weight: 600;
    color: #C8102E;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.faculty-credentials {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    padding: 0 1rem;
}

.faculty-credentials p {
    margin-bottom: 0.15rem;
}

.faculty-cta {
    text-align: center;
    margin-top: 2rem;
}


/* ===== News Section ===== */
.news-section {
    padding: 4rem 0;
    background: #ffffff;
    position: relative;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.25rem;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #C8102E;
}

.news-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: #C8102E;
    text-decoration: none;
}

.news-read-more:hover {
    text-decoration: underline;
}

.news-cta {
    text-align: center;
    margin-top: 2rem;
}


/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .staggered-gallery {
        gap: 15px;
    }
    .program-fan-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        height: auto;
        perspective: none;
        padding: 20px 20px 40px;
    }
    .fan-card {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        width: calc(25% - 12px);
        height: 260px;
        transform: none !important;
        transform-style: flat;
    }

    .video-carousel {
        grid-template-columns: 40px 160px 1fr 160px 40px;
        gap: 10px;
    }

}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .staggered-gallery {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
    }
    .staggered-item:nth-child(1),
    .staggered-item:nth-child(2),
    .staggered-item:nth-child(3),
    .staggered-item:nth-child(4) {
        margin-top: 0;
    }
    .highlights-cta {
        flex-direction: column;
        align-items: center;
    }

    .program-fan-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        height: auto;
        perspective: none;
        padding: 20px 10px 40px;
    }
    .fan-card {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        width: calc(50% - 8px);
        height: 240px;
        transform: none !important;
        transform-style: flat;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-item {
        flex: 0 0 calc(33.33% - 15px);
    }
    .stat-item + .stat-item::before {
        display: none;
    }

    .holistic-infographic-desktop {
        display: none;
    }
    .holistic-infographic-mobile {
        display: block;
    }

    .video-carousel {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "main"
            "sidebar";
        gap: 15px;
        max-width: 100%;
    }
    /* Video carousels have no nav controls on mobile — videos just stack vertically. */
    .carousel-arrow {
        display: none;
    }
    .carousel-info {
        grid-area: info;
        text-align: center;
    }
    .carousel-main {
        grid-area: main;
        max-width: none;
        width: 100%;
        margin: 0;
    }
    .carousel-video-wrap {
        aspect-ratio: 3/4;
    }
    .carousel-sidebar {
        grid-area: sidebar;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 15px;
    }
    .carousel-side-card {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }
    .carousel-side-card.hide-on-mobile {
        display: none;
    }

    .testimonial-carousel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "box box"
            "prev next";
        gap: 1rem;
    }
    .testimonial-box {
        grid-area: box;
        flex-direction: column;
    }
    /* Testimonial carousels keep nav controls on mobile — side-by-side under the card. */
    .testimonial-arrow {
        display: flex;
    }
    .testimonial-arrow-left  { grid-area: prev; justify-self: end;   margin-right: 0.5rem; }
    .testimonial-arrow-right { grid-area: next; justify-self: start; margin-left: 0.5rem; }
    .testimonial-photo {
        width: 100%;
        height: 200px;
    }

    .alumni-testimonial-section {
        flex-direction: column;
    }
    .alumni-testimonial-photo {
        width: 100%;
        height: auto;
    }
    .alumni-testimonial-photo img {
        height: auto;
        object-fit: contain;
    }

    .alumni-strip-item {
        width: 80px;
        height: 100px;
    }

    .faculty-intro-section {
        padding: 2.5rem 0 1.5rem;
    }
    .faculty-intro-title {
        font-size: 1.5rem;
    }

    .dean-container {
        flex-direction: column;
    }
    .dean-photo {
        width: 100%;
        height: 300px;
    }
    .dean-photo img {
        border-radius: 0;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .news-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .fan-card {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        width: calc(50% - 8px);
        height: 220px;
        transform: none !important;
        transform-style: flat;
    }

    .stat-item {
        flex: 0 0 calc(50% - 10px);
    }
    .stat-item .stat-number {
        font-size: 2rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    .slider-arrow-left {
        left: 10px;
    }
    .slider-arrow-right {
        right: 10px;
    }
}
