/* ==========================================
   PROVIDA PÉTANQUE CLUB - COMPLETE CSS
   Premium, Modern, Bilingual Website
   ========================================== */

/* ROOT VARIABLES */
:root {
    --color-navy: #0f1b35;
    --color-navy-light: #1a2847;
    --color-navy-lighter: #2a3a52;
    --color-gold: #d4af37;
    --color-gold-light: #e5c158;
    --color-white: #ffffff;
    --color-gray: #f5f5f5;
    --color-gray-dark: #333333;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-border: #e0e0e0;

    --font-display: 'Kantumruy Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Kantumruy Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease-out;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Kantumruy Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.logo-icon {
    font-size: 1.5rem;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.1rem;
    color: var(--color-navy);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.navbar__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar__link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-fast);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

.navbar__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.lang-sep {
    margin: 0 0.3rem;
    opacity: 0.5;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero__bg,
.hero__slideshow {
    position: absolute;
    inset: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-navy) 100%);
    animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-navy) 100%);
    }
    50% {
        background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
    }
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
}

.hero__orb--1 {
    width: 400px;
    height: 400px;
    background: var(--color-gold);
    top: -100px;
    right: -150px;
    animation: float-1 20s ease-in-out infinite;
}

.hero__orb--2 {
    width: 300px;
    height: 300px;
    background: var(--color-gold);
    bottom: -50px;
    left: -100px;
    animation: float-2 15s ease-in-out infinite;
}

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

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

.petanque-ball {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.3);
}

.hero__content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.hero__content .hero__content {
    max-width: 720px;
}

.hero__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__title .gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

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

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-navy);
}

.btn--primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--secondary:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn--outline:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

.btn--gold {
    background: var(--color-gold);
    color: var(--color-navy);
}

.btn--gold:hover {
    background: var(--color-gold-light);
}

/* ========== SECTIONS ========== */
.section-light {
    background: var(--color-white);
}

.section-dark {
    background: var(--color-navy);
    color: var(--color-white);
}

