

.page-home {
    --home-radius: 20px;
    --home-radius-lg: 28px;
    --home-shadow: 0 4px 28px rgba(26, 26, 46, 0.06);
    --home-shadow-lg: 0 24px 56px rgba(128, 0, 0, 0.1);
    --home-border: rgba(128, 0, 0, 0.08);
    --home-surface: #ffffff;
    --home-surface-muted: #f4f2f2;
    --home-text: #1a1a2e;
    --home-text-muted: #6b7280;
    --home-gold: #ffd700;
    --home-maroon: #800000;
    --home-section-space: clamp(4rem, 9vw, 7rem);
    background-color: #f8f7f7;
}

.page-home .home-main {
    display: block;
}

.page-home .home-main > .section {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

.home-section-accent {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(128, 0, 0, 0.05) 0%, transparent 65%);
}

.home-section-accent--light {
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 215, 0, 0.07) 0%, transparent 60%);
}

.home-section-accent--dark {
    background:
        radial-gradient(ellipse 60% 45% at 15% 25%, rgba(128, 0, 0, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 75%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
}

.home-section-accent--charts {
    background:
        radial-gradient(ellipse 45% 35% at 8% 15%, rgba(128, 0, 0, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 92% 85%, rgba(255, 215, 0, 0.07) 0%, transparent 55%);
}

.home-section-accent--maroon {
    background: radial-gradient(circle at 25% 15%, rgba(255, 215, 0, 0.14) 0%, transparent 42%);
}

.home-section-accent--clubs {
    background: radial-gradient(ellipse 65% 45% at 90% 5%, rgba(128, 0, 0, 0.06) 0%, transparent 55%);
}

.home-section-accent--sports {
    background: radial-gradient(ellipse 55% 40% at 10% 95%, rgba(255, 215, 0, 0.09) 0%, transparent 50%);
}

.home-section-accent--contact {
    background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(128, 0, 0, 0.05) 0%, transparent 60%);
}

.page-home .home-main .container {
    position: relative;
    z-index: 1;
}

.home-section-head {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.home-section-head--left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.home-section-head--on-dark .section-label {
    color: var(--home-gold);
    background: rgba(255, 215, 0, 0.1);
}

.home-section-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.15;
    margin: 0.75rem 0 1rem;
}

.home-section-title-dark {
    color: var(--home-text);
}

.home-section-title-light {
    color: #fff;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0.75rem 0 1rem;
}

.home-lead-text,
.home-intro-text {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: var(--home-text-muted);
    line-height: 1.85;
}

.home-intro-text {
    max-width: 880px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-label-on-dark {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--home-gold) !important;
    border: 1px solid rgba(255, 215, 0, 0.22);
}

.home-subtitle-on-dark {
    color: rgba(255, 255, 255, 0.82) !important;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-btn-primary {
    background: linear-gradient(135deg, #800000 0%, #a52a2a 100%);
    color: #fff;
    border-color: rgba(255, 215, 0, 0.28);
    box-shadow: 0 8px 28px rgba(128, 0, 0, 0.32);
}

.home-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(128, 0, 0, 0.45);
    color: #fff;
}

.home-btn-light {
    background: #fff;
    color: var(--home-maroon);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.home-btn-light:hover {
    transform: translateY(-3px);
    color: var(--home-maroon);
}

.home-section-cta,
.home-section-cta-wrap {
    margin-top: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.home-about-section {
    background: linear-gradient(180deg, #f8f7f7 0%, #fff 55%, #faf9f9 100%);
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.home-metrics-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.home-about-visual {
    position: relative;
}

.home-image-frame {
    position: relative;
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    box-shadow: var(--home-shadow-lg);
}

.home-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1;
}

.home-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.home-about-visual:hover .home-image-frame img {
    transform: scale(1.03);
}

.home-image-frame--dark {
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4);
}

.home-about-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background: linear-gradient(135deg, #800000, #5c0000);
    color: #fff;
    padding: 1rem 1.35rem;
    border-radius: var(--home-radius);
    box-shadow: 0 12px 32px rgba(128, 0, 0, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.25);
    text-align: center;
    z-index: 2;
}

.home-about-badge-year {
    display: block;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--home-gold);
    line-height: 1;
}

.home-about-badge-text {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.stat-card-premium {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    padding: 1.75rem 1.35rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--home-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #800000, #d4af37);
}

.stat-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-shadow-lg);
    border-color: rgba(128, 0, 0, 0.15);
}

.stat-icon {
    font-size: 1.6rem;
    color: var(--home-maroon);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(128, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-number-premium {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    background: linear-gradient(135deg, #800000 20%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label-premium {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--home-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.35rem;
}

.stat-divider-premium {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 0, 0, 0.12), transparent);
    margin: 1rem auto;
    width: 70%;
}

.home-stat-years {
    font-size: 0.68rem;
    color: var(--home-maroon);
    font-weight: 700;
    margin-top: 0.4rem;
    letter-spacing: 0.5px;
}

.home-heritage-section {
    background: var(--home-surface-muted);
}

.home-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.home-pillar-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--home-surface);
    border-radius: var(--home-radius-lg);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-shadow-lg);
}

.heritage-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(128, 0, 0, 0.07);
    color: var(--home-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.home-pillar-card:hover .heritage-card-icon {
    background: var(--home-maroon);
    color: #fff;
    transform: scale(1.05);
}

.home-pillar-card h3,
.home-pillar-card h4 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    color: var(--home-text);
}

.home-pillar-card p {
    font-size: 0.92rem;
    color: var(--home-text-muted);
    line-height: 1.65;
    margin: 0;
}

.home-news-section {
    background: var(--dark, #1a1a1a);
    overflow: hidden;
}

.home-news-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.home-news-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    animation: homeNewsPulse 2s ease-in-out infinite;
}

@keyframes homeNewsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.home-news-section .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.home-news-slider {
    position: relative;
    z-index: 1;
}

.home-news-controls {
    display: none;
}

.home-news-track {
    display: flex;
    gap: 1.75rem;
    min-height: 380px;
    padding: 0.5rem var(--container-padding, 1.5rem) 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-inline: var(--container-padding, 1.5rem);
}

.home-news-track::-webkit-scrollbar {
    display: none;
}

#news .home-news-card {
    flex: 0 0 min(380px, 88vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 215, 0, 0.14);
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

#news .home-news-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

#news .home-news-card-link:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 2px;
}

