/* ============================================================
           ROOT VARIABLES — Premium Design System
           ============================================================ */
:root {
    /* Primary Colors */
    --primary: #0a1628;
    --primary-light: #1a2a4a;
    --secondary: #ff6b35;
    --secondary-light: #ff8a5c;
    --accent: #00d4ff;
    --accent-dark: #0099cc;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff8a5c 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Shadows */
    --shadow-sm: 0 1px 2px 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.7;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
           SCROLLBAR
           ============================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

/* ============================================================
           HEADER / NAVIGATION
           ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    height: var(--header-height);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo i {
    color: var(--secondary);
    font-size: 2rem;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-full);
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions button:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--primary);
    border-radius: var(--border-radius-full);
    transition: var(--transition);
}

/* ============================================================
           HERO SECTION
           ============================================================ */
.hero {
    padding: 120px 0 60px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 32px;
    align-items: start;
}

.hero-main {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.hero-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.hero-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-main .hero-content {
    padding: 32px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: white;
}

.hero-main .hero-content .tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.hero-main .hero-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-main .hero-content p {
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 90%;
}

.hero-main .hero-content .meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side .side-item {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    align-items: center;
}

.hero-side .side-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
}

.hero-side .side-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.hero-side .side-item .info h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.hero-side .side-item .info .meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* ============================================================
           SECTION HEADERS
           ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0 32px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--secondary);
}

.section-header .view-all {
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.section-header .view-all:hover {
    gap: 12px;
}

/* ============================================================
           NEWS CARDS
           ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.news-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.news-card .card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--gray-200);
}

.news-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .card-img img {
    transform: scale(1.08);
}

.news-card .card-img .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-full);
    letter-spacing: 0.3px;
}

.news-card .card-img .badge.video {
    background: var(--gradient-accent);
}

.news-card .card-img .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.4rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.news-card:hover .card-img .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
}

.news-card .card-body {
    padding: 24px;
}

.news-card .card-body .cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.news-card .card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--primary);
}

.news-card .card-body p {
    color: var(--gray-600);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-body .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.news-card .card-body .meta i {
    margin-right: 4px;
}

/* ============================================================
           CATEGORY PAGE
           ============================================================ */
.category-hero {
    padding: 120px 0 40px;
    background: var(--gradient-primary);
    color: white;
}

.category-hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
}

.category-hero p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-top: 8px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
}

.category-filters .filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-full);
    background: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.category-filters .filter-btn:hover,
.category-filters .filter-btn.active {
    background: var(--gradient-secondary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
           ARTICLE DETAIL
           ============================================================ */
.article-detail {
    padding: 120px 0 60px;
}

.article-detail .breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.article-detail .breadcrumb a {
    color: var(--secondary);
    font-weight: 600;
}

.article-detail .breadcrumb a:hover {
    color: var(--secondary-light);
}

.article-header {
    margin-bottom: 40px;
}

.article-header .cat-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: var(--border-radius-full);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary);
}

.article-header .dek {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-header .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.article-header .meta i {
    margin-right: 6px;
    color: var(--secondary);
}

.article-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-700);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2,
.article-body h3 {
    font-family: var(--font-serif);
    color: var(--primary);
    margin: 32px 0 16px;
}

.article-body img {
    border-radius: var(--border-radius-sm);
    margin: 24px 0;
    width: 100%;
}

.article-body .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin: 24px 0;
    background: var(--primary);
}

/* CKEditor output: headings, lists, quotes, links, tables, and the
   figure/figcaption wrappers it uses for images and the custom
   video-insert button's <figure class="media"> output. */
.article-body h4 {
    font-family: var(--font-serif);
    color: var(--primary);
    margin: 28px 0 14px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body blockquote {
    border-left: 4px solid var(--secondary);
    background: var(--gray-50);
    padding: 12px 20px;
    margin: 24px 0;
    color: var(--gray-600);
    font-style: italic;
}

.article-body figure.image {
    margin: 24px 0;
}

.article-body figure.image.image-style-side {
    float: right;
    max-width: 45%;
    margin: 4px 0 16px 24px;
}

.article-body figure.image img {
    border-radius: var(--border-radius-sm);
    width: 100%;
}

.article-body figcaption {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
}

.article-body figure.media {
    margin: 24px 0;
}

.article-body figure.media video {
    width: 100%;
    border-radius: var(--border-radius-sm);
    background: var(--primary);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.article-body table th,
.article-body table td {
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    text-align: left;
}

.article-body table th {
    background: var(--gray-50);
    font-weight: 700;
}

.article-body .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-sidebar .sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.article-sidebar .sidebar-widget h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-sidebar .sidebar-widget h4 i {
    color: var(--secondary);
}

.article-sidebar .sidebar-widget .trend-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.article-sidebar .sidebar-widget .trend-item:hover {
    padding-left: 8px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
}

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

.article-sidebar .sidebar-widget .trend-item .num {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--secondary);
    opacity: 0.4;
    min-width: 32px;
}

.article-sidebar .sidebar-widget .trend-item .text {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.share-buttons {
    display: flex;
    gap: 12px;
    font-size: 1.5rem;
}

.share-buttons a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--gray-100);
    color: var(--gray-600);
}

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

