/* 
   ====================================================
   MAN 1 YOGYAKARTA - ULTRA PREMIUM CSS
   ====================================================
*/

:root {
    /* Rich Color Palette */
    --primary: #047857; /* Deep Emerald */
    --primary-dark: #064e3b;
    --primary-light: #10b981;
    --secondary: #d97706; /* Rich Gold */
    --secondary-light: #f59e0b;
    
    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-slate: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Text */
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-light: #94a3b8;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Glass & Shadows */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(4, 120, 87, 0.15);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: inherit;}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 120px 0; }
.bg-slate { background-color: var(--bg-slate); }

/* Decorative Background Blobs */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}
.shape-1 {
    width: 400px; height: 400px;
    background: rgba(16, 185, 129, 0.2);
    top: -100px; left: -100px;
}
.shape-2 {
    width: 500px; height: 500px;
    background: rgba(245, 158, 11, 0.15);
    top: 40%; right: -200px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-glow {
    box-shadow: 0 10px 25px -5px rgba(4, 120, 87, 0.4);
}
.btn-glow:hover {
    box-shadow: 0 15px 35px -5px rgba(4, 120, 87, 0.6);
}

.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #b45309; transform: translateY(-3px); }

.btn-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}
.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled, .navbar.navbar-solid {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

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

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

.logo-icon-wrap {
    background: white;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo-img { height: 40px; }

.logo-text { display: flex; flex-direction: column; }
.logo-text .title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.5px;
    transition: var(--transition);
}
.logo-text .subtitle { font-size: 0.7rem; color: rgba(255,255,255,0.8); transition: var(--transition); }

.navbar.scrolled .logo-text .title, .navbar.navbar-solid .logo-text .title { color: var(--text-dark); }
.navbar.scrolled .logo-text .subtitle, .navbar.navbar-solid .logo-text .subtitle { color: var(--text-main); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    transition: var(--transition);
}

.navbar.scrolled .nav-menu {
    /* No change needed here anymore, but keeping it empty or removed */
}

.nav-menu li a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}
.navbar.scrolled .nav-menu li a, .navbar.navbar-solid .nav-menu li a { color: var(--text-main); }

.nav-menu li a:not(.btn):hover { color: var(--secondary-light); }
.navbar.scrolled .nav-menu li a:not(.btn):hover, .navbar.navbar-solid .nav-menu li a:not(.btn):hover { color: var(--primary); }

.dropdown { position: relative; }
.submenu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    padding: 12px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}
.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.submenu li a {
    color: var(--text-main) !important;
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
}
.submenu li a:hover {
    background: var(--bg-slate);
    color: var(--primary) !important;
}

