/* ============================================
   Nuupdate - Portal Berita Teknologi
   Style: Clean, Modern, Content-Focused
   ============================================ */

/* Design Tokens */
:root {
    --nu-color-background: #f9fafb;
    --nu-color-surface: #ffffff;
    --nu-color-elevated: #f3f4f6;
    --nu-color-border: #e5e7eb;
    --nu-color-text: #1f2937;
    --nu-color-text-muted: #6b7280;
    --nu-color-primary: #2563eb;
    --nu-color-primary-dark: #1d4ed8;
    --nu-color-accent: #f97316;
    --nu-radius-sm: 6px;
    --nu-radius-md: 12px;
    --nu-radius-lg: 16px;
    --nu-space-0: 0;
    --nu-space-1: 0.25rem;
    --nu-space-2: 0.5rem;
    --nu-space-3: 0.75rem;
    --nu-space-4: 1rem;
    --nu-space-5: 1.25rem;
    --nu-space-6: 1.5rem;
    --nu-space-8: 2rem;
    --nu-space-10: 2.5rem;
    --nu-space-12: 3rem;
    --nu-space-section-y: clamp(2.5rem, 4vw + 1rem, 4rem);
    --nu-max-width-lg: 1024px;
    --nu-max-width-xl: 1200px;
    --nu-max-width-xxl: 1360px;
    --nu-container-padding: clamp(1rem, 2.8vw, 2rem);
    --nu-transition-fast: 0.2s ease;
    --nu-transition-medium: 0.3s ease;
}

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
}

/* Ensure no padding/margin that could create white space */
body {
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--nu-color-text);
    background: var(--nu-color-background);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Layout Utilities */
.nu-container {
    width: 100%;
    max-width: var(--nu-max-width-xxl);
    margin: 0 auto;
    padding-left: var(--nu-container-padding);
    padding-right: var(--nu-container-padding);
    box-sizing: border-box;
}

.nu-stack {
    display: flex;
    flex-direction: column;
    gap: var(--nu-space-4);
}

.nu-stack--tight {
    gap: var(--nu-space-2);
}

.nu-grid {
    display: grid;
    gap: var(--nu-space-4);
}
ul {
    list-style: none;
}

/* ============================================
   HEADER STYLES
   ============================================ */
/* ============================================
   HEADER - 3 SECTION LAYOUT (NYTimes Style)
   ============================================ */

.main-header {
    background: var(--nu-color-surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nu-color-border);
}

/* Homepage Header - NYTimes Style (Only Categories saat scroll) */
.main-header.homepage-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-bottom: 0;
    background: var(--nu-color-surface);
}

/* Saat scroll, sembunyikan top dan middle bar */
.main-header.homepage-header.scrolled .header-top-bar,
.main-header.homepage-header.scrolled .header-middle-bar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    pointer-events: none;
}

/* Default state untuk top dan middle bar */
.main-header.homepage-header .header-top-bar,
.main-header.homepage-header .header-middle-bar {
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

/* Semua halaman: sembunyikan middle bar (section 2) saat scroll */
.main-header.scrolled .header-middle-bar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    pointer-events: none;
}

