/* ===== BERITA.CSS - Web Magazine Style ===== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --mag-primary: #0F172A; /* Navy */
    --mag-accent: #1D4ED8; /* Darker Blue */
    --mag-blue: #1E40AF; /* Rich Blue */
    --mag-navy: #1E3A8A;
    --mag-gray: #64748B;
    --mag-light: #F8FAFC;
    --mag-border: #E2E8F0;
    --mag-card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --mag-radius: 16px;
    --mag-serif: 'Merriweather', Georgia, serif;
    --mag-sans: 'Inter', system-ui, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--mag-sans); background: #FFFFFF; color: var(--mag-primary); overflow-x: hidden; width: 100%; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.mag-navbar {
    position: sticky; top: 0; z-index: 999;
    background: white; border-bottom: 1px solid var(--mag-border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.mag-nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: 64px;
}
.mag-logo { display: flex; align-items: center; gap: 0.5rem; }
.mag-logo-icon { font-size: 1.5rem; color: var(--mag-accent); }
.mag-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--mag-primary); letter-spacing: -0.5px; }
.mag-logo-tag { font-size: 0.6rem; font-weight: 700; color: var(--mag-accent); letter-spacing: 1.5px; text-transform: uppercase; }
.mag-nav-links { display: flex; gap: 1.5rem; }
.mag-nav-links a { font-size: 0.875rem; font-weight: 600; color: var(--mag-gray); transition: color 0.2s; }
.mag-nav-links a:hover, .mag-nav-links a.active { color: var(--mag-accent); }
.mag-nav-btn { font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1.25rem; background: var(--mag-accent); color: white; border-radius: 8px; transition: all 0.2s; }
.mag-nav-btn:hover { background: #1E3A8A; }

/* ===== PAGE HEADER ===== */
.mag-page-header {
    background: linear-gradient(135deg, var(--mag-accent) 0%, var(--mag-navy) 100%);
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center; color: white;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--mag-border);
}
.mag-page-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.mag-page-header h1 { 
    font-family: var(--mag-serif); font-size: 1.6rem; margin-bottom: 0.25rem; font-weight: 900;
    color: white;
    position: relative; z-index: 1;
}
.mag-page-header p { color: rgba(255,255,255,0.85); font-size: 0.82rem; max-width: 560px; margin: 0 auto; position: relative; z-index: 1; font-weight: 500; }
.mag-categories {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    margin-top: 1rem; position: relative; z-index: 1;
}
.mag-cat-btn {
    padding: 0.35rem 1rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
    border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: white;
    backdrop-filter: blur(5px);
}
.mag-cat-btn:hover, .mag-cat-btn.active { background: white; border-color: white; color: var(--mag-navy); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* ===== MAIN LAYOUT ===== */
.mag-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.mag-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 3rem 0;
}
.mag-main-col { min-width: 0; }
.mag-sidebar-col { min-width: 0; }

/* ===== FEATURED ARTICLE (BIG) ===== */
.mag-featured {
    position: relative; border-radius: var(--mag-radius); overflow: hidden;
    margin-bottom: 2.5rem; cursor: pointer;
    box-shadow: var(--mag-card-shadow);
}
.mag-featured-img {
    width: 100%; height: 420px; object-fit: cover;
    transition: transform 0.4s ease;
}
.mag-featured:hover .mag-featured-img { transform: scale(1.03); }
.mag-featured-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.4) 50%, transparent);
    padding: 2.5rem 2rem 2rem;
    color: white;
}
.mag-featured-tag { display: inline-block; background: var(--mag-accent); color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; padding: 0.25rem 0.75rem; border-radius: 4px; margin-bottom: 0.75rem; text-transform: uppercase; }
.mag-featured h2 { font-family: var(--mag-serif); font-size: 1.75rem; line-height: 1.3; margin-bottom: 0.75rem; color: white; }
.mag-featured-meta { font-size: 0.8rem; color: rgba(255,255,255,0.7); display: flex; gap: 1rem; align-items: center; }

/* ===== ARTICLE GRID ===== */
.mag-article-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}

