:root {
    --ink: #1b254b;
    --ink-soft: #43537f;
    --paper: #ffffff;
    --bg-1: #f7fbff;
    --bg-2: #e7efff;
    --line: #d9e6ff;
    --accent: #ff9f1c;
    --accent-deep: #f26f21;
    --mint: #1fb8a6;
    --pink: #ff4f87;
    --sky: #4c7dff;
    --radius: 18px;
    --shadow: 0 20px 50px rgba(40, 71, 151, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background:
        radial-gradient(1100px 460px at -5% -8%, #ffdbb2 0%, transparent 60%),
        radial-gradient(900px 520px at 105% 8%, #d8e3ff 0%, transparent 62%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 25%, rgba(255, 88, 88, 0.14), transparent 34%),
        radial-gradient(circle at 86% 14%, rgba(80, 130, 255, 0.18), transparent 38%),
        radial-gradient(circle at 50% 86%, rgba(255, 184, 91, 0.2), transparent 38%);
    z-index: -2;
    pointer-events: none;
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(72px);
    z-index: -1;
    opacity: 0.32;
    animation: float 12s ease-in-out infinite;
    /* Prevent orbs from causing horizontal scroll */
    max-width: 50vw;
    max-height: 50vw;
}

.orb-1 {
    width: 280px;
    height: 280px;
    background: #ffbe5c;
    top: -80px;
    left: -90px;
}

.orb-2 {
    width: 330px;
    height: 330px;
    background: #7fc8ff;
    right: -100px;
    bottom: -120px;
    animation-delay: 2.5s;
}

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

.main-header {
    padding: 20px 0 14px;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
    border-bottom: 1px solid rgba(214, 228, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    width: fit-content;
    background: linear-gradient(100deg, #fff6e5, #fff);
    border: 1px solid #ffd891;
    border-radius: 999px;
    color: #ad5b00;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.brand h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a,
.btn {
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid #d8e5ff;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #c9dafb;
    background: #eef4ff;
    font-weight: 700;
    color: #173a78;
    font-size: 0.85rem;
}

.nav-links a:hover,
.btn:hover {
    transform: translateY(-2px);
    border-color: #b8cdfa;
    box-shadow: 0 10px 24px rgba(43, 80, 167, 0.17);
}

main.container {
    padding-bottom: 12px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    margin-bottom: 18px;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 224, 0.92)),
        url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1600&q=80') center/cover;
    isolation: isolate;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto -90px -120px auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 159, 28, 0.38), transparent 68%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.65));
    z-index: -1;
}

.kicker {
    margin: 0;
    color: var(--pink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}

.hero h2,
.card h2,
.card h3 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.hero h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
    max-width: 680px;
}

.rainbow-text {
    background: linear-gradient(120deg, #ff4f87 0%, #ff8f1f 25%, #ffc531 45%, #1fb8a6 70%, #4c7dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 650px;
    margin: 0;
    color: var(--ink-soft);
}

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

.stat {
    background: linear-gradient(140deg, #f8fbff, #eef4ff);
    border: 1px solid #d8e5ff;
    border-radius: 14px;
    padding: 12px;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 4px;
    font-weight: 700;
}

.stat strong {
    font-size: 1.05rem;
    color: #1e2f5d;
}

.admin-hero {
    margin-top: 16px;
}

.highlights-wrap {
    margin-bottom: 16px;
}

.highlights-grid {
    margin-top: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.highlight-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 190px;
    border: 1px solid #d7e5ff;
    box-shadow: 0 10px 24px rgba(56, 88, 172, 0.2);
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 34px rgba(36, 72, 160, 0.28);
}

.highlight-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
}

.highlight-card span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(19, 37, 73, 0.68);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
}

.poster-wall {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.poster-tile {
    border-radius: 16px;
    padding: 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 30px rgba(34, 58, 120, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.poster-tile:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 22px 40px rgba(22, 40, 90, 0.36);
    filter: saturate(1.08);
}

.poster-tile h3 {
    margin: 0;
    font-size: 1.15rem;
}

.poster-tile p {
    margin: 0;
    font-size: 0.86rem;
    opacity: 0.95;
}

.poster-tile strong {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.poster-tag {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.award-showcase {
    margin-top: 16px;
}

.award-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.award-card {
    min-height: 260px;
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 18px 36px rgba(20, 34, 79, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
}

.award-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.award-top small {
    font-size: 0.74rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 4px 8px;
}

.award-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.award-lines p {
    margin: 0 0 4px;
    font-size: 0.92rem;
}

.award-note {
    margin: 2px 0 0;
    font-size: 0.82rem;
    opacity: 0.95;
}

.team-board-card {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(239, 247, 255, 0.95));
}

.team-board {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.team-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #d8e6ff;
    background: #fff;
    box-shadow: 0 8px 18px rgba(39, 67, 137, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(39, 67, 137, 0.16);
}

.team-rank {
    height: 42px;
    width: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
}

.team-meta h3 {
    margin: 0;
    font-size: 1rem;
}

.team-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-head strong {
    font-size: 0.9rem;
    color: #1d3774;
}

.team-progress {
    margin-top: 7px;
    height: 10px;
    border-radius: 999px;
    background: #eaf1ff;
    overflow: hidden;
}

.team-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(120deg, #49b8ff, #3b82f6);
}

.team-row.rank-1 .team-rank {
    background: linear-gradient(120deg, #ffb703, #fb8500);
}

.team-row.rank-1 .team-progress span {
    background: linear-gradient(120deg, #ffd166, #ff7b00);
}

.team-row.rank-2 .team-rank {
    background: linear-gradient(120deg, #9aa6c8, #6b7aa6);
}

.team-row.rank-2 .team-progress span {
    background: linear-gradient(120deg, #9fb8ff, #6d8fff);
}

.team-row.rank-3 .team-rank {
    background: linear-gradient(120deg, #d08c60, #aa5a2d);
}

.team-row.rank-3 .team-progress span {
    background: linear-gradient(120deg, #ffb27d, #f5772a);
}

.team-row.rank-4 .team-rank,
.team-row.rank-other .team-rank {
    background: linear-gradient(120deg, #2ec4b6, #1a8d83);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #dee9ff;
    border-radius: 12px;
    background: #fff;
}

th,
td {
    padding: 11px 10px;
    text-align: left;
    border-bottom: 1px solid #edf2ff;
    font-size: 0.93rem;
}

th {
    background: #eff5ff;
    color: #2f4a7f;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

tr:nth-child(even) td {
    background: #fcfdff;
}

tr:last-child td {
    border-bottom: none;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #22386b;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid #cfddfa;
    background: #fff;
    margin-bottom: 12px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8eb0ff;
    box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.12);
}

button,
.btn-primary {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: linear-gradient(120deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(242, 111, 33, 0.35);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tabs a {
    text-decoration: none;
    color: #2d4678;
    border: 1px solid #d0ddfa;
    background: #fff;
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tabs a.active,
.tabs a:hover {
    background: linear-gradient(120deg, #e7efff, #f5f8ff);
    border-color: #a8c0f6;
    color: #10275b;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0;
    font-weight: 700;
}

.flash.success {
    background: #e9fbf2;
    border: 1px solid #a6efc8;
    color: #126d42;
}

.flash.error {
    background: #fff1f5;
    border: 1px solid #ffc4d6;
    color: #9f1249;
}

.site-footer {
    padding: 22px 0 30px;
    color: #4b5f88;
}

.actions-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.poster {
    max-width: 760px;
    margin: 16px auto;
    border-radius: 24px;
    background: linear-gradient(145deg, #fffdf4, #ffffff);
    border: 6px solid #ffbf59;
    padding: 24px;
    box-shadow: var(--shadow);
}

.award-poster {
    color: #fff;
    background-size: cover;
    background-position: center;
    border-color: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.award-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(8, 15, 38, 0.62), rgba(12, 24, 60, 0.48));
    pointer-events: none;
}

.award-poster > * {
    position: relative;
    z-index: 1;
}

.award-poster .slot {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    color: #fff;
}

.award-poster h2,
.award-poster h3,
.award-poster p {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-actions .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 108px;
}

.inline-actions form {
    margin: 0;
}

.poster-logo {
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
}

.poster h2,
.poster h3 {
    text-align: center;
    margin: 4px 0;
    font-family: 'Outfit', sans-serif;
}

.certificate {
    max-width: 860px;
    margin: 20px auto;
    border: 10px double #f7b733;
    border-radius: 20px;
    padding: 34px;
    text-align: center;
    background: linear-gradient(160deg, #fffdf5, #fff8df);
    box-shadow: var(--shadow);
}

.certificate h1 {
    margin: 8px 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #7d3b00;
}

.certificate-poster {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 10px double rgba(247, 183, 51, 0.95);
}

.certificate-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 221, 0.84));
    pointer-events: none;
}

.certificate-poster > * {
    position: relative;
    z-index: 1;
}

.certificate-poster h1 {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    letter-spacing: 0.04em;
}

.certificate-signature {
    margin-top: 20px;
    text-align: right;
}

.certificate-signature p {
    margin: 6px 0;
}

.announce-item {
    border: 1px solid #dbe6ff;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.announce-item h3 {
    margin: 0 0 6px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.gallery-item {
    text-decoration: none;
    color: inherit;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(48, 77, 153, 0.22);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.gallery-item span {
    display: block;
    padding: 6px 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 42, 0.83);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-inner {
    width: min(950px, 96vw);
    background: #fff;
    border: 1px solid #d7e4ff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

#lightbox-image {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

#lightbox-title {
    margin: 10px 4px 4px;
    font-weight: 700;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    border-radius: 999px;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, #ff4f87, #ff7a3d);
    box-shadow: 0 10px 20px rgba(255, 99, 99, 0.35);
}

.fest-popup {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 20, 44, 0.72);
}

.fest-popup.show {
    display: flex;
    animation: popFade 0.28s ease;
}

.fest-popup-card {
    width: min(520px, 92vw);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 226, 0.96)),
        url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&w=1200&q=80') center/cover;
    border: 1px solid #ffd8a4;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
    transform-origin: center;
    animation: popScale 0.34s ease;
    position: relative;
}

.fest-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(130deg, #ff5d8f, #ff7d31);
}

@keyframes popScale {
    0% {
        transform: scale(0.8) translateY(12px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes popFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.poster .podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    align-items: stretch;
}

.poster .slot {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 228, 0.88));
    min-height: 220px;
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 16px 34px rgba(11, 21, 54, 0.28);
    position: relative;
    overflow: hidden;
}

.poster .slot::after {
    content: '';
    position: absolute;
    inset: auto -30% -45% -30%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.46), transparent 70%);
    pointer-events: none;
}

.poster .slot h3 {
    margin: 2px 0 0;
    font-size: clamp(1.3rem, 2.6vw, 1.55rem);
    letter-spacing: 0.02em;
}

.poster .slot p {
    margin: 0;
}

.poster .slot strong {
    font-size: clamp(1.15rem, 2.1vw, 1.35rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.award-poster .place-medal {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #13254e;
    border: 2px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 18px rgba(10, 18, 45, 0.28);
}

.award-poster .slot.place-1 {
    background: linear-gradient(180deg, rgba(255, 214, 116, 0.95), rgba(255, 170, 66, 0.88));
}

.award-poster .slot.place-2 {
    background: linear-gradient(180deg, rgba(156, 230, 249, 0.94), rgba(106, 152, 255, 0.88));
}

.award-poster .slot.place-3 {
    background: linear-gradient(180deg, rgba(255, 174, 206, 0.95), rgba(255, 115, 145, 0.88));
}

.award-poster .slot.place-1 .place-medal {
    background: linear-gradient(180deg, #fff2c9, #ffe081);
}

.award-poster .slot.place-2 .place-medal {
    background: linear-gradient(180deg, #ebf8ff, #bfdfff);
}

.award-poster .slot.place-3 .place-medal {
    background: linear-gradient(180deg, #ffe6ef, #ffc2d5);
}

@media (max-width: 900px) {
    .main-header {
        padding-top: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero {
        padding: 20px;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    /* Fix sticky header overlapping/hiding content + remove horizontal gaps */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        max-width: 100vw;
    }

    .main-header {
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 12px 0;
    }

    .main-header .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a,
    .btn {
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    main.container {
        padding-top: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .container {
        width: 100%;
        max-width: 100vw;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Fix grid columns for mobile */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .poster-wall {
        grid-template-columns: repeat(2, 1fr);
    }

    .award-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item img,
    .gallery-item video {
        height: 80px;
    }

    .poster .podium {
        grid-template-columns: 1fr;
    }

    .poster .slot {
        min-height: 170px;
    }

    th,
    td {
        font-size: 0.82rem;
        padding: 8px 6px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .card {
        padding: 14px;
    }

    .hero {
        padding: 16px;
    }

    /* Prevent pseudo elements from causing overflow */
    .hero::after {
        width: 150px;
        height: 150px;
        right: -40px;
        bottom: -60px;
    }

    .certificate {
        padding: 20px;
    }

    .inline-actions {
        flex-direction: column;
    }

    .inline-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.1rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .nav-links a,
    .btn {
        padding: 6px 8px;
        font-size: 0.78rem;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat {
        padding: 8px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat strong {
        font-size: 0.95rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .highlight-card {
        min-height: 120px;
    }

    .highlight-card img {
        min-height: 120px;
    }

    .poster-wall {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img,
    .gallery-item video {
        height: 70px;
    }

    .poster .slot h3 {
        font-size: 1.1rem;
    }

    .poster .slot strong {
        font-size: 0.95rem;
    }
}