/* Default state untuk middle bar di semua halaman */
.main-header .header-middle-bar {
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

/* Bottom bar - NYTimes Style */
.main-header.homepage-header .header-bottom-bar {
    padding: 12px 0;
    border-bottom: 1px solid #e2e2e2;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Saat scroll, bottom bar lebih compact seperti NYTimes */
.main-header.homepage-header.scrolled .header-bottom-bar {
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e2e2;
}

/* Sembunyikan mobile menu toggle di homepage (hanya tampilkan navigation) */
.main-header.homepage-header .mobile-menu-toggle {
    display: none !important;
}

/* Navigation - NYTimes Style */
.main-header.homepage-header .main-nav {
    display: flex !important;
    gap: 20px;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    margin: 0;
}

.main-header.homepage-header .main-nav::-webkit-scrollbar {
    display: none;
}

/* Mobile: Navigation horizontal scroll */
@media (max-width: 768px) {
    .main-header.homepage-header .main-nav {
        gap: 16px;
        padding-right: 20px;
    }
    
    .main-header.homepage-header .nav-link {
        font-size: 0.8rem;
        padding: 4px 0;
    }
}

/* Nav Link - NYTimes Style */
.main-header.homepage-header .nav-link {
    color: #000000;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 6px 0;
    border-radius: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    border-bottom: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.main-header.homepage-header .nav-link:hover {
    color: #000000;
    border-bottom: none;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Dropdown arrow - NYTimes Style */
.main-header.homepage-header .dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    color: #666;
    margin-left: 2px;
}

.main-header.homepage-header .nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu - NYTimes Style */
.main-header.homepage-header .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    padding: 8px 0;
}

.main-header.homepage-header .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-header.homepage-header .nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background 0.2s ease;
    text-transform: none;
}

.main-header.homepage-header .nav-dropdown-item:hover {
    background: #f5f5f5;
    color: #000000;
}

/* Pastikan konten homepage tidak terhalang */
body.homepage .main-content {
    padding-top: 0;
    margin-top: 0;
}

/* Section 1: Top Bar */
.header-top-bar {
    background: var(--nu-color-surface);
    border-bottom: 1px solid var(--nu-color-border);
    padding: var(--nu-space-2) 0;
    font-size: 0.75rem;
    position: relative;
    z-index: 1001;
    overflow: visible;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    position: relative;
}

.header-top-left {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.header-top-link {
    color: var(--nu-color-text-muted);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.header-top-link:hover {
    color: var(--nu-color-primary);
}

.header-top-link.active {
    color: var(--nu-color-primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.header-top-link.active::after {
    content: '●';
    margin-left: 6px;
    font-size: 0.5rem;
    color: var(--nu-color-primary);
    vertical-align: middle;
}

.header-top-link-regional {
    color: var(--nu-color-primary);
    font-weight: 700;
    position: relative;
}

.header-top-link-regional:hover {
    color: var(--nu-color-primary-dark);
}

.header-top-link-regional::after {
    content: '★';
    font-size: 0.6rem;
    margin-left: 4px;
    color: var(--nu-color-accent);
}

.header-top-separator {
    color: #d1d5db;
    margin: 0 8px;
    font-weight: 300;
}

/* Language Dropdown */
.header-language-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1002;
    overflow: visible;
}

.header-language-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow-small {
    font-size: 0.6rem;
    transition: transform 0.3s;
    display: inline-block;
    margin-left: 2px;
}

.header-language-dropdown:hover .dropdown-arrow-small,
.header-language-dropdown.active .dropdown-arrow-small {
    transform: rotate(180deg);
}

.header-language-menu {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    min-width: 150px !important;
    max-width: 200px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-5px) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
    z-index: 1003 !important;
    padding: 6px 0 !important;
    pointer-events: none !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
    display: block !important;
}

.header-language-dropdown:hover .header-language-menu,
.header-language-dropdown.active .header-language-menu,
.header-language-dropdown.clicked .header-language-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
    display: block !important;
}

.header-language-item {
    display: block;
    padding: 8px 16px;
    color: var(--nu-color-text);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--nu-transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.header-language-item:hover {
    background: rgba(37, 99, 235, 0.08);
}

.header-language-item.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--nu-color-primary);
    font-weight: 700;
    position: relative;
}

.header-language-item.active::before {
    content: '●';
    margin-right: 8px;
    font-size: 0.6rem;
    color: var(--nu-color-primary);
}

.header-top-right {
    display: flex;
    gap: var(--nu-space-3);
    align-items: center;
}

.subscribe-btn {
    background: var(--nu-color-primary);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: var(--nu-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--nu-transition-fast), box-shadow var(--nu-transition-fast);
}

.subscribe-btn:hover {
    background: var(--nu-color-primary-dark);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.login-btn-top {
    background: var(--nu-color-surface);
    color: var(--nu-color-text);
    padding: 6px 16px;
    border: 1px solid var(--nu-color-border);
    border-radius: var(--nu-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--nu-transition-fast);
}

.login-btn-top:hover {
    background: var(--nu-color-elevated);
    border-color: var(--nu-color-primary);
}

/* Section 2: Middle Bar (Logo Centered) */
.header-middle-bar {
    background: var(--nu-color-surface);
    border-bottom: 1px solid var(--nu-color-border);
    padding: var(--nu-space-4) 0;
}

.header-middle-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--nu-space-4);
}

.header-middle-left {
    display: flex;
    flex-direction: column;
    gap: var(--nu-space-1);
}

.header-date {
    font-size: 0.85rem;
    color: var(--nu-color-text-muted);
    font-weight: 500;
}

.header-edition-link {
    font-size: 0.75rem;
    color: var(--nu-color-primary);
    text-decoration: none;
    font-weight: 600;
}

.header-edition-link:hover {
    text-decoration: underline;
}