#news .home-news-card-link:hover .home-news-title {
    color: var(--home-gold);
}

#news .home-news-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

#news .home-news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.3);
}

#news .home-news-image img {
    width: 100%;
    height: auto;
    display: block;
}

.home-news-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #800000, #a52a2a);
    color: var(--home-gold);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.home-news-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.home-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-news-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-news-tag.tag-competition {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.home-news-tag.tag-achievement {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.home-news-tag.tag-sports {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.home-news-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.home-news-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

.home-news-excerpt {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
    margin: 0;
}

.home-news-actions {
    padding: 0 1.25rem 1.25rem;
    margin-top: auto;
}

#news .home-news-actions .nw-download-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.28) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(128, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#news .home-news-actions .nw-download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#news .home-news-actions .nw-download-btn:hover {
    color: #fff;
    border-color: rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.55) 0%, rgba(92, 0, 0, 0.28) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(128, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#news .home-news-actions .nw-download-btn:hover::before {
    opacity: 1;
}

#news .home-news-actions .nw-download-btn__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.28);
    color: var(--home-gold, #ffd700);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

#news .home-news-actions .nw-download-btn__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
    position: relative;
    z-index: 1;
}

#news .home-news-actions .nw-download-btn__label {
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.2;
}

#news .home-news-actions .nw-download-btn__hint {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.2;
}

#news .home-news-actions .nw-download-btn__arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: rgba(255, 215, 0, 0.65);
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
}

#news .home-news-actions .nw-download-btn:hover .nw-download-btn__arrow {
    transform: translateX(3px);
    color: var(--home-gold, #ffd700);
}

.home-news-highlights {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-news-highlights li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.3rem;
}

.home-news-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--home-gold);
}

.home-news-footer {
    margin-top: 1.5rem;
}

.home-news-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.home-news-scroll-bar {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.home-news-scroll-thumb {
    display: block;
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, #800000, #ffd700);
    border-radius: 3px;
    transition: margin-left 0.15s ease;
}

.home-news-scroll-text {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.home-news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--home-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-news-nav:hover {
    background: rgba(128, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.06);
}

.home-charts-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f8f7f7 100%);
}

.home-fireworks-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.home-charts-section .container {
    position: relative;
    z-index: 2;
}

.home-achievement-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.home-achievement-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow);
}

.home-achievement-pill i {
    font-size: 1.5rem;
    color: var(--home-maroon);
    flex-shrink: 0;
}

