﻿@charset "UTF-8";

:root {
    --up-purple-900: #2d0b53;
    --up-purple-800: #4b1979;
    --up-purple-700: #6d2fb4;
    --up-purple-600: #8b58d9;
    --up-gold: #ffc94a;
    --up-gold-2: #ffe38b;
    --up-bg: #fcf9ff;
    --up-card: #ffffff;
    --up-text: #2b2140;
    --up-muted: #756b87;
    --up-border: rgba(75, 25, 121, .14);
    --up-shadow: 0 18px 45px rgba(49, 22, 82, .12);
    --up-shadow-lg: 0 30px 80px rgba(49, 22, 82, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Athiti', 'Sarabun', Tahoma, sans-serif;
    color: var(--up-text);
    background:
        radial-gradient(circle at 8% 14%, rgba(255, 201, 74, .16), transparent 22%),
        radial-gradient(circle at 90% 4%, rgba(139, 88, 217, .12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fbf8ff 55%, #ffffff 100%);
}

a { text-decoration: none; color: inherit; }
button, input { font: inherit; }

.up16-page {
    min-height: 100vh;
    overflow-x: clip;
    padding-bottom: 72px;
}

.up16-container {
    width: min(1220px, calc(100% - 34px));
    margin: 0 auto;
}

.up16-hero {
    position: relative;
    overflow: hidden;
    min-height: 730px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    border-radius: 0 0 44px 44px;
    background:
        linear-gradient(140deg, rgba(32, 8, 60, .98) 0%, rgba(75, 25, 121, .98) 42%, rgba(110, 51, 185, .96) 100%);
    box-shadow: 0 25px 80px rgba(59, 20, 101, .30);
}

.up16-hero::before {
    content: "16";
    position: absolute;
    right: 4%;
    top: -42px;
    font-size: clamp(150px, 20vw, 340px);
    line-height: 1;
    font-weight: 800;
    color: rgba(255,255,255,.06);
    letter-spacing: -14px;
}

.up16-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
    opacity: .55;
}

.up16-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
}
.up16-hero-glow-1 {
    width: 480px; height: 480px; left: -120px; bottom: -140px;
    background: radial-gradient(circle, rgba(255, 201, 74, .26), transparent 70%);
}
.up16-hero-glow-2 {
    width: 580px; height: 580px; right: -180px; top: -160px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 66%);
}

.up16-float,
.up16-spark {
    position: absolute;
    pointer-events: none;
}
.up16-float {
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(2px);
    animation: floatY 6s ease-in-out infinite;
}
.up16-float-a { width: 36px; height: 36px; left: 11%; top: 20%; animation-delay: 0s; }
.up16-float-b { width: 24px; height: 24px; right: 18%; top: 28%; animation-delay: .7s; }
.up16-float-c { width: 18px; height: 18px; left: 21%; bottom: 20%; animation-delay: 1.1s; }

.up16-spark {
    color: rgba(255, 228, 129, .95);
    font-size: 24px;
    text-shadow: 0 0 18px rgba(255, 201, 74, .45);
    animation: sparkle 3.5s ease-in-out infinite;
}
.up16-spark-1 { left: 15%; top: 16%; animation-delay: .2s; }
.up16-spark-2 { right: 20%; top: 17%; animation-delay: 1.2s; }
.up16-spark-3 { right: 12%; bottom: 26%; animation-delay: .6s; }
.up16-spark-4 { left: 9%; bottom: 30%; animation-delay: 1.8s; }

.up16-hero-inner {
    position: relative;
    z-index: 2;
    padding: 84px 0 96px;
}

.up16-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 700;
    color: #ffe7a0;
    border: 1px solid rgba(255, 201, 74, .42);
    background: rgba(255, 201, 74, .10);
    box-shadow: 0 10px 24px rgba(0,0,0,.10) inset;
}

.up16-hero h1 {
    margin: 18px auto 0;
    max-width: 980px;
    font-size: clamp(40px, 5.8vw, 76px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.8px;
    text-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.up16-hero p {
    margin: 22px auto 0;
    max-width: 860px;
    font-size: clamp(19px, 2.05vw, 25px);
    line-height: 1.78;
    color: rgba(255,255,255,.88);
}

.up16-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.up16-btn,
.up16-main-link,
.up16-section-link,
.up16-search-clear,
.up16-backtotop {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, opacity .22s ease;
}

.up16-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
}
.up16-btn:hover,
.up16-main-link:hover,
.up16-section-link:hover,
.up16-search-clear:hover,
.up16-backtotop:hover {
    transform: translateY(-2px) scale(1.01);
}

.up16-btn-gold {
    color: #38135f;
    background: linear-gradient(135deg, var(--up-gold-2), var(--up-gold));
    box-shadow: 0 18px 28px rgba(255, 201, 74, .26);
}
.up16-btn-outline {
    color: #fff;
    border: 1px solid rgba(255,255,255,.42);
    background: rgba(255,255,255,.08);
}

.up16-stat-row {
    margin: 42px auto 0;
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.up16-stat-card {
    padding: 18px 14px 16px;
    border-radius: 24px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.up16-stat-card strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    color: #fff2bc;
    font-weight: 800;
}
.up16-stat-card span {
    display: block;
    margin-top: 7px;
    font-size: 18px;
    color: rgba(255,255,255,.86);
}

.up16-toolbar {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: -40px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.55);
    backdrop-filter: blur(16px);
    box-shadow: var(--up-shadow-lg);
}

.up16-search-wrap {
    position: relative;
    flex: 1 1 430px;
}
.up16-search-label {
    position: absolute;
    width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.up16-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    opacity: .85;
}
.up16-search {
    width: 100%;
    min-height: 56px;
    padding: 13px 88px 13px 48px;
    font-size: 19px;
    font-weight: 600;
    color: var(--up-text);
    border-radius: 18px;
    outline: none;
    border: 1px solid rgba(75, 25, 121, .18);
    background: #fbf9ff;
}
.up16-search:focus {
    border-color: var(--up-purple-700);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(109, 47, 180, .10);
}
.up16-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    min-width: 62px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--up-purple-800), var(--up-purple-700));
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(75, 25, 121, .18);
}

.up16-main-link,
.up16-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 19px;
    font-weight: 800;
    color: var(--up-purple-800);
    white-space: nowrap;
    border: 1px solid rgba(255, 201, 74, .65);
    background: linear-gradient(135deg, #fff8db, #fff);
    box-shadow: 0 14px 30px rgba(75, 25, 121, .09);
}

.up16-section {
    padding-top: 74px;
}
.up16-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.up16-section-label {
    display: inline-block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--up-purple-700);
    margin-bottom: 4px;
}
.up16-section-head h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.15;
    color: var(--up-purple-800);
}
.up16-section-head p {
    margin: 8px 0 0;
    max-width: 760px;
    font-size: 19px;
    color: var(--up-muted);
    line-height: 1.65;
}

.up16-story-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.up16-story-card {
    position: relative;
    overflow: hidden;
    grid-column: span 3;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 28px;
    padding: 22px 20px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf9ff 100%);
    border: 1px solid var(--up-border);
    box-shadow: 0 14px 38px rgba(54, 25, 90, .08);
}
.up16-story-card::before {
    content: "";
    position: absolute;
    inset: auto -20px -34px auto;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 201, 74, .25), rgba(255,255,255,0) 68%);
}
.up16-story-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255, 201, 74, .45), rgba(109, 47, 180, .16)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .22s ease;
}
.up16-story-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(54, 25, 90, .15);
}
.up16-story-card:hover::after { opacity: 1; }

.up16-feature-card {
    grid-column: span 6;
    background: linear-gradient(145deg, rgba(75, 25, 121, .97), rgba(108, 51, 181, .96));
    color: #fff;
}
.up16-feature-card::before {
    background: radial-gradient(circle, rgba(255, 201, 74, .40), rgba(255,255,255,0) 66%);
}
.up16-feature-card h3,
.up16-feature-card p,
.up16-feature-card .up16-readmore,
.up16-feature-card .up16-card-no,
.up16-feature-card .up16-card-chip {
    color: #fff;
}
.up16-feature-card p { color: rgba(255,255,255,.86); }
.up16-feature-card .up16-card-chip {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}
.up16-feature-card .up16-card-no {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

.up16-card-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: var(--up-purple-800);
    background: #f6efff;
    border: 1px solid rgba(109, 47, 180, .16);
}

.up16-card-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    color: var(--up-purple-800);
    background: #fff7da;
    border: 1px solid rgba(255, 201, 74, .45);
}
.up16-story-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--up-text);
}
.up16-story-card p {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--up-muted);
}
.up16-readmore {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 17px;
    font-weight: 800;
    color: var(--up-purple-700);
}
.up16-readmore em {
    font-style: normal;
    transition: transform .2s ease;
}
.up16-story-card:hover .up16-readmore em {
    transform: translateX(4px);
}

.up16-sdg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.up16-sdg-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 118px;
    border-radius: 22px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--up-border);
    box-shadow: 0 10px 28px rgba(54, 25, 90, .06);
}
.up16-sdg-card::before {
    content: "";
    position: absolute;
    inset: auto -26px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 47, 180, .13), rgba(255,255,255,0) 68%);
}
.up16-sdg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(54, 25, 90, .12);
    border-color: rgba(109, 47, 180, .24);
}
.up16-sdg-card span {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--up-purple-800), var(--up-purple-700));
    box-shadow: 0 12px 20px rgba(75, 25, 121, .18);
}
.up16-sdg-card strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 21px;
    line-height: 1.35;
    color: var(--up-text);
}
.up16-sdg-card small {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 15px;
    color: var(--up-muted);
}

.up16-empty {
    display: none;
    margin-top: 24px;
    text-align: center;
    padding: 22px;
    border-radius: 22px;
    border: 1px dashed rgba(109, 47, 180, .24);
    background: #fff;
    color: var(--up-muted);
    font-size: 20px;
}

.up16-is-hidden { display: none !important; }

.up16-footer-note {
    padding-top: 44px;
}
.up16-footer-box {
    border-radius: 28px;
    padding: 26px 24px;
    background: linear-gradient(135deg, rgba(75, 25, 121, .98), rgba(109, 47, 180, .95));
    color: #fff;
    box-shadow: var(--up-shadow);
}
.up16-footer-box h3 {
    margin: 0;
    font-size: 28px;
}
.up16-footer-box p {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
}