.header-middle-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-main {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-main-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-middle-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-btn-main {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    color: var(--nu-color-text-muted);
    transition: color var(--nu-transition-fast);
    line-height: 1;
}

.search-btn-main:hover {
    color: var(--nu-color-primary);
}

/* Section 3: Bottom Bar (Navigation) */
.header-bottom-bar {
    background: var(--nu-color-surface);
    border-bottom: 1px solid var(--nu-color-border);
    padding: var(--nu-space-3) 0;
}

/* NYTimes Style untuk homepage */
.main-header.homepage-header .header-bottom-container {
    padding-left: var(--nu-container-padding);
    padding-right: var(--nu-container-padding);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

/* Pastikan navigation full width di homepage */
.main-header.homepage-header .header-bottom-container .main-nav {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Header bottom container - NYTimes Style */
.main-header.homepage-header .header-bottom-container {
    width: 100%;
    max-width: 100%;
}

.header-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-top-container:not(.nu-container),
.header-middle-container:not(.nu-container),
.header-bottom-container:not(.nu-container) {
    padding-left: var(--nu-container-padding);
    padding-right: var(--nu-container-padding);
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
}

.nav-link {
    color: var(--nu-color-text);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 0;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--nu-color-primary);
    border-bottom-color: var(--nu-color-primary);
    background: transparent;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-link-with-dropdown {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: var(--nu-color-surface);
    border: 1px solid var(--nu-color-border);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
    margin-top: 0;
    padding: 8px 0;
    overflow: visible;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--nu-color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--nu-color-elevated);
    color: var(--nu-color-primary);
}

/* Mobile Menu Toggle */
body.nav-open {
    overflow: hidden;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--nu-color-text);
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

.mobile-nav-backdrop {
    display: none;
}

.user-menu {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.user-greeting {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-greeting:hover {
    background: #f9fafb;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 180px;
    display: none;
    border: 1px solid #e5e7eb;
}

.user-menu:hover .user-menu-dropdown,
.user-menu.open .user-menu-dropdown {
    display: block;
}

.user-menu:focus-within .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.user-menu-dropdown a:hover {
    background: #f9fafb;
    color: #007bff;
}

.btn-login {
    background: #007bff;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.main-content {
    max-width: var(--nu-max-width-xxl);
    margin: 0 auto;
    padding: var(--nu-space-section-y) var(--nu-container-padding);
    width: 100%;
    overflow-x: hidden;
    /* Ensure body content doesn't stretch */
    box-sizing: border-box;
    position: relative;
}

/* Ensure new footer is full screen - break out of any container */
/* Footer is separate from body content */
.nu-footer,
.nu-footer-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any space before footer */
.main-content + .nu-footer,
section + .nu-footer,
body > .nu-footer {
    margin-top: 0 !important;
}

/* Remove any space after footer */
.nu-footer + *,
footer.nu-footer + *,
.nu-footer-bottom + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure footer sticks to bottom with no white space */
html {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure no space between body content and footer */
body > .main-content:last-child,
body > section:not(:has(.nu-footer)):last-child {
    margin-bottom: 0;
    padding-bottom: var(--nu-space-section-y);
}

/* Ensure body content doesn't stretch with footer */
body > .main-content,
body > section:not(:has(.nu-footer)) {
    max-width: var(--nu-max-width-xxl);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}


/* Layout with sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Content layout for Keamanan Fisik - equal height */
.content-layout .content-area,
.content-layout .sidebar {
    display: flex;
    flex-direction: column;
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    /* Hero section stays within max-width, doesn't stretch */
    max-width: var(--nu-max-width-xxl);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 var(--nu-container-padding);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--nu-space-6);
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.featured-article {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-article:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 40px;
    color: white;
}

.article-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badges-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.featured-badges-wrapper .article-badge {
    position: static;
    margin: 0;
}

.category-tag {
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.article-meta span {
    opacity: 0.95;
}

.article-progress-line {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,255,255,0.2);
}

.progress-indicator {
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #00d4ff 100%);
    border-radius: 2px;
    width: 100%;
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-article {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.sidebar-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.sidebar-image {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--nu-color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sidebar-meta {
    font-size: 0.85rem;
    color: var(--nu-color-text-muted);
    line-height: 1.5;
}

/* ============================================
   SECTIONS
   ============================================ */
/* Body content sections - keep max-width, don't stretch */
section:not(:has(.nu-footer)) {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    max-width: var(--nu-max-width-xxl);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 var(--nu-container-padding);
}

section:last-child:not(:has(.nu-footer)) {
    margin-bottom: 0;
}

/* Footer section is completely separate from body content */
/* Footer section - no max-width constraint, full screen */
section:has(.nu-footer),
section:last-of-type:has(footer),
section:has(footer.nu-footer) {
    overflow-x: visible !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 100px !important;
    width: 100% !important;
}

/* Ensure any parent container doesn't limit footer */
*:has(.nu-footer) {
    overflow-x: visible !important;
    max-width: none !important;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

/* HIGHLIGHT Section - Clean & Elegant Styling */
section:has(.article-slider-container) .section-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--nu-color-border);
}

section:has(.article-slider-container) .section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--nu-color-text);
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all {
    color: #007bff;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ============================================
   ARTICLE GRID
   ============================================ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

/* Enhanced styling for HIGHLIGHT section cards */
section:has(.article-slider-container) .article-card {
    background: var(--nu-color-surface);
    border-radius: var(--nu-radius-lg);
    border: 1px solid var(--nu-color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all var(--nu-transition-medium);
    overflow: hidden;
}

section:has(.article-slider-container) .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--nu-color-primary);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #007bff;
}

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

/* Enhanced image styling for HIGHLIGHT section */
section:has(.article-slider-container) .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--nu-transition-medium);
    position: relative;
}

/* Add overlay for dark images to ensure text contrast */
section:has(.article-slider-container) .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--nu-transition-medium);
}

section:has(.article-slider-container) .article-card:hover .card-image {
    transform: scale(1.05);
}

section:has(.article-slider-container) .article-card:hover .card-image::after {
    opacity: 1;
}

.card-content {
    padding: 25px;
}

/* Enhanced content padding for HIGHLIGHT section */
section:has(.article-slider-container) .card-content {
    padding: 1.5rem;
    background: #ffffff; /* Ensure light background for dark text */
}

/* Dark background card - dark content background */
section:has(.article-slider-container) .article-card[data-bg="dark"] .card-content,
section:has(.article-slider-container) .article-card.dark-bg .card-content {
    background: #1f2937; /* Dark background for white text */
}

.card-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced badge styling for HIGHLIGHT section */
section:has(.article-slider-container) .card-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--nu-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Enhanced title styling for HIGHLIGHT section */
section:has(.article-slider-container) .card-title {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937; /* Dark text on light background */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--nu-transition-fast);
}

section:has(.article-slider-container) .article-card:hover .card-title {
    color: var(--nu-color-primary);
}

/* Dark background card - white text */
section:has(.article-slider-container) .article-card[data-bg="dark"] .card-title,
section:has(.article-slider-container) .article-card.dark-bg .card-title {
    color: #ffffff;
}

section:has(.article-slider-container) .article-card[data-bg="dark"] .card-meta,
section:has(.article-slider-container) .article-card.dark-bg .card-meta {
    color: rgba(255, 255, 255, 0.9);
}

section:has(.article-slider-container) .article-card[data-bg="dark"] .card-excerpt,
section:has(.article-slider-container) .article-card.dark-bg .card-excerpt {
    color: rgba(255, 255, 255, 0.85);
}

.card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Enhanced meta styling for HIGHLIGHT section */
section:has(.article-slider-container) .card-meta {
    font-size: 0.8125rem;
    color: #6b7280; /* Dark muted text on light background */
    margin-bottom: 0.875rem;
    font-weight: 400;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced excerpt styling for HIGHLIGHT section */
section:has(.article-slider-container) .card-excerpt {
    font-size: 0.875rem;
    color: #6b7280; /* Dark muted text on light background */
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.5rem;
}

/* ============================================
   ARTICLE SLIDER
   ============================================ */
.article-slider-container {
    position: relative;
    margin-bottom: 40px;
}

/* Enhanced slider container for HIGHLIGHT section */
section:has(.article-slider-container) .article-slider-container {
    margin-bottom: 3rem;
    padding: 0;
}

.article-slider {
    overflow: hidden;
    margin: 0;
}

.article-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
}

.article-slider-track .article-card {
    flex: 0 0 calc(25% - 18.75px);
    min-width: 0;
}

/* Enhanced slider track for HIGHLIGHT section */
section:has(.article-slider-container) .article-slider-track {
    gap: 1.5rem;
    padding: 0.5rem 0;
}

section:has(.article-slider-container) .article-slider-track .article-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 280px;
}

