/*
Theme Name: Amader Pujibazar Pro
Theme URI: https://amaderpujibazar.com
Author: Custom Theme Developer
Author URI: https://amaderpujibazar.com
Description: A fully modern, responsive WordPress theme for Amader Pujibazar - Bangladesh Stock Market News Portal. Features real-time DSE stock data, breaking news ticker, multilingual Bangla support, Gutenberg blocks, Theme Options panel, photo/video gallery, and full customizer support.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amaderpujibazar
Domain Path: /languages
Tags: news, stock-market, financial, responsive, rtl-language-support, custom-blocks, bangla
*/

/* ===================================================
   CSS VARIABLES
=================================================== */
:root {
    --primary:       #004aad;
    --primary-dark:  #003585;
    --primary-light: #1a6fd4;
    --secondary:     #dc2626;
    --accent:        #16a34a;
    --warning:       #d97706;
    --bg:            #f5f6fa;
    --surface:       #ffffff;
    --text:          #111827;
    --text-muted:    #6b7280;
    --text-light:    #9ca3af;
    --border:        #e5e7eb;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg:     0 10px 30px rgba(0,0,0,0.12);
    --radius-sm:     4px;
    --radius-md:     8px;
    --radius-lg:     12px;
    --transition:    all 0.3s ease;
    --font-bn:       'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    --font-en:       'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-bn);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-bn); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.container-fluid { width: 100%; padding: 0 15px; }

/* ===================================================
   TOP BAR
=================================================== */
.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
    font-size: 13px;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.top-bar-date { color: var(--text-muted); }
.top-bar-date span { margin-right: 5px; }
.top-bar-search { display: flex; align-items: center; gap: 5px; }
.top-bar-search input {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 13px;
    width: 200px;
    outline: none;
    font-family: var(--font-bn);
    transition: var(--transition);
}
.top-bar-search input:focus { border-color: var(--primary); }
.top-bar-search button {
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
}
.top-bar-search button:hover { background: var(--primary-dark); }
.top-bar-social a {
    color: var(--text-muted);
    margin-left: 10px;
    font-size: 15px;
    transition: var(--transition);
}
.top-bar-social a:hover { color: var(--primary); }

/* ===================================================
   LOGO / HEADER MAIN
=================================================== */
.header-main {
    background: var(--surface);
    padding: 12px 0;
    border-bottom: 3px solid var(--primary);
}
.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}
.site-logo img { max-height: 80px; }
.header-ad { max-width: 728px; overflow: hidden; }
.header-ad img { border-radius: var(--radius-sm); }

/* ===================================================
   NAVIGATION
=================================================== */
.main-navigation {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}
.main-navigation .container { display: flex; align-items: stretch; }
.nav-menu { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-menu > li > a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    background: var(--primary-dark);
    color: #fff;
}
/* Dropdown */
.nav-menu li { position: relative; }
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 9999;
}
.nav-menu li:hover > ul { display: block; }
.nav-menu li ul li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.nav-menu li ul li:last-child a { border-bottom: none; }
.nav-menu li ul li a:hover { background: var(--bg); color: var(--primary); padding-left: 24px; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    color: #fff;
    font-size: 22px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}
@media (max-width: 991px) {
    .mobile-menu-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-dark);
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-menu li ul {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.2);
    }
    .nav-menu li:hover > ul { display: none; }
    .nav-menu li ul.open { display: block; }
    .nav-menu li ul li a { color: #ddd; padding-left: 30px; }
}

