/* Reset and Core Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050508;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000;
}

/* Ambient Blurred Background to eliminate black bars on desktop */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(50px) brightness(0.35); /* Smooth, dark blur matching the main swirl */
    transform: scale(1.08); /* Scale slightly to prevent blur bleed around the edges */
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Hamburger menu (hidden on desktop) */
.hamburger-menu {
    display: none;
}

/* Aspect-Ratio Container: Centers and maintains 16:9 ratio on all screens */
#app {
    width: 100vw;
    height: 56.25vw; /* (9 / 16) * 100 */
    max-width: 177.78vh; /* (16 / 9) * 100 */
    max-height: 100vh;
    position: relative;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    user-select: none;
    container-type: size; /* Enable container query width (cqw) for responsive fonts */
}

.page-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- Left Column Elements --- */
.left-column {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to background if needed */
}

.element-wrapper {
    position: absolute;
    pointer-events: auto;
}

/* Title block (top left) */
.title-container {
    left: 18.49%;
    top: 7.69%;
    width: 36.72%; /* 705px / 1920px */
}

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

/* Logos (middle left) */
.logo-container {
    left: 18.49%;
    top: 32.78%;
    width: 22.08%; /* 424px / 1920px */
    display: flex;
    align-items: center;
    gap: 7.31%; /* 31px gap / 424px total width */
}

