/* ===== CSS VARIABLES ===== */
:root {
    --bg: #0a0f1f;
    --fg: #111827;
    --text: #111;
    --muted: #6b7280;
    --brand: #b91c1c;
    --brand-2: #991b1b;
    --light: #fff;
    --border: #e5e7eb;
    --shadow: 0 2px 8px rgba(0,0,0,.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page content wrapper for non-home pages */
.page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 25px;
}

.page-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.page-content h3 {
    margin: 28px 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 20px;
}

.page-content p.lead {
    color: var(--text);
    font-size: 1.15rem;
}

.page-content ul {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
}

.page-content ul li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--brand);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* ===== PEOPLE GRID ===== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 20px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.person-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
}

.person-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.person-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.person-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}

.person-affiliation {
    font-size: 13px;
    color: var(--muted);
}

.person-email {
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 2px;
}

.person-name a {
    color: inherit;
    text-decoration: none;
}

.person-name a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.person-email a {
    color: var(--brand);
    text-decoration: none;
}

.person-email a:hover {
    text-decoration: underline;
}

.person-interests-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Override generic .page-content ul styles for research interest lists */
.page-content ul.person-interests {
    margin: 4px 0 0 18px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.page-content ul.person-interests li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* ===== FACILITY SMALL FAN ARRAY IMAGES ===== */
.facility-images-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0 32px 0;
}

.facility-image-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 12px 16px 12px;
}

.facility-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.facility-image-caption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 77px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-main {
    height: 72px;
    width: auto;
}

.logo-aaf {
    height: 60px;
    width: auto;
    opacity: 0.9;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-left: 0.5ch;
}

.logo-text-line1, .logo-text-line2 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.logo-text-line1 {
    margin-bottom: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: var(--brand);
}

.nav-link.active {
    background-color: var(--brand);
    color: var(--light);
}

/* ===== DROPDOWN MENU (HOVER ON DESKTOP) ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-section-title {
    padding: 8px 16px 6px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    cursor: default;
}

.dropdown-link {
    display: block;
    font-size: 17px;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-link:hover {
    background-color: #f3f4f6;
    color: var(--brand);
}

/* Research -> Sports collapsible submenu (CSS-only) */
.dropdown-submenu-toggle {
    position: relative;
}

.dropdown-link-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-submenu-checkbox {
    display: none;
}

.dropdown-submenu-arrow {
    cursor: pointer;
    padding-left: 10px;
    display: inline-flex;
    align-items: center;
}

.dropdown-submenu-arrow::after {
    content: '▶';
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.dropdown-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

.dropdown-submenu-toggle:hover .dropdown-submenu-list,
.dropdown-submenu-toggle:focus-within .dropdown-submenu-list {
    display: block;
}

.dropdown-submenu-checkbox:checked ~ .dropdown-submenu-list {
    display: block;
}

.dropdown-submenu-toggle:hover .dropdown-link-toggle .dropdown-submenu-arrow::after,
.dropdown-submenu-toggle:focus-within .dropdown-link-toggle .dropdown-submenu-arrow::after {
    transform: rotate(90deg);
}

.dropdown-submenu-checkbox:checked ~ .dropdown-link-toggle .dropdown-submenu-arrow::after {
    transform: rotate(90deg);
}

.dropdown-submenu-list .dropdown-link {
    padding-left: 32px;
    font-size: 16px;
}

/* (Sports nested dropdown styles removed) */

/* CSS-only Hamburger Menu */
.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation */
.nav-toggle:checked + .hamburger .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked + .hamburger .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .hamburger .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 60px 0;
    text-align: center;
    background: white;
}

.hero-title {
    text-align: center;
}

.hero-subtitle {
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text);
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted);
    margin: 0 auto;
    max-width: 600px;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    padding: 0;
    margin: 0;
    width: 100%;
    margin-bottom: 0;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    object-position: top;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