/* ===================================================
   BREAKING NEWS TICKER
=================================================== */
.breaking-news-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 8px 0;
    margin: 10px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.breaking-label {
    background: var(--secondary);
    padding: 4px 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-right: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item { margin-right: 50px; }
.ticker-item a { color: #fff; font-size: 14px; font-weight: 500; }
.ticker-item a:hover { color: #ffeb3b; }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================================
   DSE STOCK BAR
=================================================== */
.dse-market-bar {
    background: var(--surface);
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    padding: 10px 0;
}
.dse-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.dse-index {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.dse-index-name {
    font-weight: 700;
    color: var(--primary);
    min-width: 45px;
}
.dse-index-value { font-weight: 600; }
.dse-change { font-weight: 600; }
.dse-change.up { color: var(--accent); }
.dse-change.down { color: var(--secondary); }
.dse-divider { color: var(--border); font-size: 20px; }

/* ===================================================
   DSE MARKET WIDGET (Full Table)
=================================================== */
.dse-market-wrapper {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 20px;
    margin-bottom: 25px;
}
.dse-market-wrapper h4 {
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}
#dse-time { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.dse-indices {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.dse-index-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    text-align: center;
    min-width: 140px;
}
.dse-index-box .name { font-weight: 700; color: var(--primary); font-size: 13px; }
.dse-index-box .value { font-size: 18px; font-weight: 700; }
.dse-index-box .change { font-size: 13px; font-weight: 600; }
.dse-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.dse-table { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.dse-table h5 {
    text-align: center;
    padding: 8px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-size: 14px;
}
.dse-gainers h5 { background: var(--accent); }
.dse-losers h5 { background: var(--secondary); }
.dse-table table { width: 100%; border-collapse: collapse; }
.dse-table th, .dse-table td {
    padding: 8px 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.dse-table thead th { background: #f1f5f9; font-weight: 700; }
.dse-table tbody tr:hover { background: var(--bg); }
.dse-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 600px) { .dse-tables { grid-template-columns: 1fr; } }

/* ===================================================
   SECTION HEADING / CATEGORY TITLE
=================================================== */
.section-title {
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 15px;
    padding-bottom: 0;
}
.section-title a, .section-title span {
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: inline-block;
    text-decoration: none;
}
.section-title a:hover { background: var(--primary-dark); color: #fff; }
.catagory_title-03 { border-bottom: 3px solid var(--primary); margin-bottom: 15px; }
.catagory_title-03 a {
    background: var(--primary);
    color: #fff;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: inline-block;
}
.catagory_title-04 { border-bottom: 3px solid var(--primary-light); margin-bottom: 15px; }
.catagory_title-04 a {
    background: var(--primary-light);
    color: #fff;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: inline-block;
}

/* ===================================================
   HERO SLIDER / MAIN CONTENT AREA
=================================================== */
.site-content { padding: 20px 0; }
.content-area { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
@media (max-width: 991px) { .content-area { grid-template-columns: 1fr; } }

/* ===================================================
   HERO SLIDER
=================================================== */
.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
    position: relative;
    margin-bottom: 20px;
}
.hero-slide { position: relative; }
.hero-slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
.hero-caption-box {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 15px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.80));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-title a {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}
.hero-cat-badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}
@media (max-width: 767px) { .hero-slide img { height: 220px; } }

/* ===================================================
   NEWS CARD (Standard)
=================================================== */
.news-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 15px;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card img { width: 100%; height: 180px; object-fit: cover; transition: var(--transition); }
.news-card:hover img { transform: scale(1.03); }
.news-card-body { padding: 12px; }
.news-card-cat {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}
.news-card-title a {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    display: block;
}
.news-card-title a:hover { color: var(--primary); }
.news-card-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.news-card-meta i { margin-right: 4px; }

/* ===================================================
   MEDIUM NEWS ROW (image + text inline)
=================================================== */
.medum-image-border {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}
.medum-image-border:last-child { border-bottom: none; }
.medum-image { flex-shrink: 0; width: 80px; }
.medum-image img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.hadding_03 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.hadding_03 a { color: var(--text); }
.hadding_03 a:hover { color: var(--primary); }

/* ===================================================
   TAB WIDGET (Latest/Popular)
=================================================== */
.section-one-tabs {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.tab-header {
    display: flex;
    border-bottom: 2px solid var(--primary);
}
.tab-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-content-panel { display: none; padding: 10px; }
.tab-content-panel.active { display: block; }
.tab-border { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.tab-border:last-child { border-bottom: none; }
.hadding_02 a { font-size: 13px; font-weight: 600; color: var(--text); }
.hadding_02 a:hover { color: var(--primary); }
.hadding_02 i { color: var(--primary); margin-right: 4px; }

/* ===================================================
   EXCLUSIVE / GRID NEWS
=================================================== */
.exclusive-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 15px;
}
.exclusive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.exclusive-card img { width: 100%; height: 160px; object-fit: cover; }
.exclusive-card-title { padding: 8px 10px 10px; }
.exclusive-card-title a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.exclusive-card-title a:hover { color: var(--primary); }

/* ===================================================
   BIG NEWS BOX
=================================================== */
.box-shadow {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.box-shadow:hover { box-shadow: var(--shadow-md); }
.big_images img { width: 100%; height: 240px; object-fit: cover; }
.hadding_01 { font-size: 17px; font-weight: 700; margin: 10px; line-height: 1.5; }
.hadding_01 a { color: var(--text); }
.hadding_01 a:hover { color: var(--primary); }
.hadding_02 { font-size: 15px; font-weight: 700; margin: 8px; line-height: 1.5; }
.content_detalis { font-size: 13px; color: var(--text-muted); margin: 0 10px 10px; line-height: 1.6; }
.read-more-link {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin: 5px 10px 10px;
    transition: var(--transition);
}
.read-more-link:hover { background: var(--primary-dark); color: #fff; }
.fixed-thumb { width: 100%; height: 200px; object-fit: cover; }

/* ===================================================
   SECTION ROW LAYOUT
=================================================== */
.section-one-wrapper { margin-bottom: 25px; }
.section-two { margin-bottom: 25px; }
.section-three { margin-bottom: 25px; }

.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
[class*="col-"] { padding: 0 10px; box-sizing: border-box; }
.col-md-8 { width: 66.666%; }
.col-md-7 { width: 58.333%; }
.col-md-6 { width: 50%; }
.col-md-5 { width: 41.666%; }
.col-md-4 { width: 33.333%; }
.col-md-3 { width: 25%; }
.col-md-9 { width: 75%; }
.col-md-12 { width: 100%; }
@media (max-width: 991px) {
    .col-md-8, .col-md-7, .col-md-6, .col-md-5,
    .col-md-4, .col-md-3, .col-md-9, .col-md-12 { width: 100%; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .col-sm-6 { width: 50%; }
    .col-sm-4 { width: 33.333%; }
    .col-sm-8 { width: 66.666%; }
}

/* ===================================================
   SIDEBAR
=================================================== */
.sidebar { position: sticky; top: 60px; }
.widget_area { margin-bottom: 25px; }
.widget_area h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: 0;
}
.widget_area > div { background: var(--surface); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 12px; border: 1px solid var(--border); border-top: none; }
.widget_area ul { padding: 0; }
.widget_area ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.widget_area ul li:last-child { border-bottom: none; }
.widget_area ul li a { color: var(--text); }
.widget_area ul li a:hover { color: var(--primary); }

/* ===================================================
   SINGLE POST
=================================================== */
.singlepage-section { padding: 20px 0; }
.single-title h3 { font-size: 22px; font-weight: 700; line-height: 1.5; margin-bottom: 15px; }
.single-cat-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}
.single-cat-home a, .single-cat-cate a { color: var(--primary); font-weight: 600; }
.view-section { margin-bottom: 15px; }
.reportar-sec { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.reportar-title { font-weight: 700; font-size: 14px; }
.reportar-img img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.sgl-page-views-count ul { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; color: var(--text-muted); }
.sgl-page-views-count ul li i { margin-right: 4px; }
.single-img { margin-bottom: 15px; }
.single-img img { border-radius: var(--radius-md); width: 100%; }
.caption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; }
.single-dtls { font-size: 16px; line-height: 1.9; margin-bottom: 20px; }
.single-dtls p { margin-bottom: 15px; }
.single-dtls img { border-radius: var(--radius-md); margin: 10px 0; }

/* Social Share */
.sgl-page-social-title h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sgl-page-social ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sgl-page-social ul li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.sgl-page-social ul li a.ffacebook { background: #1877f2; }
.sgl-page-social ul li a.ttwitter { background: #1da1f2; }
.sgl-page-social ul li a.linkedin { background: #0a66c2; }
.sgl-page-social ul li a.digg { background: #f00; }
.sgl-page-social ul li a.reddit { background: #ff4500; }
.sgl-page-social ul li a.pinterest { background: #e60023; }
.sgl-page-social ul li a.print { background: #555; }
.sgl-page-social ul li a:hover { opacity: 0.85; }

/* Related Posts */
.sgl-cat-tittle { font-size: 18px; font-weight: 700; color: var(--primary); border-bottom: 3px solid var(--primary); padding-bottom: 8px; margin: 25px 0 15px; }
.Name-again { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 15px; }
.image-again img { width: 100%; height: 160px; object-fit: cover; }
.sgl-hadding { font-size: 14px; padding: 8px; font-weight: 700; }
.sgl-hadding a { color: var(--text); }
.sgl-hadding a:hover { color: var(--primary); }

/* ===================================================
   ARCHIVE / CATEGORY PAGE
=================================================== */
.archive-section { padding: 20px 0; }
.archive-header { margin-bottom: 20px; border-bottom: 3px solid var(--primary); padding-bottom: 10px; }
.archive-header h1 { font-size: 22px; font-weight: 700; color: var(--primary); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 25px; }
@media (max-width: 991px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .archive-grid { grid-template-columns: 1fr; } }

/* ===================================================
   PAGINATION
=================================================== */
.post-nav { margin: 25px 0; text-align: center; }
.post-nav ul.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.post-nav ul.pager li a,
.post-nav ul.pager li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.post-nav ul.pager li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-nav ul.pager li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===================================================
   PHOTO GALLERY
=================================================== */
.photo-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 767px) { .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 150px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    padding: 15px 8px 8px;
    font-weight: 600;
}

/* ===================================================
   VIDEO GALLERY
=================================================== */
.video-card { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 15px; }
.video-thumb { position: relative; }
.video-thumb img { width: 100%; height: 200px; object-fit: cover; }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 55px; height: 55px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    transition: var(--transition);
}
.video-thumb:hover .play-btn { background: var(--primary); }
.video-card h4 { padding: 10px; font-size: 14px; font-weight: 700; }
.video-card h4 a { color: var(--text); }
.video-card h4 a:hover { color: var(--primary); }

/* ===================================================
   AD PLACEHOLDER / BIGGAPON
=================================================== */
.biggapon, .add { margin-bottom: 15px; text-align: center; }
.biggapon img, .add img { border-radius: var(--radius-sm); margin: 0 auto; }

/* ===================================================
   FOOTER
=================================================== */
.footer-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ccc;
    padding: 45px 0 0;
    margin-top: 30px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-menu h4, .footer-content h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.footer-menu ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-menu ul li a { color: #ccc; font-size: 14px; transition: var(--transition); }
.footer-menu ul li a:hover { color: #fff; padding-left: 5px; }
.footer-logo img { max-height: 65px; margin: 0 auto 15px; }
.footer-logo-center { text-align: center; }
.editorial-line {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-top: 10px;
}
.editorial-line span { font-weight: 700; color: #fff; }
.top_hdr_social ul { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.top_hdr_social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 16px;
    transition: var(--transition);
}
.top_hdr_social ul li a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
    background: rgba(0,0,0,0.3);
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #aaa;
    margin-top: 25px;
}

/* ===================================================
   ROOT / SCROLL TOP
=================================================== */
.root { background: rgba(0,0,0,0.2); padding: 12px 0; }
.root_01 { font-size: 13px; color: #ccc; }
.root_02 { text-align: right; font-size: 12px; color: #aaa; }
.scrollToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    opacity: 0;
    transition: var(--transition);
}
.scrollToTop.visible { opacity: 1; }
.scrollToTop:hover { background: var(--primary-dark); color: #fff; }

/* ===================================================
   SEARCH PAGE
=================================================== */
.search-section { padding: 30px 0; }
.search-form-large input[type="search"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    outline: none;
    font-family: var(--font-bn);
}
.search-form-large button {
    padding: 14px 25px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: var(--transition);
}
.search-form-large button:hover { background: var(--primary-dark); }
.search-form-wrap { display: flex; margin-bottom: 25px; }

/* ===================================================
   404 PAGE
=================================================== */
.error-404-page { text-align: center; padding: 80px 20px; }
.error-404-page h1 { font-size: 80px; color: var(--primary); font-weight: 900; }
.error-404-page h2 { font-size: 28px; margin-bottom: 15px; }
.error-404-page p { color: var(--text-muted); margin-bottom: 25px; }
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* ===================================================
   COMMENTS
=================================================== */
.comments-area { background: var(--surface); border-radius: var(--radius-md); padding: 25px; box-shadow: var(--shadow-sm); margin-top: 25px; }
.comments-title { font-size: 18px; font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 20px; }
.comment-list { padding-left: 0; }
.comment-body { background: var(--bg); border-radius: var(--radius-md); padding: 15px; margin-bottom: 15px; }
.comment-author .fn { font-weight: 700; }
.comment-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; }
.comment-form label { font-weight: 600; display: block; margin-bottom: 5px; }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-bn);
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
    transition: var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form #submit {
    background: var(--primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
}
.comment-form #submit:hover { background: var(--primary-dark); }

/* ===================================================
   UTILITY
=================================================== */
.mb-3 { margin-bottom: 20px; }
.mt-3 { margin-top: 20px; }
.p-2 { padding: 12px; }
.p-3 { padding: 15px; }
.bg-white { background: var(--surface); }
.rounded { border-radius: var(--radius-md); }
.text-center { text-align: center; }
.text-end { text-align: right; }
.img-responsive { max-width: 100%; height: auto; }
.img-fluid { max-width: 100%; height: auto; }
.g-3 { gap: 15px; }
.no-gutters { margin: 0; }
.no-gutters > [class*="col-"] { padding: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.me-2 { margin-right: 10px; }

/* ===================================================
   RESPONSIVE MEDIA
=================================================== */
@media (max-width: 767px) {
    .top-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
    .top-bar-search input { width: 160px; }
    .header-main-inner { flex-direction: column; text-align: center; }
    .dse-bar-inner { gap: 15px; }
    .site-content { padding: 12px 0; }
    .single-title h3 { font-size: 18px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media print {
    .main-navigation, .breaking-news-bar, .dse-market-bar, .footer-section, .sidebar, .sgl-page-social, .post-nav { display: none; }
}
