/*
Theme Name: NDA News Desk Asia
Theme URI: https://newsdeskasia.com
Description: Full dynamic news portal with combined styles, functional custom DB search, flexible image handling, slider groups, and improved single article layout.
Version: 38.0
Author: NDA Team
License: GPL-2.0+
Text Domain: nda-news-desk
*/

/* ==========================================================================
CSS Variables & Base Styles
========================================================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fdfdfd;
    --bg-utility: #f5f5f5;
    --border-color: #eaeaea;
    --border-dark-wire: #dddddd;
    --text-main: #212529;
    --text-heading: #111111;
    --text-muted: #777777;
    --wire-item-border: #f0f0f0;
    --wire-link-color: #2b2b2b;
    --search-overlay-bg: rgba(255, 255, 255, 0.98);
    --badge-bg: #f5f5f5;
    --badge-text: #666666;
    --image-placeholder-bg: #f0f0f0;
}

body.dark-mode {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-utility: #1e1e1e;
    --border-color: #2d2d2d;
    --border-dark-wire: #3d3d3d;
    --text-main: #e0e0e0;
    --text-heading: #ffffff;
    --text-muted: #aaaaaa;
    --wire-item-border: #282828;
    --wire-link-color: #e5e5e5;
    --search-overlay-bg: rgba(18, 18, 18, 0.98);
    --badge-bg: #2d2d2d;
    --badge-text: #cccccc;
    --image-placeholder-bg: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    color: var(--text-main);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
Image Handling & Lazy Loading Styles
========================================================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[data-src],
img.lazy-load {
    background-color: var(--image-placeholder-bg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23ddd" width="100" height="100"/><text fill="%23999" font-family="Arial" font-size="12" x="50" y="50" text-anchor="middle" dy=".3em">Loading...</text></svg>');
    background-size: cover;
    background-position: center;
}

img.fallback-applied { opacity: 0.8; }
img[src], img[data-src] { transition: opacity 0.3s ease; }
img[src] { opacity: 1; }

/* ==========================================================================
Fullscreen Search Modal Overlay System
========================================================================== */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--search-overlay-bg); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-close-cross {
    position: absolute; top: 30px; right: 40px; background: none; border: none;
    color: var(--text-heading); font-size: 42px; cursor: pointer;
}
.search-overlay-content { width: 100%; max-width: 600px; padding: 0 20px; }
.search-overlay-form {
    display: flex; align-items: center; border-bottom: 2px solid var(--text-heading); padding-bottom: 8px;
}
.search-overlay-form input[type="text"],
.search-overlay-form input[type="search"] {
    width: 100%; background: none; border: none; outline: none;
    font-size: 24px; color: var(--text-heading);
}
.search-submit-icon {
    background: none; border: none; color: var(--text-heading); font-size: 22px; cursor: pointer;
}