.home-achievement-pill strong {
    display: block;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.5rem;
    color: var(--home-text);
    line-height: 1.1;
}

.home-achievement-pill span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--home-text-muted);
    font-weight: 600;
}

.home-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    min-height: 280px;
}

.home-chart-card {
    background: var(--home-surface) !important;
    border: 1px solid var(--home-border) !important;
    border-radius: var(--home-radius-lg) !important;
    padding: 1.75rem !important;
    box-shadow: var(--home-shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-lg) !important;
}

.home-chart-card-wide {
    grid-column: 1 / -1;
}

.home-chart-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: rgba(128, 0, 0, 0.08);
    color: var(--home-maroon);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.home-academics-section {
    overflow: hidden;
}

.home-academics-path {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.home-academics-path span {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.home-academics-path i {
    color: var(--home-gold);
    font-size: 0.75rem;
}

.home-academics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.academic-premium-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--home-radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.academic-premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.academic-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.25rem;
}

.academic-icon-glow {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: transform 0.35s ease, background 0.35s ease;
}

.academic-premium-card:hover .academic-icon-glow {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #3a0000;
    transform: scale(1.08);
}

.academic-premium-card h3,
.academic-premium-card h4 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.45rem;
    color: #fff;
    margin-bottom: 1rem;
}

.academic-premium-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin: 0;
}

.home-showcase-track--responsive {
    display: flex;
    gap: 1.75rem;
    padding: 0.5rem var(--container-padding, 1.5rem) 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-showcase-track--responsive::-webkit-scrollbar {
    display: none;
}

.page-home .home-showcase-card {
    flex: 0 0 min(380px, 88vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.page-home .home-showcase-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.page-home .home-showcase-card-link:focus-visible {
    outline: 2px solid var(--home-maroon);
    outline-offset: 2px;
}

.page-home .home-showcase-card-link:hover .home-showcase-body h3,
.page-home .home-showcase-card-link:hover .home-showcase-body h4 {
    color: var(--home-maroon);
}

.page-home .home-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-lg);
}

.page-home .home-showcase-card .news-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.home-showcase-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.home-showcase-body h3,
.home-showcase-body h4 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    color: var(--home-text);
    margin: 0;
}

.home-showcase-body p {
    font-size: 0.9rem;
    color: var(--home-text-muted);
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.home-showcase-tag {
    align-self: flex-start;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-showcase-tag.tag-tech {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.home-showcase-tag.tag-science {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.home-showcase-tag.tag-sports {
    background: rgba(128, 0, 0, 0.1);
    color: var(--home-maroon);
}

.home-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--home-maroon);
    text-decoration: none;
    margin-top: 0.25rem;
}

.home-showcase-link:hover {
    gap: 0.55rem;
}

.home-sports-section {
    background: var(--home-surface-muted);
}

@media (min-width: 1200px) {
    .home-showcase-track--responsive {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-width: var(--bp-xl, 1400px);
        margin: 0 auto;
        padding: 0.5rem var(--container-padding, 2rem) 1.5rem;
        overflow: visible;
        scroll-snap-type: none;
    }

    .home-showcase-track--responsive .home-showcase-card {
        flex: unset;
        min-width: 0;
        width: 100%;
    }
}

.home-sesip-panel {
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.home-sesip-section .mission-content h2,
.home-sesip-section .home-section-title-light {
    color: #fff;
}

.home-sesip-section .mission-content p,
.home-sesip-section .home-sesip-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.85;
}

.home-sesip-section .home-section-head {
    margin-bottom: 1.25rem;
}

.home-sesip-section .home-section-head--on-dark .section-label {
    color: var(--home-gold);
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.22);
}

.home-sesip-text {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    font-size: 1.05rem;
}

.home-sesip-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.sesip-list-item {
    position: relative;
    padding-left: 1.75rem !important;
    margin-bottom: 0.85rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.sesip-list-item::before {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--home-gold);
    font-size: 1rem;
}

.home-contact-section {
    background: linear-gradient(180deg, #f8f7f7 0%, #fff 100%);
}

.home-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: stretch;
}

.home-contact-card {
    background: var(--home-surface) !important;
    border: 1px solid var(--home-border) !important;
    border-radius: var(--home-radius-lg) !important;
    padding: clamp(2rem, 4vw, 3rem) !important;
    box-shadow: var(--home-shadow) !important;
}

.home-contact-map {
    border-radius: var(--home-radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--home-shadow-lg) !important;
    min-height: 380px;
}

.home-contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.home-contact-social-title {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--home-text);
}