.logo-wrapper {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wuhan-logo-wrapper {
    width: 35.14%; /* 149px / 424px */
}

.unesco-logo-wrapper {
    width: 57.55%; /* 244px / 424px */
}

.logo-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logo-wrapper:hover {
    transform: translateY(-5px) scale(1.03);
}

/* Sponsors and Guiding Units (bottom left) */
.sponsors-container {
    left: 18.49%; /* Align exactly with title and logos */
    top: 57.22%;
    width: 15.00%; /* Slightly expanded to allow text breathing room */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsors-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sponsors-group-title {
    font-size: 1.04cqw; /* Scaled perfectly relative to app width */
    font-weight: 700;
    color: #000;
    letter-spacing: 0.1cqw;
    margin: 0;
    line-height: 1.2;
}

.sponsors-list-text {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sponsors-list-text li {
    font-size: 0.73cqw; /* Scaled perfectly relative to app width */
    font-weight: 400;
    color: #000; /* Rich solid black as in design */
    line-height: 1.4;
    letter-spacing: 0.02cqw;
    white-space: nowrap;
}

/* --- Center Column: Question Mark --- */
.center-column {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.qmark-container {
    position: absolute;
    left: 60.42%; /* 1160px / 1920px */
    top: 32.13%;  /* 347px / 1080px */
    width: 10.21%;  /* 196px / 1920px */
    pointer-events: auto;
}

.qmark-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    /* Soft initial glow filter */
    filter: drop-shadow(0 0 8px rgba(74, 246, 38, 0.4));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* Float and Glow Animation on Question Mark */
.float-glow {
    animation: floating 4s ease-in-out infinite, glowing 3s ease-in-out infinite alternate;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes glowing {
    0% {
        filter: drop-shadow(0 0 6px rgba(74, 246, 38, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(74, 246, 38, 0.9)) drop-shadow(0 0 30px rgba(74, 246, 38, 0.4));
    }
}

.qmark-container:hover .qmark-image {
    filter: drop-shadow(0 0 25px rgba(74, 246, 38, 1.0)) drop-shadow(0 0 45px rgba(74, 246, 38, 0.7));
}


/* --- Right Column: Navigation Buttons --- */
.right-column {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating menu panel matching design positions */
.navigation-panel {
    position: absolute;
    right: 12.00%; /* Symmetrical margin giving breathing room, ~230px from right edge */
    top: 38.33%;  /* 414px / 1080px */
    width: auto;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right-aligned text */
    pointer-events: auto;
}

.nav-button {
    width: 100%;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    position: relative;
    overflow: hidden;
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right-aligned content items */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-text-zh {
    font-size: 1.56cqw; /* Scaled perfectly relative to app width */
    font-weight: 700;
    color: #000;
    letter-spacing: 0.1cqw;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.btn-text-en {
    font-size: 0.73cqw; /* Scaled perfectly relative to app width */
    font-weight: 500;
    color: #000;
    letter-spacing: 0.02cqw;
    margin-top: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Dividing Line */
.menu-divider {
    width: 100%;
    height: 1.5px;
    background-color: rgba(0, 0, 0, 0.7); /* Match design's dark divider */
    margin: 20px 0; /* Vertical spacing relative to design (482 - 462 = 20px) */
    position: relative;
    transform-origin: right; /* Animate divider from right */
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* Interactive Hover States */
.nav-button:hover .button-content {
    transform: translateX(-10px); /* Slide left on hover since it is right-aligned */
}

/* Subtle opacity change on hover */
.nav-button:hover .btn-text-zh {
    color: rgba(0, 0, 0, 0.8);
}

.nav-button:hover .btn-text-en {
    color: rgba(0, 0, 0, 0.6);
}

/* Global scroll lock style when mobile menu drawer is active */
body.no-scroll {
    overflow: hidden !important;
}

/* Divider grows slightly when hovering over buttons */
.navigation-panel:has(.nav-button:hover) .menu-divider {
    transform: scaleX(1.03);
}


/* --- Loading Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.title-container {
    animation-delay: 0.2s;
}

.logo-container {
    animation-delay: 0.5s;
}

.sponsors-container {
    animation-delay: 0.8s;
}

.navigation-panel {
    opacity: 0;
    animation: fadeInRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 1.0s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Event Notice Modal Popup (Desktop View) --- */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.4); /* Lighter, colorful backdrop blur for light modal */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 75%;
    height: 80%;
    background: rgba(255, 255, 255, 0.82); /* Premium frosted white glass container */
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 0; /* Padding is handled by scrollable inner views to keep close button static */
    position: relative;
    overflow: hidden; /* Hide container overflow, close button is static */
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Independent scrollable views inside modal container */
.notice-list-view,
.notice-detail-view {
    padding: 3.5cqw 4cqw;
    overflow-y: auto;
    height: 100%;
    width: 100%;
}

/* Custom Scrollbar for Modal Scrollable Views */
.notice-list-view,
.notice-detail-view {
    --scrollbar-thumb: rgba(0, 0, 0, 0.12);
    --scrollbar-track: rgba(0, 0, 0, 0.01);
    
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

.notice-list-view:hover,
.notice-detail-view:hover {
    --scrollbar-thumb: #1ebd10;
}

@supports not (scrollbar-color: auto) {
    .notice-list-view::-webkit-scrollbar,
    .notice-detail-view::-webkit-scrollbar {
        width: 6px;
    }
    .notice-list-view::-webkit-scrollbar-track,
    .notice-detail-view::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
    }
    .notice-list-view::-webkit-scrollbar-thumb,
    .notice-detail-view::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: 3px;
        transition: background 0.3s ease;
    }
    .notice-list-view::-webkit-scrollbar-thumb:hover,
    .notice-detail-view::-webkit-scrollbar-thumb:hover {
        background: #1ebd10;
    }
}

/* Close button style (pinned at top-right of container, does not scroll) */
.modal-close {
    position: absolute;
    top: 2cqw;
    right: 2cqw;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
    font-size: 2.2cqw;
    cursor: pointer;
    width: 3.2cqw;
    height: 3.2cqw;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(30, 189, 16, 0.1);
    border-color: #1ebd10;
    color: #1ebd10;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2.5cqw;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1.5cqw;
}

.modal-title {
    font-size: 2.2cqw;
    font-weight: 700;
    color: #000; /* Rich solid black */
    letter-spacing: 0.1cqw;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 0.9cqw;
    color: #666;
    margin-top: 0.4cqw;
}

/* Notice List view */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 1.2cqw;
}

.notice-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5cqw 1.8cqw;
    cursor: pointer;
    display: flex;
    gap: 1.5cqw;
    align-items: flex-start;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.notice-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(30, 189, 16, 0.4);
    transform: translateX(4px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
}

.notice-card.pinned {
    border-left: 3px solid #1ebd10; /* Rich signature green */
}

/* Thumbnail wrapper style */
.notice-thumbnail-wrapper {
    width: 14cqw;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.03);
}

.notice-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.notice-card:hover .notice-thumbnail {
    transform: scale(1.04);
}

/* Content block style */
.notice-card-content {
    flex-grow: 1;
    min-width: 0; /* Prevents overflow inside flex box */
    display: flex;
    flex-direction: column;
}

.notice-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5cqw;
}

.notice-card-date {
    font-size: 0.8cqw;
    color: #666;
}

.notice-card-title {
    font-size: 1.25cqw;
    font-weight: 600;
    color: #000;
    line-height: 1.35;
    margin-bottom: 0.6cqw;
    transition: color 0.3s ease;
}

.notice-card:hover .notice-card-title {
    color: #1ebd10;
}

.notice-card-summary {
    font-size: 0.8cqw;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.8cqw;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-readmore {
    display: inline-block;
    font-size: 0.8cqw;
    color: #666;
    margin-top: auto; /* Push readmore to the bottom if there is space */
    transition: color 0.3s, transform 0.3s;
    align-self: flex-start;
}

.notice-readmore .arrow {
    display: inline-block;
    transition: transform 0.3s;
}

.notice-card:hover .notice-readmore {
    color: #1ebd10;
}

.notice-card:hover .notice-readmore .arrow {
    transform: translateX(4px);
}

/* Back to List Button */
.btn-back-to-list {
    background: none;
    border: none;
    color: #555;
    font-size: 1cqw;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5cqw;
    margin-bottom: 2cqw;
    padding: 0.5cqw 0;
    transition: color 0.3s, transform 0.3s;
    font-family: inherit;
    font-weight: 500;
}

.btn-back-to-list:hover {
    color: #1ebd10;
    transform: translateX(-4px);
}

/* Detail View Content */
.detail-header {
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 1.5cqw;
    margin-bottom: 2cqw;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 1cqw;
    margin-bottom: 0.8cqw;
}

.detail-date {
    font-size: 0.85cqw;
    color: #666;
}

.detail-title {
    font-size: 2cqw;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

/* Optional Hero image in detail view */
.detail-hero-wrapper {
    width: 100%;
    max-height: 25cqw;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2cqw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-body {
    font-size: 0.9cqw;
    color: #222;
    line-height: 1.7;
}

.detail-body h3 {
    font-size: 1.15cqw;
    font-weight: 600;
    color: #000;
    margin: 1.8cqw 0 0.6cqw;
    border-left: 3px solid #1ebd10;
    padding-left: 0.6cqw;
}

.detail-body p {
    margin-bottom: 1cqw;
}

.detail-body ul {
    margin-bottom: 1.2cqw;
    padding-left: 1.2cqw;
}

.detail-body li {
    margin-bottom: 0.5cqw;
}

.detail-body b {
    color: #1ebd10;
}


/* --- Mobile & Portrait Responsiveness (Vertical Aspect Ratios) --- */
@media (max-width: 768px), (max-aspect-ratio: 1.0) {
    body {
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        display: block; /* Override flex layout centering on mobile */
        background-color: #0b0c10;
        color: #fff;
    }

    body::before {
        display: none; /* Hide ambient background on mobile stack */
    }
    
    #app {
        width: 100%;
        height: auto;
        min-height: 100vh;
        aspect-ratio: auto;
        max-width: 100%;
        max-height: none;
        display: flex;
        flex-direction: column;
        background-image: url('bg_mobile.png'); /* Swirl portrait background for mobile stack */
        background-size: cover;
        background-position: center top;
        box-shadow: none;
        overflow: visible; /* Allow fixed drawer menu to display without layout clipping */
    }
    
    .page-container {
        display: flex;
        flex-direction: column;
        padding: 40px 24px;
        gap: 32px;
        min-height: 100vh;
    }
    
    /* Flatten nested structure to allow direct flex reordering of visual sections */
    .left-column, .center-column {
        display: contents;
    }
    
    .right-column {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
    }
    
    /* Title responsive */
    .title-container {
        position: relative;
        left: auto;
        top: auto;
        width: 85%;
        max-width: 450px;
        margin: 0 auto;
        order: 1; /* First element in the vertical stack */
    }
    
    .title-image {
        filter: invert(1) brightness(1.2); /* Invert black title text to white for high contrast on dark mobile theme */
    }
    
    /* Logos responsive: side-by-side with proportional scaling */
    .logo-container {
        position: relative;
        left: auto;
        top: auto;
        width: 85%;
        max-width: 450px;
        margin: 24px auto 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 24px;
        order: 2; /* Second element in vertical stack */
    }
    
    .wuhan-logo-wrapper {
        width: 35.14%;
        max-width: 130px;
    }

    .unesco-logo-wrapper {
        width: 57.55%;
        max-width: 210px;
    }
    
    /* Sponsors responsive: Centered content for symmetry */
    .sponsors-container {
        position: relative;
        left: auto;
        top: auto;
        width: 85%;
        max-width: 450px;
        margin: 24px auto 0;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 24px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        gap: 16px;
        order: 4; /* Stack sponsors at the bottom */
    }

    .sponsors-section {
        align-items: center; /* Center section items */
    }

    .sponsors-group-title {
        font-size: 16px;
        color: #fff;
        font-weight: 700;
        text-align: center; /* Center-align text */
    }

    .sponsors-list-text {
        align-items: center; /* Center list items */
    }

    .sponsors-list-text li {
        font-size: 13px;
        color: #ccc;
        text-align: center; /* Center-align list items */
    }
    
    /* Question Mark responsive: scaled proportionally */
    .qmark-container {
        position: relative;
        left: auto;
        top: auto;
        width: 25%;
        max-width: 140px;
        min-width: 90px;
        margin: 30px auto;
        order: 3; /* Position question mark visual graphic in the middle (above sponsors) */
    }
    
    /* Hamburger Menu responsive display */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 44px;
        height: 44px;
        position: fixed;
        top: 24px;
        right: 24px;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        padding: 12px 10px;
        cursor: pointer;
        z-index: 1000;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }
    
    .hamburger-menu:hover {
        background: rgba(0, 0, 0, 0.65);
        border-color: rgba(255, 255, 255, 0.25);
    }
    
    .bar {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        border-radius: 1px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Navigation Drawer Panel responsive */
    .navigation-panel {
        position: fixed;
        top: 0;
        right: -100%; /* offscreen by default */
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(11, 12, 16, 0.9);
        backdrop-filter: blur(24px) saturate(120%);
        -webkit-backdrop-filter: blur(24px) saturate(120%);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0; /* no border radius for full height drawer */
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        padding: 80px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navigation-panel.active {
        right: 0; /* Slide in! */
    }
    
    .nav-button {
        padding: 8px 0;
        text-align: center;
    }
    
    .button-content {
        align-items: center;
        justify-content: center;
    }
    
    .btn-text-zh {
        font-size: 22px;
        color: #fff; /* White text for dark theme button */
    }
    
    .btn-text-en {
        font-size: 11px;
        color: #aaa; /* Gray text for dark theme button */
    }
    
    .menu-divider {
        background-color: rgba(255, 255, 255, 0.15); /* Light divider for dark theme card */
        margin: 12px 0;
    }

    .nav-button:hover .btn-text-zh {
        color: rgba(255, 255, 255, 0.85);
    }

    .nav-button:hover .btn-text-en {
        color: rgba(255, 255, 255, 0.7);
    }

    /* --- Event Notice Modal (Mobile Viewport Overrides) --- */
    .modal-overlay {
        position: fixed;
        z-index: 1100; /* Over mobile hamburger menu */
    }

    .modal-container {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        border: none;
        padding: 0; /* Remove container padding so inner views scroll and hold close button static */
        overflow: hidden; /* Hide overflow to keep close button static */
        background: rgba(11, 12, 16, 0.98);
        transform: scale(1) translateY(30px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        display: flex;
        flex-direction: column;
    }

    .modal-overlay.active .modal-container {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    /* Independent scrollable views inside mobile modal container */
    .notice-list-view,
    .notice-detail-view {
        padding: 90px 24px 40px; /* Space below the top fixed close button */
        overflow-y: auto;
        height: 100%;
        width: 100%;
    }

    .modal-close {
        position: fixed;
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        font-size: 26px;
        z-index: 1200;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .modal-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 12px;
        margin-top: 4px;
    }

    .notice-list {
        gap: 16px;
    }

    .notice-card {
        padding: 16px;
        border-radius: 12px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .notice-card:hover {
        transform: none; /* Disable card shift hover on touch screens */
        box-shadow: none;
    }

    .notice-thumbnail-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .notice-card-content {
        width: 100%;
    }

    .notice-card-header {
        margin-bottom: 6px;
    }

    .notice-card-date {
        font-size: 12px;
    }

    .notice-card-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .notice-card-summary {
        font-size: 12px;
        margin-bottom: 8px;
        -webkit-line-clamp: 3; /* Give a bit more space for summary on mobile */
    }

    .notice-readmore {
        font-size: 12px;
        margin-top: 4px;
    }

    .btn-back-to-list {
        font-size: 13px;
        margin-bottom: 24px;
        padding: 8px 0;
        gap: 6px;
    }

    .detail-header {
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .detail-meta {
        gap: 12px;
        margin-bottom: 8px;
    }

    .detail-date {
        font-size: 12px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-hero-wrapper {
        max-height: 200px;
        margin-bottom: 16px;
        border-radius: 8px;
        overflow: hidden;
        width: 100%;
    }

    .detail-body {
        font-size: 14px;
    }

    .detail-body h3 {
        font-size: 15px;
        margin: 20px 0 8px;
        padding-left: 8px;
    }

    .detail-body p {
        margin-bottom: 12px;
    }

    .detail-body ul {
        margin-bottom: 16px;
        padding-left: 16px;
    }

    .detail-body li {
        margin-bottom: 6px;
    }
}