/* ===== CAROUSEL SECTION ===== */
.carousel-section {
    padding: 20px 0 0 0;
    margin: 0;
    width: 100%;
    background: #f8f9fa;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* CSS-only Carousel */
.carousel {
    position: relative;
    overflow: hidden;
}

/* Hide radio buttons */
.carousel input[type="radio"] {
    display: none;
}

.carousel-slides {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    width: 33.333%;
    flex-shrink: 0;
}

.carousel-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-slide:nth-child(1) .carousel-image {
    object-position: center 10%;
}

.carousel-slide:nth-child(3) .carousel-image {
    object-position: center 80%;
}

/* Carousel navigation using radio buttons */
#slide1:checked ~ .carousel-slides {
    transform: translateX(0%);
}

#slide2:checked ~ .carousel-slides {
    transform: translateX(-33.333%);
}

#slide3:checked ~ .carousel-slides {
    transform: translateX(-66.666%);
}

/* Facility carousels */
.facility-carousel-inner .carousel-slides {
    width: 300%;
}

.facility-carousel-inner .carousel-slide {
    width: 33.3333%;
}

/* Large Wind Tunnel carousel (2 slides) */
.facility-carousel-two .carousel-slides {
    width: 200%;
}

.facility-carousel-two .carousel-slide {
    width: 50%;
}

/* Shrink and center images in facility carousel */
.facility-carousel .carousel-image {
    width: 60%;
    height: auto;
    margin: 0 auto;
    display: block;
}

#facility-slide1:checked ~ .carousel-slides {
    transform: translateX(0%);
}

#facility-slide2:checked ~ .carousel-slides {
    transform: translateX(-50%);
}

/* Acoustic Laboratory carousel (3 slides) */
#acoustic-slide1:checked ~ .carousel-slides {
    transform: translateX(0%);
}

#acoustic-slide2:checked ~ .carousel-slides {
    transform: translateX(-33.3333%);
}

#acoustic-slide3:checked ~ .carousel-slides {
    transform: translateX(-66.6666%);
}

/* Carousel Controls */
.carousel-controls {
    text-align: center;
    padding: 20px 0 40px 0;
}

.carousel-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--brand-2);
}

/* Active dot styling based on radio button state */
#slide1:checked ~ .carousel-controls label[for="slide1"],
#slide2:checked ~ .carousel-controls label[for="slide2"],
#slide3:checked ~ .carousel-controls label[for="slide3"] {
    background: var(--brand);
    transform: scale(1.2);
}

#facility-slide1:checked ~ .carousel-controls label[for="facility-slide1"],
#facility-slide2:checked ~ .carousel-controls label[for="facility-slide2"] {
    background: var(--brand);
    transform: scale(1.2);
}

#acoustic-slide1:checked ~ .carousel-controls label[for="acoustic-slide1"],
#acoustic-slide2:checked ~ .carousel-controls label[for="acoustic-slide2"],
#acoustic-slide3:checked ~ .carousel-controls label[for="acoustic-slide3"] {
    background: var(--brand);
    transform: scale(1.2);
}