.up16-backtotop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--up-purple-800), var(--up-purple-700));
    box-shadow: 0 18px 30px rgba(75, 25, 121, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.up16-backtotop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal-delay-3 { transition-delay: .32s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes sparkle {
    0%, 100% { opacity: .45; transform: scale(.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@media (max-width: 1199px) {
    .up16-story-card { grid-column: span 4; }
    .up16-feature-card { grid-column: span 6; }
}

@media (max-width: 991px) {
    .up16-hero {
        min-height: 680px;
        border-radius: 0 0 34px 34px;
    }
    .up16-stat-row,
    .up16-sdg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .up16-story-card { grid-column: span 6; }
    .up16-feature-card { grid-column: span 6; }
}

@media (max-width: 767px) {
    .up16-container { width: min(1220px, calc(100% - 24px)); }
    .up16-hero {
        min-height: 640px;
        border-radius: 0 0 28px 28px;
    }
    .up16-hero-inner { padding: 72px 0 86px; }
    .up16-stat-row,
    .up16-sdg-grid,
    .up16-story-grid {
        grid-template-columns: 1fr;
    }
    .up16-story-card,
    .up16-feature-card {
        grid-column: span 1;
        min-height: 228px;
    }
    .up16-toolbar {
        margin-top: -34px;
        padding: 16px;
        border-radius: 22px;
    }
    .up16-main-link,
    .up16-section-link {
        width: 100%;
    }
    .up16-hero-actions {
        gap: 12px;
    }
    .up16-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .up16-kicker { font-size: 17px; }
    .up16-hero p { font-size: 17px; line-height: 1.72; }
    .up16-stat-card strong { font-size: 34px; }
    .up16-stat-card span,
    .up16-section-head p,
    .up16-footer-box p { font-size: 17px; }
    .up16-story-card h3,
    .up16-sdg-card strong { font-size: 20px; }
    .up16-search { padding-right: 78px; }
    .up16-search-clear {
        min-width: 54px;
        padding: 0 12px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}


.up16-share-tools {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 18px;
    align-items: center;
    margin-top: 24px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(251,246,255,.96));
    border: 1px solid var(--up-border);
    box-shadow: var(--up-shadow);
}
.up16-share-intro h3 {
    margin: 6px 0 0;
    font-size: 30px;
    color: var(--up-purple-800);
}
.up16-share-intro p {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--up-muted);
}
.up16-share-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f5ecff;
    border: 1px solid rgba(109, 47, 180, .16);
    color: var(--up-purple-800);
    font-size: 15px;
    font-weight: 800;
}
.up16-share-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.up16-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 62px;
    padding: 12px 18px;
    border-radius: 22px;
    border: 1px solid var(--up-border);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    color: var(--up-text);
    background: #fff;
    box-shadow: 0 12px 24px rgba(54, 25, 90, .08);
}
.up16-share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(54, 25, 90, .14);
}
.up16-share-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    background: rgba(255,255,255,.2);
}
.up16-share-facebook {
    color: #fff;
    border-color: #365ec9;
    background: linear-gradient(135deg, #1877f2, #365ec9);
}
.up16-share-copy {
    color: var(--up-purple-800);
    border-color: rgba(255, 201, 74, .6);
    background: linear-gradient(135deg, #fff9e3, #fff);
}
.up16-share-qr {
    color: #fff;
    border-color: rgba(109, 47, 180, .4);
    background: linear-gradient(135deg, var(--up-purple-800), var(--up-purple-700));
}
.up16-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}
.up16-modal.is-open { display: block; }
.up16-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 8, 38, .6);
    backdrop-filter: blur(6px);
}
.up16-modal-dialog {
    position: relative;
    width: min(92vw, 560px);
    margin: 6vh auto;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0,0,0,.25);
    overflow: hidden;
}
.up16-modal-body {
    padding: 28px 26px 26px;
    text-align: center;
}
.up16-modal-body h3 {
    margin: 10px 0 0;
    font-size: 34px;
    color: var(--up-purple-800);
}
.up16-modal-body p {
    margin: 8px 0 0;
    color: var(--up-muted);
    font-size: 18px;
    line-height: 1.65;
}
.up16-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f5eefc;
    color: var(--up-purple-800);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.up16-qr-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    margin: 18px auto 0;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #faf6ff);
    border: 1px solid rgba(109, 47, 180, .12);
}
.up16-qr-preview canvas,
.up16-qr-preview img {
    max-width: 240px;
    width: 100%;
    height: auto;
    padding: 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 30px rgba(54,25,90,.09);
}
.up16-current-link-wrap {
    margin-top: 18px;
    text-align: left;
}
.up16-current-link-wrap label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--up-purple-800);
}
.up16-current-link {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(109, 47, 180, .18);
    background: #faf7ff;
    color: var(--up-text);
}
.up16-qr-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.up16-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 110;
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    visibility: hidden;
    min-width: 240px;
    max-width: calc(100vw - 40px);
    padding: 14px 18px;
    border-radius: 999px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--up-purple-800), var(--up-purple-700));
    box-shadow: 0 18px 30px rgba(75, 25, 121, .25);
    transition: all .25s ease;
}
.up16-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 991px) {
    .up16-share-tools {
        grid-template-columns: 1fr;
    }
    .up16-share-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .up16-share-intro h3 { font-size: 26px; }
    .up16-modal-body h3 { font-size: 28px; }
    .up16-modal-dialog { width: min(94vw, 560px); }
    .up16-qr-actions { grid-template-columns: 1fr; }
}


.up16-hero-mascots {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.up16-mascot {
    position: absolute;
    pointer-events: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.up16-mascot img,
.up16-mascot-mini img {
    display: block;
    width: 100%;
    height: auto;
}
.up16-mascot-girl {
    left: 2.5%;
    bottom: 12px;
    width: min(24vw, 330px);
    animation: mascotBob 5.3s ease-in-out infinite;
}
.up16-mascot-boy {
    right: 2.5%;
    bottom: 12px;
    width: min(24vw, 330px);
    animation: mascotBob 5.8s ease-in-out infinite .5s;
}
.up16-mascot img {
    border-radius: 0;
    filter: drop-shadow(0 22px 28px rgba(32, 8, 60, .24));
    transform-origin: center bottom;
}
.up16-mascot:hover img,
.up16-mascot.is-excited img,
.up16-mascot-mini:hover img,
.up16-mascot-mini.is-excited img {
    animation: mascotWave .9s ease-in-out 2;
}
.up16-mascot-bubble {
    max-width: 250px;
    padding: 10px 14px;
    border-radius: 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--up-purple-800);
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 24px rgba(32,8,60,.14);
    position: relative;
    animation: bubblePulse 3.5s ease-in-out infinite;
}
.up16-mascot-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: #fff;
    rotate: 45deg;
    border-radius: 4px;
}
.up16-mascot-orbit {
    position: absolute;
    inset: auto auto 40px auto;
    width: 110%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.22);
    opacity: .55;
    animation: orbitSpin 20s linear infinite;
}
.up16-mascot-note {
    margin-top: 18px;
}
.up16-mascot-note-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(251,246,255,.96));
    border: 1px solid var(--up-border);
    box-shadow: var(--up-shadow);
}
.up16-mascot-note-copy h3 {
    margin: 6px 0 0;
    font-size: 30px;
    color: var(--up-purple-800);
}
.up16-mascot-note-copy p {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--up-muted);
}
.up16-mascot-mini-row {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 14px;
}
.up16-mascot-mini {
    width: min(100%, 170px);
    border: 0;
    background: transparent;
    cursor: pointer;
    animation: mascotBob 5s ease-in-out infinite;
}
.up16-mascot-mini:nth-child(2) { animation-delay: .7s; }
.up16-mascot-mini img {
    border-radius: 0;
    filter: drop-shadow(0 16px 20px rgba(54, 25, 90, .14));
}