.mag-card {
    border-radius: var(--mag-radius); overflow: hidden; background: white;
    box-shadow: var(--mag-card-shadow); border: 1px solid var(--mag-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.mag-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.mag-card-img-wrap { position: relative; overflow: hidden; height: 180px; background: #EFF6FF; }
.mag-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mag-card:hover .mag-card-img-wrap img { transform: scale(1.08); }
.mag-card-img-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--mag-blue); opacity: 0.4; }
.mag-card-type { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--mag-accent); color: white; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.mag-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.mag-card-date { font-size: 0.72rem; color: var(--mag-gray); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.mag-card h3 { font-family: var(--mag-serif); font-size: 1rem; line-height: 1.4; margin-bottom: 0.5rem; color: var(--mag-primary); font-weight: 700; }
.mag-card p { font-size: 0.8rem; color: var(--mag-gray); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mag-card-author { font-size: 0.72rem; color: var(--mag-gray); margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--mag-border); }

/* ===== SIDEBAR ===== */
.mag-sidebar-widget { margin-bottom: 2rem; }
.mag-widget-title {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    color: var(--mag-accent); margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--mag-accent);
}
.mag-sidebar-list { display: flex; flex-direction: column; gap: 0; }
.mag-sidebar-item {
    display: flex; gap: 0.75rem; padding: 0.875rem 0;
    border-bottom: 1px solid var(--mag-border); cursor: pointer;
    transition: background 0.2s; border-radius: 8px;
}
.mag-sidebar-item:hover { background: var(--mag-light); padding-left: 0.5rem; }
.mag-sidebar-item img { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #EFF6FF; }
.mag-sidebar-item-text h4 { font-size: 0.82rem; font-weight: 700; line-height: 1.35; color: var(--mag-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mag-sidebar-item-text span { font-size: 0.7rem; color: var(--mag-gray); margin-top: 0.25rem; display: block; }

/* ===== LOAD MORE ===== */
.mag-load-more { text-align: center; margin: 2.5rem 0; }
.mag-load-more-btn {
    padding: 0.75rem 2.5rem; border: 2px solid var(--mag-primary); border-radius: 8px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer; background: transparent; color: var(--mag-primary);
    transition: all 0.2s;
}
.mag-load-more-btn:hover { background: var(--mag-primary); color: white; }

/* ===== ARTICLE DETAIL PAGE ===== */
.detail-header { max-width: 800px; margin: 1.5rem auto 0; padding: 0 1.5rem; }
.detail-tag { display: inline-block; background: linear-gradient(135deg, var(--mag-blue), var(--mag-accent)); color: white; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; padding: 0.35rem 0.85rem; border-radius: 6px; text-transform: uppercase; margin-bottom: 1.25rem; box-shadow: 0 4px 12px rgba(29,78,216,0.25); }
.detail-title { 
    font-family: var(--mag-serif); font-size: 2.5rem; line-height: 1.3; margin-bottom: 1.25rem;
    background: linear-gradient(90deg, var(--mag-primary) 0%, var(--mag-blue) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-weight: 900; letter-spacing: -0.5px;
}
.detail-meta { display: flex; align-items: center; gap: 1.5rem; color: var(--mag-gray); font-size: 0.85rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--mag-border); flex-wrap: wrap; }
.detail-meta-author { display: flex; align-items: center; gap: 0.5rem; }
.detail-meta-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.detail-cover { width: 100%; max-height: 500px; object-fit: cover; margin: 2rem 0; border-radius: var(--mag-radius); }
.detail-cover-wrap { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

.detail-video-wrap { max-width: 800px; margin: 1.5rem auto; padding: 0 1.5rem; }
.detail-video { aspect-ratio: 16/9; border-radius: var(--mag-radius); overflow: hidden; background: #000; }
.detail-video iframe { width: 100%; height: 100%; border: none; }

.detail-body { max-width: 800px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.detail-content {
    font-family: var(--mag-serif); font-size: 1.05rem; line-height: 1.9; color: #2D3748;
    margin-bottom: 2rem;
    word-break: break-word;
    overflow-wrap: break-word;
}
.detail-content h2, .detail-content h3 { font-family: var(--mag-sans); margin: 2rem 0 0.75rem; }
.detail-content p { margin-bottom: 1.25rem; }
.detail-content img { border-radius: 8px; margin: 1rem 0; max-width: 100%; height: auto; object-fit: contain; }
.detail-content iframe { max-width: 100%; }
.detail-content a { color: var(--mag-blue); text-decoration: underline; word-break: break-all; }
.detail-content blockquote { border-left: 4px solid var(--mag-accent); padding-left: 1.25rem; color: var(--mag-gray); font-style: italic; margin: 1.5rem 0; }

.detail-ext-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 8px; background: #EFF6FF; color: var(--mag-blue);
    font-weight: 600; font-size: 0.9rem; margin-bottom: 2rem; transition: all 0.2s;
}
.detail-ext-link:hover { background: var(--mag-blue); color: white; }

/* ===== SHARE BUTTONS ===== */
.share-section { padding: 1.5rem 0; border-top: 1px solid var(--mag-border); border-bottom: 1px solid var(--mag-border); margin-bottom: 3rem; }
.share-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mag-gray); margin-bottom: 0.75rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.1rem; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
}
.share-btn-wa { background: #25D366; color: white; }
.share-btn-wa:hover { background: #1DA851; }
.share-btn-fb { background: #1877F2; color: white; }
.share-btn-fb:hover { background: #0C5FDB; }
.share-btn-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.share-btn-ig:hover { opacity: 0.9; }
.share-btn-copy { background: #F1F5F9; color: var(--mag-primary); border: 1.5px solid var(--mag-border); }
.share-btn-copy:hover { background: var(--mag-primary); color: white; border-color: var(--mag-primary); }

/* ===== COMMENTS ===== */
.comments-section { margin-bottom: 3rem; }
.comments-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.comment-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.comment-item { background: var(--mag-light); border-radius: var(--mag-radius); padding: 1.25rem; }
.comment-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.comment-author-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; font-weight: 700; flex-shrink: 0; }
.comment-date { font-size: 0.72rem; color: var(--mag-gray); }
.comment-body { font-size: 0.88rem; line-height: 1.65; color: #374151; }

.comment-form { background: var(--mag-light); border-radius: var(--mag-radius); padding: 1.75rem; border: 1px solid var(--mag-border); }
.comment-form h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.25rem; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cf-field { display: flex; flex-direction: column; gap: 0.3rem; }
.cf-field label { font-size: 0.75rem; font-weight: 600; color: #475569; }
.cf-field input, .cf-field textarea {
    padding: 0.65rem 0.875rem; border: 1.5px solid var(--mag-border); border-radius: 8px;
    font-size: 0.88rem; font-family: var(--mag-sans); background: white; outline: none;
    transition: border-color 0.2s;
}
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--mag-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.cf-field textarea { resize: vertical; min-height: 100px; }
.btn-submit-comment {
    padding: 0.75rem 2rem; background: var(--mag-accent); color: white;
    border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
}
.btn-submit-comment:hover { background: #1E3A8A; transform: translateY(-1px); }
.btn-submit-comment:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ===== BACK TO LIST ===== */
.back-to-list { 
    display: inline-flex; align-items: center; gap: 0.5rem; 
    background: #EFF6FF; color: var(--mag-accent); 
    font-size: 0.875rem; font-weight: 700; padding: 0.5rem 1.1rem; 
    border-radius: 20px; transition: all 0.2s; cursor: pointer; border: none; margin: 0 0 1.5rem; 
}
.back-to-list:hover { background: var(--mag-accent); color: white; transform: translateX(-4px); box-shadow: 0 4px 12px rgba(29,78,216,0.2); }

/* ===== HOMEPAGE PREVIEW SECTION - MODERN REDESIGN ===== */
.news-preview-section {
    padding: 5rem 0 2.5rem;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
}
.news-preview-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37,99,235,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(124,58,237,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.news-preview-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* Header */
.news-preview-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 3rem; gap: 1rem; flex-wrap: wrap;
}
.news-preview-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.2);
    color: #2563EB; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 99px;
    margin-bottom: 0.6rem;
}
.news-preview-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900;
    color: var(--mag-primary); line-height: 1.15; letter-spacing: -0.03em;
}
.news-preview-header h2 span {
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.news-see-all {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; font-weight: 700; color: #2563EB;
    border: 1px solid rgba(37,99,235,0.25); padding: 0.5rem 1.25rem;
    border-radius: 99px; transition: all 0.3s; white-space: nowrap;
    background: transparent;
}
.news-see-all:hover {
    background: rgba(37,99,235,0.05); border-color: rgba(37,99,235,0.5);
    gap: 0.8rem;
}

/* Bento Grid Layout */
.news-preview-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.25rem;
    height: 540px;
}

/* Featured news card */
.news-featured-card {
    grid-row: 1 / -1;
    position: relative; border-radius: 20px; overflow: hidden;
    cursor: pointer; background: white;
    box-shadow: 0 20px 40px rgba(37,99,235,0.08);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}
.news-featured-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 30px 60px rgba(37,99,235,0.12);
}
.news-featured-card img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.85; transition: opacity 0.5s, transform 0.6s ease;
}
.news-featured-card:hover img { opacity: 0.75; transform: scale(1.06); }
.news-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 50%, transparent 80%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem;
}
.news-feat-tag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    color: white; font-size: 0.65rem; font-weight: 800;
    padding: 0.3rem 0.75rem; border-radius: 99px;
    width: fit-content; margin-bottom: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.news-featured-overlay h3 {
    font-size: 1.35rem; font-weight: 800; color: white;
    line-height: 1.3; margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.news-featured-meta {
    display: flex; align-items: center; gap: 0.85rem;
    font-size: 0.73rem; color: rgba(255,255,255,0.7);
}
.news-featured-meta i { color: #60A5FA; }
.news-icon-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(255,255,255,0.2);
}

/* Small news card */
.news-small-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px; overflow: hidden; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.news-small-card:hover {
    border-color: #BFDBFE;
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(37,99,235,0.1);
}
.news-small-img { height: 170px; overflow: hidden; background: #EFF6FF; position: relative; flex-shrink: 0; }
.news-small-tag {
    position: absolute; top: 0.6rem; left: 0.6rem; z-index: 10;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    color: white; font-size: 0.6rem; font-weight: 700;
    padding: 0.2rem 0.5rem; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.news-small-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.news-small-card:hover .news-small-img img { transform: scale(1.1); }
.news-small-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #93C5FD; }
.news-small-body { padding: 0.85rem 1rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-small-body h4 {
    font-size: 0.85rem; font-weight: 700; line-height: 1.45;
    color: var(--mag-primary); margin-bottom: 0.5rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-small-body span { font-size: 0.7rem; color: var(--mag-gray); display: flex; align-items: center; gap: 0.35rem; }
.news-small-body span i { color: #3B82F6; opacity: 0.8; }

/* Entrance animations */
@keyframes newsCardFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.news-featured-card { animation: newsCardFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.news-small-card:nth-child(2) { animation: newsCardFadeUp 0.65s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
.news-small-card:nth-child(3) { animation: newsCardFadeUp 0.65s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ===== EMPTY STATE ===== */
.mag-empty { text-align: center; padding: 4rem 1rem; color: var(--mag-gray); }
.mag-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.mag-empty p { font-size: 1rem; }

/* ===== FOOTER ===== */
.mag-footer { background: var(--mag-primary); color: rgba(255,255,255,0.7); text-align: center; padding: 2rem; font-size: 0.85rem; }
.mag-footer a { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .mag-container { padding: 0 1rem; }
    .mag-grid-layout { grid-template-columns: 1fr; gap: 0; padding: 1.5rem 0 1rem; }
    .mag-sidebar-col {
        display: block;
        padding: 0;
        margin-top: 1.5rem;
        border-top: 2px solid #E2E8F0;
        padding-top: 1.5rem;
        width: 100%;
        max-width: 100vw;
    }
    /* Horizontal scroll for sidebar items on mobile */
    .mag-sidebar-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    .mag-sidebar-list::-webkit-scrollbar { display: none; }
    .mag-sidebar-item {
        min-width: 190px;
        max-width: 220px;
        flex-shrink: 0;
        border-bottom: none;
        border: 1px solid var(--mag-border);
        border-radius: 12px;
        padding: 0.75rem;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .mag-sidebar-item:hover { padding-left: 0.75rem; }
    .mag-sidebar-item img { width: 52px; height: 44px; }
    .mag-featured-img { height: 240px; }
    .mag-featured { height: auto; }
    .mag-featured-overlay { padding: 1.5rem 1rem 1rem; }
    .mag-featured h2 { font-size: 1.25rem; }
    #tagsContainer { margin-top: 0.75rem !important; }
    .news-preview-layout { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
    .news-featured-card { grid-row: auto; grid-column: 1 / -1; height: 300px; }
    .news-preview-section { padding: 3.5rem 0; }
    .detail-title { font-size: 1.75rem; }
    .detail-header { padding: 0 1rem; }
    .detail-body { padding: 0 1rem 2rem; }
    .detail-cover-wrap { padding: 0 1rem; }
    .detail-video-wrap { padding: 0 1rem; }
}
@media (max-width: 768px) {
    .mag-article-grid { grid-template-columns: 1fr; }
    .news-preview-layout { grid-template-columns: 1fr; height: auto; }
    .news-featured-card { grid-row: auto; grid-column: unset; height: 260px; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .mag-page-header h1 { font-size: 1.5rem; word-wrap: break-word; }
    .mag-page-header p { font-size: 0.85rem; }
    .detail-title { font-size: 1.4rem; word-wrap: break-word; }
    .mag-sidebar-item { min-width: 160px; max-width: 80vw; }
    .mag-featured-img { height: 200px; }
    .mag-featured-overlay { padding: 1rem 1rem 0.75rem; }
    .mag-featured h2 { font-size: 1.15rem; }
    .share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .share-btn { width: 100%; justify-content: center; }
    .detail-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .detail-ext-link { width: 100%; justify-content: center; text-align: center; }
    .btn-submit-comment { width: 100%; justify-content: center; }
}