.mobile-toggle {
    display: none;
    background: none; border: none;
    color: white; font-size: 2rem;
}
.navbar.scrolled .mobile-toggle, .navbar.navbar-solid .mobile-toggle { color: var(--text-dark); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
    100% { transform: scale(1); }
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15,23,42,0.95) 0%, rgba(4,120,87,0.7) 60%, rgba(4,120,87,0.2) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content { color: white; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--secondary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-light);
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.h-stat h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2px;
}
.h-stat span {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.h-stat-divider {
    width: 1px; height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Hero Visual & Glass Cards */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    padding: 20px;
    width: 380px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.glass-title { color: white; font-weight: 600; font-size: 0.9rem; }

.glass-img {
    width: 100%; height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.glass-body h4 { color: white; font-size: 1.2rem; margin-bottom: 12px; }
.glass-tag {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.glass-link {
    color: var(--secondary-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 20px;
    border-radius: 100px;
    display: flex; align-items: center; gap: 12px;
    color: white; font-weight: 600;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}
.floating-element i { font-size: 1.5rem; color: var(--secondary-light); }
.float-1 { top: 10%; right: 0; animation-delay: 0s; }
.float-2 { bottom: 15%; left: -20px; animation-delay: 2s; }

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

/* Quick Links Overlap */
.quick-links-overlap {
    margin-top: -60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.interactive-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.interactive-card > * { position: relative; z-index: 1; }

.feature-icon {
    width: 50px; height: 50px;
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
    transition: var(--transition);
}

.feature-text h3 { font-size: 1.1rem; margin-bottom: 4px; transition: var(--transition); }
.feature-text p { font-size: 0.85rem; color: var(--text-light); transition: var(--transition); }

.card-arrow {
    margin-left: auto;
    color: var(--text-light);
    transition: var(--transition);
}

.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.interactive-card:hover::before { opacity: 1; }
.interactive-card:hover .feature-icon { background: rgba(255,255,255,0.2); color: white; }
.interactive-card:hover h3, .interactive-card:hover p, .interactive-card:hover .card-arrow { color: white; }

/* Sambutan Asymmetrical */
.sambutan-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.sub-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.section-title { font-size: 3rem; margin-bottom: 32px; }

.quote-box {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 32px;
    border-left: 4px solid var(--primary);
}
.quote-icon {
    position: absolute;
    top: -20px; left: 30px;
    font-size: 40px;
    color: var(--primary);
    background: white;
    padding: 0 10px;
}
.quote-text {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
    font-style: italic;
}

.author-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.author-name { font-size: 1.4rem; color: var(--text-dark); }
.author-title { color: var(--primary); font-weight: 500; }
.author-badge { height: 60px; opacity: 0.2; }

.sambutan-image-wrapper { position: relative; }
.img-backdrop {
    position: absolute;
    inset: -20px -20px 20px 20px;
    background: var(--primary);
    border-radius: var(--radius-xl);
    z-index: 0;
}
.sambutan-img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
.floating-badge {
    position: absolute;
    bottom: -30px; left: -30px;
    background: white;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
    display: flex; align-items: center; gap: 16px;
    animation: float 5s ease-in-out infinite;
}
.badge-icon {
    width: 50px; height: 50px;
    background: var(--secondary-light);
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
}
.badge-text strong { display: block; font-size: 1.1rem; color: var(--text-dark); }
.badge-text span { font-size: 0.85rem; color: var(--text-light); }

/* Bento Grid News */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.news-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}
.large-item {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.bento-img { width: 100%; height: 100%; position: absolute; inset: 0; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bento-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.2) 60%, transparent 100%);
}

.bento-item:hover .bento-img img { transform: scale(1.05); }

.bento-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px;
    color: white;
    z-index: 2;
}

.bento-meta {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
}
.tag {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tag-primary { background: var(--primary); }
.tag-secondary { background: #3b82f6; }
.tag-tertiary { background: var(--secondary); }
.date { font-size: 0.85rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 6px;}

.bento-title { font-size: 1.5rem; color: white; margin-bottom: 12px; line-height: 1.3;}
.large-item .bento-title { font-size: 2.2rem; }
.bento-excerpt { font-size: 1rem; color: rgba(255,255,255,0.8); }

/* Premium Footer */
.footer-premium {
    background-color: #042f2e; /* Darkest Teal */
    color: white;
    position: relative;
}
.footer-wave { display: block; margin-bottom: -5px; }

.footer-main { padding: 60px 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.footer-logo img { height: 60px; filter: brightness(0) invert(1); }
.footer-logo h2 { color: white; font-size: 1.4rem; margin-bottom: 0;}
.footer-logo p { font-size: 0.8rem; color: var(--primary-light); text-transform: uppercase; letter-spacing: 1px;}
.brand-desc { color: rgba(255,255,255,0.7); margin-bottom: 24px; }

.social-links-premium { display: flex; gap: 12px; }
.social-btn {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; font-size: 1.2rem;
}
.social-btn:hover { background: var(--primary-light); transform: translateY(-3px); }

.footer-links h3, .footer-contact h3 {
    color: white; font-size: 1.2rem; margin-bottom: 24px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--secondary-light); padding-left: 5px;}

.contact-card {
    background: rgba(255,255,255,0.05);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}
.c-item { display: flex; gap: 16px; margin-bottom: 16px; color: rgba(255,255,255,0.8); font-size: 0.9rem;}
.c-item:last-child { margin-bottom: 0; }
.c-item i { color: var(--primary-light); font-size: 1.2rem; }

.footer-bottom {
    background: #02201f;
    padding: 24px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}
.bottom-flex { display: flex; justify-content: space-between; align-items: center; }
.bottom-links { display: flex; gap: 24px; }
.bottom-links a:hover { color: white; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    z-index: 10;
}
.mouse {
    width: 30px; height: 50px; border: 2px solid rgba(255,255,255,0.5); border-radius: 20px; position: relative;
}
.wheel {
    width: 4px; height: 8px; background: white; border-radius: 2px;
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    animation: scroll 2s infinite;
}
.scroll-text { color: rgba(255,255,255,0.7); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;}
@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(40px); animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in-left { opacity: 0; transform: translateX(40px); animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { to { opacity: 1; transform: translateX(0); } }

/* Scroll Reveal Classes (Handled by JS) */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-active { opacity: 1; transform: translate(0,0); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; /* Hide complex glass card on tablet */ }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .sambutan-wrapper { grid-template-columns: 1fr; }
    .news-bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .large-item { grid-column: 1; grid-row: 1; height: 400px; }
    .bento-item { height: 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: white; flex-direction: column; align-items: flex-start; padding: 40px;
        border-radius: 0; border: none;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li a { color: var(--text-dark); font-size: 1.2rem;}
    .mobile-toggle { display: block; }
    .hero-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-flex { flex-direction: column; gap: 20px; text-align: center;}
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 10px; }
    .h-stat-divider { width: 100%; height: 1px; }
    .article-container { grid-template-columns: 1fr; }
}

/* =========================================
   PAGES CSS (Berita & Detail Berita)
   ========================================= */

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%);
    opacity: 0.8;
}
.page-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: white;
}
.page-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* News List */
.news-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.list-card {
    height: 380px;
    position: relative;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center;
    background: white;
    border-radius: 50%;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}
.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
}

/* Article Page */
.article-header {
    padding: 150px 0 50px;
    background: white;
}
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.back-link {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-light);
    font-weight: 500;
}
.back-link:hover { color: var(--primary); }
.article-title {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.2;
}
.article-info {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--bg-slate);
}
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 45px; height: 45px; border-radius: 50%; }
.author strong { display: block; color: var(--text-dark); }
.author span { font-size: 0.85rem; color: var(--text-light); }
.date-info {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.article-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
}
.featured-image { margin-bottom: 40px; }
.featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.caption {
    display: block; text-align: center; font-size: 0.85rem;
    color: var(--text-light); margin-top: 12px;
}

