/**
 * VR-Nage Game Website - Modern UI Styles v2
 * Beautiful typography with Noto Sans Thai + Inter
 * Card-based news layout - ENHANCED CONTRAST
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-bg: #1a1f3a;
    --dark-bg-light: #2d3561;
    --text-light: #ffffff;
    --text-gray: #cbd5e0;
    /* เปลี่ยนจาก #a0aec0 ให้สว่างขึ้น */
    --text-gray-dark: #a0aec0;
    /* สำหรับพื้นหลังขาว */
    --success-color: #48bb78;
    --danger-color: #f56565;
    --card-bg: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.15);
    /* เพิ่มความทึบ */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 0 0 1.5rem 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
    position: relative;
    border-left: 4px solid;
}

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

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

.alert::before {
    content: '';
    font-size: 1.5rem;
    line-height: 1;
}

/* Success Alert */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.alert-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

/* Error Alert */
.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Warning Alert */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left-color: #ffc107;
}

.alert-warning::before {
    content: '⚠';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffc107;
    color: #212529;
    border-radius: 50%;
    font-weight: 700;
}

/* Info Alert */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-info::before {
    content: 'ℹ';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #17a2b8;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.3rem;
}

/* ===== Header ===== */
header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo h1 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.user-info {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.user-info__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.user-info__name {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
}

.user-info__name:hover {
    color: #e0e7ff;
}

.user-info__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #63b3ed, #667eea);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-info__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-info__actions a {
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.admin-link {
    background: rgba(72, 187, 120, 0.15);
    border-color: rgba(72, 187, 120, 0.35);
    color: #68d391;
}

.admin-link:hover {
    background: rgba(72, 187, 120, 0.25);
    border-color: rgba(72, 187, 120, 0.55);
}

.logout-link {
    background: rgba(252, 129, 129, 0.12);
    border-color: rgba(252, 129, 129, 0.35);
    color: #fecdd3;
}

.logout-link:hover {
    background: rgba(252, 129, 129, 0.2);
    border-color: rgba(252, 129, 129, 0.5);
}

.user-point {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(251, 191, 36, 0.15);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-point:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.user-point .label {
    color: var(--text-gray);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* ===== Mobile Menu Toggle Button ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    background: rgba(102, 126, 234, 0.4);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Navigation Menu Bar ===== */
nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Hover Effect */
nav ul li a:hover {
    color: #ffffff;
    /* background: rgba(255, 255, 255, 0.08); */
    /* Subtle highlight */
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Active State */
nav ul li a.active {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

/* Animated Underline (Gradient Glow) */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

nav ul li a:hover::after {
    width: 60%;
    opacity: 1;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

nav ul li a.active::after {
    width: 100%;
    opacity: 1;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== Main Layout (2 Column) ===== */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-top: 1.5rem;
}

.main-content {
    background: rgba(255, 255, 255, 0.08);
    /* เพิ่มความทึบเล็กน้อย */
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== News Slider ===== */
.news-slider-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-slider {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 31, 58, 0.95) 0%, transparent 100%);
    padding: 2.5rem;
    color: white;
}

.slide-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.slide-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: 5px;
}

/* ===== News Cards Grid ===== */
.news-grid-section {
    padding: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--card-bg-dark);
    /* ใช้ตัวแปรใหม่ที่ทึบกว่า */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* เพิ่มความชัดของเส้นขอบ */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    /* hover ให้สว่างขึ้น */
}

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.25rem;
}

.news-card-title {
    color: #ffffff;
    /* ขาวสนิท */
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card-excerpt {
    color: #e2e8f0;
    /* สว่างกว่าเดิม */
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #cbd5e0;
    /* สว่างขึ้น */
}

.news-card-category {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== News Page - Card Layout ===== */
.news-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.news-list-page {
    min-height: 60vh;
}

.news-list-page h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.news-filter {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.news-filter strong {
    color: white;
    margin-right: 1rem;
    font-size: 0.95rem;
}

.news-filter .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    margin: 0.3rem;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-item {
    background: var(--card-bg-dark);
    /* ใช้พื้นหลังทึบกว่า */
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* เส้นขอบชัดขึ้น */
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.2);
    /* hover สว่างขึ้น */
    border-color: var(--primary-color);
}

.news-item h3 {
    color: #ffffff;
    /* ขาวสนิท */
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-item .excerpt {
    color: #e2e8f0;
    /* สว่างกว่าเดิม */
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-item .meta {
    color: #cbd5e0;
    /* สว่างขึ้น */
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.news-item .read-more {
    color: #a78bfa;
    /* สีม่วงสว่าง */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-item .read-more:hover {
    color: #c4b5fd;
    /* สว่างขึ้นเมื่อ hover */
    padding-left: 5px;
}

/* News Detail */
.news-detail {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 2rem auto;
}

.news-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    line-height: 1.3;
}

.news-meta {
    color: #999;
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
    font-size: 0.9rem;
}

.news-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.news-content p {
    margin-bottom: 1rem;
}

/* ===== Sidebar Cards ===== */
.sidebar-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.sidebar-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-radius: 10px;
    border-left: 4px solid var(--success-color);
}

.status-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 15px var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-weight: 600;
    color: #1a202c;
    /* เข้มขึ้นเพื่อให้อ่านง่าย */
    font-size: 0.95rem;
}

.status-label {
    font-size: 0.8rem;
    color: #4a5568;
    /* เข้มขึ้นเพื่อให้อ่านง่าย */
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quick-link-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.quick-link-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.quick-link-icon {
    font-size: 1.3rem;
}

/* Statistics */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #eee;
}

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

.stat-label {
    color: #4a5568;
    /* เข้มขึ้นสำหรับพื้นขาว */
    font-size: 0.9rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Latest Events */
.event-item {
    padding: 1rem;
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #f39c12;
}

.event-title {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.event-countdown {
    font-size: 0.85rem;
    color: #d68910;
    /* เข้มขึ้นเล็กน้อย */
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

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

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.08);
    /* padding: 0.75rem 1.25rem; */
    border-radius: 10px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 400;
}

.breadcrumb li a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.breadcrumb li a:hover {
    color: var(--primary-color);
}

.breadcrumb li.separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    user-select: none;
    padding: 0 0.25rem;
}

.breadcrumb li.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
}

/* ===== Download Page ===== */
.download-page {
    color: white;
}

.download-page h1 {
    color: white;
    font-size: 2rem;
}

.download-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.download-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.download-info ul {
    color: var(--text-gray);
    line-height: 2;
    padding-left: 2rem;
}

.download-help ul {
    color: var(--text-gray);
    line-height: 2;
    padding: 1rem 0 0 2rem;
}

.news-detail ul,
.news-detail ol {
    color: var(--danger-color);
    line-height: 2;
    padding: 0 0 1rem 2.5rem;
}


/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr 340px;
    }

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

    .news-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    body {
        font-size: 14px;
    }

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

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

    .news-slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
        position: relative;
    }

    .logo {
        flex: 1;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    /* User info on mobile */
    .user-info {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-info__main {
        width: 100%;
        justify-content: center;
    }

    .user-info__actions {
        width: 100%;
        justify-content: center;
    }

    .user-info__actions a,
    .user-info__name {
        font-size: 0.85rem;
    }

    .user-point {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    /* Mobile Navigation */
    nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
    }

    nav.active {
        max-height: 600px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        text-align: left;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background: rgba(102, 126, 234, 0.2);
        padding-left: 2rem;
    }

    nav ul li a.active {
        background: rgba(102, 126, 234, 0.3);
        border-left: 4px solid var(--primary-color);
    }

    /* Menu items slide-in animation */
    nav.active ul li {
        animation: slideInRight 0.3s ease forwards;
    }

    nav.active ul li:nth-child(1) {
        animation-delay: 0.05s;
    }

    nav.active ul li:nth-child(2) {
        animation-delay: 0.1s;
    }

    nav.active ul li:nth-child(3) {
        animation-delay: 0.15s;
    }

    nav.active ul li:nth-child(4) {
        animation-delay: 0.2s;
    }

    nav.active ul li:nth-child(5) {
        animation-delay: 0.25s;
    }

    nav.active ul li:nth-child(6) {
        animation-delay: 0.3s;
    }

    nav.active ul li:nth-child(7) {
        animation-delay: 0.35s;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

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

    .news-slider {
        height: 350px;
    }

    .slide-title {
        font-size: 1.4rem;
    }

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

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

    .container {
        padding: 1rem;
    }
}

.btn-warning {
    background: linear-gradient(135deg, #f59f00, #f76707);
    color: white;
}

.btn-warning:hover {
    box-shadow: 0 4px 15px rgba(245, 159, 0, 0.4);
    transform: translateY(-2px);
}