/* ==========================================================================
Search Results Table Styles
========================================================================== */
.table-responsive-container {
    overflow-x: auto; background: var(--bg-secondary); border-radius: 8px;
    border: 1px solid var(--border-color); margin-bottom: 40px;
}
.search-results-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.search-results-table th {
    background-color: var(--bg-utility); color: var(--text-heading); font-weight: 700;
    text-align: left; padding: 15px; border-bottom: 2px solid var(--border-color);
    text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px;
}
.search-results-table td {
    padding: 15px; border-bottom: 1px solid var(--border-color);
    vertical-align: middle; color: var(--text-main);
}
.search-results-table tr:last-child td { border-bottom: none; }
.table-result-thumb {
    width: 80px; height: 60px; object-fit: cover; border-radius: 4px;
    background-color: var(--image-placeholder-bg); transition: transform 0.2s ease;
}
.table-result-thumb:hover { transform: scale(1.05); }
.table-result-title { margin: 0 0 5px 0; font-size: 15px; line-height: 1.4; }
.table-result-title a { color: var(--text-heading); text-decoration: none; font-weight: 600; }
.table-result-title a:hover { color: #d32f2f; }
.table-result-meta { font-size: 12px; color: var(--text-muted); }
.table-category-badge {
    background-color: var(--badge-bg); color: var(--badge-text); padding: 4px 8px;
    border-radius: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.table-read-btn {
    display: inline-block; padding: 6px 12px; background-color: #d32f2f;
    color: #ffffff !important; text-decoration: none; border-radius: 3px;
    font-size: 12px; font-weight: 600; transition: background-color 0.2s;
}
.table-read-btn:hover { background-color: #b71c1c; }
.no-results-td, .initial-placeholder-td {
    text-align: center; padding: 40px 20px !important; color: var(--text-muted); font-size: 16px;
}

/* ==========================================================================
Sticky Social Media Sidebar Component
========================================================================== */
.sticky-share-sidebar {
    position: fixed; top: 45%; left: 0; display: flex; flex-direction: column;
    z-index: 1000; box-shadow: 2px 0 10px rgba(0,0,0,0.08);
}
.share-box {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    color: #ffffff !important; text-decoration: none; font-size: 16px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.share-box:hover { transform: translateX(4px); filter: brightness(1.15); }
.share-box.x-brand { background-color: #000000; }
.share-box.facebook-brand { background-color: #3b5998; }
.share-box.pinterest-brand { background-color: #cb2027; }
.share-box.link-brand { background-color: #7f8c8d; }
.share-box.whatsapp-brand { background-color: #4dc247; }
.share-box.email-brand { background-color: #95a5a6; }
.share-box.telegram-brand { background-color: #0088cc; }
.share-box.more-brand { background-color: #2ecc71; }

/* ==========================================================================
Responsive Site Header Structure
========================================================================== */
.site-header {
    width: 100%; background-color: var(--bg-primary); box-sizing: border-box;
    position: sticky; top: 0; z-index: 1100; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.top-utility-bar {
    background-color: var(--bg-utility); border-bottom: 1px solid var(--border-color);
    padding: 10px 24px; width: 100%; box-sizing: border-box;
}
.utility-container {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; width: 100%;
}
.theme-toggle {
    background: none; border: none; color: var(--text-muted); font-size: 12px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0; transition: color 0.2s ease;
}
.theme-toggle:hover { color: var(--text-heading); }
.header-container {
    border-bottom: 1px solid var(--border-color); padding: 20px 24px 0 24px;
    background-color: var(--bg-primary); position: relative; width: 100%; box-sizing: border-box;
}
.header-logo-row {
    max-width: 1200px; margin: 0 auto 15px auto; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
}
.nda-header-logo { display: flex; flex-direction: column; flex-shrink: 0; }
.nda-header-logo a { display: block; line-height: 0; }
.nda-header-logo img { max-width: 200px; height: auto; display: block; }
.nda-header-logo .logo-light { display: block; }
.nda-header-logo .logo-dark { display: none; }
body.dark-mode .nda-header-logo .logo-light { display: none; }
body.dark-mode .nda-header-logo .logo-dark { display: block; }

.header-shopee-banner { flex-shrink: 0; margin-left: 20px; }
.header-shopee-banner a { display: block; line-height: 0; }
.header-shopee-banner img {
    max-height: 130px; width: 700px; display: block;
    border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s ease;
}
.header-shopee-banner img:hover { transform: scale(1.02); }

.main-navigation {
    display: flex; align-items: center; max-width: 1200px; margin: 0 auto; width: 100%;
    border-top: 1px solid var(--border-color); padding: 15px 0;
}
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 32px; align-items: center; flex-grow: 1; }
.menu-item a { text-decoration: none; color: var(--text-main); font-size: 14.5px; font-weight: 600; transition: color 0.2s ease; }
.menu-item a:hover { color: #d32f2f; }
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.search-btn { background: none; border: none; color: var(--text-main); font-size: 16px; cursor: pointer; padding: 4px; transition: color 0.2s ease; }
.search-btn:hover { color: #d32f2f; }
.burger-menu-btn {
    display: none; background: none; border: none; color: var(--text-heading);
    font-size: 22px; cursor: pointer; padding: 4px;
}

/* ==========================================================================
Ticker Module Layout Rules
========================================================================== */
.breaking-news-bar {
    display: flex; align-items: center; border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary); max-width: 1200px; margin: 0 auto; overflow: hidden;
    width: 100%; box-sizing: border-box;
}
.ticker-label {
    background-color: #ff003c; color: #fff; padding: 12px 20px; font-weight: bold;
    font-size: 11px; white-space: nowrap; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 6px; z-index: 5;
}
.marquee-window { flex-grow: 1; overflow: hidden; display: flex; align-items: center; position: relative; }
.marquee-track { display: flex; white-space: nowrap; animation: marquee-scroller-loop 120s linear infinite; }
.marquee-item { font-size: 13px; display: flex; align-items: center; }
.ticker-title { font-weight: 700; color: var(--text-heading); }
.ticker-title a { color: var(--text-heading); text-decoration: none; }
.ticker-title a:hover { color: #d32f2f; }
.ticker-date { color: var(--text-muted); margin-left: 6px; font-weight: 500; }
.marquee-spacer { color: #ff003c; margin: 0 30px; }
@keyframes marquee-scroller-loop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
Portal Matrix Content Structural Framework
========================================================================== */
.portal-main-wrapper { width: 100%; box-sizing: border-box; }
.portal-grid-container {
    display: grid; grid-template-columns: 1fr 320px; gap: 35px;
    max-width: 1200px; margin: 25px auto; padding: 0 20px; box-sizing: border-box;
}
.main-column-flow { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.showcase-slider-wrapper { display: flex; flex-direction: column; width: 100%; }
.main-slider-viewport {
    position: relative; width: 100%; height: 480px;
    background-size: cover; background-position: center; display: flex; align-items: flex-end;
    background-color: var(--image-placeholder-bg);
}
.slider-caption-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 85%);
    width: 100%; padding: 60px 40px 30px 40px; box-sizing: border-box;
}
.category-badge.slider-red-badge {
    background-color: #d32f2f; color: #ffffff; font-size: 11px; font-weight: 700;
    padding: 4px 10px; text-transform: uppercase; margin-bottom: 12px; display: inline-block;
}
.slider-main-title {
    color: #ffffff !important; font-size: 32px; font-weight: 700; line-height: 1.25; margin: 0 0 12px 0; max-width: 85%;
}
.slider-main-title a { color: #ffffff !important; text-decoration: none; }
.slider-post-meta { color: #dddddd; font-size: 12px; }
.slider-vertical-arrows {
    position: absolute; right: 30px; bottom: 30px;
    display: flex; flex-direction: row; gap: 0; z-index: 10;
}
.slider-arrow:hover { opacity: 0.9; }
.slider-arrow.prev-arrow {
    background-color: #ffffff; color: #000000; width: 45px; height: 45px;
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: bold; transition: opacity 0.2s ease;
}
.slider-arrow.next-arrow {
    background-color: #d32f2f; color: #ffffff; height: 45px; width: 45px;
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: bold; transition: opacity 0.2s ease;
}

/* ==========================================================================
Global Editorial Layout Elements Components
========================================================================== */
.portal-editorial-section { display: flex; flex-direction: column; width: 100%; }
.section-title-header {
    font-size: 15px; font-weight: 800; margin: 0 0 24px 0; padding-bottom: 6px;
    border-bottom: 2px solid var(--border-dark-wire); color: var(--text-heading); letter-spacing: 0.5px;
    position: relative; width: max-content;
}
.section-title-header::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 35px; height: 3px; background-color: #111111; }
body.dark-mode .section-title-header::after { background-color: #ffffff; }

/* ==========================================================================
SLIDER GROUP LOGIC (2 Items Per Slide)
========================================================================== */
.editorial-slider { position: relative; overflow: hidden; }
.editorial-slider .slide-group { display: none; animation: fadeInSlide 0.4s ease; }
@keyframes fadeInSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.business-featured-row .slide-group { display: none; grid-template-columns: 1fr 1fr; gap: 25px; }
.business-featured-row .slide-group.active { display: grid; }

.politics-featured-slider .slide-group { display: none; flex-direction: column; gap: 35px; }
.politics-featured-slider .slide-group.active { display: flex; }

.travel-matrix-grid .slide-group { display: none; grid-template-columns: 1fr 1fr; gap: 25px; }
.travel-matrix-grid .slide-group.active { display: grid; }

.sports-featured-slider .slide-group { display: none; flex-direction: column; gap: 30px; }
.sports-featured-slider .slide-group.active { display: flex; }

.opinions-grid-layout .slide-group { display: none; grid-template-columns: 1fr 1fr; gap: 30px; }
.opinions-grid-layout .slide-group.active { display: grid; }

/* ==========================================================================
Business Grid Sections Layout Rules
========================================================================== */
.business-grid-layout { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.business-featured-row { width: 100%; }
.business-banner-card {
    position: relative; height: 320px; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; overflow: hidden;
    background-color: var(--image-placeholder-bg);
}
.banner-gradient-shade { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.85) 90%); z-index: 1; }
.banner-text-content { position: relative; z-index: 2; padding: 24px; width: 100%; box-sizing: border-box; }
.business-banner-card .card-headline { margin: 0 0 8px 0; line-height: 1.3; }
.business-banner-card .card-headline a { color: #ffffff !important; font-size: 20px; font-weight: 700; text-decoration: none; }
.business-banner-card .card-headline a:hover { text-decoration: underline; }
.business-banner-card .card-author-meta { color: #ffffff; font-size: 12px; font-weight: 600; }
.business-banner-card .meta-date-divider { color: #cccccc; font-weight: 400; margin-left: 4px; }
.business-thumbs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 30px; }
.business-thumb-item-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: flex-start; }
.item-left-thumbnail { width: 100%; height: 80px; background-size: cover; background-position: center; background-color: var(--image-placeholder-bg); border-radius: 4px; }
.item-right-details { display: flex; flex-direction: column; gap: 6px; }
.item-title-text { margin: 0; font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.item-title-text a { color: var(--text-heading); text-decoration: none; }
.item-title-text a:hover { color: #d32f2f; }
.item-publication-date { font-size: 11.5px; color: var(--text-muted); }

/* ==========================================================================
Regional Politics Layout Modules
========================================================================== */
.politics-grid-layout { display: flex; flex-direction: column; gap: 35px; width: 100%; }
.regional-politics-section .horizontal-news-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: flex-start; }
.regional-politics-section .horizontal-media { width: 100%; height: 330px; background-size: cover; background-position: center; }
.regional-politics-section .horizontal-body { display: flex; flex-direction: column; justify-content: flex-start; }
.regional-politics-section .card-headline { margin: 0 0 10px 0; }
.regional-politics-section .card-headline a { font-size: 32px; font-weight: 800; line-height: 1.15; color: var(--text-heading); text-decoration: none; }
.regional-politics-section .card-headline a:hover { color: #d32f2f; }
.politics-date-row { font-size: 11px; text-transform: uppercase; color: #4ba3e3; margin-bottom: 24px; display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: 0.3px; }
body.dark-mode .politics-date-row { color: #5cb3f3; }
.regional-politics-section .card-excerpt { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0 0 16px 0; }
.politics-thumbs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 35px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.politics-thumb-item-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: flex-start; }

/* ==========================================================================
Travel & Leisure Layout Architecture
========================================================================== */
.travel-grid-layout { display: flex; flex-direction: column; gap: 25px; width: 100%; }
.travel-matrix-grid { width: 100%; }
.travel-banner-card { position: relative; height: 310px; background-size: cover; background-position: center; display: flex; align-items: flex-end; overflow: hidden; }
.travel-gradient-shade { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 85%); z-index: 1; }
.travel-text-content { position: relative; z-index: 2; padding: 24px; width: 100%; box-sizing: border-box; }
.travel-banner-card .travel-headline { margin: 0; line-height: 1.3; }
.travel-banner-card .travel-headline a { color: #ffffff !important; font-size: 23px; font-weight: 700; text-decoration: none; }
.travel-banner-card .travel-headline a:hover { text-decoration: underline; }

/* ==========================================================================
Sports Layout Component Blocks
========================================================================== */
.sports-grid-layout { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.sports-section .sports-featured-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: flex-start; }
.sports-media-frame { width: 100%; height: 300px; background-size: cover; background-position: center; }
.sports-content-body { display: flex; flex-direction: column; }
.sports-section .sports-headline { margin: 0 0 10px 0; }
.sports-section .sports-headline a { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--text-heading); text-decoration: none; }
.sports-section .sports-headline a:hover { color: #d32f2f; }
.sports-meta-row { font-size: 11px; text-transform: uppercase; color: #e51a24; margin-bottom: 20px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sports-section .sports-excerpt { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 0 0 20px 0; }
.read-more-text-btn { font-size: 12px; font-weight: 700; color: var(--text-heading); text-decoration: none; letter-spacing: 0.5px; }
.read-more-text-btn:hover { color: #d32f2f; }
.sports-sub-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.sports-sub-card { position: relative; height: 200px; background-size: cover; background-position: center; display: flex; align-items: flex-end; overflow: hidden; }
.sports-gradient-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 90%); z-index: 1; }
.sports-caption-wrap { position: relative; z-index: 2; padding: 20px; width: 100%; box-sizing: border-box; }
.sports-mini-tag { color: #ffc107; font-size: 11px; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 6px; }
.sports-sub-title { margin: 0; line-height: 1.3; }
.sports-sub-title a { color: #ffffff !important; font-size: 18px; font-weight: 700; text-decoration: none; }
.sports-sub-title a:hover { text-decoration: underline; }

/* ==========================================================================
Opinions Layout System Module
========================================================================== */
.opinions-grid-layout { width: 100%; }
.opinions-card { display: flex; flex-direction: column; }
.opinions-media-frame { width: 100%; height: 300px; background-size: cover; background-position: center; margin-bottom: 18px; }
.opinions-content-body { display: flex; flex-direction: column; }
.opinions-text-badge { background-color: var(--badge-bg); color: var(--badge-text); font-size: 11px; font-weight: 700; padding: 4px 10px; letter-spacing: 0.5px; width: max-content; margin-bottom: 12px; }
.opinions-headline { margin: 0 0 10px 0; line-height: 1.25; }
.opinions-headline a { font-size: 24px; font-weight: 700; color: var(--text-heading); text-decoration: none; }
.opinions-headline a:hover { color: #d32f2f; }
.opinions-meta-row { font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.opinions-excerpt { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 0; }

/* ==========================================================================
Sidebar Wire Containers & Section Slider Navigation
========================================================================== */
.widget-area.sidebar-col { border-left: 1px solid var(--border-color); padding-left: 35px; }
.news-wire-widget .widget-title {
    font-size: 18px; font-weight: 700; margin: 0 0 15px 0; padding-bottom: 8px;
    border-bottom: 1px solid var(--border-dark-wire); position: relative; color: var(--text-heading);
}
.news-wire-widget .widget-title::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 75px; height: 2px; background-color: #d32f2f; }
.wire-item { border-bottom: 1px solid var(--wire-item-border); padding: 16px 0; }
.wire-headline { margin: 0 0 8px 0; font-size: 14px; line-height: 1.45; }
.wire-headline a { color: var(--wire-link-color); text-decoration: none; font-weight: 600; }
.wire-headline a:hover { color: #d32f2f; }
.wire-meta { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.more-news-footer { padding-top: 15px; border-top: 1px solid var(--border-dark-wire); }
.more-news-link { font-size: 14px; font-weight: 600; color: var(--wire-link-color); text-decoration: none; }

.section-slider-navigation { display: flex; gap: 10px; margin-top: 25px; justify-content: flex-start; align-items: center; }
.slider-nav-btn {
    width: 40px; height: 40px; border: 2px solid #111111; background-color: transparent;
    color: #111111; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all 0.3s ease; border-radius: 0;
}
.slider-nav-btn:hover { background-color: #111111; color: #ffffff; }
body.dark-mode .slider-nav-btn { border-color: #ffffff; color: #ffffff; }
body.dark-mode .slider-nav-btn:hover { background-color: #ffffff; color: #121212; }

/* ==========================================================================
Responsive Site Footer Structure
========================================================================== */
.site-footer { background-color: #121212; color: #ffffff; width: 100%; box-sizing: border-box; margin-top: 60px; }
.footer-border-line { border-top: 1px solid #282828; max-width: 1200px; margin: 0 auto; }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px 24px;
    display: grid; grid-template-columns: 1fr 1.8fr 1.2fr; gap: 40px;
    width: 100%; box-sizing: border-box; align-items: flex-start;
}
.footer-column { display: flex; flex-direction: column; width: 100%; }
.nda-footer-logo { display: flex; flex-direction: column; align-items: flex-start; }
.nda-footer-logo a { display: block; line-height: 0; }
.nda-footer-logo img { max-width: 280px; height: auto; display: block; }
.footer-heading { font-size: 14px; text-transform: uppercase; margin: 0 0 20px 0; font-weight: 700; letter-spacing: 0.5px; color: #ffffff; }
.footer-description { font-size: 13.5px; line-height: 1.65; color: #aaaaaa; margin: 0 0 16px 0; }
.footer-contact-wrap { display: flex; }
.footer-contact-link { color: #ffffff; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.footer-contact-link:hover { text-decoration: underline; color: #d32f2f; }
.footer-social-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.social-box-item {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background-color: #1a1a1a; border: 1px solid #2d2d2d; color: #ffffff; text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}
.social-box-item:hover { background-color: #d32f2f; border-color: #d32f2f; }

/* ==========================================================================
Category Page Styles
========================================================================== */
.category-page-header { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 3px solid var(--border-color); }
.category-page-title { font-size: 42px; font-weight: 800; color: var(--text-heading); margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.category-article-card { display: grid; grid-template-columns: 450px 1fr; gap: 30px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-color); }
.category-article-image { position: relative; height: 300px; overflow: hidden; border-radius: 4px; }
.category-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.category-article-image:hover img { transform: scale(1.05); }
.category-badge-overlay { position: absolute; top: 15px; left: 15px; background-color: #d32f2f; color: #ffffff; font-size: 11px; font-weight: 700; padding: 6px 12px; text-transform: uppercase; border-radius: 3px; z-index: 2; }
.category-article-content { display: flex; flex-direction: column; justify-content: flex-start; }
.category-article-title { font-size: 28px; font-weight: 700; margin: 0 0 15px 0; line-height: 1.3; }
.category-article-title a { color: var(--text-heading); text-decoration: none; transition: color 0.2s ease; }
.category-article-title a:hover { color: #d32f2f; }
.category-article-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 13px; flex-wrap: wrap; }
.article-author { color: #d32f2f; font-weight: 600; text-transform: uppercase; }
.article-date { color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.article-excerpt { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
.read-more-btn { display: inline-block; padding: 10px 25px; border: 1px solid var(--border-color); background-color: transparent; color: var(--text-heading); text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; width: fit-content; border-radius: 3px; }
.read-more-btn:hover { background-color: #d32f2f; border-color: #d32f2f; color: #ffffff; }
.category-pagination { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.category-pagination .page-numbers { display: inline-block; padding: 8px 15px; margin: 0 3px; border: 1px solid var(--border-color); color: var(--text-heading); text-decoration: none; border-radius: 3px; transition: all 0.2s ease; }
.category-pagination .page-numbers:hover, .category-pagination .page-numbers.current { background-color: #d32f2f; border-color: #d32f2f; color: #ffffff; }
.no-articles-message { text-align: center; padding: 60px 20px; background-color: var(--bg-secondary); border-radius: 8px; margin: 40px 0; }
.no-articles-message p { font-size: 18px; color: var(--text-muted); margin: 0; }

/* ==========================================================================
Single Article Layout Component
========================================================================== */
.single-article-content { background: var(--bg-secondary); border-radius: 8px; padding: 40px; margin-bottom: 40px; border: 1px solid var(--border-color); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
.article-category-badge { display: inline-block; background-color: #d32f2f; color: #ffffff; padding: 6px 16px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 0.5px; }
.article-main-title { font-size: 42px; font-weight: 800; line-height: 1.2; margin: 0 0 20px 0; color: var(--text-heading); letter-spacing: -0.5px; }
.article-meta-info { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.meta-author, .meta-date { display: flex; align-items: center; gap: 8px; }
.meta-author i, .meta-date i { color: #d32f2f; }
.article-featured-image { width: 100%; margin-bottom: 40px; border-radius: 8px; overflow: hidden; background-color: var(--image-placeholder-bg); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
.article-featured-image img { width: 100%; height: auto; display: block; max-height: 600px; object-fit: cover; }
.article-body-content { font-size: 16px; line-height: 1.8; color: var(--text-main); }
.article-body-content p { margin-bottom: 20px; text-align: justify; }
.article-body-content h2, .article-body-content h3, .article-body-content h4 { margin: 30px 0 15px 0; color: var(--text-heading); font-weight: 700; line-height: 1.3; }
.article-body-content h2 { font-size: 32px; }
.article-body-content h3 { font-size: 24px; }
.article-body-content h4 { font-size: 20px; }
.article-body-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.article-body-content a { color: #d32f2f; text-decoration: underline; transition: color 0.2s ease; }
.article-body-content a:hover { color: #b71c1c; }
.article-body-content blockquote { border-left: 4px solid #d32f2f; padding: 20px 25px; margin: 25px 0; background-color: var(--bg-utility); font-style: italic; color: var(--text-heading); border-radius: 0 6px 6px 0; }
.article-body-content ul, .article-body-content ol { margin: 20px 0; padding-left: 30px; }
.article-body-content li { margin-bottom: 10px; line-height: 1.7; }
.article-share-section { margin-top: 50px; padding-top: 30px; border-top: 2px solid var(--border-color); }
.article-share-section h3 { font-size: 18px; margin-bottom: 20px; color: var(--text-heading); }
.share-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.share-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #ffffff !important; text-decoration: none; font-size: 18px; transition: transform 0.2s ease, filter 0.2s ease; border: none; cursor: pointer; }
.share-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #000000; }
.share-btn.whatsapp { background-color: #4dc247; }
.share-btn.email { background-color: #95a5a6; }
.related-articles-section { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--border-color); }
.related-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 30px; }
.related-article-card { background: var(--bg-secondary); border-radius: 8px; overflow: hidden; transition: transform 0.2s ease; border: 1px solid var(--border-color); }
.related-article-card:hover { transform: translateY(-5px); }
.related-article-card a { text-decoration: none; color: inherit; display: block; }
.related-article-image { height: 200px; overflow: hidden; background-color: var(--image-placeholder-bg); }
.related-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.related-article-card:hover .related-article-image img { transform: scale(1.05); }
.related-article-title { font-size: 16px; font-weight: 700; margin: 15px; line-height: 1.4; color: var(--text-heading); }
.related-article-date { margin: 0 15px 15px 15px; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* ==========================================================================
PRODUCTION COMPREHENSIVE RESPONSIVE MEDIA BREAKPOINTS
========================================================================== */
@media (max-width: 1100px) {
    .regional-politics-section .horizontal-news-row,
    .sports-section .sports-featured-row { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .portal-grid-container { grid-template-columns: 1fr; }
    .widget-area.sidebar-col { border-left: none; border-top: 1px solid var(--border-color); padding-left: 0; padding-top: 30px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-column.brand-column { grid-column: span 2; margin-bottom: 10px; }
    .category-article-card { grid-template-columns: 1fr; }
    .category-article-image { height: 250px; }
    .related-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .single-article-content { padding: 30px; }
    .article-main-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .top-utility-bar { padding: 10px 16px; }
    .utility-container { flex-direction: row; gap: 8px; align-items: center; }
    .header-container { padding: 14px 16px 0 16px; }
    .header-logo-row { flex-direction: column; align-items: center; gap: 15px; }
    .header-shopee-banner { margin-left: 0; width: 100%; text-align: center; }
    .header-shopee-banner img { margin: 0 auto; width: 700px; max-height: 100px; }
    .main-navigation { padding: 10px 0; }
    .burger-menu-btn { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--bg-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        flex-direction: column; padding: 24px; gap: 20px; z-index: 999;
        box-sizing: border-box; border-bottom: 2px solid var(--border-color); align-items: flex-start;
    }
    .nav-menu.active { display: flex; }
    
    /* Slider Group Overrides for Mobile */
    .business-featured-row .slide-group, 
    .travel-matrix-grid .slide-group, 
    .opinions-grid-layout .slide-group { 
        grid-template-columns: 1fr !important; 
    }
    .regional-politics-section .horizontal-news-row, 
    .sports-section .sports-featured-row { 
        grid-template-columns: 1fr; 
    }
    
    .main-slider-viewport { height: 360px; }
    .slider-main-title { font-size: 22px; max-width: 100%; }
    .slider-vertical-arrows { right: 15px; bottom: 20px; }
    .footer-container { grid-template-columns: 1fr; gap: 35px; padding: 30px 16px 40px 16px; }
    .footer-column.brand-column { grid-column: span 1; }
    .sticky-share-sidebar {
        flex-direction: row; width: 100%; top: auto; bottom: 0; left: 0;
        justify-content: space-around; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    .share-box { flex-grow: 1; height: 48px; }
    body { padding-bottom: 48px; }
    .nda-header-logo img { max-width: 160px; }
    .nda-footer-logo img { max-width: 220px; }
    .category-page-title { font-size: 32px; }
    .category-article-title { font-size: 22px; }
    .category-article-image { height: 200px; }
    
    /* Search Table Mobile View */
    .search-results-table thead { display: none; }
    .search-results-table tr { display: block; margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
    .search-results-table td { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid var(--border-color); }
    .search-results-table td::before { content: attr(data-label); font-weight: 700; text-transform: uppercase; font-size: 11px; color: var(--text-muted); flex-shrink: 0; margin-right: 15px; }
    .table-result-thumb { width: 60px; height: 45px; }
    
    .single-article-content { padding: 25px; }
    .article-main-title { font-size: 26px; }
    .article-meta-info { flex-direction: column; gap: 10px; align-items: flex-start; }
    .article-featured-image img { max-height: 400px; }
    .article-body-content { font-size: 15px; }
    .article-body-content h2 { font-size: 24px; }
    .article-body-content h3 { font-size: 20px; }
    .article-body-content h4 { font-size: 17px; }
    .related-articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .nda-header-logo img { max-width: 140px; }
    .header-shopee-banner img { width: 300px; max-height: 100px; }
    .main-slider-viewport { height: 280px; }
    .slider-main-title { font-size: 18px; }
    .slider-caption-overlay { padding: 20px; }
    .business-thumb-item-card, .politics-thumb-item-card { grid-template-columns: 90px 1fr; gap: 10px; }
    .item-left-thumbnail { height: 65px; }
    .regional-politics-section .horizontal-media, .sports-media-frame, .opinions-media-frame { height: 200px; }
    .footer-column { align-items: center; text-align: center; }
    .nda-footer-logo { align-items: center; }
    .nda-footer-logo img { max-width: 200px; }
    .footer-contact-wrap { justify-content: center; }
    .footer-social-grid { justify-content: center; }
    .slider-vertical-arrows { right: 10px; bottom: 15px; }
    .slider-arrow { width: 38px; height: 38px; font-size: 16px; }
    .single-article-content { padding: 20px; }
    .article-main-title { font-size: 22px; }
    .article-featured-image img { max-height: 300px; }
    .article-body-content h2 { font-size: 22px; }
    .share-buttons { justify-content: center; }
}