@keyframes mascotBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(-1deg); }
    50% { transform: translateY(-14px) rotate(0deg); }
    75% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes mascotWave {
    0% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-2deg) scale(1.02); }
    40% { transform: rotate(3deg) scale(1.03); }
    60% { transform: rotate(-2deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}
@keyframes bubblePulse {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .up16-mascot-girl { left: 1%; width: min(24vw, 300px); }
    .up16-mascot-boy { right: 1%; width: min(24vw, 300px); }
}
@media (max-width: 991px) {
    .up16-hero-mascots {
        position: static;
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 0 14px;
        margin-top: 18px;
        inset: auto;
    }
    .up16-mascot {
        position: relative;
        left: auto; right: auto; bottom: auto;
        width: min(45vw, 260px);
    }
    .up16-mascot-orbit { display: none; }
    .up16-mascot-note-inner { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .up16-mascot-bubble { font-size: 14px; max-width: 170px; padding: 9px 12px; }
    .up16-mascot { width: calc(50% - 8px); }
    .up16-mascot-note-copy h3 { font-size: 26px; }
    .up16-mascot-note-copy p { font-size: 17px; }
    .up16-mascot-mini { width: 130px; }
}


/* PNG Mascot transparent version */
.up16-mascot img,
.up16-mascot-mini img {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: drop-shadow(0 20px 24px rgba(32, 8, 60, .28));
}
.up16-mascot-mini img {
    filter: drop-shadow(0 14px 18px rgba(54, 25, 90, .18));
}
.up16-mascot-girl {
    width: min(24vw, 340px);
}
.up16-mascot-boy {
    width: min(20vw, 270px);
}
@media (max-width: 991px) {
    .up16-mascot {
        width: min(42vw, 240px);
    }
}
@media (max-width: 575px) {
    .up16-mascot {
        width: calc(48% - 8px);
    }
}


/* Kham Mok decorative flowers */
.up16-bloom-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.up16-bloom {
    position: absolute;
    display: block;
    opacity: .92;
    filter: drop-shadow(0 10px 18px rgba(255, 201, 74, .18));
    transform-origin: center center;
}
.up16-bloom img {
    display: block;
    width: 100%;
    height: auto;
}
.bloom-1 {
    width: 34px;
    left: 7%;
    top: 11%;
    animation: bloomFloatA 14s ease-in-out infinite, bloomSpin 26s linear infinite;
}
.bloom-2 {
    width: 58px;
    left: 13%;
    top: 35%;
    opacity: .84;
    animation: bloomFloatB 17s ease-in-out infinite, bloomSpinReverse 31s linear infinite;
}
.bloom-3 {
    width: 42px;
    left: 31%;
    top: 13%;
    opacity: .8;
    animation: bloomFloatA 16s ease-in-out infinite -2s, bloomSpin 28s linear infinite;
}
.bloom-4 {
    width: 32px;
    right: 26%;
    top: 16%;
    opacity: .86;
    animation: bloomFloatC 13s ease-in-out infinite -1s, bloomSpinReverse 24s linear infinite;
}
.bloom-5 {
    width: 50px;
    right: 11%;
    top: 28%;
    opacity: .88;
    animation: bloomFloatB 18s ease-in-out infinite -3s, bloomSpin 32s linear infinite;
}
.bloom-6 {
    width: 38px;
    right: 8%;
    bottom: 20%;
    opacity: .78;
    animation: bloomFloatA 15s ease-in-out infinite -2s, bloomSpinReverse 26s linear infinite;
}
.bloom-7 {
    width: 30px;
    left: 23%;
    bottom: 18%;
    opacity: .72;
    animation: bloomFloatC 19s ease-in-out infinite -4s, bloomSpin 34s linear infinite;
}

@keyframes bloomSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes bloomSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes bloomFloatA {
    0%, 100% { margin-top: 0; margin-left: 0; }
    50% { margin-top: -12px; margin-left: 6px; }
}
@keyframes bloomFloatB {
    0%, 100% { margin-top: 0; margin-left: 0; }
    50% { margin-top: 10px; margin-left: -7px; }
}
@keyframes bloomFloatC {
    0%, 100% { margin-top: 0; margin-left: 0; }
    50% { margin-top: -8px; margin-left: -6px; }
}

@media (max-width: 991px) {
    .bloom-2, .bloom-5 { width: 44px; }
    .bloom-1, .bloom-4, .bloom-6 { width: 28px; }
    .bloom-3, .bloom-7 { width: 24px; }
    .bloom-3, .bloom-7 { display: none; }
}
@media (max-width: 575px) {
    .bloom-2 { left: 6%; top: 26%; }
    .bloom-5 { right: 4%; top: 22%; width: 38px; }
    .bloom-1, .bloom-4, .bloom-6 { width: 22px; }
    .bloom-2 { width: 34px; }
    .bloom-3, .bloom-7 { display: none; }
}


/* Fix contrast for featured story cards */
.up16-feature-card {
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 201, 74, .22), transparent 28%),
        linear-gradient(145deg, #34105a 0%, #4b1979 46%, #5d259a 100%) !important;
    border-color: rgba(255, 201, 74, .38) !important;
}

.up16-feature-card::before {
    background: radial-gradient(circle, rgba(255, 201, 74, .28), rgba(255,255,255,0) 68%) !important;
}

.up16-feature-card .up16-card-chip {
    color: #3a155d !important;
    background: linear-gradient(135deg, #fff2bc, #ffc94a) !important;
    border-color: rgba(255,255,255,.36) !important;
}

.up16-feature-card .up16-card-no {
    color: #3a155d !important;
    background: #fff2bc !important;
    border-color: rgba(255,255,255,.45) !important;
}

.up16-feature-card h3 {
    color: #ffffff !important;
    text-shadow: 0 3px 14px rgba(0,0,0,.38);
}

.up16-feature-card p {
    color: rgba(255,255,255,.94) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.up16-feature-card .up16-readmore {
    color: #ffe38b !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ===== Modern UX Add-on: highlight / category filter / progress / sticky nav ===== */
.up16-modern-highlight {
    margin-top: 34px;
}

.up16-modern-highlight-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 20px;
}

.up16-modern-highlight-head h2 {
    margin: 8px 0 0;
    color: var(--up-purple-800);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
}

.up16-modern-highlight-head p {
    margin: 8px 0 0;
    color: var(--up-muted);
    font-size: 18px;
    line-height: 1.65;
}

.up16-highlight-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 16px;
}

.up16-highlight-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 18%, rgba(255, 201, 74, .18), transparent 32%),
        linear-gradient(180deg, #fff, #fbf8ff);
    border: 1px solid rgba(75,25,121,.13);
    box-shadow: 0 18px 42px rgba(54,25,90,.10);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.up16-highlight-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,47,180,.12), transparent 70%);
}

.up16-highlight-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 60px rgba(54,25,90,.16);
    border-color: rgba(255,201,74,.48);
}

.up16-highlight-main {
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 201, 74, .28), transparent 32%),
        linear-gradient(135deg, var(--up-purple-900), var(--up-purple-700));
}

.up16-highlight-no {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a155d;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(255,201,74,.24);
}

.up16-highlight-card div,
.up16-highlight-card em {
    position: relative;
    z-index: 1;
}

.up16-highlight-card small {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--up-purple-700);
    font-size: 15px;
    font-weight: 800;
}

.up16-highlight-card h3 {
    margin: 0;
    color: var(--up-text);
    font-size: clamp(23px, 2.2vw, 31px);
    line-height: 1.25;
}

.up16-highlight-card p {
    margin: 9px 0 0;
    color: var(--up-muted);
    font-size: 17px;
    line-height: 1.58;
}

.up16-highlight-card em {
    font-style: normal;
    color: var(--up-purple-700);
    font-size: 17px;
    font-weight: 800;
}

.up16-highlight-main small,
.up16-highlight-main h3,
.up16-highlight-main p,
.up16-highlight-main em {
    color: #fff;
}

.up16-highlight-main p {
    color: rgba(255,255,255,.86);
}

.up16-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(75,25,121,.11);
    box-shadow: 0 12px 30px rgba(54,25,90,.07);
}

.up16-category-filter button {
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid rgba(75,25,121,.12);
    border-radius: 999px;
    color: var(--up-purple-800);
    background: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.up16-category-filter button:hover {
    transform: translateY(-2px);
    border-color: rgba(255,201,74,.55);
}

.up16-category-filter button.is-active {
    color: #3a155d;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    border-color: rgba(255,201,74,.75);
    box-shadow: 0 12px 22px rgba(255,201,74,.18);
}

@media (max-width: 991px) {
    .up16-highlight-grid {
        grid-template-columns: 1fr;
    }

    .up16-highlight-card {
        min-height: 210px;
    }
}

@media (max-width: 575px) {
.up16-category-filter button {
        flex: 1 1 100%;
    }
}


/* ===== Mobile Ready Patch: รองรับการดูผ่านมือถือ ===== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
canvas,
iframe {
    max-width: 100%;
}

@media (max-width: 767px) {
    body {
        background:
            radial-gradient(circle at 12% 6%, rgba(255, 201, 74, .14), transparent 22%),
            radial-gradient(circle at 92% 2%, rgba(139, 88, 217, .11), transparent 25%),
            linear-gradient(180deg, #ffffff 0%, #fbf8ff 58%, #ffffff 100%);
    }

    .up16-page {
        padding-bottom: 46px;
        overflow-x: hidden;
    }

    .up16-container {
        width: calc(100% - 22px);
    }

    .up16-hero {
        display: block;
        min-height: auto;
        border-radius: 0 0 26px 26px;
        text-align: center;
        padding: 34px 0 24px;
    }

    .up16-hero::before {
        right: -8px;
        top: 8px;
        font-size: 124px;
        letter-spacing: -7px;
        opacity: .85;
    }

    .up16-hero-grid {
        background-size: 42px 42px;
        opacity: .38;
    }

    .up16-hero-inner {
        padding: 28px 0 22px;
        position: relative;
        z-index: 4;
    }

    .up16-kicker {
        max-width: 100%;
        padding: 8px 13px;
        font-size: 15px;
        line-height: 1.35;
    }

    .up16-hero h1 {
        margin-top: 14px;
        max-width: 100%;
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.12;
        letter-spacing: -.3px;
    }

    .up16-hero p {
        margin-top: 14px;
        max-width: 100%;
        font-size: 16.5px;
        line-height: 1.68;
    }

    .up16-hero-actions {
        margin-top: 22px;
        gap: 10px;
    }

    .up16-btn {
        width: 100%;
        min-height: 50px;
        padding: 11px 18px;
        font-size: 18px;
    }

    .up16-stat-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
        max-width: 100%;
    }

    .up16-stat-card {
        padding: 14px 12px;
        border-radius: 20px;
    }

    .up16-stat-card strong {
        font-size: 31px;
    }

    .up16-stat-card span {
        font-size: 16px;
    }

    .up16-hero-mascots {
        position: static;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 8px;
        margin: 4px auto 0;
        padding: 0 10px;
        width: 100%;
        pointer-events: auto;
    }

    .up16-mascot {
        position: relative;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: min(44vw, 170px) !important;
        flex: 0 1 auto;
    }

    .up16-mascot-bubble {
        display: none;
    }

    .up16-mascot-orbit {
        display: none;
    }

    .up16-toolbar {
        margin-top: 14px;
        padding: 12px;
        border-radius: 20px;
        gap: 10px;
    }

    .up16-search-wrap {
        flex: 1 1 100%;
    }

    .up16-search {
        min-height: 50px;
        padding: 11px 74px 11px 42px;
        font-size: 16.5px;
        border-radius: 16px;
    }

    .up16-search-icon {
        left: 14px;
        font-size: 17px;
    }

    .up16-search-clear {
        right: 8px;
        min-width: 52px;
        height: 34px;
        padding: 0 10px;
        font-size: 14px;
    }

    .up16-main-link,
    .up16-section-link {
        width: 100%;
        min-height: 48px;
        font-size: 17px;
    }

    .up16-share-tools {
        margin-top: 16px;
        padding: 16px;
        border-radius: 22px;
    }

    .up16-share-intro h3,
    .up16-mascot-note-copy h3,
    .up16-modern-highlight-head h2 {
        font-size: 25px;
        line-height: 1.25;
    }

    .up16-share-intro p,
    .up16-mascot-note-copy p,
    .up16-modern-highlight-head p {
        font-size: 16px;
        line-height: 1.6;
    }

    .up16-share-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .up16-share-btn {
        min-height: 52px;
        border-radius: 18px;
        font-size: 17px;
    }

    .up16-mascot-note {
        margin-top: 14px;
    }

    .up16-mascot-note-inner {
        padding: 16px;
        border-radius: 22px;
    }

    .up16-mascot-mini-row {
        gap: 8px;
    }

    .up16-mascot-mini {
        width: min(42vw, 130px);
    }

    .up16-modern-highlight {
        margin-top: 30px;
    }

    .up16-highlight-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .up16-highlight-card {
        min-height: auto;
        padding: 18px;
        border-radius: 24px;
    }

    .up16-highlight-no {
        width: 50px;
        height: 50px;
        border-radius: 17px;
        font-size: 19px;
    }

    .up16-highlight-card h3 {
        font-size: 22px;
        line-height: 1.28;
    }

    .up16-highlight-card p,
    .up16-highlight-card em {
        font-size: 16px;
    }

    .up16-section {
        padding-top: 44px;
    }

    .up16-section-head {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .up16-section-label {
        font-size: 16px;
    }

    .up16-section-head h2 {
        font-size: 29px;
        line-height: 1.2;
    }

    .up16-section-head p {
        font-size: 16.5px;
        line-height: 1.58;
    }

    .up16-category-filter {
        gap: 8px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 16px;
    }

    .up16-category-filter button {
        flex: 1 1 100%;
        min-height: 42px;
        padding: 8px 12px;
        font-size: 15.5px;
    }

    .up16-story-grid,
    .up16-sdg-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .up16-story-card,
    .up16-feature-card {
        grid-column: span 1 !important;
        min-height: auto;
        padding: 18px;
        border-radius: 23px;
    }

    .up16-card-chip {
        margin-bottom: 9px;
        padding: 5px 10px;
        font-size: 14px;
    }

    .up16-card-no {
        width: 50px;
        height: 34px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .up16-story-card h3,
    .up16-sdg-card strong {
        font-size: 20px;
        line-height: 1.32;
    }

    .up16-story-card p {
        margin-top: 8px;
        font-size: 16px;
        line-height: 1.55;
    }

    .up16-readmore {
        padding-top: 14px;
        font-size: 16px;
    }

    .up16-sdg-card {
        min-height: auto;
        padding: 16px;
        border-radius: 20px;
    }

    .up16-sdg-card span {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 16px;
    }

    .up16-sdg-card small {
        font-size: 14.5px;
    }

    .up16-empty {
        font-size: 17px;
        padding: 18px;
    }

    .up16-footer-note {
        padding-top: 34px;
    }

    .up16-footer-box {
        padding: 20px 18px;
        border-radius: 24px;
    }

    .up16-footer-box h3 {
        font-size: 24px;
        line-height: 1.25;
    }

    .up16-footer-box p {
        font-size: 16px;
    }

    .up16-backtotop {
        right: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 21px;
    }

    .up16-modal-dialog {
        width: calc(100% - 22px);
        margin: 4vh auto;
        border-radius: 24px;
    }

    .up16-modal-body {
        padding: 24px 16px 18px;
    }

    .up16-modal-body h3 {
        font-size: 26px;
    }

    .up16-modal-body p {
        font-size: 16px;
    }

    .up16-qr-preview {
        min-height: 230px;
        padding: 14px;
    }

    .up16-qr-actions {
        grid-template-columns: 1fr;
    }

    .bloom-1,
    .bloom-4,
    .bloom-6 {
        width: 22px;
    }

    .bloom-2,
    .bloom-5 {
        width: 34px;
    }

    .bloom-3,
    .bloom-7 {
        display: none;
    }

    .up16-spark {
        font-size: 18px;
    }
}

@media (max-width: 390px) {
    .up16-container {
        width: calc(100% - 18px);
    }

    .up16-hero h1 {
        font-size: 31px;
    }

    .up16-hero p {
        font-size: 15.8px;
    }

    .up16-mascot {
        width: min(45vw, 150px) !important;
    }

    .up16-share-badge {
        font-size: 14px;
    }

    .up16-section-head h2,
    .up16-modern-highlight-head h2 {
        font-size: 26px;
    }

    .up16-story-card h3,
    .up16-sdg-card strong,
    .up16-highlight-card h3 {
        font-size: 19px;
    }
}


/* ===== Story Cover + Status Badge Add-on ===== */
.up16-story-cover {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: -4px 0 16px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(75, 25, 121, .16), rgba(255, 201, 74, .16));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 14px 26px rgba(54, 25, 90, .10);
}