.page-home .contact-item {
    transition: transform 0.2s ease;
}

.page-home .contact-item:hover {
    transform: translateX(4px);
}

@media (max-width: 1199px) {
    .home-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-about-grid {
        gap: 2.5rem;
    }

    .home-academics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .academic-premium-card {
        padding: 1.75rem 1.25rem;
    }

    .academic-premium-card h3,
.academic-premium-card h4 {
        font-size: 1.2rem;
    }

    .academic-premium-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .home-about-grid {
        grid-template-columns: 1fr;
    }

    .home-about-visual {
        order: -1;
        max-width: 560px;
        margin: 0 auto;
    }

    .home-about-badge {
        bottom: 1rem;
        left: 1rem;
    }

    .home-charts-grid {
        grid-template-columns: 1fr;
    }

    .home-contact-layout {
        grid-template-columns: 1fr;
    }

    .home-academics-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-achievement-summary {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .home-news-controls {
        display: block;
        position: absolute;
        inset: 0;
        max-width: var(--bp-xl, 1400px);
        margin: 0 auto;
        pointer-events: none;
        z-index: 3;
    }

    .home-news-nav {
        pointer-events: auto;
    }

    .home-news-nav-prev { left: 0.5rem; }
    .home-news-nav-next { right: 0.5rem; }

    .home-news-scroll-hint {
        display: none;
    }

    .home-sesip-image,
    .home-sesip-content {
        order: unset;
    }
}

@media (max-width: 991px) {
    .home-metrics-bento {
        gap: 1rem;
    }

    .home-showcase-track--responsive {
        justify-content: flex-start;
    }

    .page-home .home-showcase-card {
        flex: 0 0 min(300px, 85vw);
    }

    #news .home-news-card {
        flex: 0 0 min(300px, 85vw);
    }

    .home-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .home-section-head {
        margin-bottom: 2rem;
    }

    .home-metrics-bento {
        grid-template-columns: 1fr;
    }

    .home-pillars {
        grid-template-columns: 1fr;
    }

    .home-about-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-block;
    }

    .home-academics-path {
        border-radius: var(--home-radius);
        font-size: 0.75rem;
    }

    .home-contact-map iframe {
        min-height: 280px;
    }

    
    .home-about-section.section,
    .home-sesip-section.section {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        overflow-x: hidden;
    }

    .home-about-section .container,
    .home-sesip-section .container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .home-about-grid,
    .home-sesip-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        justify-items: stretch;
    }

    .home-about-section .reveal-left,
    .home-about-section .reveal-right,
    .home-about-section .zoom-in,
    .home-sesip-section .reveal-left,
    .home-sesip-section .reveal-right,
    .home-sesip-section .slide-in-left,
    .home-sesip-section .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .home-about-visual,
    .home-sesip-image {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    
    .home-charts-section.section {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        overflow-x: hidden;
    }

    .home-charts-section .container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .home-charts-grid {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        justify-items: stretch;
    }

    .home-charts-section .reveal-left,
    .home-charts-section .reveal-right,
    .home-charts-section .slide-in-left,
    .home-charts-section .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .home-chart-card {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 1.25rem !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    .home-chart-card .chart-title {
        text-align: center;
        width: 100%;
    }

    .home-chart-card canvas {
        display: block;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    
    .home-contact-section.section {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        overflow-x: hidden;
    }

    .home-contact-section .container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .home-contact-layout {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        justify-items: stretch;
    }

    .home-contact-section .reveal-left,
    .home-contact-section .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .home-contact-card,
    .home-contact-right,
    .contact-form-card,
    .home-contact-map {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .home-contact-card.contact-info {
        text-align: center;
    }

    .home-contact-card .contact-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .home-contact-card .contact-item {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .home-contact-card .social-links {
        justify-content: center;
    }

    .home-contact-card .home-contact-social-title {
        text-align: center;
    }

    .stat-card-premium {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 576px) {
    #news .home-news-card,
    .page-home .home-showcase-card {
        flex: 0 0 min(280px, 90vw);
    }

    .home-news-title {
        font-size: 1.1rem;
    }

    .home-achievement-pill {
        padding: 1rem 1.15rem;
    }

    .home-achievement-pill strong {
        font-size: 1.25rem;
    }
}

@media (hover: none) {
    .stat-card-premium:hover,
    .home-pillar-card:hover,
    #news .home-news-card:hover,
    .page-home .home-showcase-card:hover,
    .home-chart-card:hover,
    .academic-premium-card:hover {
        transform: none;
    }

    #news .home-news-actions .nw-download-btn:hover {
        transform: none;
    }

    #news .home-news-actions .nw-download-btn:hover .nw-download-btn__arrow {
        transform: none;
    }
}

.home-testimonials-section {
    position: relative;
    background: var(--home-surface-muted);
}

.home-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.home-testimonial-card {
    margin: 0;
    padding: clamp(1.35rem, 2.5vw, 1.75rem);
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-lg);
}

.home-testimonial-quote {
    color: var(--home-maroon);
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.35;
}

.home-testimonial-text {
    margin: 0;
    color: var(--home-text);
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
}

.home-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--home-border);
}