.share-buttons a.twitter:hover {
    background: #1DA1F2;
    color: white;
}
.share-buttons a.facebook:hover {
    background: #4267B2;
    color: white;
}
.share-buttons a.instagram:hover {
    background: #E1306C;
    color: white;
}
.share-buttons a.linkedin:hover {
    background: #0A66C2;
    color: white;
}

/* ============================================================
           COMMENTS SECTION
           ============================================================ */
.comments-section {
    margin-top: 60px;
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.comments-section .comments-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.comments-section .comments-header h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-section .comments-header h3 span {
    font-size: 1rem;
    background: var(--gray-100);
    padding: 0 16px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    color: var(--secondary);
}

.comment-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-sort label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.comment-sort select {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.comment-sort select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.comment-form {
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    margin-bottom: 32px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    background: white;
    color: var(--gray-700);
    transition: var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.comment-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    align-items: center;
}

.comment-form .form-row input {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    background: white;
    color: var(--gray-700);
    transition: var(--transition);
}

.comment-form .form-row input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.comment-form .form-row .btn {
    padding: 10px 28px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form .form-row .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Comment List */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
    animation: fadeSlideUp 0.4s ease;
}

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

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item .comment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-item .comment-top .author {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.comment-item .comment-top .author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.comment-item .comment-top .date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.comment-item .comment-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin: 4px 0 10px 46px;
    line-height: 1.7;
}

.comment-item .comment-actions {
    display: flex;
    gap: 16px;
    margin-left: 46px;
    font-size: 0.8rem;
}

.comment-item .comment-actions button {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.comment-item .comment-actions button:hover {
    background: var(--gray-100);
    color: var(--secondary);
}

.comment-item .comment-actions button.liked {
    color: var(--secondary);
}

.comment-item .comment-actions button .count {
    font-weight: 600;
    min-width: 16px;
}

.comment-item .replies {
    margin-left: 46px;
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--gray-200);
}

.comment-item .replies .comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.reply-form {
    margin-left: 46px;
    margin-top: 12px;
    display: none;
}

.reply-form.active {
    display: block;
}

.reply-form textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    background: white;
    color: var(--gray-700);
    transition: var(--transition);
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.reply-form .form-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.reply-form .form-row input {
    flex: 1;
    min-width: 140px;
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    background: white;
    color: var(--gray-700);
}

.reply-form .form-row input:focus {
    outline: none;
    border-color: var(--secondary);
}

.reply-form .form-row .btn {
    padding: 8px 20px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.reply-form .form-row .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
           FOOTER
           ============================================================ */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 32px;
    margin-top: 80px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.footer-brand i {
    color: var(--secondary);
}

.footer-brand span {
    color: var(--secondary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-links a {
    font-weight: 500;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--secondary);
    transform: translateY(-4px);
}

/* ============================================================
           VIDEO MODAL
           ============================================================ */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(10px);
}

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

.video-modal .modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-modal .modal-content iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

.video-modal .close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.video-modal .close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ============================================================
           PAGE TRANSITIONS
           ============================================================ */
.page {
    animation: fadePage 0.5s ease;
}

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

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

    .hero-main img {
        height: 280px;
    }

    .article-content {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }

    .hero-main .hero-content {
        padding: 20px;
    }

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

    .hero-main .hero-content p {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .hero-side .side-item img {
        width: 60px;
        height: 60px;
    }

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

    .article-header h1 {
        font-size: 2rem;
    }

    .article-body {
        font-size: 0.98rem;
    }

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

    .comments-section {
        padding: 24px;
    }

    .comments-section .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .comment-item .comment-text {
        margin-left: 0;
    }

    .comment-item .comment-actions {
        margin-left: 0;
    }

    .comment-item .replies {
        margin-left: 16px;
        padding-left: 12px;
    }

    .reply-form {
        margin-left: 0;
    }

    .comment-form .form-row {
        flex-direction: column;
    }

    .comment-form .form-row .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .video-modal .modal-content iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-main img {
        height: 200px;
    }

    .hero-main .hero-content h2 {
        font-size: 1.1rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .category-hero h1 {
        font-size: 2rem;
    }
}

/* ============================================================
           SCROLL ANIMATIONS (AOS Overrides)
           ============================================================ */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ============================================================
           SERVER-RENDERED STRUCTURE ADDITIONS
           This app renders real pages/links/forms instead of the original
           demo's JS-driven divs, so a few elements changed tag (div -> a,
           div -> button, inline JS handlers -> <form> posts). Their classes
           are untouched, these just cover the handful of cases the rules
           above don't already account for.
           ============================================================ */
.news-card .card-img a {
    display: block;
    height: 100%;
}

.news-card .card-img .play-btn {
    border: none;
    padding: 0;
    cursor: pointer;
}

.comment-sort form,
.comment-actions .like-form {
    display: contents;
}