.up16-story-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .35s ease, filter .35s ease;
}

.up16-story-card:hover .up16-story-cover img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.03);
}

.up16-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(20, 8, 36, .16);
}

.up16-status-ready {
    color: #2c1551;
    background: rgba(255, 227, 139, .94);
    border: 1px solid rgba(255,255,255,.35);
}

.up16-status-building {
    color: #ffffff;
    background: rgba(75, 25, 121, .76);
    border: 1px solid rgba(255,255,255,.22);
}

.up16-feature-card .up16-story-cover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 18px 34px rgba(0, 0, 0, .16);
}

.up16-feature-card .up16-story-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45,11,83,0) 40%, rgba(45,11,83,.26) 100%);
    pointer-events: none;
}

/* Stronger ending section */
.up16-footer-wow {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 46px);
    text-align: center;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 201, 74, .30), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,.12), transparent 26%),
        linear-gradient(135deg, var(--up-purple-900), var(--up-purple-700));
}

.up16-footer-wow::after {
    content: "16";
    position: absolute;
    right: 24px;
    bottom: -44px;
    font-size: clamp(110px, 16vw, 220px);
    line-height: 1;
    font-weight: 800;
    color: rgba(255,255,255,.06);
    letter-spacing: -8px;
}

.up16-footer-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #3a155d;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    font-size: 15px;
    font-weight: 800;
}

.up16-footer-wow h3,
.up16-footer-wow p,
.up16-footer-actions {
    position: relative;
    z-index: 1;
}

.up16-footer-wow h3 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.18;
}

.up16-footer-wow p {
    max-width: 760px;
    margin: 12px auto 0;
    font-size: clamp(18px, 2vw, 23px);
}

.up16-footer-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.up16-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 999px;
    color: #3a155d;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(255, 201, 74, .22);
    transition: transform .22s ease, box-shadow .22s ease;
}

.up16-footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(255, 201, 74, .30);
}

.up16-footer-btn-outline {
    color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: none;
}

@media (max-width: 767px) {
    .up16-story-cover {
        margin-bottom: 13px;
        border-radius: 18px;
    }

    .up16-status-badge {
        top: 9px;
        right: 9px;
        min-height: 28px;
        padding: 5px 9px;
        font-size: 13px;
    }

    .up16-footer-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .up16-footer-btn {
        width: 100%;
        font-size: 17px;
    }
}


/* ===== Story Card Meta Row: จัดหมวดเรื่อง + เลขเรื่องให้อยู่บรรทัดเดียวกัน ===== */
.up16-card-meta-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.up16-card-meta-row .up16-card-chip,
.up16-card-meta-row .up16-card-no {
    margin: 0;
}

.up16-card-meta-row .up16-card-no {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .up16-card-meta-row {
        gap: 8px;
        margin-bottom: 12px;
    }

    .up16-card-meta-row .up16-card-chip {
        font-size: 14px;
    }

    .up16-card-meta-row .up16-card-no {
        width: 46px;
        height: 32px;
        font-size: 15px;
    }
}



/* ===== Editorial Story Timeline: ลดความเป็นบล็อกของ 16 เรื่องเล่า ===== */
.up16-editorial-list {
    position: relative;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 0;
}

.up16-editorial-list::before {
    display: none !important;
}

.up16-editorial-list .up16-story-card,
.up16-editorial-list .up16-feature-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    gap: clamp(22px, 3.2vw, 52px);
    align-items: center;
    width: 100%;
    min-height: auto;
    padding: clamp(28px, 4vw, 52px) 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--up-text);
    overflow: visible;
}

.up16-editorial-list .up16-story-card + .up16-story-card {
    border-top: 1px solid rgba(75,25,121,.10) !important;
}

.up16-editorial-list .up16-story-card::before,
.up16-editorial-list .up16-story-card::after,
.up16-editorial-list .up16-feature-card::before,
.up16-editorial-list .up16-feature-card::after {
    display: none !important;
}

.up16-editorial-list .up16-story-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
}

.up16-editorial-list .up16-story-card:nth-child(even) .up16-story-cover {
    grid-column: 2;
}

.up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
    align-items: flex-end;
}

.up16-editorial-list .up16-story-card:nth-child(even) .up16-card-meta-row {
    justify-content: flex-end;
}

/* image side */
.up16-editorial-list .up16-story-cover {
    grid-column: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    border-radius: clamp(24px, 3vw, 34px);
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(54, 25, 90, .14);
    transform: none;
}

.up16-editorial-list .up16-story-card:hover .up16-story-cover {
    transform: translateY(-4px);
}

.up16-editorial-list .up16-story-cover::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(255,201,74,.26);
    pointer-events: none;
}

/* content side */
.up16-editorial-list .up16-story-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
}

.up16-editorial-list .up16-story-content::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 16px;
    width: 5px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--up-gold), rgba(109,47,180,.85));
    opacity: .72;
    box-shadow: 0 0 0 7px rgba(255, 201, 74, .08);
}

.up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content::before {
    left: auto;
    right: -18px;
}

.up16-editorial-list .up16-story-content::after {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,47,180,.07), transparent 68%);
    pointer-events: none;
}

.up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content::after {
    right: auto;
    left: 0;
}

.up16-editorial-list .up16-card-meta-row {
    margin-bottom: 14px;
    gap: 10px;
}

.up16-editorial-list .up16-card-no {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: rgba(75, 25, 121, .11) !important;
    font-size: clamp(54px, 6.5vw, 96px);
    line-height: .84;
    letter-spacing: -4px;
    font-weight: 800;
}

.up16-editorial-list .up16-card-chip {
    margin: 0;
    color: var(--up-purple-800) !important;
    background: rgba(245, 236, 255, .88) !important;
    border: 1px solid rgba(109,47,180,.14) !important;
    box-shadow: 0 10px 18px rgba(54,25,90,.05);
}

.up16-editorial-list .up16-story-card h3,
.up16-editorial-list .up16-feature-card h3 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: var(--up-purple-800) !important;
    font-size: clamp(28px, 3.05vw, 46px);
    line-height: 1.16;
    letter-spacing: -.25px;
    text-shadow: none !important;
}

.up16-editorial-list .up16-story-card p,
.up16-editorial-list .up16-feature-card p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-top: 14px;
    color: var(--up-muted) !important;
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.72;
    text-shadow: none !important;
}

.up16-editorial-list .up16-readmore,
.up16-editorial-list .up16-feature-card .up16-readmore {
    width: fit-content;
    margin-top: 18px;
    padding: 0 0 6px;
    color: var(--up-purple-700) !important;
    border-bottom: 2px solid rgba(255,201,74,.72);
    text-shadow: none !important;
}

.up16-editorial-list .up16-readmore:hover {
    color: var(--up-purple-800) !important;
}

.up16-editorial-list .up16-status-badge {
    top: 14px;
    right: 14px;
}