.home-testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-maroon), #a52a2a);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-testimonial-name {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--home-text);
}

.home-testimonial-role {
    display: block;
    font-size: 0.8rem;
    color: var(--home-text-muted);
}

@media (max-width: 992px) {
    .home-testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-news-pulse {
        animation: none;
    }

    .home-btn,
    .stat-card-premium,
    .home-showcase-card,
    .home-testimonial-card {
        transition: none;
    }

    .home-news-popup,
    .home-news-popup__dialog {
        transition: none;
    }

    .home-news-popup__dialog {
        transform: none !important;
    }
}

body.home-news-popup-open {
    overflow: hidden;
}

.home-news-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.home-news-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.home-news-popup__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.home-news-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 96vw);
    max-height: min(92vh, 520px);
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.98) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-news-popup.is-visible .home-news-popup__dialog {
    transform: translateY(0) scale(1);
}

.home-news-popup__content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
    max-height: min(92vh, 520px);
}

.home-news-popup__image {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.home-news-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-news-popup__close:hover {
    background: rgba(128, 0, 0, 0.85);
    border-color: rgba(255, 215, 0, 0.35);
    transform: scale(1.05);
}

.home-news-popup__image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.home-news-popup__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #800000, #a52a2a);
    color: var(--home-gold, #ffd700);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.home-news-popup__body {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 3.5rem 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.home-news-popup__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.home-news-popup__tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.home-news-popup__title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    color: #fff;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.home-news-popup__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-news-popup__title-link:hover {
    color: var(--home-gold, #ffd700);
}

.home-news-popup__image-link {
    display: block;
    flex: 0 0 44%;
    min-width: 0;
    height: auto;
    align-self: stretch;
    color: inherit;
    text-decoration: none;
}

.home-news-popup__image-link:focus-visible {
    outline: 2px solid var(--home-gold, #ffd700);
    outline-offset: -2px;
}

.home-news-popup__image-link .home-news-popup__image {
    flex: none;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.home-news-popup__date {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.home-news-popup__date i {
    margin-right: 0.35rem;
    color: #800000;
}

.home-news-popup__text {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    flex: 1;
}

.home-news-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.home-news-popup-actions {
    padding: 0;
}

.home-news-popup-actions .nw-download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.35) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(128, 0, 0, 0.45);
    transition: all 0.35s ease;
}

.home-news-popup-actions .nw-download-btn:hover {
    color: #fff;
    border-color: rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.6) 0%, rgba(92, 0, 0, 0.3) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(128, 0, 0, 0.35);
}

.home-news-popup-actions .nw-download-btn__icon {
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.28);
    color: var(--home-gold, #ffd700);
}

.home-news-popup-actions .nw-download-btn__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
}

.home-news-popup-actions .nw-download-btn__label {
    font-weight: 700;
    font-size: 0.88rem;
}

.home-news-popup-actions .nw-download-btn__hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.home-news-popup-actions .nw-download-btn__arrow {
    color: rgba(255, 215, 0, 0.65);
}

.home-news-popup__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--home-gold, #ffd700);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.25s ease, gap 0.25s ease;
}

.home-news-popup__link:hover {
    color: #fff;
    gap: 0.6rem;
}

