/*
Theme Name: DG News Pro
Theme URI: https://dailygazipur.com
Author: Shahadat Hossen
Author URI: https://shahadathossen.com/dgweb
Description: Clean, High-performance Red-free News Theme.
Version: 1.3.0
Text Domain: dg-news-pro
Copyright: 2026 Shahadat Hossen. All rights reserved.
Tested up to: 6.4
Requires PHP: 7.4
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* --- 1. FONTS & VARIABLES --- */
@font-face { font-family: 'FN Shorif Opekkha'; src: url('assets/fonts/FNShorifOpekkhaMatrahinUnicode.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Serif Bengali'; src: url('assets/fonts/NotoSerifBengali-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
    --bg-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --heading-color: #1A1C1E;
    --body-color: #313033;
    --accent-color: #0F172A; /* প্রফেশনাল ডিপ নেভি */
    --border-color: #E2E8F0;
    --container-width: 1240px;
    --mobile-padding: 12px;
    --font-heading: 'FN Shorif Opekkha', sans-serif;
    --font-body: 'Noto Serif Bengali', serif;
}

[data-theme="dark"] {
    --bg-color: #0D1322;
    --surface-color: #161C2D;
    --heading-color: #FFFFFF;
    --body-color: #CBD5E1;
    --accent-color: #38BDF8; /* ডার্ক মোডে নীল */
    --border-color: #2D3748;
}

/* --- 2. GLOBAL STYLES --- */
body { background: var(--bg-color); color: var(--body-color); font-family: var(--font-body); margin: 0; line-height: 1.7; transition: background 0.3s ease; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--heading-color); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--mobile-padding); }

/* --- 3. HEADER & NAV --- */
.header-main-wrapper { position: relative; background: var(--surface-color); border-bottom: 1px solid var(--border-color); z-index: 1001; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.header-left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-family: var(--font-body); }
.header-left i { color: var(--accent-color); font-size: 18px; }

.site-logo .text-logo { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--accent-color); }

.header-right { display: flex; align-items: center; gap: 8px; }
.social-icons { display: flex; gap: 6px; }
.social-icons a, .action-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--body-color); font-size: 13px; background: none; cursor: pointer; transition: 0.3s; }
.social-icons a:hover, .action-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* আধুনিক সার্চ বার (Slide Down) */
#header-search-bar { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--surface-color); display: flex; align-items: center; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1010; }
#header-search-bar.active { top: 0; }
.search-form-flex { display: flex; align-items: center; justify-content: space-between; width: 100%; }
#header-search-bar input { flex: 1; border: none; border-bottom: 2px solid var(--accent-color); background: transparent; font-size: 22px; color: var(--heading-color); font-family: var(--font-body); outline: none; padding: 10px; margin: 0 40px; text-align: center; }
#search-close { font-size: 32px; color: var(--accent-color); cursor: pointer; font-weight: bold; }

/* Navigation */
.main-navigation { background: var(--surface-color); border-bottom: 1px solid var(--border-color); z-index: 1000; position: relative; }
.main-navigation.is-sticky { position: fixed; top: 0; width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.nav-wrapper { display: flex; justify-content: center; min-height: 48px; align-items: center; }
.nav-menu { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.nav-menu a { font-family: var(--font-body); font-weight: 700; font-size: 19px; color: var(--heading-color); padding: 10px 0; display: block; }
.nav-menu a:hover { color: var(--accent-color); }

/* Progress Bar */
#progress-container { width: 100%; height: 2px; background: transparent; position: absolute; bottom: 0; }
#progress-bar { height: 100%; background: var(--accent-color); width: 0%; }

/* Mobile View */
@media (max-width: 768px) {
    .header-top { padding: 8px 12px; gap: 8px; }
    .header-left { order: 1; flex: 1; font-size: 11px; }
    .site-logo { order: 2; flex: 1.5; text-align: center; }
    .site-logo .text-logo { font-size: 22px; }
    .header-right { order: 3; flex: 1; justify-content: flex-end; }
    .social-icons a:nth-child(n+3) { display: none; }
    
    .nav-wrapper { overflow-x: auto; white-space: nowrap; justify-content: flex-start; padding: 0 12px; scrollbar-width: none; }
    .nav-wrapper::-webkit-scrollbar { display: none; }
    .nav-menu { gap: 15px; }
    .nav-menu a { font-size: 16px; padding: 12px 0; }
}

/* মেইন কন্টেনার ফ্লেক্স লেআউট */
.dgm-single-layout { display: flex; justify-content: space-between; gap: 40px; }
.dgm-main-content { flex: 2.4; min-width: 0; }
.dgm-sidebar-column { flex: 1; min-width: 320px; }

/* মোবাইল সাইডবার হাইড */
@media (max-width: 768px) {
    .dgm-sidebar-column { display: none; }
    .dgm-main-content { flex: 1; }
}

/* ব্রেডক্রাম্ব ও সাইডবার টাইটেল এলাইনমেন্ট */
.dgm-breadcrumbs, .block-label { margin-top: 0; padding-top: 5px; }