/* mobile/tablet */
@media (max-width: 991px) {
    .up16-editorial-list .up16-story-card,
    .up16-editorial-list .up16-feature-card,
    .up16-editorial-list .up16-story-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }

    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-cover,
    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content {
        grid-column: auto;
        grid-row: auto;
        text-align: left;
        align-items: flex-start;
    }

    .up16-editorial-list .up16-story-card:nth-child(even) .up16-card-meta-row {
        justify-content: flex-start;
    }

    .up16-editorial-list .up16-story-cover,
    .up16-editorial-list .up16-story-card:hover .up16-story-cover {
        transform: none;
        border-radius: 24px;
    }

    .up16-editorial-list .up16-story-content {
        padding-left: 22px;
        padding-top: 4px;
    }

    .up16-editorial-list .up16-story-content::before,
    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content::before {
        left: 0;
        right: auto;
        top: 8px;
        width: 4px;
        height: 76px;
        box-shadow: 0 0 0 6px rgba(255, 201, 74, .08);
    }

    .up16-editorial-list .up16-story-content::after,
    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content::after {
        left: auto;
        right: 0;
        width: 120px;
        height: 120px;
    }

    .up16-editorial-list .up16-card-no {
        font-size: clamp(42px, 13vw, 70px);
        letter-spacing: -2px;
    }

    .up16-editorial-list .up16-story-card h3,
    .up16-editorial-list .up16-feature-card h3 {
        font-size: clamp(25px, 7vw, 34px);
    }
}

@media (max-width: 575px) {
    .up16-editorial-list .up16-story-card,
    .up16-editorial-list .up16-feature-card {
        padding: 24px 0;
    }

    .up16-editorial-list .up16-story-cover {
        aspect-ratio: 16 / 10.5;
        border-radius: 20px;
        box-shadow: 0 18px 42px rgba(54,25,90,.13);
    }

    .up16-editorial-list .up16-story-content {
        padding-left: 18px;
    }

    .up16-editorial-list .up16-card-meta-row {
        gap: 8px;
        margin-bottom: 10px;
    }

    .up16-editorial-list .up16-card-chip {
        font-size: 13.5px;
    }

    .up16-editorial-list .up16-card-no {
        font-size: 46px;
    }

    .up16-editorial-list .up16-story-card p,
    .up16-editorial-list .up16-feature-card p {
        font-size: 16px;
        line-height: 1.62;
    }
}

/* tiny decorative dot to keep the timeline feeling */
.up16-editorial-list .up16-story-card::marker {
    display: none;
}

.up16-editorial-list .up16-story-content::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 20px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--up-gold), var(--up-purple-600));
    box-shadow: 0 0 0 7px rgba(255,201,74,.12);
}

.up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content::before {
    left: auto;
    right: -22px;
}

@media (max-width: 991px) {
    .up16-editorial-list::before {
        left: 18px;
    }

    .up16-editorial-list .up16-story-card,
    .up16-editorial-list .up16-feature-card,
    .up16-editorial-list .up16-story-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }

    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-cover,
    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content {
        grid-column: auto;
        grid-row: auto;
        text-align: left;
        align-items: flex-start;
    }

    .up16-editorial-list .up16-story-card:nth-child(even) .up16-card-meta-row {
        justify-content: flex-start;
    }

    .up16-editorial-list .up16-story-cover,
    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-cover,
    .up16-editorial-list .up16-story-card:hover .up16-story-cover {
        transform: none;
        border-radius: 24px;
    }

    .up16-editorial-list .up16-story-content {
        padding-left: 36px;
    }

    .up16-editorial-list .up16-story-content::before,
    .up16-editorial-list .up16-story-card:nth-child(even) .up16-story-content::before {
        left: 0;
        right: auto;
        top: 16px;
    }

    .up16-editorial-list .up16-card-no {
        font-size: clamp(44px, 14vw, 72px);
        letter-spacing: -2px;
    }

    .up16-editorial-list .up16-story-card h3,
    .up16-editorial-list .up16-feature-card h3 {
        font-size: clamp(25px, 7vw, 34px);
    }
}

@media (max-width: 575px) {
    .up16-editorial-list {
        gap: 0;
    }

    .up16-editorial-list::before {
        left: 13px;
    }

    .up16-editorial-list .up16-story-card,
    .up16-editorial-list .up16-feature-card {
        padding: 24px 0;
    }

    .up16-editorial-list .up16-story-content {
        padding-left: 30px;
    }

    .up16-editorial-list .up16-story-cover {
        aspect-ratio: 16 / 10.5;
        border-radius: 20px;
        box-shadow: 0 18px 42px rgba(54,25,90,.13);
    }

    .up16-editorial-list .up16-card-meta-row {
        gap: 8px;
        margin-bottom: 10px;
    }

    .up16-editorial-list .up16-card-chip {
        font-size: 13.5px;
    }

    .up16-editorial-list .up16-card-no {
        font-size: 50px;
    }

    .up16-editorial-list .up16-story-card p,
    .up16-editorial-list .up16-feature-card p {
        font-size: 16px;
        line-height: 1.62;
    }
}


/* ===== University Logo Placement ===== */
.up16-hero {
    position: relative;
}

.up16-hero-brand {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: min(360px, calc(100% - 44px));
    padding: 10px 16px 10px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 14px 28px rgba(30, 10, 58, .18);
    backdrop-filter: blur(14px);
}

.up16-hero-brand-logo {
    width: 50px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.12));
}

.up16-hero-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.up16-hero-brand-text strong {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.2px;
}

.up16-hero-brand-text span {
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.3;
}

.up16-footer-wow {
    position: relative;
    isolation: isolate;
}

.up16-footer-watermark {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: clamp(120px, 16vw, 210px);
    height: auto;
    opacity: .08;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(100%) brightness(2.1);
}

.up16-footer-wow .up16-footer-kicker,
.up16-footer-wow h3,
.up16-footer-wow p,
.up16-footer-wow .up16-footer-actions {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .up16-hero-brand {
        top: 16px;
        left: 16px;
        padding: 9px 14px 9px 10px;
        border-radius: 18px;
        max-width: calc(100% - 32px);
    }

    .up16-hero-brand-logo {
        width: 42px;
    }

    .up16-hero-brand-text strong {
        font-size: 17px;
    }

    .up16-hero-brand-text span {
        font-size: 13px;
    }

    .up16-footer-watermark {
        width: 128px;
        right: 14px;
        bottom: 12px;
        opacity: .07;
    }
}

@media (max-width: 767px) {
    .up16-hero-brand {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 14px;
        justify-content: center;
        max-width: 100%;
    }

    .up16-hero-brand-logo {
        width: 40px;
    }

    .up16-hero-brand-text strong {
        font-size: 16px;
    }

    .up16-footer-watermark {
        width: 108px;
        opacity: .06;
    }
}



/* ===== University Logo Visible Fix ===== */
.up16-hero-brand {
    position: absolute !important;
    top: 22px !important;
    left: 22px !important;
    z-index: 50 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: min(360px, calc(100% - 44px)) !important;
    padding: 10px 16px 10px 12px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .18) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    box-shadow: 0 16px 32px rgba(30, 10, 58, .22) !important;
    backdrop-filter: blur(14px);
}

.up16-hero-brand-logo {
    display: block !important;
    width: 54px !important;
    height: auto !important;
    flex: 0 0 auto !important;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.up16-hero-brand-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    text-align: left !important;
}

.up16-hero-brand-text strong {
    display: block !important;
    color: #fff !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -.2px !important;
}

.up16-hero-brand-text span {
    display: block !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.up16-footer-watermark {
    opacity: .10 !important;
}

@media (max-width: 991px) {
    .up16-hero-brand {
        top: 16px !important;
        left: 16px !important;
        max-width: calc(100% - 32px) !important;
        padding: 9px 14px 9px 10px !important;
        border-radius: 18px !important;
    }

    .up16-hero-brand-logo {
        width: 46px !important;
    }

    .up16-hero-brand-text strong {
        font-size: 17px !important;
    }

    .up16-hero-brand-text span {
        font-size: 13px !important;
    }
}

@media (max-width: 767px) {
    .up16-hero-brand {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 0 auto 14px !important;
        justify-content: center !important;
        max-width: 100% !important;
    }

    .up16-hero-brand-logo {
        width: 42px !important;
    }

    .up16-hero-brand-text strong {
        font-size: 16px !important;
    }
}



/* ===== Hero Logo Centered Above Anniversary Kicker ===== */
.up16-hero-inner .up16-hero-brand {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto 14px !important;
    justify-content: center !important;
    max-width: fit-content !important;
    padding: 10px 18px 10px 14px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .16) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    box-shadow: 0 16px 30px rgba(30, 10, 58, .18) !important;
    text-align: center !important;
}

.up16-hero-inner .up16-hero-brand-text {
    align-items: flex-start;
    text-align: left;
}

.up16-hero-inner .up16-hero-brand-logo {
    width: 56px !important;
}

@media (max-width: 767px) {
    .up16-hero-inner .up16-hero-brand {
        margin-bottom: 12px !important;
        max-width: 100% !important;
        width: fit-content;
    }

    .up16-hero-inner .up16-hero-brand-logo {
        width: 44px !important;
    }
}



/* ===== Force visible centered Hero logo ===== */
.up16-hero-inner .up16-hero-brand {
    position: relative !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto 14px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    max-width: fit-content !important;
    padding: 10px 18px 10px 14px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .16) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    box-shadow: 0 16px 30px rgba(30, 10, 58, .18) !important;
    text-align: center !important;
    z-index: 8 !important;
    backdrop-filter: blur(12px);
}

.up16-hero-inner .up16-hero-brand-logo {
    display: block !important;
    width: 56px !important;
    height: auto !important;
    flex: 0 0 auto !important;
}

.up16-hero-inner .up16-hero-brand-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    text-align: left !important;
}

.up16-hero-inner .up16-hero-brand-text strong {
    display: block !important;
    color: #fff !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.up16-hero-inner .up16-hero-brand-text span {
    display: block !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

@media (max-width: 767px) {
    .up16-hero-inner .up16-hero-brand {
        max-width: 100% !important;
        padding: 9px 14px 9px 12px !important;
        margin-bottom: 12px !important;
    }
    .up16-hero-inner .up16-hero-brand-logo {
        width: 44px !important;
    }
    .up16-hero-inner .up16-hero-brand-text strong {
        font-size: 16px !important;
    }
    .up16-hero-inner .up16-hero-brand-text span {
        font-size: 13px !important;
    }
}



/* ===== Hero logo above anniversary text ===== */
.up16-hero-logo-top {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 12px !important;
    position: relative !important;
    z-index: 9 !important;
    width: 100% !important;
}

.up16-hero-logo-top-img {
    display: block !important;
    width: 92px !important;
    height: auto !important;
    max-width: 100% !important;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
}

.up16-hero-inner .up16-kicker {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .up16-hero-logo-top {
        margin-bottom: 10px !important;
    }

    .up16-hero-logo-top-img {
        width: 72px !important;
    }
}




/* ===== Premium glow animation around hero logo ===== */
.up16-hero-logo-top {
    position: relative !important;
    isolation: isolate;
    padding: 4px 0 12px;
}

.up16-hero-logo-top::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 138px;
    height: 138px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 234, 170, .48) 0%, rgba(255, 220, 130, .24) 32%, rgba(255, 220, 130, .08) 52%, rgba(255, 220, 130, 0) 74%);
    filter: blur(14px);
    opacity: .88;
    z-index: 0;
    pointer-events: none;
    animation: up16LogoAuraPulse 6.2s ease-in-out infinite;
}