/* Carousel captions */
.carousel-caption {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* Carousel Dots */
.carousel-dots {
    text-align: center;
    margin-top: 24px;
    padding: 0 20px 40px 20px;
}

/* ===== CARDS SECTION ===== */
.cards-section {
    padding: 60px 0;
}

.cards-section-2x2 .cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.cards-section-2x2 .card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.cards-section-2x2 .card-title,
.cards-section-2x2 a.card-title {
    flex-shrink: 0;
}

.cards-section-2x2 .card-image {
    flex: 1;
    min-height: 0;
    height: auto;
    object-fit: cover;
}
.cards-section-2x2 .card-image-link {
    flex: 1;
    min-height: 0;
    display: block;
    cursor: pointer;
}
.cards-section-2x2 .card-image-link .card-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.cards-section-2x2 .card-image-qian {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Topic pages: 20% larger fonts */
.page-topics .page-content h2 { font-size: 3rem; }
.page-topics .page-content p { font-size: 1.32rem; }
.page-topics .card-title { font-size: 22px; }

/* Home page cards: 20% larger fonts, same card structure */
.home-cards .card-title { font-size: 22px; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Special handling for Material card image on home page - show top part without shrinking */
.card-image-material,
.card-image-top {
    object-fit: cover;
    object-position: top;
}

.card-video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.card-title {
    padding: 20px;
    font-weight: 600;
    color: var(--text);
    font-size: 18px;
    text-align: center;
    margin: 0;
}

a.card-title {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.card-title:hover {
    color: var(--brand);
}
}

.card-button {
    display: block;
    background: var(--light);
    color: var(--brand);
    border: 2px solid var(--brand);
    text-align: center;
    padding: 12px 24px;
    margin: 12px 20px 20px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    width: calc(100% - 40px);
    text-decoration: none;
}

.card-button:hover {
    background: var(--brand);
    color: var(--light);
    transform: translateY(-2px);
}

/* ===== RESEARCH CARDS ===== */
.research-cards {
    margin-top: 40px;
}

/* Fix research card images to show full content */
.research-cards .card-image {
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 8px;
}

.research-cards .card-video {
    object-fit: scale-down;
    padding: 5px;
}

.research-cards .card-button {
    margin-top: 16px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.media-grid.media-grid-compact {
    margin-top: 6px;
    margin-bottom: 6px;
}

.page-health .media-grid.media-grid-compact {
    margin-top: 2px;
    margin-bottom: 2px;
}

.page-health .media-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.page-health .media-card img,
.page-health .media-card video {
    aspect-ratio: auto;
    object-fit: contain;
    background-color: transparent;
}

.page-health .media-caption-title {
    border-top: none;
    padding-top: 6px;
}

/* Author block: photo left, text right */
.author-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0 28px;
}

.author-photo {
    width: 115px;
    height: 115px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 2px;
}

.author-affiliation {
    font-size: 0.9rem;
    color: var(--muted);
}

.author-name a,
.author-title a {
    color: #000;
    text-decoration: none;
}

.author-name a:hover,
.author-title a:hover {
    color: #000;
    text-decoration: underline;
}

/* Xie research page */
.xie-table-image-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.xie-table-image-row .xie-table-wrap {
    flex-shrink: 0;
    margin: 0;
}

.xie-table-image-row .xie-right-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xie-table-image-row .xie-part2-image img {
    width: 100%;
    height: auto;
    display: block;
}

.xie-table-image-row .xie-finding {
    margin: 0;
}

.xie-table-wrap {
    margin: 20px 0;
}

.xie-table-wrap h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.xie-table {
    border-collapse: collapse;
    font-size: 0.95rem;
    width: 100%;
    max-width: 520px;
}

.xie-table th,
.xie-table td {
    border: 1px solid var(--border);
    padding: 8px 14px;
    text-align: left;
}

.xie-table th {
    background: #f0f4ff;
    font-weight: 600;
    color: var(--text);
    width: 40%;
}

.xie-finding {
    background: #f0f7ff;
    border-left: 4px solid var(--brand);
    padding: 14px 18px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--text);
}

/* Long research page */
.long-works h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 24px 0 8px 0;
    color: var(--text);
}
.long-works p {
    margin: 0 0 12px 0;
}
.long-figure {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin: 0 0 24px 0;
    border-radius: 8px;
}
.long-link {
    font-weight: 600;
    color: var(--brand);
}
.long-figure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 16px 0;
}
.long-figure-grid .long-figure {
    margin: 0;
}
@media (max-width: 640px) {
    .long-figure-grid {
        grid-template-columns: 1fr;
    }
}