.rich-text {
    font-size: 1.1rem;
    color: var(--text-main);
}
.rich-text p { margin-bottom: 20px; line-height: 1.8; }
.rich-text .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 30px;
}
.rich-text h3 { margin: 40px 0 20px; font-size: 1.8rem; }
.rich-text blockquote {
    padding: 30px;
    background: var(--bg-slate);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 40px 0;
}

.article-share {
    display: flex; align-items: center; gap: 16px;
    padding: 30px 0; border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}
.article-share span { font-weight: 600; }
.share-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; font-size: 1.2rem; transition: var(--transition);
}
.facebook { background: #1877F2; }
.twitter { background: #1DA1F2; }
.whatsapp { background: #25D366; }
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.sidebar-widget {
    background: white; padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}
.sidebar-widget h3 {
    font-size: 1.2rem; margin-bottom: 24px;
    padding-bottom: 12px; border-bottom: 1px solid var(--bg-slate);
}
.popular-list { display: flex; flex-direction: column; gap: 20px; }
.popular-item {
    display: flex; gap: 15px; align-items: center;
}
.popular-item img {
    width: 80px; height: 80px; object-fit: cover;
    border-radius: var(--radius-md);
}
.pop-content h4 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 6px;}
.popular-item:hover h4 { color: var(--primary); }
.pop-content span { font-size: 0.8rem; color: var(--text-light); }

.tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-link {
    padding: 6px 12px; background: var(--bg-slate);
    border-radius: 100px; font-size: 0.85rem;
    color: var(--text-main); font-weight: 500;
}
.tag-link:hover { background: var(--primary); color: white; }