.up16-hero-logo-top::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 48%;
    width: 190px;
    height: 112px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background:
        radial-gradient(ellipse at center, rgba(255,255,255,.20) 0%, rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 72%),
        linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255, 232, 170, .16) 20%, rgba(255,255,255,.10) 50%, rgba(255, 232, 170, .16) 80%, rgba(255,255,255,0) 100%);
    filter: blur(18px);
    opacity: .72;
    z-index: 0;
    pointer-events: none;
    animation: up16LogoSheenDrift 9s ease-in-out infinite;
}

.up16-hero-logo-top-img {
    position: relative;
    z-index: 2;
    display: block !important;
    width: 92px !important;
    height: auto !important;
    filter:
        drop-shadow(0 14px 26px rgba(24, 8, 40, .18))
        drop-shadow(0 0 18px rgba(255, 220, 130, .18));
    animation: up16LogoFloat 7.2s ease-in-out infinite;
}

@keyframes up16LogoAuraPulse {
    0%, 100% {
        opacity: .74;
        transform: translate(-50%, -50%) scale(.95);
    }
    50% {
        opacity: .96;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

@keyframes up16LogoSheenDrift {
    0%, 100% {
        opacity: .55;
        transform: translate(-50%, -50%) scale(.94);
    }
    50% {
        opacity: .82;
        transform: translate(-50%, -50%) scale(1.03);
    }
}

@keyframes up16LogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 767px) {
    .up16-hero-logo-top {
        padding-bottom: 10px;
    }

    .up16-hero-logo-top::before {
        width: 114px;
        height: 114px;
        filter: blur(12px);
    }

    .up16-hero-logo-top::after {
        width: 152px;
        height: 92px;
        filter: blur(14px);
        opacity: .64;
    }

    .up16-hero-logo-top-img {
        width: 72px !important;
    }
}





/* ===== Grouped UP SDG Section by Dimensions ===== */
.up16-sdg-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 22px;
}

.up16-sdg-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 22px;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--up-purple-800), var(--up-purple-700));
    box-shadow: 0 18px 42px rgba(54,25,90,.12);
}

.up16-sdg-overview-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -42px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}

.up16-sdg-overview-card span {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a155d;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(255,201,74,.20);
}

.up16-sdg-overview-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 16px;
    font-size: 25px;
    line-height: 1.25;
}

.up16-sdg-overview-card small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 6px;
    font-size: 17px;
    color: rgba(255,255,255,.82);
}

.up16-sdg-social {
    background: linear-gradient(135deg, #4b1979, #8b58d9);
}

.up16-sdg-environment {
    background: linear-gradient(135deg, #315e50, #6b8f57);
}

.up16-sdg-dimension-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.up16-sdg-dimension {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 34px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(75,25,121,.12);
    box-shadow: 0 18px 46px rgba(54,25,90,.08);
}

.up16-sdg-dimension::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 95% 0%, rgba(255,201,74,.16), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(109,47,180,.08), transparent 26%);
    pointer-events: none;
}

.up16-sdg-dimension-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.up16-sdg-dimension-head span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--up-purple-800);
    background: #f5ecff;
    font-size: 15px;
    font-weight: 800;
}

.up16-sdg-dimension-head h3 {
    margin: 8px 0 0;
    color: var(--up-purple-800);
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.18;
}

.up16-sdg-dimension-head > strong {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #3a155d;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(255,201,74,.16);
}

.up16-sdg-project-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.up16-sdg-project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 215px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(75,25,121,.11);
    box-shadow: 0 12px 30px rgba(54,25,90,.06);
    transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease;
}

.up16-sdg-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,201,74,.44);
    box-shadow: 0 22px 42px rgba(54,25,90,.12);
}

.up16-sdg-project-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -38px;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,47,180,.09), transparent 68%);
}

.up16-sdg-project-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.up16-sdg-goal {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #3a155d;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.up16-sdg-project-top small {
    color: var(--up-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.up16-sdg-project-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--up-purple-800);
    font-size: 21px;
    line-height: 1.32;
}

.up16-sdg-project-card p {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: var(--up-muted);
    font-size: 16px;
    line-height: 1.62;
}

.up16-sdg-project-card em {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin-top: auto;
    padding-top: 16px;
    color: var(--up-purple-700);
    font-size: 16px;
    font-weight: 800;
    font-style: normal;
}

.up16-sdg-project-card em span {
    display: inline-block;
    transition: transform .2s ease;
}

.up16-sdg-project-card:hover em span {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .up16-sdg-overview {
        grid-template-columns: 1fr;
    }

    .up16-sdg-project-grid {
        grid-template-columns: 1fr;
    }

    .up16-sdg-dimension-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .up16-sdg-dimension {
        padding: 16px;
        border-radius: 26px;
    }

    .up16-sdg-overview-card {
        min-height: auto;
        padding: 18px;
        border-radius: 24px;
    }

    .up16-sdg-overview-card strong {
        font-size: 22px;
    }

    .up16-sdg-dimension-head h3 {
        font-size: 25px;
    }

    .up16-sdg-project-card {
        min-height: auto;
        padding: 16px;
        border-radius: 20px;
    }

    .up16-sdg-project-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .up16-sdg-project-top small {
        text-align: left;
    }

    .up16-sdg-project-card strong {
        font-size: 19px;
    }

    .up16-sdg-project-card p {
        font-size: 15.5px;
    }
}

/* ===== UP16 Professional Read Page ===== */
.up16-read-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 214, 112, .16), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(111, 49, 177, .14), transparent 30%),
        linear-gradient(180deg, #fbf8ff 0%, #ffffff 58%, #fbf8ff 100%);
}

.up16-read-page {
    min-height: 100vh;
    color: #321247;
}

.up16-read-pro-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 58px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 217, 122, .30), transparent 28%),
        radial-gradient(circle at 90% 6%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg, #35105a 0%, #5e2395 48%, #8b55d8 100%);
}

.up16-read-pro-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255,255,255,.10) 0%, transparent 32%),
        radial-gradient(circle at 50% 108%, rgba(255,201,74,.24), transparent 30%);
}

.up16-read-pro-bg::before,
.up16-read-pro-bg::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    filter: blur(.2px);
}

.up16-read-pro-bg::before {
    width: 340px;
    height: 340px;
    right: -90px;
    top: 90px;
}

.up16-read-pro-bg::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -70px;
}

.up16-read-pro-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 38px;
}

.up16-read-pro-back,
.up16-read-pro-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 15px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(14px);
}

.up16-read-pro-back span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #42165f;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    font-weight: 900;
}

.up16-read-pro-back strong,
.up16-read-pro-brand span {
    font-size: 15px;
    font-weight: 800;
}

.up16-read-pro-brand img {
    width: 34px;
    height: auto;
    display: block;
}

.up16-read-pro-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
}

.up16-read-pro-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.up16-read-pro-kicker span,
.up16-read-pro-kicker strong {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
}

.up16-read-pro-kicker span {
    color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
}

.up16-read-pro-kicker strong {
    color: #39115f;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    box-shadow: 0 16px 30px rgba(255,201,74,.20);
}

.up16-read-pro-title {
    max-width: 980px;
    margin: 0;
    font-size: clamp(38px, 5vw, 76px);
    line-height: 1.08;
    letter-spacing: -.04em;
    font-weight: 900;
    text-wrap: balance;
}

.up16-read-pro-summary {
    max-width: 850px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.86);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.72;
    font-weight: 500;
}

.up16-read-pro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.up16-read-pro-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,.94);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    font-size: 15px;
    font-weight: 800;
}

.up16-read-pro-meta em {
    color: #ffe7a3;
    font-style: normal;
}

.up16-read-pro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.up16-read-pro-primary,
.up16-read-pro-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}

.up16-read-pro-primary {
    color: #38115c;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    border: 0;
    box-shadow: 0 22px 42px rgba(255,201,74,.22);
}

.up16-read-pro-secondary {
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
}

.up16-read-pro-primary:hover,
.up16-read-pro-secondary:hover {
    transform: translateY(-2px);
}

.up16-read-pro-cover-wrap {
    position: relative;
}

.up16-read-pro-cover {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 34px 80px rgba(27, 8, 44, .28);
    transform: rotate(1.2deg);
}

.up16-read-pro-cover::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,.28);
    z-index: 2;
    pointer-events: none;
}

.up16-read-pro-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    transform: scale(1.015);
}

.up16-read-pro-cover-caption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: -26px;
    z-index: 3;
    padding: 16px 18px;
    border-radius: 22px;
    color: #3a155d;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.66);
    box-shadow: 0 22px 44px rgba(27, 8, 44, .18);
    backdrop-filter: blur(14px);
}

.up16-read-pro-cover-caption span {
    display: block;
    color: #805100;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.up16-read-pro-cover-caption strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.up16-read-pro-notfound {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 34px;
    border-radius: 30px;
    color: #321247;
    background: rgba(255,255,255,.94);
    box-shadow: 0 24px 60px rgba(27,8,44,.18);
}

.up16-read-pro-notfound h1 {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 900;
}

.up16-read-pro-notfound p {
    color: #705d81;
    font-size: 18px;
}

.up16-read-pro-notfound a {
    display: inline-flex;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--up-purple-800), var(--up-purple-600));
    text-decoration: none;
    font-weight: 900;
}

.up16-read-pro-section {
    padding: 48px 0 82px;
}

.up16-read-pro-content-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.up16-read-pro-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
}

.up16-read-pro-side-card,
.up16-read-pro-side-note {
    overflow: hidden;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(96,32,163,.11);
    box-shadow: 0 18px 42px rgba(44,16,72,.08);
}

.up16-read-pro-side-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #6020a3;
    background: #f4ecff;
    font-size: 13px;
    font-weight: 900;
}

.up16-read-pro-side-card a,
.up16-read-pro-side-card button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(96,32,163,.12);
    color: #4d1680;
    background: #fbf8ff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.up16-read-pro-side-card a:first-of-type {
    color: #fff;
    background: linear-gradient(135deg, #4d1680, #7b35d2);
}

.up16-read-pro-side-note strong {
    display: block;
    color: #321247;
    font-size: 18px;
    font-weight: 900;
}