/* Tablet - compact horizontal layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .home-news-popup {
        padding: 1rem;
    }

    .home-news-popup__dialog {
        width: min(720px, 94vw);
        max-height: min(88vh, 460px);
    }

    .home-news-popup__content {
        min-height: 280px;
        max-height: min(88vh, 460px);
    }

    .home-news-popup__image {
        flex: 0 0 38%;
    }

    .home-news-popup__image-link {
        flex: 0 0 38%;
    }

    .home-news-popup__body {
        padding: 1.15rem 3.25rem 1.2rem 1.1rem;
    }

    .home-news-popup__title {
        font-size: 1.35rem;
    }

    .home-news-popup__text {
        font-size: 0.88rem;
        margin-bottom: 0.75rem;
    }

    .home-news-popup-actions .nw-download-btn {
        padding: 0.7rem 0.85rem;
    }

    .home-news-popup-actions .nw-download-btn__label {
        font-size: 0.84rem;
    }
}

/* Mobile & small tablet - vertical bottom sheet */
@media (max-width: 768px) {
    .home-news-popup {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .home-news-popup__dialog {
        width: 100%;
        max-width: 100%;
        max-height: min(92dvh, 92vh);
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .home-news-popup.is-visible .home-news-popup__dialog {
        transform: translateY(0);
    }

    .home-news-popup__content {
        flex-direction: column;
        min-height: 0;
        max-height: min(92dvh, 92vh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .home-news-popup__close {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(0, 0, 0, 0.55);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .home-news-popup__image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 10;
        max-height: none;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(160deg, #3a8a99 0%, #1e5563 55%, #123640 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-news-popup__image-link {
        flex: 0 0 auto;
        width: 100%;
    }

    .home-news-popup__image img {
        width: 100%;
        height: 100%;
        max-height: none;
        min-height: 0;
        object-fit: contain;
        object-position: center center;
    }

    .home-news-popup__badge {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.6rem;
        letter-spacing: 1.2px;
        padding: 0.3rem 0.7rem;
    }

    .home-news-popup__body {
        flex: 1 1 auto;
        overflow: visible;
        padding: 1.15rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .home-news-popup__meta {
        margin-bottom: 0.55rem;
    }

    .home-news-popup__title {
        font-size: 1.28rem;
        padding-right: 0;
        margin-bottom: 0.55rem;
    }

    .home-news-popup__date {
        font-size: 0.78rem;
    }

    .home-news-popup__text {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 0.85rem;
        flex: 0 0 auto;
    }

    .home-news-popup__actions {
        gap: 0.55rem;
        padding-top: 0.25rem;
    }

    .home-news-popup-actions .nw-download-btn {
        padding: 0.85rem 1rem;
    }

    .home-news-popup__link {
        font-size: 0.85rem;
        padding: 0.5rem 0 0.15rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .home-news-popup__image {
        aspect-ratio: 4 / 3;
    }

    .home-news-popup__body {
        padding: 1rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    }

    .home-news-popup__title {
        font-size: 1.12rem;
    }

    .home-news-popup__text {
        font-size: 0.86rem;
    }

    .home-news-popup__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .home-news-popup-actions .nw-download-btn__icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.95rem;
    }

    .home-news-popup-actions .nw-download-btn__label {
        font-size: 0.82rem;
    }

    .home-news-popup-actions .nw-download-btn__hint {
        font-size: 0.68rem;
    }
}

/* Short mobile screens */
@media (max-width: 768px) and (max-height: 640px) {
    .home-news-popup__image {
        aspect-ratio: 16 / 9;
        max-height: 34vh;
    }

    .home-news-popup__image img {
        max-height: 34vh;
    }

    .home-news-popup__body {
        padding-top: 0.9rem;
    }

    .home-news-popup__text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .home-news-popup {
        align-items: center;
        padding: 0.75rem;
    }

    .home-news-popup__dialog {
        width: min(640px, 96vw);
        max-height: 92dvh;
        border-radius: 16px;
        transform: translateY(16px) scale(0.97);
    }

    .home-news-popup.is-visible .home-news-popup__dialog {
        transform: translateY(0) scale(1);
    }

    .home-news-popup__content {
        flex-direction: row;
        max-height: min(88dvh, 420px);
    }

    .home-news-popup__image {
        flex: 0 0 42%;
        aspect-ratio: auto;
        max-height: none;
        border-radius: 16px 0 0 16px;
    }

    .home-news-popup__image-link {
        flex: 0 0 42%;
    }

    .home-news-popup__image img {
        object-fit: cover;
        object-position: center top;
    }

    .home-news-popup__body {
        padding: 1rem 3rem 1rem 1rem;
        overflow-y: auto;
    }

    .home-news-popup__text {
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }
}