/* Responsive adjustments for HIGHLIGHT section */
@media (max-width: 1200px) {
    section:has(.article-slider-container) .article-slider-track .article-card {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    section:has(.article-slider-container) .article-slider-track .article-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 240px;
    }
    
    section:has(.article-slider-container) .section-title {
        font-size: 1.5rem;
    }
    
    section:has(.article-slider-container) .card-content {
        padding: 1.25rem;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #007bff;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-progress {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #00d4ff 100%);
    border-radius: 2px;
    transition: width 0.5s ease, background 0.3s ease;
    width: 25%;
}

.slider-progress.active {
    background: rgba(0,123,255,0.1);
    border-color: #007bff;
}

.slider-progress.active .slider-progress-bar {
    background: linear-gradient(90deg, #007bff 0%, #00d4ff 100%);
    animation: progressPulse 0.5s ease;
}

@keyframes progressPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0);
    }
}

/* Digital Slider Specific Styles */
.slider-digital {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.slider-digital .article-slider {
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.slider-digital .article-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-digital #digitalSlider .article-card-digital {
    flex: 0 0 calc(25% - 18.75px);
    width: calc(25% - 18.75px);
    min-width: calc(25% - 18.75px);
    max-width: calc(25% - 18.75px);
    box-sizing: border-box;
}

.slider-content-right {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.slider-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Enhanced slider progress wrapper for HIGHLIGHT section */
section:has(.article-slider-container) .slider-progress-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nu-color-border);
    gap: 1.25rem;
}

.slider-progress-wrapper .slider-progress {
    flex: 1;
    margin: 0;
}

.slider-navigation-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Enhanced navigation for HIGHLIGHT section */
section:has(.article-slider-container) .slider-navigation-inline {
    gap: 0.75rem;
}

.slider-progress-wrapper .slider-btn {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    margin: 0;
}

/* Enhanced button styling for HIGHLIGHT section */
section:has(.article-slider-container) .slider-progress-wrapper .slider-btn {
    width: 44px;
    height: 44px;
    background: var(--nu-color-surface);
    border: 1.5px solid var(--nu-color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--nu-transition-medium);
    font-size: 1.25rem;
}

