* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #050505;
    color: white;
    overflow-x: hidden;
    line-height: 1.5;
}

html[lang="km"] body {
    font-family: "Noto Sans Khmer", "Khmer OS Battambang", Poppins, Arial, sans-serif;
    line-height: 1.75;
}

.language-switcher {
    position: relative;
    margin: 4px 14px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #000;
    color: #fff;
}

.language-switcher summary,
.language-switcher a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 1rem;
    font-weight: 500;
}

.language-switcher summary {
    cursor: pointer;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.language-chevron {
    margin-left: auto;
    transition: transform .2s ease;
}

.language-switcher[open] .language-chevron {
    transform: rotate(180deg);
}

.language-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 4px;
    border: 1px solid rgba(255, 215, 0, .35);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 10px 26px rgba(0,0,0,.3);
}

.language-switcher a {
    border-radius: 6px;
}

.language-switcher a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, .14);
}

.language-switcher a.active {
    color: #000;
    background: #ffd700;
    font-weight: 700;
}

.main > section:nth-of-type(even) {
    background: #0d0f0c;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(10px);
    padding: 28px 18px;
    z-index: 1000;
    border-right: 2px solid #ffd700;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #111;
}

.logo {
    text-align: center;
    margin-bottom: 26px;
}

.logo img {
    width: min(220px, 100%);
    height: auto;
    margin-bottom: 10px;
}

.logo h2 {
    color: #ffd700;
    font-size: 28px;
    letter-spacing: 2px;
}

.menu {
    list-style: none;
    margin-top: 18px;
}

.menu li {
    margin: 8px 0;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    line-height: 1.25;
    transition: 0.4s;
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.menu a:hover {
    background: rgba(255, 215, 0, 0.14);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.35);
}

.menu a.active {
    background: #ffd700;
    color: black;
    border-color: #ffd700;
    font-weight: 700;
}

.cta-nav {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000 !important;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

/* MAIN */
.main {
    margin-left: 280px;
    min-width: 0;
}

/* HEADER / HERO */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)),
                url('../img/worldcup/banner-world.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 100px;
}

.hero {
    animation: fadeIn 2s ease;
    max-width: 900px;
}

.hero img.logo-img {
    width: 185px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px #ffd700);
    animation: bounce 3s infinite;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    text-transform: uppercase;
    letter-spacing: 0;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.hero p {
    margin-top: 20px;
    font-size: 24px;
    color: #eee;
    line-height: 1.5;
}

.hero-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.4s;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.btn:hover {
    background: white;
    transform: scale(1.1);
}

.btn-outline {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
    box-shadow: none;
}

.btn-outline:hover {
    background: #ffd700;
    color: #000;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: transparent;
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #ffd700;
    transition: 0.3s;
    font-size: 14px;
}

.btn-small:hover {
    background: #ffd700;
    color: #000;
}

.btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* SECTION SUBTITLES */
.section-subtitle {
    color: #aaa;
    font-size: 18px;
    max-width: 800px;
    margin: -32px auto 42px;
    text-align: center;
    line-height: 1.6;
    padding: 0 20px;
}

.cta-banner {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
}

.cta-banner p {
    font-size: 20px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #eee;
}



/* ================================================================ */
/* CULTURE (news & cambodia) */
/* ================================================================ */
.culture {
    padding: 88px 24px;
    background: #080808;
    text-align: center;
}

.culture h2 {
    font-size: clamp(32px, 4vw, 50px);
    color: #ffd700;
    margin-bottom: 54px;
    letter-spacing: 0;
}

.culture-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 390px));
    justify-content: center;
    gap: 26px;
}

.culture-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.35s;
    border: 1px solid rgba(255, 215, 0, 0.16);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    height: 100%;
    position: relative;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.culture-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #050505;
    transition: opacity 0.3s ease;
    display: block;
}

.culture-info {
    padding: 22px;
}

.culture-info h3 {
    color: #ffd700;
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: 0;
}

.culture-info p {
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.65;
}

.news-meta {
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
}

.topic-intro {
    max-width: 900px;
    margin: -18px auto 34px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-left: 4px solid #2fbf71;
    border-radius: 8px;
    background: rgba(47, 191, 113, 0.08);
    text-align: left;
}

.topic-intro p {
    color: #d9e8df;
    font-size: 16px;
    line-height: 1.7;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.topic-link {
    display: block;
    color: #fff;
    text-decoration: none;
    background: #111;
    border: 1px solid rgba(255, 215, 0, 0.24);
    border-left: 3px solid rgba(47, 191, 113, 0.8);
    border-radius: 8px;
    padding: 22px;
    transition: 0.3s;
}

.topic-link:hover {
    transform: translateY(-4px);
    border-color: #ffd700;
}

.topic-link strong,
.topic-link span {
    display: block;
}

.topic-link strong {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 10px;
}

.topic-link span {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
}

.topic-link em {
    display: inline-block;
    margin-top: 14px;
    color: #2fbf71;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.topic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 4px;
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #050505;
    background: #ffd700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.topic-badge:hover {
    background: #fff;
}

.article-topic-block {
    margin: 34px 0 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 215, 0, 0.22);
}

.article-topic-block h2 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 12px;
    text-align: left;
}

.article-shell {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.article-shell h1 {
    color: #ffd700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin-bottom: 28px;
    text-align: center;
}

.article-shell p {
    color: #ddd;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.breadcrumb {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 22px;
    text-align: center;
}

.breadcrumb a,
.news-meta a {
    color: #ffd700;
}

.article-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #050505;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    margin-bottom: 28px;
    display: block;
}

/* GALLERY */
.gallery {
    padding: 100px 20px;
    text-align: center;
}

.gallery h2 {
    color: #ffd700;
    font-size: 50px;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: auto;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    background: #050505;
    border-radius: 8px;
    transition: 0.5s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}



/* ================================================================ */
/* FOOTER */
/* ================================================================ */
footer {
    background: #0a0a0a;
    padding: 60px 20px 30px;
    border-top: 2px solid #ffd700;
}

.footer-content {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin: 10px 0;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.footer-cta {
    margin-bottom: 20px;
}

.footer-bottom p {
    color: #666;
    font-size: 13px;
}

.footer-bottom a {
    color: #ffd700;
    text-decoration: none;
}

/* ANIMATIONS */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* MOBILE */
@media(max-width:900px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 18px 14px;
        border-right: 0;
        border-bottom: 2px solid #ffd700;
    }
    .main {
        margin-left: 0;
    }
    .logo {
        margin-bottom: 12px;
    }
    .logo img {
        width: 160px;
    }
    .menu {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-top: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .menu li {
        margin: 0;
        flex: 0 0 auto;
    }
    .menu a {
        white-space: nowrap;
        font-size: 14px;
        padding: 9px 12px;
    }
    .hero h1 {
        font-size: 45px;
    }
    .article-shell h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 18px;
    }
    .culture h2,
    .gallery h2 {
        font-size: 34px;
    }
    .section-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }
    .culture {
        padding: 56px 16px;
    }
    .culture-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .culture-card img,
    .gallery-grid img,
    .article-hero-image {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
    .topic-intro {
        margin-top: -20px;
        padding: 16px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .cta-banner p {
        font-size: 16px;
    }
    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }
}