/* Fan page: 1st image width shared for scanning.jpg */
:root {
    --fan-1st-img-width: 465px;
}
.fan-page-img {
    width: 100%;
    max-width: var(--fan-1st-img-width);
    max-height: 300px;
    height: auto;
    object-fit: contain;
    display: block;
}
.fan-two-img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
    max-width: 936px;
}
.fan-two-img-row--tight {
    gap: 6px;
    margin: 0;
}
.fan-defects-block {
    margin: 24px 0;
    margin-right: auto;
}
.fan-defects-block .fan-two-img-row,
.fan-two-img-row.fan-align-left {
    margin-right: auto;
}
.fan-second-block {
    margin: 24px 0;
}
.fan-second-block .fan-two-img-row {
    margin-top: 0;
}
.fan-defects-block .fan-caption--center,
.fan-defects-block .fan-caption--center,
.fan-second-block .fan-caption--center {
    text-align: center;
}
.fan-caption--above {
    margin-top: 0;
    margin-bottom: 10px;
}
/* 3rd image (scanning.jpg): left-align with fan_slide1_4.jpg */
.fan-single-img-wrap {
    overflow: visible;
    margin: 24px 0;
    margin-right: auto;
    margin: 24px 0;
    margin-right: auto;
}
.fan-img-thinkness {
    max-width: 642px;   /* 558px + 15% */
    max-height: 414px;  /* 360px + 15% */
    transform: translateX(-40px);
}
.fan-img-scanning {
    transform: translateX(-135px);
}
.fan-img-1st-width {
    max-width: 733px;   /* 666px + 10% */
    max-height: 472px;  /* 429px + 10% */
}
.fan-two-img-row .fan-page-img {
    max-width: none;
    max-height: 390px;
}
.fan-figure {
    margin: 0;
}
.fan-two-img-row .fan-figure h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}
.fan-caption {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 10px;
    text-align: center;
}
@media (max-width: 640px) {
    .fan-two-img-row {
        grid-template-columns: 1fr;
    }
    .fan-img-scanning,
    .fan-img-thinkness {
        transform: none;
    }
    .peng-image-grid {
        grid-template-columns: 1fr;
    }
}

/* Fan: equal-height image pair */
.fan-equal-height-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
    align-items: stretch;
    max-width: 864px;
}
.fan-equal-height-grid > div {
    overflow: hidden;
    min-height: 0;
    max-height: 768px;
}
.fan-equal-height-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 640px) {
    .fan-equal-height-grid {
        grid-template-columns: 1fr;
    }
    .fan-equal-height-grid > div {
        max-height: none;
    }
    .fan-equal-height-grid img {
        height: auto;
        object-fit: contain;
    }
}

/* Daily Monitoring team photos */
.daily-monitoring-team {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 24px 0;
    justify-content: flex-start;
}

.daily-monitoring-team .team-member {
    margin: 0;
    text-align: center;
}

.daily-monitoring-team .team-member img {
    width: 144px;
    height: 144px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
}

.daily-monitoring-team .team-member figcaption {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.media-caption-title {
    padding: 8px 12px;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    border-top: 1px solid var(--border);
}

.pub-block {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px 18px 4px 18px;
    margin: 14px 0 18px 0;
}

.pub-block p {
    margin-bottom: 14px;
}

.media-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.media-card img,
.media-card video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #f8f9fa;
}

.media-card img {
    object-fit: contain;
}

.media-card figcaption {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--muted);
}

/* ===== NEWS & EVENTS LIST ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.news-poster {
    background: #f8f9fa;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-poster img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    object-position: top;
}

.news-poster-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
}

.news-body {
    padding: 14px 16px;
}

.news-title {
    font-weight: 700;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--brand);
}

.news-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
    color: var(--muted);
    font-size: 14px;
}

.news-meta strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-poster img {
        max-width: none;
        width: 100%;
    }

    .news-poster img,
    .news-poster-placeholder {
        aspect-ratio: 16 / 9;
    }

    .news-meta {
        grid-template-columns: 1fr;
    }
}

/* ===== NEWS DETAIL PAGE ===== */
.news-back {
    margin-bottom: 20px;
}

.news-back a {
    color: var(--brand);
    text-decoration: none;
}

.news-back a:hover {
    text-decoration: underline;
}