section:has(.article-slider-container) .slider-progress-wrapper .slider-btn:hover {
    background: var(--nu-color-primary);
    border-color: var(--nu-color-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.slider-progress-wrapper .slider-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   AD BLOCKS
   ============================================ */
.ad-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #ced4da;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    color: #999;
    margin: 40px 0;
    transition: all 0.3s;
}

.ad-block:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f0f4ff 0%, #e3f2fd 100%);
}

.ad-block h3 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.ad-block p {
    font-size: 0.85rem;
    color: #999;
}

.ad-block-large {
    width: 100%;
    max-width: 1360px;
    height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
}

.ad-block-small {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
}

.ad-block-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

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

.article-grid-with-ads .ad-block-small {
    grid-column: span 1;
}

/* ============================================
   SLIDER WITH ADS LAYOUT (Side-by-side)
   ============================================ */
.slider-with-ads-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.slider-ads-left {
    position: sticky;
    top: 20px;
}

.slider-ads-left .ad-block-small {
    width: 100%;
    height: auto;
    min-height: 400px;
}

.slider-content-right {
    flex: 1;
}

.slider-content-right .article-slider-container {
    margin-bottom: 0;
}

.slider-content-right .article-slider {
    margin: 0 50px;
}

.ad-block-sidebar {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ============================================
   ARTICLE LIST STYLES
   ============================================ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-article-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.list-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.list-article-image {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.list-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-article-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.list-article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.list-article-excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.list-article-footer {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    gap: 10px;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.sidebar-widget:first-child {
    margin-top: 0;
}

.sidebar-widget-no-padding {
    padding: 0;
}

.sidebar-widget-no-padding .sidebar-article-list {
    padding: 25px;
}

/* Featured Article Large (Keamanan Fisik Section) */
.featured-article-large {
    display: block;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    height: 600px;
    position: relative;
}

.featured-article-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.featured-large-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-large-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-large-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3), transparent);
    padding: 40px 30px 30px;
    color: white;
}

.featured-overlay-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.featured-large-content-overlay .article-badge {
    position: static;
    margin: 0;
}

.featured-large-content-overlay .category-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-large-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-large-excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-large-content-overlay .article-meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}





.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

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

.sidebar-article-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.sidebar-article-item:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.sidebar-article-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-article-meta {
    font-size: 0.75rem;
    color: #999;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: #f0f4ff;
    color: #007bff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tag:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* ============================================
   FOOTER - Full Screen (Like Header)
   ============================================ */
/* New Footer - Full Screen Structure (Separated from body) */
.nu-footer {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    clear: both;
    position: relative;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
}

.nu-footer-wrapper {
    width: 100%;
    max-width: 100%;
    background: inherit;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nu-footer-content {
    padding-top: clamp(2.5rem, 4vw + 1rem, 4rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--nu-space-8);
    width: 100%;
    box-sizing: border-box;
}

.nu-footer-content:not(.nu-container) {
    padding-left: var(--nu-container-padding);
    padding-right: var(--nu-container-padding);
}

.nu-footer-section:first-child {
    padding-right: 20px;
}

.nu-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.nu-footer-logo-img {
    height: 35px;
    width: auto;
}

.nu-footer-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
    opacity: 0.85;
    line-height: 1.6;
}

.nu-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nu-contact-link {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    color: white;
    text-decoration: none;
}

.nu-contact-link:hover {
    opacity: 1;
}

.nu-footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.nu-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nu-footer-links a {
    opacity: 0.85;
    font-size: 0.95rem;
    transition: all 0.2s;
    color: white;
    text-decoration: none;
}

.nu-footer-links a:hover {
    opacity: 1;
    color: #64b5f6;
    padding-left: 5px;
}

.nu-social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nu-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: 2px solid transparent;
    color: white;
    text-decoration: none;
}

.nu-social-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
}

.nu-social-cta {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

.nu-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    background: #0d47a1 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
    display: block !important;
    position: relative;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
}

.nu-footer-bottom-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.nu-footer-bottom p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .nu-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--nu-space-6);
    }
}