.page-header {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding: 1.5rem 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.section-light .section-title {
    color: var(--color-navy);
}

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

.content-section {
    padding: 1rem 0;
}

.story-content {
    padding: 1rem 0;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
    padding-bottom: 1.3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content {
    animation: slide-in-left 0.8s ease-out;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: slide-in-right 0.8s ease-out;
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-card {
    background: var(--color-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-card h4 {
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.stat-box {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ========== COMPETITION SECTION ========== */
.competition-showcase {
    background: linear-gradient(135deg, rgb(212 175 55), rgba(212, 175, 55, 0.05));
    border-radius: 12px;
    padding: 3rem;
}

.competition-card-main {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    align-items: start;
    position: relative;
}

.competition-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.competition-date {
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.date-month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.date-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.competition-info {
    padding-top: 1rem;
}

.competition-name {
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.competition-location {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.competition-desc {
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0;
    line-height: 1.7;
}

.competition-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.detail-icon {
    font-size: 1.2rem;
}

.next-competition {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
}

/* ========== GALLERY SECTION ========== */
.gallery-preview {
    padding-bottom: 50px;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    height: 250px;
    display: block;
}

.gallery-preview-item--large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    height: auto;
}

.gallery-prev-img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
    object-fit: cover;
}

.gallery-preview-item:hover .gallery-prev-img {
    transform: scale(1.1);
}

.gallery-prev-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 53, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-prev-label {
    color: var(--color-gold);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ========== NEWS SECTION ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: auto;
    transition: var(--transition);
    display: block;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin: 0.75rem 0;
}

.news-excerpt {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--color-gold);
    font-weight: 600;
    transition: var(--transition-fast);
}

.news-link:hover {
    transform: translateX(5px);
}

/* full news list */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card-full {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.news-card-image {
    width: 40%;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 30px;
    width: 60%;
}

.news-card-title {
    font-size: 22px;
    margin: 10px 0;
    line-height: 1.5;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
}

.news-card-date {
    font-size: 14px;
    color: #777;
}

.news-card-excerpt {
    margin: 10px 0 20px;
    line-height: 1.6;
}

.read-more {
    color: #d4af37;
    font-weight: 600;
}

/* news detail layout */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 26px;
    align-items: start;
}

.news-back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
}

.news-article-page {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 22px;
}

.news-article-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.5;
    color: #111;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
    font-synthesis: none;
}

.news-article-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #666;
    font-size: 14px;
}

.news-meta-item {
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 999px;
}

.news-article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.news-article-body {
    margin-top: 16px;
    line-height: 1.9;
    color: #2b2b2b;
}

.news-article-body p {
    margin: 12px 0;
}

.news-article-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.news-author {
    color: #444;
    font-weight: 600;
}

.news-share {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.news-share-label {
    color: #666;
}

.news-share-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.news-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.news-tag {
    background: rgba(212,175,55,0.12);
    color: #8b6b00;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.news-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-title {
    margin: 4px 0 10px;
    font-size: 18px;
    color: #111;
}

.sidebar-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #111;
}

.sidebar-item:hover {
    background: #f6f6f6;
}

.sidebar-thumb {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-text {
    display: flex;
    flex-direction: column;
}

.sidebar-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-item-date {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

/* ========== GALLERY PAGE ========== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--color-border);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    border-radius: 8px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    transition: 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    aspect-ratio: 16 / 9;
    background: var(--color-gray-dark);
}

.video-card:hover {
    transform: translateY(-8px);
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-gold);
    transition: var(--transition);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.1);
}

/* ========== LIGHTBOX / MODAL ========== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--color-gold);
    color: var(--color-navy);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-gold-light);
    transform: scale(1.1);
}

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.img-modal.active {
    display: flex;
}

.img-preview {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.img-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.image-hover-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 9999;
    pointer-events: none;
}

.image-hover-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-hover-modal img {
    max-width: 70vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background: #fff;
    padding: 6px;
}

/* ========== FORMS ========== */
.registration-form,
.registration-container,
.contact-form,
.admin-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: var(--color-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: var(--color-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input {
    width: auto;
}

/* payment qr */
.payment-qr {
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
}

.payment-qr-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.payment-qr-sub {
    font-size: 12px;
    color: #777;
}

.payment-qr-img {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

/* ========== EVENTS SECTION ========== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 24px;
    justify-content: center;
    align-items: start;
}

.event-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.event-header-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-body {
    padding: 1.5rem;
}

.event-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.event-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 1rem 0;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.event-date {
    transform: scale(0.9);
    transform-origin: top right;
}

.event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d4af37;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.event-month {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-location {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.event-register-btn {
    width: 100%;
}

.past-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.past-event {
    background: var(--color-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
}

.past-date {
    font-size: 0.85rem;
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 700;
}

.past-title {
    display: block;
    font-size: 1.1rem;
    color: var(--color-navy);
    margin: 0.5rem 0;
    font-weight: 600;
}

.past-stats {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ========== ABOUT PAGE ========== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-card,
.vision-card {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.mission-card h3,
.vision-card h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.value-card-large {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.value-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--color-gold);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card-large h4 {
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.value-card-large p {
    color: var(--color-text-light);
    line-height: 1.6;
}

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

.team-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.team-name {
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.team-bio {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 50px;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--color-gold);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 1rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1;
}

.timeline-content h4 {
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    animation: slide-in-left 0.8s ease-out;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.contact-item p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.contact-form-wrapper {
    animation: slide-in-right 0.8s ease-out;
}

.map-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-weight: 600;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    transform: scale(1.1);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-link {
    color: var(--color-gold);
    font-weight: 600;
    transition: var(--transition-fast);
}

.admin-link:hover {
    color: var(--color-gold-light);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.modal__close:hover {
    color: var(--color-navy);
}

/* ========== ADMIN STYLES ========== */
.admin-body {
    background: var(--color-gray);
}

.admin-navbar {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.admin-navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-navbar__title {
    font-size: 1.3rem;
}

.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
}

.login-container {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.login-container h2 {
    text-align: center;
    color: var(--color-navy);
    margin-bottom: 2rem;
}

.login-hint {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.admin-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-tab {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.admin-tab.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
}

.admin-tab:hover {
    border-color: var(--color-gold);
}

.admin-content {
    display: none;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.admin-content.active {
    display: block;
}

.control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.control-item {
    background: var(--color-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
}

.control-item label {
    display: block;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-input {
    width: 50px;
    height: 28px;
    appearance: none;
    background: var(--color-border);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.toggle-input:checked {
    background: var(--color-gold);
}

.toggle-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.status-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
}

.admin-list {
    margin-top: 2rem;
}

.registrations-table {
    overflow-x: auto;
}

.registrations-table table {
    width: 100%;
    border-collapse: collapse;
}

.registrations-table th,
.registrations-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.registrations-table th {
    background: var(--color-gray);
    font-weight: 600;
    color: var(--color-navy);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .founder-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founder-hero-image {
        aspect-ratio: 16 / 9;
    }

    .founder-hero-name {
        font-size: 1.8rem;
    }

    .founder-hero-content {
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar__menu {
        display: none;
    }

    .navbar__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
        gap: 0.5rem;
    }

    .about-grid,
    .mission-vision-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-preview-item--large {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .about-values,
    .form-row,
    .admin-tabs,
    .competition-card-main {
        grid-template-columns: 1fr;
    }

    .competition-date {
        margin-top: 0;
    }

    .founder-showcase {
        padding: 2rem 0;
        margin-bottom: 3rem;
    }

    .founder-hero {
        gap: 1.5rem;
    }

    .founder-hero-image {
        aspect-ratio: 16 / 10;
    }

    .founder-hero-name {
        font-size: 1.5rem;
    }

    .founder-hero-title {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .founder-hero-bio p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .founder-hero-bio p:first-child {
        font-size: 1rem;
    }

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

    .news-sidebar {
        position: static;
        top: auto;
    }

    .news-article-hero img {
        height: 260px;
    }

    .news-article-title {
        font-size: 24px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .news-grid,
    .events-grid,
    .videos-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }

    .gallery-preview-item--large {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .control-panel {
        grid-template-columns: 1fr;
    }

    .founder-showcase {
        padding: 1.5rem 0;
    }

    .founder-hero-name {
        font-size: 1.3rem;
    }

    .founder-hero-title {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .founder-hero-bio {
        gap: 1rem;
    }

    .founder-hero-bio p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* ========== ANIMATION CLASSES ========== */
.fade-in {
    animation: fade-in 0.5s ease-out;
}

.slide-up {
    animation: slide-up 0.5s ease-out;
}

/* ========== HERO SLIDESHOW FIX ========== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    --color-navy-light: transparent;
    --color-navy: transparent;
}

.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero__cta {
    --color-navy: #0f1b35;
    --color-navy-light: #1a2847;
    --color-navy-lighter: #ffffff;
}

.next-competition {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
}

/* ========== NEWS LIST ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card-full {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.news-card-image {
    width: 40%;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 30px;
    width: 60%;
}

.news-card-title {
    font-size: 22px;
    margin: 10px 0;
    line-height: 1.5;
    font-family: 'Kantumruy Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
    font-synthesis: none;
}

.news-card-date {
    font-size: 14px;
    color: #777;
}

.news-card-excerpt {
    margin: 10px 0 20px;
    line-height: 1.6;
}

.read-more {
    color: #d4af37;
    font-weight: 600;
}

/* ========== NEWS DETAIL PAGE ========== */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 26px;
    align-items: start;
}

.news-back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
}

.news-article-page {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 22px;
}

.news-article-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.5;
    color: #111;
    font-family: 'Kantumruy Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
    font-synthesis: none;
}

.news-article-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #666;
    font-size: 14px;
}

.news-meta-item {
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 999px;
}

.news-article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.news-article-body {
    margin-top: 16px;
    line-height: 1.9;
    color: #2b2b2b;
}

.news-article-body p {
    margin: 12px 0;
}

.news-article-body p[lang="km"],
.news-article-title[lang="km"],
.page-title[lang="km"],
.page-subtitle[lang="km"] {
    font-family: 'Kantumruy Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-synthesis: none;
    letter-spacing: 0;
}

/* ========== NEWS ACTIONS ========== */
.news-article-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.news-author {
    color: #444;
    font-weight: 600;
}

.news-share {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.news-share-label {
    color: #666;
}

.news-share-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

/* ========== NEWS TAGS ========== */
.news-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.news-tag {
    background: rgba(212,175,55,0.12);
    color: #8b6b00;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* ========== NEWS SIDEBAR ========== */
.news-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-title {
    margin: 4px 0 10px;
    font-size: 18px;
    color: #111;
}

.sidebar-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #111;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: #f6f6f6;
}

.sidebar-thumb {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-text {
    display: flex;
    flex-direction: column;
}

.sidebar-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-item-date {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

/* ========== PAYMENT QR ========== */
.payment-qr {
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
}

.payment-qr-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.payment-qr-sub {
    font-size: 12px;
    color: #777;
}

.payment-qr-img {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

/* ========== ABOUT HEADER ========== */
.page-header-about {
    position: relative;
    padding: 250px 20px;
    text-align: center;
    color: white;
    background-image: url("images/about-header.jpg");
    background-size: cover;
    background-position: center;
}

.page-header-about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.page-header-about .container {
    position: relative;
    z-index: 2;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* ========== FOUNDER SHOWCASE ========== */
.founder-showcase {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.02));
    border-radius: 16px;
    margin-bottom: 4rem;
}

.founder-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.founder-hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    aspect-ratio: 3 / 4;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.founder-hero-content {
    padding: 2rem 0;
}

.founder-hero-name {
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.founder-hero-title {
    font-size: 1.1rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.founder-hero-bio {
    display: grid;
    gap: 1.5rem;
}

.founder-hero-bio p {
    color: var(--color-text);
    line-height: 1.9;
    font-size: 1rem;
    margin: 0;
}

.founder-hero-bio p:first-child {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ========== GALLERY HOVER ========== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    transition: 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.image-hover-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 9999;
    pointer-events: none;
}

.image-hover-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-hover-modal img {
    max-width: 70vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background: #fff;
    padding: 6px;
}

/* ===== Safari Khmer Fix ===== */
html,
body {
    -webkit-text-size-adjust: 100%;
}

.news-article-title,
.news-card-title,
.page-title,
.page-subtitle,
.news-article-body p {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

/* Khmer on Safari */
.news-article-title[lang="km"],
.news-card-title[lang="km"],
.page-title[lang="km"],
.page-subtitle[lang="km"],
.news-article-body p[lang="km"] {
    font-family: 'Kantumruy Pro', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.8 !important;
    word-break: break-word;
    overflow-wrap: break-word;
    font-synthesis: none;
}

/* Keep titles a bit stronger, but not too heavy */
.news-article-title[lang="km"],
.news-card-title[lang="km"],
.page-title[lang="km"] {
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

/* Prevent Safari fake bold issues */
.news-article-title,
.news-card-title,
.page-title,
.section-title {
    font-weight: 700 !important;
}