.news-detail-header {
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.news-detail-poster {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.news-detail-poster img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top;
}

.news-detail-main {
    min-width: 0;
}

.news-detail-title {
    margin: 0 0 16px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.news-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.news-detail-meta strong {
    color: var(--text);
    font-weight: 600;
}

.news-detail-body {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.news-speaker-block {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.news-speaker-photo {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.news-speaker-bios,
.news-abstract {
    margin-bottom: 24px;
}

.news-speaker-bios h3,
.news-abstract h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.news-bios-text,
.news-abstract-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

/* Pure CSS carousel */
.news-carousel {
    margin-top: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-carousel-inner {
    position: relative;
    overflow: hidden;
}

.news-carousel-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.news-carousel-track {
    display: flex;
    width: calc(100% * var(--carousel-slides, 5));
    transition: transform 0.35s ease;
}

.news-carousel-slide {
    flex: 0 0 calc(100% / var(--carousel-slides, 5));
    min-width: 0;
    padding: 12px;
}

.news-carousel-slide img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
}

.news-carousel-caption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.news-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
}

.news-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s;
}

.news-carousel-dot:hover {
    background: var(--muted);
}

#news-slide-1:checked ~ .news-carousel-track { transform: translateX(0); }
#news-slide-1:checked ~ .news-carousel-nav .news-carousel-dot:nth-child(1) { background: var(--brand); }
#news-slide-2:checked ~ .news-carousel-track { transform: translateX(calc(-100% / var(--carousel-slides, 5))); }
#news-slide-2:checked ~ .news-carousel-nav .news-carousel-dot:nth-child(2) { background: var(--brand); }
#news-slide-3:checked ~ .news-carousel-track { transform: translateX(calc(-200% / var(--carousel-slides, 5))); }
#news-slide-3:checked ~ .news-carousel-nav .news-carousel-dot:nth-child(3) { background: var(--brand); }
#news-slide-4:checked ~ .news-carousel-track { transform: translateX(calc(-300% / var(--carousel-slides, 5))); }
#news-slide-4:checked ~ .news-carousel-nav .news-carousel-dot:nth-child(4) { background: var(--brand); }
#news-slide-5:checked ~ .news-carousel-track { transform: translateX(calc(-400% / var(--carousel-slides, 5))); }
#news-slide-5:checked ~ .news-carousel-nav .news-carousel-dot:nth-child(5) { background: var(--brand); }

@media (max-width: 768px) {
    .news-detail-header {
        grid-template-columns: 1fr;
    }

    .news-detail-poster img,
    .news-poster-placeholder {
        aspect-ratio: 16 / 9;
    }

    .news-speaker-block {
        flex-direction: column;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #1e3a8a;
    color: var(--light);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
    max-width: 800px;
}

.footer-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--light);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 20px 0;
    text-align: center;
    color: #cbd5e1;
}

.footer-bottom a,
.footer-bottom a:link,
.footer-bottom a:visited,
.footer-bottom a:hover,
.footer-bottom a:active,
.footer-bottom a:focus {
    color: #fff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-main {
        height: 54px;
    }
    
    .logo-aaf {
        height: 46px;
    }
    
    .logo-text {
        margin-left: 0.5ch;
    }
    
    .logo-text-line1, .logo-text-line2 {
        font-size: 12px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 77px;
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-hover);
        gap: 0;
        padding: 20px 0;
        z-index: 999;
    }
    
    /* CSS-only menu toggle - show menu when checkbox is checked */
    .nav-toggle:checked ~ .nav-menu {
        left: 0;
    }
    
    .nav-item {
        margin: 8px 0;
    }
    
    .nav-link {
        padding: 12px 20px;
        display: block;
        margin: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Mobile dropdown styling */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fa;
        margin-top: 8px;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 520px;
        transform: none;
    }
    
    .dropdown-toggle::after {
        display: inline;
        font-size: 8px;
    }
    
    .dropdown-link {
        padding: 8px 24px;
        border-bottom: 1px solid #e9ecef;
        font-size: 16px;
    }
    
    .dropdown-link:last-child {
        border-bottom: none;
    }
    
    .hero {
        padding: 50px 16px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-video {
        height: 300px;
    }
    
    .carousel-image {
        height: 300px;
    }
    
    .carousel-prev, .carousel-next {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cards-section-2x2 .cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .page-content {
        padding: 30px 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .carousel-section {
        padding: 40px 0;
    }
    
    .cards-section {
        padding: 40px 0;
    }
    
    .page-content {
        padding: 30px 20px;
    }
    
    .page-content h2 {
        font-size: 2rem;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-main {
        height: 48px;
    }
    
    .logo-aaf {
        height: 38px;
    }
    
    .logo-text {
        margin-left: 0.5ch;
    }
    
    .logo-text-line1, .logo-text-line2 {
        font-size: 11px;
    }
}
