:root {
    /* Brand Colors */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gold: #D4AF37;
    --color-gold-light: #F4CF57;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: var(--font-primary);
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

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

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

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

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-gray-800);
    transform: translateY(-1px);
}

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

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

.card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Article detail main card in dark theme */
.article-card {
    background: #000000;
    color: #F9FAFB;
    border: 1px solid #4B5563;
}

/* Header */
.site-header {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 50px;
    width: auto;
    background: #000000;
    border-radius: 8px;
    padding: 4px;
    filter: invert(1) hue-rotate(180deg);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.site-title span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-gray-200);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000000;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        padding: 1rem 0;
        gap: 0;
        animation: slideDown 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(212, 175, 55, 0.1);
        padding-left: 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .news-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .news-slide-media {
        min-height: 220px;
    }

    .news-slide-content {
        padding: 1.5rem;
    }

    .carousel-control {
        top: 180px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .carousel-control:hover {
        transform: scale(1.05);
    }

    .carousel-control-prev {
        left: 0.75rem;
    }

    .carousel-control-next {
        right: 0.75rem;
    }

    .news-carousel-dots {
        bottom: 0.9rem;
    }
}

/* News Card Specific Styles */
.news-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .news-image {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #101010, #2d2d2d 50%, #b9952d 130%);
    box-shadow: var(--shadow-lg);
}

.news-carousel-viewport {
    overflow: hidden;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.news-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 380px;
    background: transparent;
}

.news-slide-empty {
    grid-template-columns: 1fr;
    min-height: 240px;
    background: transparent;
}

.news-slide-media {
    position: relative;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-black);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.news-date {
    font-size: 0.875rem;
    color: #6B7280;
    display: block;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.news-summary {
    color: #E5E7EB;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Homepage & list latest news under carousel */
.news-latest-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-list-item {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.news-list-thumb {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 0.65rem;
}

.news-list-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 0.25rem;
}

.news-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #F9FAFB;
}

.news-list-title:hover {
    color: var(--color-gold);
}

.news-list-summary {
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-top: 0.15rem;
}

/* Full news list page */
.news-list {
    margin-top: 1rem;
}

.news-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #9CA3AF;
}

.news-page-link {
    color: #F9FAFB;
    text-decoration: none;
}

.news-page-link:hover {
    color: var(--color-gold);
}

.news-page-current {
    margin: 0 0.5rem;
}

.read-more {
    color: #FFFFFF;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--color-gold);
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.82);
    color: var(--color-white);
    cursor: pointer;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

.news-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.news-carousel-dot {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.news-carousel-dot.is-active {
    background: var(--color-white);
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top, #111827, #000000);
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-200);
    max-width: 600px;
    margin: 0 auto;
}

.article-cover-image {
    width: 100%;
    max-width: 800px;
    max-height: 420px;
    object-fit: cover;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 18px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.timeline-item,
tr {
    animation: fadeIn 0.6s ease-out forwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

tr:nth-child(1) {
    animation-delay: 0.05s;
}

tr:nth-child(2) {
    animation-delay: 0.1s;
}

tr:nth-child(3) {
    animation-delay: 0.15s;
}

/* ... and so on for table rows, but let's keep it simple */

/* Sidebar Layout */
.main-content {
    min-width: 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .grid-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Sidebar Widgets */
.sidebar-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.6);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

/* Home sidebar cards: dark widget style */
.card.sidebar-card {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #4B5563;
}

/* President Widget */
.president-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.president-avatar {
    width: 50px;
    height: 50px;
    background: #020617;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #E5E7EB;
}

/* Stats Widget */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    color: var(--color-gold);
}

.last-results {
    display: flex;
    gap: 0.25rem;
}

.result {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
}

.result.win {
    background-color: #9CA3AF;
}

.result.draw {
    background-color: #6B7280;
}

.result.loss {
    background-color: #374151;
}

.mini-match {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: space-between;
}

/* Mini Table */
.mini-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}

.mini-table th {
    text-align: left;
    padding: 0.5rem;
    background: #111827;
    color: #FFFFFF;
}

.mini-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.mini-table .highlight {
    background-color: #fffbeb;
    /* Gold light */
    font-weight: 700;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Titles Widget */
.titles-list {
    list-style: none;
}

.titles-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.text-gold {
    color: var(--color-gold);
}

.days-counter {
    margin-top: 1rem;
    text-align: center;
    background: #020617;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #E5E7EB;
}

.days-counter strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-gold);
}