.up16-read-pro-side-note p {
    margin: 7px 0 0;
    color: #806895;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 600;
}

.up16-read-pro-article {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: clamp(24px, 4vw, 46px);
    border-radius: 38px;
    background: #fff;
    border: 1px solid rgba(96,32,163,.12);
    box-shadow: 0 30px 80px rgba(44,16,72,.10);
}

.up16-read-pro-article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, var(--up-gold), #7b35d2, #4d1680);
}

.up16-read-pro-article-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(96,32,163,.12);
}

.up16-read-pro-article-head span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: #805100;
    background: #fff1d2;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.up16-read-pro-article-head h2 {
    margin: 10px 0 0;
    color: #321247;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.25;
    font-weight: 900;
}

.up16-read-pro-editor-content {
    color: #3f2953;
    font-size: 18px;
    line-height: 1.95;
}

.up16-read-pro-editor-content h1,
.up16-read-pro-editor-content h2,
.up16-read-pro-editor-content h3,
.up16-read-pro-editor-content h4 {
    color: #34105a;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -.01em;
}

.up16-read-pro-editor-content h2 {
    margin-top: 0;
    font-size: clamp(30px, 3vw, 44px);
}

.up16-read-pro-editor-content h3 {
    margin-top: 30px;
    font-size: clamp(24px, 2.4vw, 32px);
}

.up16-read-pro-editor-content p {
    margin: 0 0 18px;
}

.up16-read-pro-editor-content a {
    color: #6020a3;
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.up16-read-pro-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 26px;
    box-shadow: 0 18px 46px rgba(44,16,72,.10);
}

.up16-read-pro-editor-content blockquote {
    margin: 26px 0;
    padding: 22px 24px;
    border-left: 6px solid var(--up-gold);
    border-radius: 22px;
    color: #3a155d;
    background: linear-gradient(135deg, #fffaf0, #fbf6ff);
    font-size: 20px;
    font-weight: 700;
}

.up16-read-pro-editor-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(96,32,163,.14);
    box-shadow: 0 14px 36px rgba(44,16,72,.06);
}

.up16-read-pro-editor-content table th,
.up16-read-pro-editor-content table td {
    padding: 14px 16px;
    border-right: 1px solid rgba(96,32,163,.12);
    border-bottom: 1px solid rgba(96,32,163,.12);
    vertical-align: top;
}

.up16-read-pro-editor-content table th {
    color: #34105a;
    background: #f4ecff;
    font-weight: 900;
}

.up16-read-pro-editor-content table tr:last-child td {
    border-bottom: 0;
}

.up16-read-pro-editor-content table th:last-child,
.up16-read-pro-editor-content table td:last-child {
    border-right: 0;
}

.up16-read-empty-detail {
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,201,74,.18), transparent 30%),
        #fbf8ff;
    border: 1px dashed rgba(96,32,163,.18);
}

.up16-read-empty-detail h2 {
    margin: 0 0 8px;
}

.up16-read-empty-detail p {
    color: #806895;
}

@media (max-width: 1100px) {
    .up16-read-pro-grid {
        grid-template-columns: 1fr;
    }

    .up16-read-pro-cover-wrap {
        max-width: 560px;
    }

    .up16-read-pro-cover {
        transform: none;
    }

    .up16-read-pro-content-layout {
        grid-template-columns: 1fr;
    }

    .up16-read-pro-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .up16-read-pro-hero {
        padding: 18px 0 42px;
    }

    .up16-read-pro-nav {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .up16-read-pro-brand {
        align-self: flex-start;
    }

    .up16-read-pro-actions {
        flex-direction: column;
    }

    .up16-read-pro-primary,
    .up16-read-pro-secondary {
        width: 100%;
    }

    .up16-read-pro-cover-caption {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin: -18px 14px 0;
    }

    .up16-read-pro-section {
        padding: 28px 0 54px;
    }

    .up16-read-pro-sidebar {
        grid-template-columns: 1fr;
    }

    .up16-read-pro-article {
        padding: 22px;
        border-radius: 28px;
    }

    .up16-read-pro-editor-content {
        font-size: 16.5px;
        line-height: 1.85;
    }

    .up16-read-pro-editor-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media print {
    .up16-read-pro-nav,
    .up16-read-pro-actions,
    .up16-read-pro-sidebar {
        display: none !important;
    }

    .up16-read-pro-hero {
        background: #fff !important;
        color: #111 !important;
        padding: 20px 0 !important;
    }

    .up16-read-pro-summary,
    .up16-read-pro-meta span {
        color: #333 !important;
    }

    .up16-read-pro-grid,
    .up16-read-pro-content-layout {
        display: block !important;
    }

    .up16-read-pro-cover-wrap {
        margin: 20px 0;
    }

    .up16-read-pro-article {
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
    }
}


/* ===== UP16 Accessibility Display Tools ===== */
:root {
    --up16-access-scale: 1;
}

.up16-page,
.up16-read-clean-page {
    font-size: calc(16px * var(--up16-access-scale));
}

.up16-access-toolbar {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 999999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(96,32,163,.16);
    box-shadow: 0 18px 46px rgba(44,16,72,.18);
    backdrop-filter: blur(18px);
}

.up16-access-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #4b1979;
    background: #f7f0ff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.up16-access-font {
    letter-spacing: -.02em;
}

.up16-access-btn:hover,
.up16-access-btn.is-active {
    color: #321247;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
    box-shadow: 0 10px 22px rgba(255,201,74,.24);
    transform: translateY(-1px);
}

.up16-access-sep {
    width: 1px;
    height: 28px;
    margin: 0 2px;
    background: rgba(96,32,163,.14);
}

/* Apply font scale to important public sections without breaking layout */
body[data-up16-font-index="0"] .up16-page,
body[data-up16-font-index="0"] .up16-read-clean-page { font-size: 14.7px; }
body[data-up16-font-index="1"] .up16-page,
body[data-up16-font-index="1"] .up16-read-clean-page { font-size: 16px; }
body[data-up16-font-index="2"] .up16-page,
body[data-up16-font-index="2"] .up16-read-clean-page { font-size: 17.3px; }
body[data-up16-font-index="3"] .up16-page,
body[data-up16-font-index="3"] .up16-read-clean-page { font-size: 18.6px; }
body[data-up16-font-index="4"] .up16-page,
body[data-up16-font-index="4"] .up16-read-clean-page { font-size: 19.8px; }

body[data-up16-font-index] .up16-page p,
body[data-up16-font-index] .up16-page a,
body[data-up16-font-index] .up16-page button,
body[data-up16-font-index] .up16-page span,
body[data-up16-font-index] .up16-page small,
body[data-up16-font-index] .up16-page strong,
body[data-up16-font-index] .up16-read-clean-page p,
body[data-up16-font-index] .up16-read-clean-page a,
body[data-up16-font-index] .up16-read-clean-page button,
body[data-up16-font-index] .up16-read-clean-page span,
body[data-up16-font-index] .up16-read-clean-page small,
body[data-up16-font-index] .up16-read-clean-page strong,
body[data-up16-font-index] .up16-read-clean-editor {
    font-size: 1em;
}

body.up16-theme-dark,
body.up16-theme-dark .up16-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(255,201,74,.08), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(123,53,210,.16), transparent 34%),
        #10081b !important;
    color: #f8f2ff !important;
}

body.up16-theme-dark .up16-access-toolbar {
    background: rgba(25, 13, 38, .90);
    border-color: rgba(255,255,255,.14);
    box-shadow: 0 18px 46px rgba(0,0,0,.36);
}

body.up16-theme-dark .up16-access-btn {
    color: #f7eaff;
    background: rgba(255,255,255,.08);
}

body.up16-theme-dark .up16-access-btn:hover,
body.up16-theme-dark .up16-access-btn.is-active {
    color: #2c0d4c;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold));
}

body.up16-theme-dark .up16-page,
body.up16-theme-dark .up16-read-clean-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(255,201,74,.08), transparent 30%),
        radial-gradient(circle at 86% 6%, rgba(139,88,217,.18), transparent 34%),
        #10081b !important;
    color: #f8f2ff !important;
}

body.up16-theme-dark .up16-section,
body.up16-theme-dark .up16-modern-highlight,
body.up16-theme-dark .up16-share-tools,
body.up16-theme-dark .up16-footer-note,
body.up16-theme-dark .up16-read-clean-main {
    color: #f8f2ff !important;
}

body.up16-theme-dark .up16-stat-card,
body.up16-theme-dark .up16-story-card,
body.up16-theme-dark .up16-highlight-card,
body.up16-theme-dark .up16-sdg-dimension,
body.up16-theme-dark .up16-sdg-project-card,
body.up16-theme-dark .up16-share-tools,
body.up16-theme-dark .up16-footer-box,
body.up16-theme-dark .up16-category-filter,
body.up16-theme-dark .up16-search-panel,
body.up16-theme-dark .up16-read-clean-article,
body.up16-theme-dark .up16-read-clean-card,
body.up16-theme-dark .up16-read-clean-cover,
body.up16-theme-dark .up16-read-clean-notfound {
    background: rgba(28, 16, 43, .94) !important;
    border-color: rgba(255,255,255,.13) !important;
    color: #f8f2ff !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.34) !important;
}

body.up16-theme-dark .up16-section-head h2,
body.up16-theme-dark .up16-modern-highlight-head h2,
body.up16-theme-dark .up16-story-content h3,
body.up16-theme-dark .up16-highlight-card h3,
body.up16-theme-dark .up16-sdg-project-card strong,
body.up16-theme-dark .up16-sdg-dimension-head h3,
body.up16-theme-dark .up16-footer-box h3,
body.up16-theme-dark .up16-read-clean-content-head h2,
body.up16-theme-dark .up16-read-clean-editor h1,
body.up16-theme-dark .up16-read-clean-editor h2,
body.up16-theme-dark .up16-read-clean-editor h3,
body.up16-theme-dark .up16-read-clean-editor h4,
body.up16-theme-dark .up16-read-clean-note strong,
body.up16-theme-dark .up16-read-clean-qrtitle {
    color: #ffffff !important;
}

body.up16-theme-dark .up16-section-head p,
body.up16-theme-dark .up16-modern-highlight-head p,
body.up16-theme-dark .up16-story-content p,
body.up16-theme-dark .up16-highlight-card p,
body.up16-theme-dark .up16-sdg-project-card p,
body.up16-theme-dark .up16-footer-box p,
body.up16-theme-dark .up16-read-clean-editor,
body.up16-theme-dark .up16-read-clean-note p,
body.up16-theme-dark .up16-read-clean-url {
    color: rgba(255,255,255,.78) !important;
}