@media (max-width: 768px) {
    .nu-footer-content {
        grid-template-columns: 1fr;
        gap: var(--nu-space-5);
        padding-top: clamp(2rem, 5vw, 3rem);
        padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .nu-footer-section:first-child {
        padding-right: 0;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
    transition: all 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.scroll-top:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.5);
}

.scroll-top.show {
    display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .main-content {
        padding: 30px 20px;
    }
    
    .hero-section {
        gap: 25px;
    }
    
}

@media (max-width: 1024px) {
    
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .logo {
        margin-right: 30px;
    }
    
    .main-nav {
        gap: 18px;
        margin-right: 20px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 8px 8px;
    }
    
    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .logo {
        margin-right: 20px;
    }
    
    .main-nav {
        gap: 15px;
        margin-right: 15px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 8px 6px;
    }
    
    .header-actions {
        gap: 12px;
    }
}

/* Responsive Design for 3-Section Header */
@media (max-width: 1024px) {
    .header-middle-container {
        grid-template-columns: 1fr auto 1fr;
        gap: 15px;
    }
    
    .logo-main-img {
        height: 50px;
    }
    
    .main-nav {
        gap: 18px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    
    .header-top-left {
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        flex-wrap: nowrap;
    }
    
    .header-top-left::-webkit-scrollbar {
        height: 3px;
    }
    
    .header-top-left::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }
    
    .header-top-link {
        font-size: 0.7rem;
        padding: 4px 6px;
        flex-shrink: 0;
    }
    
    .header-top-separator {
        margin: 0 6px;
        flex-shrink: 0;
    }
    
    .header-top-right {
        gap: 10px;
        flex-shrink: 0;
    }
    
    .subscribe-btn,
    .login-btn-top {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 900px) {
    .header-middle-container {
        gap: 10px;
    }
    
    .logo-main-img {
        height: 45px;
    }
    
    .header-date {
        font-size: 0.75rem;
    }
    
    .header-edition-link {
        font-size: 0.7rem;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 8px 8px;
    }
    
    .header-top-left {
        gap: 8px;
    }
    
    .header-top-link {
        font-size: 0.65rem;
        padding: 4px 5px;
    }
    
    .header-top-separator {
        margin: 0 5px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        padding: 6px 0;
    }
    
    .header-top-container {
        padding: 0 var(--nu-container-padding);
        flex-direction: column;
        gap: 8px;
    }
    
    .header-top-left {
        gap: 8px;
        order: 2;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
    }
    
    .header-top-left::-webkit-scrollbar {
        height: 2px;
    }
    
    .header-top-left::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 2px;
    }
    
    .header-top-link {
        font-size: 0.6rem;
        padding: 3px 5px;
        flex-shrink: 0;
    }
    
    .header-top-separator {
        margin: 0 4px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    
    .header-language-menu {
        min-width: 120px;
        padding: 4px 0;
    }
    
    .header-language-item {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .header-top-right {
        gap: var(--nu-space-2);
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .subscribe-btn,
    .login-btn-top {
        padding: 6px 12px;
        font-size: 0.65rem;
        flex: 1;
        text-align: center;
    }
    
    .header-middle-bar {
        padding: 15px 0;
    }
    
    .header-middle-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 var(--nu-container-padding);
    }
    
    .header-middle-left {
        order: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-middle-center {
        order: 1;
    }
    
    .logo-main-img {
        height: 45px;
    }
    
    .header-middle-right {
        order: 3;
        justify-content: center;
    }
    
    .search-btn-main {
        font-size: 1.5rem;
    }
    
    .header-bottom-bar {
        padding: 10px 0;
    }
    
    .header-bottom-container {
        padding: 0 var(--nu-container-padding);
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: var(--nu-space-3);
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Homepage: Sembunyikan mobile menu toggle */
    .main-header.homepage-header .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Homepage: Navigation horizontal scroll di mobile */
    .main-header.homepage-header .header-bottom-container {
        padding-right: var(--nu-container-padding);
    }
    
    .main-header.homepage-header .main-nav {
        padding-right: 0;
    }
    
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 998;
        opacity: 0;
        transition: opacity var(--nu-transition-medium);
        pointer-events: none;
    }
    
    .mobile-nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: calc(72px + var(--nu-space-4)) var(--nu-container-padding) var(--nu-space-4);
        gap: 0;
        overflow-y: auto;
        transition: transform var(--nu-transition-medium), opacity var(--nu-transition-medium);
        z-index: 999;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
        transform: translateX(-105%);
        opacity: 0;
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--nu-space-3) 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95rem;
        text-transform: none;
    }
    
    .nav-link:hover {
        border-bottom-color: #f0f0f0;
        border-bottom-width: 1px;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-link-with-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        background: #f9f9f9;
        min-width: auto;
        width: 100%;
        margin-top: 0;
    }
    
    .nav-dropdown-item {
        padding: var(--nu-space-3) var(--nu-space-4);
        border-bottom: 1px solid #e0e0e0;
    }

    .header-top-left {
        justify-content: center;
    }

    body.nav-open .main-header {
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        margin-bottom: 40px;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .sidebar-image {
        width: 100px;
        height: 80px;
    }
    
    .list-article-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .list-article-image {
        width: 100%;
        height: 200px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .slider-with-ads-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
    
    .slider-digital .article-slider-track {
        gap: 15px;
    }
    
    .slider-digital #digitalSlider .article-card-digital {
        flex: 0 0 calc(33.333% - 10px);
        width: calc(33.333% - 10px);
        min-width: calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .article-grid-with-ads {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-with-ads-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .slider-ads-left {
        position: relative;
        top: 0;
    }
    
    .slider-ads-left .ad-block-small {
        min-height: 250px;
    }
    
    .slider-content-right .article-slider {
        margin: 0 40px;
    }
    
    .slider-digital .article-slider-track {
        gap: 15px;
    }
    
    .slider-digital #digitalSlider .article-card-digital {
        flex: 0 0 calc(50% - 7.5px);
        width: calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
    }
    
    .slider-progress-wrapper {
        gap: 10px;
    }
    
    .slider-progress-wrapper .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .header-container {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .featured-content {
        padding: 25px 20px;
    }
    
    .article-badge {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .scroll-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
    
    .main-nav {
        gap: 10px;
        padding: 10px 0;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .user-greeting {
        font-size: 0.8rem;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-toggle, .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .article-grid-with-ads {
        grid-template-columns: 1fr;
    }
    
    .featured-article-large {
        min-height: auto;
    }
    
    .featured-large-image {
        height: 250px;
    }
    
    .featured-large-title {
        font-size: 1.4rem;
    }
    
    .sidebar-scrollable,
    .sidebar-article-list-scroll {
        max-height: none;
        overflow-y: visible;
    }
    
    .slider-content-right .article-slider {
        margin: 0 30px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-digital .article-slider-track {
        gap: 10px;
    }
    
    .slider-digital #digitalSlider .article-card-digital {
        flex: 0 0 calc(100% - 5px);
        width: calc(100% - 5px);
        min-width: calc(100% - 5px);
        max-width: calc(100% - 5px);
    }
    
    .slider-progress-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .slider-progress-wrapper .slider-progress {
        order: 1;
        width: 100%;
    }
    
    .slider-navigation-inline {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .slider-progress-wrapper .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Category Listing Page Styles */
.category-listing-page {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-breadcrumb {
    margin-bottom: 20px;
    padding-top: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 4px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.category-page-header {
    background: white;
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 3px solid #007bff;
}

.category-header-content {
    border-bottom: none;
    padding-bottom: 0;
}

.category-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.category-description {
    font-size: 1.125rem;
    color: #666;
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.category-sub-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sub-nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sub-nav-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sub-nav-link:hover,
.sub-nav-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Featured Article Hero */
.featured-article-hero {
    margin-bottom: 50px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.featured-article-hero:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.featured-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-article-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #f3f4f6;
}

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

.featured-article-hero:hover .featured-article-image {
    transform: scale(1.05);
}

.featured-article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-article-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.featured-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 25px;
}

.article-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: #007bff;
    color: white;
}

.badge-category {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.featured-article-content {
    padding: 35px;
    background: white;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #666;
}

.meta-separator {
    color: #ccc;
}

.article-date {
    font-weight: 500;
    color: #666;
}

.article-read-time {
    color: #999;
}

.featured-article-headline {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.featured-article-summary {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 25px 0;
}

.article-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-label {
    color: #666;
    font-size: 0.875rem;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.875rem;
}

.stat-item svg {
    width: 16px;
    height: 16px;
}

/* Articles List Section */
.articles-list-section {
    margin-bottom: 50px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-list-item {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.article-list-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.article-list-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

.article-list-item:hover {
    background: #f9fafb;
}

.article-item-link {
    display: flex;
    gap: 25px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
}

.article-item-image {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.article-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-list-item:hover .article-item-image img {
    transform: scale(1.05);
}

.article-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-item-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.article-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: #666;
}

.article-item-category {
    font-weight: 600;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.article-item-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-item:hover .article-item-title {
    color: #007bff;
}

.article-item-excerpt {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: #999;
}

.article-item-author {
    font-weight: 500;
    color: #666;
}

.article-item-views {
    color: #999;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn:hover:not(.disabled) {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-number:hover,
.pagination-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-listing-page {
        padding: 0 var(--nu-container-padding);
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-item-image {
        flex: 0 0 150px;
        width: 150px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .category-main-title {
        font-size: 2rem;
    }
    
    .featured-article-image-container {
        height: 250px;
    }
    
    .featured-article-content {
        padding: 20px;
    }
    
    .featured-article-headline {
        font-size: 1.5rem;
    }
    
    .article-item-link {
        flex-direction: column;
    }
    
    .article-item-image {
        width: 100%;
        height: 200px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */
.article-detail-page {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    background: #f9fafb;
    min-height: 60vh;
}

.article-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.article-main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Article Breadcrumb */
.article-breadcrumb {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.article-breadcrumb .breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.article-breadcrumb .breadcrumb-list li {
    display: flex;
    align-items: center;
}

.article-breadcrumb .breadcrumb-list a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb .breadcrumb-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.article-breadcrumb .breadcrumb-separator {
    color: #999;
    margin: 0 4px;
}

.article-breadcrumb .breadcrumb-current {
    color: #333;
    font-weight: 500;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article Header */
.article-header-section {
    margin-bottom: 30px;
}

.article-category-tag {
    display: inline-block;
    margin-bottom: 15px;
}

.article-category-tag span {
    display: inline-block;
    padding: 6px 16px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 25px;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9375rem;
}

.article-date {
    color: #666;
    font-size: 0.875rem;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.875rem;
}

.article-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Body */
.article-body-content {
    line-height: 1.8;
    color: #333;
}

.article-content-wrapper {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #444;
}

.article-content-wrapper p {
    margin-bottom: 1.5rem;
}

.article-content-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.article-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.3;
}

.article-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content-wrapper ul,
.article-content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content-wrapper li {
    margin-bottom: 0.75rem;
}

.article-content-wrapper blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.article-content-wrapper a {
    color: #007bff;
    text-decoration: underline;
}

.article-content-wrapper a:hover {
    color: #0056b3;
}

/* Share Section */
.article-share-section {
    margin: 40px 0;
    padding: 25px 0;
    border-top: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
}

.share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.share-linkedin {
    background: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
}

/* Author Section */
.article-author-section {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 40px 0;
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.author-bio {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.nav-article {
    flex: 1;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.nav-article:hover {
    background: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Comments Section */
.article-comments-section {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.comments-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-flash {
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-flash::before {
    content: "";
    width: 8px;
    border-radius: 8px;
    align-self: stretch;
}

.comment-flash-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.comment-flash-success::before {
    background: #34d399;
}

.comment-flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.comment-flash-error::before {
    background: #fb7185;
}

.comment-flash-error ul {
    margin: 0;
    padding-left: 18px;
}

.comment-form {
    margin-bottom: 36px;
}

.comment-reply-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #1f2937;
}

.comment-reply-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-cancel-reply {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.comment-cancel-reply:hover {
    background: rgba(37, 99, 235, 0.12);
}

.comment-form-field textarea {
    width: 100%;
    border: 1px solid #d0d7e3;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 1rem;
    min-height: 150px;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
    outline: none;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.comment-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 12px 20px -12px rgba(37, 99, 235, 0.7);
}

.comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -12px rgba(37, 99, 235, 0.8);
}

.comment-submit:active {
    transform: translateY(0);
}

.comment-login-prompt {
    padding: 20px;
    border: 1px dashed #cbd5f5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8faff;
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: #1f2937;
}

.comment-login-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.comment-login-link:hover {
    text-decoration: underline;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.comment-card {
    display: flex;
    gap: 18px;
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 18px 40px -25px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.comment-card--reply {
    background: #f8fafc;
    border-color: rgba(203, 213, 225, 0.8);
}

.comment-card--highlight {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.comment-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1d4ed8;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-card__avatar-fallback {
    font-size: 1.2rem;
}

.comment-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.comment-card__identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-card__name {
    font-weight: 700;
    color: #0f172a;
}

.comment-card__username {
    font-size: 0.85rem;
    color: #64748b;
}

.comment-card__date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.comment-card__content {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #1e293b;
}

.comment-card__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.comment-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-card__action svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.comment-card__action:hover {
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 8px 16px -14px rgba(37, 99, 235, 0.7);
}

.comment-card__action--like {
    background: #f8fafc;
}

.comment-thread {
    margin-top: 18px;
    margin-left: 68px;
    padding-left: 18px;
    border-left: 2px solid rgba(203, 213, 225, 0.7);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-card--reply .comment-card__avatar {
    width: 44px;
    height: 44px;
}

.comment-card--highlight .comment-card__avatar {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.comments-empty,
.comments-disabled {
    padding: 22px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.95rem;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    text-align: center;
}

@media (max-width: 768px) {
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .comment-form-field textarea {
        min-height: 130px;
    }

    .comment-card {
        flex-direction: column;
        gap: 14px;
    }

    .comment-card__avatar {
        width: 44px;
        height: 44px;
    }

    .comment-thread {
        margin-left: 32px;
        padding-left: 14px;
    }

    .comment-login-prompt {
        flex-direction: column;
        align-items: flex-start;
    }
}

.comments-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.45), rgba(219, 234, 254, 0.6));
    border-radius: 20px;
    border: 1px solid rgba(199, 210, 254, 0.6);
    position: relative;
    overflow: hidden;
}

.comments-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), transparent 60%);
    pointer-events: none;
}

.comments-hero__copy {
    flex: 1 1 320px;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.comments-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
}

.comments-hero__title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.comments-hero__subtitle {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

.comments-hero__cta {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.comments-metric {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(199, 210, 254, 0.8);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comments-metric__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
}

.comments-metric__value {
    font-size: 2rem;
    font-weight: 800;
    color: #1d4ed8;
}

.comments-hero__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 16px 32px -22px rgba(37, 99, 235, 0.9);
}

.comments-hero__button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.comments-hero__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px -20px rgba(37, 99, 235, 1);
}

.comments-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.comments-controls__hint {
    font-size: 0.9rem;
    color: #64748b;
}

.comments-controls__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-controls__label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

.comments-controls__select {
    border: 1px solid #cbd5f5;
    border-radius: 12px;
    padding: 8px 14px;
    min-width: 160px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comments-controls__select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    outline: none;
}

@media (max-width: 768px) {
    .comments-hero {
        padding: 22px;
        flex-direction: column;
    }

    .comments-hero__cta {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .comments-hero__button {
        width: 100%;
        justify-content: center;
    }

    .comments-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form-field textarea {
        min-height: 130px;
    }

    .comment-login-prompt {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}