body.up16-theme-dark .up16-search,
body.up16-theme-dark input,
body.up16-theme-dark textarea {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.14) !important;
}

body.up16-theme-dark .up16-search::placeholder {
    color: rgba(255,255,255,.55) !important;
}

body.up16-theme-dark .up16-category-filter button,
body.up16-theme-dark .up16-read-clean-card a,
body.up16-theme-dark .up16-read-clean-card button {
    color: #f7eaff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.12) !important;
}

body.up16-theme-dark .up16-category-filter button.is-active,
body.up16-theme-dark .up16-read-clean-card a:first-of-type {
    color: #2c0d4c !important;
    background: linear-gradient(135deg, #fff2bc, var(--up-gold)) !important;
}

body.up16-theme-dark .up16-read-clean-qr {
    background: #ffffff !important;
    border-color: rgba(255,255,255,.18) !important;
}

body.up16-theme-dark .up16-read-clean-editor blockquote,
body.up16-theme-dark .up16-read-empty-detail {
    color: #fff !important;
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(255,201,74,.34) !important;
}

body.up16-theme-dark .up16-read-clean-editor table {
    border-color: rgba(255,255,255,.14) !important;
}

body.up16-theme-dark .up16-read-clean-editor table th {
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
}

body.up16-theme-dark .up16-read-clean-editor table td,
body.up16-theme-dark .up16-read-clean-editor table th {
    border-color: rgba(255,255,255,.12) !important;
}

/* Mobile: compact bottom bar, no overlap with content */
@media (max-width: 640px) {
    .up16-access-toolbar {
        right: 8px;
        left: 8px;
        bottom: 10px;
        justify-content: center;
        width: auto;
        max-width: calc(100% - 16px);
        padding: 7px;
        gap: 5px;
        border-radius: 22px;
    }

    .up16-access-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .up16-access-sep {
        height: 24px;
    }

    body {
        padding-bottom: 72px;
    }

    .up16-backtop,
    .up16-to-top,
    #backToTop {
        bottom: 82px !important;
    }
}

@media (max-width: 380px) {
    .up16-access-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .up16-access-toolbar {
        gap: 4px;
        padding: 6px;
    }
}

@media print {
    .up16-access-toolbar {
        display: none !important;
    }
}



/* ===== Fix Story Timeline Number Badge ===== */
/* แก้เลข 01 ด้านหลังที่เพี้ยน ให้กลับมาเป็น badge เล็กอ่านง่าย */
.up16-editorial-list .up16-card-meta-row {
    align-items: center !important;
    gap: 10px !important;
}

.up16-editorial-list .up16-card-no,
body[data-up16-font-index] .up16-editorial-list .up16-card-no {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 54px !important;
    height: 34px !important;
    min-width: 54px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 201, 74, .52) !important;
    background: linear-gradient(135deg, #fff2bc, #ffc94a) !important;
    color: #321247 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    box-shadow: 0 10px 20px rgba(255, 201, 74, .16) !important;
}

.up16-editorial-list .up16-card-chip,
body[data-up16-font-index] .up16-editorial-list .up16-card-chip {
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 13px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

/* ลบเอฟเฟกต์เลขใหญ่แบบ watermark ที่ทำให้ดูเหมือนตัวเลขเพี้ยน */
.up16-editorial-list .up16-story-content::after {
    opacity: .06 !important;
}

@media (max-width: 767px) {
    .up16-editorial-list .up16-card-no,
    body[data-up16-font-index] .up16-editorial-list .up16-card-no {
        width: 48px !important;
        height: 32px !important;
        min-width: 48px !important;
        font-size: 15px !important;
    }

    .up16-editorial-list .up16-card-chip,
    body[data-up16-font-index] .up16-editorial-list .up16-card-chip {
        height: 32px !important;
        font-size: 13px !important;
    }
}



/* ===== UP SDG cover cards on homepage ===== */
.up16-sdg-project-card.up16-sdg-cover-card {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: flex-end !important;
    min-height: 310px !important;
    padding: 0 !important;
    border-radius: 32px !important;
    color: #fff !important;
    background:
        linear-gradient(135deg, rgba(49, 18, 79, .96), rgba(123, 53, 210, .80)) !important;
    border: 1px solid rgba(255,255,255,.32) !important;
    box-shadow: 0 22px 56px rgba(54,25,90,.14) !important;
    isolation: isolate !important;
}

.up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(15, 8, 24, .06) 0%, rgba(15, 8, 24, .32) 46%, rgba(15, 8, 24, .90) 100%),
        var(--up16-sdg-cover-image, linear-gradient(135deg, rgba(49,18,79,.96), rgba(123,53,210,.72)));
    background-size: cover;
    background-position: center;
    transform: scale(1.015);
    transition: transform .45s ease, filter .45s ease, opacity .35s ease;
}

.up16-sdg-project-card.up16-sdg-cover-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 84% 10%, rgba(255,201,74,.22), transparent 30%),
        linear-gradient(180deg, rgba(10,5,16,.02) 0%, rgba(10,5,16,.42) 52%, rgba(10,5,16,.88) 100%);
}

.up16-sdg-project-card.up16-sdg-cover-card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    z-index: 2;
    height: 5px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #ffc94a, rgba(255,255,255,.65), #7b35d2);
    opacity: .92;
}

.up16-sdg-project-card.up16-sdg-cover-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(255,201,74,.58) !important;
    box-shadow: 0 30px 70px rgba(54,25,90,.20) !important;
}

.up16-sdg-project-card.up16-sdg-cover-card:hover .up16-sdg-card-bg {
    transform: scale(1.075);
    filter: saturate(1.08) contrast(1.04);
}

.up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 28px 28px 32px;
    box-sizing: border-box;
}

.up16-sdg-project-card.up16-sdg-cover-card strong {
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(22px, 2vw, 34px) !important;
    line-height: 1.28 !important;
    font-weight: 900 !important;
    letter-spacing: -.018em !important;
    text-shadow: 0 18px 42px rgba(0,0,0,.58) !important;
}

.up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-project-top,
.up16-sdg-project-card.up16-sdg-cover-card p,
.up16-sdg-project-card.up16-sdg-cover-card em {
    display: none !important;
}

.up16-sdg-project-card.up16-sdg-cover-card:not(.is-cover-ready) .up16-sdg-card-bg {
    opacity: .96;
}

body.up16-theme-dark .up16-sdg-project-card.up16-sdg-cover-card {
    border-color: rgba(255,255,255,.16) !important;
}

@media (max-width: 900px) {
    .up16-sdg-project-card.up16-sdg-cover-card {
        min-height: 260px !important;
        border-radius: 28px !important;
    }

    .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-content {
        padding: 24px 22px 28px;
    }

    .up16-sdg-project-card.up16-sdg-cover-card strong {
        font-size: clamp(20px, 5.8vw, 30px) !important;
    }
}

@media (max-width: 560px) {
    .up16-sdg-project-card.up16-sdg-cover-card {
        min-height: 235px !important;
    }
}




/* ===== UP SDG Title Below Image FINAL ===== */
#sdg .up16-sdg-project-grid{
    gap:24px!important;
    align-items:stretch!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    min-height:0!important;
    height:100%!important;
    aspect-ratio:auto!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:28px!important;
    background:#fff!important;
    color:#35105a!important;
    border:1px solid rgba(96,32,163,.12)!important;
    box-shadow:0 18px 48px rgba(44,16,72,.10)!important;
    text-decoration:none!important;
    isolation:isolate!important;
    transform:none!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card::before,
#sdg .up16-sdg-project-card.up16-sdg-cover-card::after{
    display:none!important;
    content:none!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-bg{
    position:relative!important;
    inset:auto!important;
    z-index:1!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16 / 10!important;
    flex:0 0 auto!important;
    background-image:var(--up16-sdg-cover-image, linear-gradient(135deg, rgba(49,18,79,.96), rgba(123,53,210,.72)))!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    transform:none!important;
    filter:saturate(1.06) contrast(1.02)!important;
    transition:transform .38s ease, filter .38s ease!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-content{
    position:relative!important;
    inset:auto!important;
    z-index:2!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:16px 18px 18px!important;
    box-sizing:border-box!important;
    background:#fff!important;
    pointer-events:auto!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card strong{
    position:static!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    color:#35105a!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    display:block!important;
    -webkit-line-clamp:unset!important;
    -webkit-box-orient:unset!important;
    font-size:clamp(15px,1.12vw,18px)!important;
    line-height:1.58!important;
    font-weight:850!important;
    letter-spacing:-.01em!important;
    text-shadow:none!important;
    opacity:1!important;
    transform:none!important;
    transition:none!important;
    pointer-events:none!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card:hover,
#sdg .up16-sdg-project-card.up16-sdg-cover-card:focus-within{
    transform:translateY(-6px)!important;
    border-color:rgba(96,32,163,.22)!important;
    box-shadow:0 28px 72px rgba(44,16,72,.16)!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card:hover .up16-sdg-card-bg,
#sdg .up16-sdg-project-card.up16-sdg-cover-card:focus-within .up16-sdg-card-bg{
    transform:scale(1.045)!important;
    filter:saturate(1.10) contrast(1.04)!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card:hover strong,
#sdg .up16-sdg-project-card.up16-sdg-cover-card:focus-within strong{
    opacity:1!important;
    transform:none!important;
}

#sdg .up16-sdg-project-card.up16-sdg-cover-card p,
#sdg .up16-sdg-project-card.up16-sdg-cover-card em,
#sdg .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-project-top{
    display:none!important;
}

@media(max-width:1180px){
    #sdg .up16-sdg-project-grid{
        gap:20px!important;
    }

    #sdg .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-bg{
        aspect-ratio:16 / 9.8!important;
    }

    #sdg .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-content{
        padding:15px 16px 17px!important;
    }

    #sdg .up16-sdg-project-card.up16-sdg-cover-card strong{
        font-size:clamp(15px,1.8vw,17px)!important;
        line-height:1.52!important;
    }
}

@media(max-width:760px){
    #sdg .up16-sdg-project-grid{
        gap:18px!important;
    }

    #sdg .up16-sdg-project-card.up16-sdg-cover-card{
        border-radius:24px!important;
    }

    #sdg .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-bg{
        aspect-ratio:16 / 9.5!important;
    }

    #sdg .up16-sdg-project-card.up16-sdg-cover-card .up16-sdg-card-content{
        padding:14px 15px 16px!important;
    }

    #sdg .up16-sdg-project-card.up16-sdg-cover-card strong{
        font-size:15.5px!important;
        line-height:1.5!important;
    }
}

