/* ==========================================================================
   Dhaka Mail style layout for the Magazine theme  (v1.0)
   Header / menu / footer / homepage / news detail / widgets / mobile
   All classes are prefixed "dm-" so the old theme CSS is not affected.
   Change the colours below to re-skin the whole design.
   ========================================================================== */
:root {
    --dm-red: #d0121b;
    --dm-red-dark: #aa0e15;
    --dm-navy: #1c2a44;
    --dm-ink: #1a1a1a;
    --dm-muted: #6b7280;
    --dm-line: #e5e7eb;
    --dm-bg: #ffffff;
    --dm-soft: #f3f4f6;
    --dm-card: #ffffff;
    --dm-link: #1565c0;
    --dm-wrap: 1200px;
    --dm-font: 'Noto Sans Bengali', 'Hind Siliguri', 'Kalpurush', var(--vr-font-primary, sans-serif), sans-serif;
}

html[data-dm-theme="dark"] {
    --dm-navy: #0b1220;
    --dm-ink: #e8eaed;
    --dm-muted: #9aa0a6;
    --dm-line: #2a2f3a;
    --dm-bg: #12151c;
    --dm-soft: #1b2029;
    --dm-card: #181c25;
    --dm-link: #7db4ff;
}

body.magazine {
    background: var(--dm-bg);
    color: var(--dm-ink);
    font-family: var(--dm-font);
    -webkit-text-size-adjust: 100%;
}

body.magazine.dm-no-scroll { overflow: hidden; }

.dm-wrap {
    width: 100%;
    max-width: var(--dm-wrap);
    margin: 0 auto;
    padding: 0 15px;
}

.dm-wrap a, .dm-footer a, .dm-header a, .dm-drawer a, .dm-ticker a { text-decoration: none; }

.dm-img-box {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--dm-soft);
    aspect-ratio: 16 / 10;
}
.dm-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-img-box .dm-noimg { position: absolute; inset: 0; background: var(--dm-soft); }

/* ---------------------------------------------------------------- HEADER */
.dm-header { background: var(--dm-bg); position: relative; z-index: 50; }

.dm-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 8px;
    gap: 12px;
}
.dm-top-left { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.dm-top-right { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.dm-icon-btn {
    width: 34px; height: 34px; flex: 0 0 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--dm-line);
    background: var(--dm-bg);
    color: var(--dm-ink);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.dm-icon-btn svg { width: 18px; height: 18px; }

.dm-search-wrap { min-width: 0; flex: 1; max-width: 260px; }
.dm-search {
    display: flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 10px;
    border: 1px solid var(--dm-line);
    border-radius: 17px;
    background: var(--dm-soft);
}
.dm-search svg { width: 15px; height: 15px; color: var(--dm-red); flex: 0 0 15px; }
.dm-search input {
    border: 0; outline: 0; background: transparent; width: 100%;
    font-size: 13px; color: var(--dm-ink); font-family: var(--dm-font);
    min-width: 0;
}
.dm-search button { border: 0; background: transparent; padding: 0; color: var(--dm-muted); cursor: pointer; display: none; }
.dm-search button.dm-mic-on { display: inline-flex; }
.dm-search button svg { color: var(--dm-muted); }
.dm-date { font-size: 12px; color: var(--dm-muted); text-align: center; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dm-logo { display: block; text-align: center; }
.dm-logo img { display: block; margin: 0 auto; max-height: 76px; width: auto; max-width: 300px; height: auto; }

.dm-soc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dm-soc a, .dm-soc-btn {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dm-soft); color: var(--dm-ink); font-size: 14px; border: 0; cursor: pointer; padding: 0;
}
.dm-soc a.dm-s-youtube { color: #ff0000; }
.dm-soc a.dm-s-facebook { color: #1877f2; }
.dm-soc a.dm-s-twitter { color: #000; }
html[data-dm-theme="dark"] .dm-soc a.dm-s-twitter { color: #fff; }
.dm-soc a.dm-s-linkedin { color: #0a66c2; }
.dm-soc a.dm-s-instagram { color: #e1306c; }
.dm-soc a.dm-s-whatsapp { color: #25d366; }
.dm-soc a.dm-s-telegram { color: #229ed9; }
.dm-soc a svg, .dm-soc-btn svg { width: 15px; height: 15px; }
.dm-soc a i, .dm-soc a .fa-brands { font-size: 15px; }

/* ------------------------------------------------------------- MENU BAR */
.dm-nav { background: var(--dm-navy); color: #fff; position: relative; z-index: 60; }
.dm-nav-inner { display: flex; align-items: stretch; }
.dm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex: 1; min-width: 0; }
.dm-nav li { position: relative; }
.dm-nav a.dm-nav-link {
    display: flex; align-items: center; gap: 4px;
    height: 38px; padding: 0 11px;
    color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap;
    transition: background .15s;
}
.dm-nav a.dm-nav-link:hover, .dm-nav li.dm-active > a.dm-nav-link, .dm-nav li.open > a.dm-nav-link { background: var(--dm-red); color: #fff; }
.dm-nav a.dm-nav-home { padding: 0 12px 0 0; }
.dm-nav a.dm-nav-home svg { width: 17px; height: 17px; }
.dm-caret { width: 9px; height: 9px; opacity: .85; }

.dm-sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 80;
    min-width: 190px; background: #fff; border-top: 3px solid var(--dm-red);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    flex-direction: column; padding: 4px 0;
}
.dm-nav li.dm-has-sub:hover > .dm-sub,
.dm-nav li.dm-has-sub:focus-within > .dm-sub,
.dm-nav li.dm-has-sub.open > .dm-sub { display: flex; }
.dm-sub a { display: block; padding: 8px 16px; color: #222; font-size: 14px; white-space: nowrap; }
.dm-sub a:hover { background: var(--dm-soft); color: var(--dm-red); }
.dm-nav li.dm-more > .dm-sub { left: auto; right: 0; }

/* --------------------------------------------------------------- DRAWER */
.dm-overlay-bg {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity .2s;
}
.dm-overlay-bg.open { opacity: 1; visibility: visible; }
.dm-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 310px; max-width: 86vw;
    background: var(--dm-bg); color: var(--dm-ink); z-index: 1001;
    transform: translateX(-102%); transition: transform .25s ease;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 22px rgba(0,0,0,.25);
}
.dm-drawer.open { transform: translateX(0); }
.dm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--dm-line); }
.dm-drawer-head img { max-height: 44px; width: auto; }
.dm-drawer-search { padding: 12px 14px 4px; }
.dm-drawer ul { list-style: none; margin: 0; padding: 6px 0; }
.dm-drawer li > a, .dm-drawer .dm-acc-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 11px 16px; color: var(--dm-ink); font-size: 16px; font-weight: 500;
    background: transparent; border: 0; border-bottom: 1px solid var(--dm-line); text-align: left; cursor: pointer; font-family: var(--dm-font);
}
.dm-drawer li > a:hover, .dm-drawer .dm-acc-btn:hover { color: var(--dm-red); }
.dm-drawer .dm-acc-list { display: none; background: var(--dm-soft); }
.dm-drawer li.open > .dm-acc-list { display: block; }
.dm-drawer .dm-acc-list a { padding-left: 30px; font-size: 15px; font-weight: 400; }
.dm-drawer-title { padding: 10px 16px 4px; font-size: 12px; font-weight: 700; color: var(--dm-muted); letter-spacing: .04em; }
.dm-drawer-soc { padding: 14px 16px 24px; }

/* -------------------------------------------------------- TRENDING STRIP */
.dm-trending { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; overflow-x: auto; scrollbar-width: none; }
.dm-trending::-webkit-scrollbar { display: none; }
.dm-trending-label { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--dm-red); font-weight: 700; font-size: 14px; }
.dm-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dm-red); box-shadow: 0 0 0 0 rgba(208,18,27,.6); animation: dmPulse 1.6s infinite; }
@keyframes dmPulse { 70% { box-shadow: 0 0 0 8px rgba(208,18,27,0); } 100% { box-shadow: 0 0 0 0 rgba(208,18,27,0); } }
.dm-pill { flex: 0 0 auto; border: 1px solid var(--dm-line); border-radius: 14px; padding: 2px 12px; font-size: 13px; color: var(--dm-ink); background: var(--dm-bg); }
.dm-pill:hover { border-color: var(--dm-red); color: var(--dm-red); }

/* ---------------------------------------------------------- ITEM TYPES */
.dm-row { display: flex; gap: 10px; align-items: flex-start; color: var(--dm-ink); }
.dm-row .dm-thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--dm-soft); display: block; }
.dm-row .dm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-row-title { font-size: 15px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dm-row:hover .dm-row-title, .dm-card:hover .dm-card-title, .dm-text:hover { color: var(--dm-red); }

.dm-card { display: block; color: var(--dm-ink); }
.dm-card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.4; font-weight: 500; margin-top: 8px; }

.dm-ov { display: block; position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.dm-ov img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.dm-ov:hover img { transform: scale(1.03); }
.dm-ov-title {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: #fff; font-size: 26px; line-height: 1.3; font-weight: 600;
}
.dm-ov-sm .dm-ov-title { font-size: 16px; padding: 28px 10px 8px; }

.dm-lead { display: block; color: var(--dm-ink); }
.dm-lead-title { display: block; font-size: 22px; line-height: 1.35; font-weight: 600; margin-top: 10px; }
.dm-lead-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 14px; color: var(--dm-muted); line-height: 1.55; }
.dm-lead:hover .dm-lead-title { color: var(--dm-red); }

.dm-text { display: block; color: var(--dm-ink); font-size: 15px; line-height: 1.45; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--dm-line); }

/* ------------------------------------------------------------- HERO */
.dm-hero { display: grid; grid-template-columns: 24% minmax(0, 1fr) 25%; gap: 20px; padding: 12px 0 8px; }
.dm-hero-left { display: flex; flex-direction: column; gap: 12px; }
.dm-hero-left .dm-row { padding-bottom: 12px; border-bottom: 1px solid var(--dm-line); }
.dm-hero-left .dm-row:last-child { border-bottom: 0; }
.dm-hero-left .dm-row .dm-thumb { flex-basis: 78px; width: 78px; }
.dm-hero-left .dm-row-title { font-size: 14px; -webkit-line-clamp: 3; }
.dm-hero-center .dm-ov { aspect-ratio: 16 / 11; }
.dm-hero-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.dm-hero-sub .dm-row .dm-thumb { flex-basis: 110px; width: 110px; }
.dm-hero-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dm-hero-right .container, .dm-hero-right .container-bn { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.dm-hero-right .dm-row { padding-bottom: 12px; border-bottom: 1px solid var(--dm-line); }
.dm-hero-right .dm-row:last-child { border-bottom: 0; }
.dm-hero-right .dm-row .dm-thumb { flex-basis: 78px; width: 78px; }
.dm-hero-right .dm-row-title { font-size: 14px; }

/* ------------------------------------------------------ SECTION BLOCKS */
.dm-sec { padding: 14px 0 6px; }
.dm-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; border-bottom: 1px solid var(--dm-line); padding-bottom: 6px; position: relative; }
.dm-sec-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 46px; height: 3px; background: var(--dm-red); }
.dm-sec-head h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.dm-sec-head h2 a { color: var(--dm-ink); }
.dm-sec-head h2 a:hover { color: var(--dm-red); }
.dm-more { font-size: 12px; color: var(--dm-muted); white-space: nowrap; }
.dm-more:hover { color: var(--dm-red); }

.dm-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* national: small cards | lead | rows */
.dm-national { display: grid; grid-template-columns: 30% minmax(0, 1fr) 29%; gap: 18px; }
.dm-national-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.dm-national-cards .dm-card-title { font-size: 14px; -webkit-line-clamp: 3; }
.dm-national-rows { display: flex; flex-direction: column; gap: 12px; }
.dm-national-rows .dm-row { padding-bottom: 12px; border-bottom: 1px solid var(--dm-line); }
.dm-national-rows .dm-row:last-child { border-bottom: 0; }
.dm-national-rows .dm-row .dm-thumb { flex-basis: 76px; width: 76px; }
.dm-national-rows .dm-row-title { font-size: 14px; }

/* list-tabs: two column thumb list + widget */
.dm-listtabs { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.dm-list2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.dm-list2 .dm-row .dm-thumb { flex-basis: 128px; width: 128px; }

/* sports: big overlay + three cards | text list */
.dm-sports { display: grid; grid-template-columns: minmax(0, 1fr) 31%; gap: 22px; }
.dm-sports-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.dm-sports-side { display: flex; flex-direction: column; }
.dm-sports-side .dm-text:first-child { padding-top: 0; }

/* entertainment: soft cards */
.dm-ent { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; align-items: start; }
.dm-ent-card { background: var(--dm-card); box-shadow: 0 1px 8px rgba(0,0,0,.12); padding: 10px; }
.dm-ent-stack { display: flex; flex-direction: column; gap: 14px; }
.dm-ent-rows { display: flex; flex-direction: column; gap: 12px; }
.dm-ent-rows .dm-row { padding-bottom: 12px; border-bottom: 1px solid var(--dm-line); }
.dm-ent-rows .dm-row:last-child { border-bottom: 0; }
.dm-ent-rows .dm-row .dm-thumb { flex-basis: 82px; width: 82px; }
.dm-ent-rows .dm-row-title { font-size: 14px; }

/* compact: four little columns */
.dm-compact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 14px 0 6px; }
.dm-compact .dm-sec-head { margin-bottom: 10px; }
.dm-compact .dm-sec-head h2 { font-size: 19px; }
.dm-compact .dm-text { font-size: 14px; }

/* multimedia + prayer row */
.dm-media-row { display: grid; grid-template-columns: minmax(0, 1fr) 31%; gap: 20px; padding: 16px 0 6px; align-items: stretch; }
.dm-media { background: #fff; border: 1px solid var(--dm-line); }
html[data-dm-theme="dark"] .dm-media { background: var(--dm-card); }
.dm-media-head { background: #5d6f86; color: #fff; text-align: center; font-size: 20px; font-weight: 700; padding: 6px 10px; }
.dm-media-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.dm-video { position: relative; display: block; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.dm-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.dm-video .dm-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.dm-video .dm-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.dm-video .dm-video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 14px; line-height: 1.35; }

/* ------------------------------------------------------------- WIDGETS */
.dm-w { margin-bottom: 22px; }
.dm-w-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; border-bottom: 2px solid var(--dm-line); padding-bottom: 4px; }

/* latest / popular tabs */
.dm-tabs { border: 1px solid var(--dm-line); background: var(--dm-card); }
.dm-tab-head { display: flex; }
.dm-tab-head button {
    flex: 1; border: 0; padding: 7px 10px; font-size: 20px; font-weight: 700; cursor: pointer;
    background: var(--dm-navy); color: #fff; font-family: var(--dm-font);
}
.dm-tab-head button.active { background: var(--dm-red); }
.dm-tab-pane { display: none; }
.dm-tab-pane.active { display: block; }
.dm-tab-pane ol { list-style: none; margin: 0; padding: 0; counter-reset: dmn; }
.dm-tab-pane li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--dm-line); counter-increment: dmn; }
.dm-tab-pane li::before {
    content: counter(dmn, bengali);
    flex: 0 0 38px; height: 38px; border-radius: 50%; background: #9ca3af; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700;
}
.dm-tab-pane li:first-child::before { background: var(--dm-red); }
.dm-tab-pane li a { color: var(--dm-ink); font-size: 15px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-tab-pane li a:hover { color: var(--dm-red); }
.dm-tab-all { display: block; text-align: center; background: var(--dm-red); color: #fff !important; font-size: 21px; font-weight: 700; padding: 8px 10px; }
.dm-tab-all:hover { background: var(--dm-red-dark); }

/* more from this category */
.dm-catlist-box { max-height: 520px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.dm-catlist-box .dm-row { padding: 8px 0; border-bottom: 1px solid var(--dm-line); }
.dm-catlist-box .dm-row .dm-thumb { flex-basis: 96px; width: 96px; }

/* prayer widget */
.dm-prayer { background: #12356b; color: #fff; padding: 12px 12px 14px; border-radius: 2px; }
.dm-prayer h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #fff; }
.dm-prayer #countdown { background: rgba(255,255,255,.12); padding: 6px 10px; font-size: 15px; margin-bottom: 8px; border-radius: 3px; }
.dm-prayer table { width: 100%; border-collapse: collapse; }
.dm-prayer table th { background: rgba(255,255,255,.18); color: #fff !important; font-size: 14px; padding: 5px 8px; text-align: left; }
.dm-prayer table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 15px; color: #fff; }
.dm-prayer table tr.next-prayer td, .dm-prayer table tr.active td { background: #1c8a52; }
.dm-prayer-note { font-size: 11px; opacity: .75; margin-top: 6px; }

/* calendar and old sidebar widgets re-skinned */
.dm-sidebar .sidebar-widget { margin-bottom: 22px; }
.dm-sidebar .sidebar-widget .widget-head { margin-bottom: 10px; }
.dm-sidebar .sidebar-widget .widget-head .title { margin: 0; font-size: 20px; font-weight: 700; border-bottom: 2px solid var(--dm-line); padding-bottom: 4px; position: relative; }
.dm-sidebar .sidebar-widget .widget-head .title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px; background: var(--dm-red); }
.dm-sidebar .calendar-widget { width: 100%; max-width: 330px; }
.dm-sidebar .tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dm-sidebar .tag-list a { display: block; padding: 3px 12px; background: var(--dm-soft); color: var(--dm-ink); font-size: 14px; }
.dm-sidebar .tag-list a:hover { background: var(--dm-red); color: #fff; }

/* ad slots */
.dm-ad { text-align: center; margin: 10px 0; overflow: hidden; }
.dm-ad img { max-width: 100%; height: auto; }
.dm-wrap .container-bn { max-width: 100%; }

/* --------------------------------------------------------- NEWS DETAIL */
.dm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 16px 0 30px; align-items: start; }
.dm-article { min-width: 0; }
.dm-kicker { padding: 6px 12px; color: #fff; text-align: center; font-size: 17px; margin: 0 0 10px; }
.dm-title { font-size: 34px; line-height: 1.35; font-weight: 400; margin: 0 0 8px; color: var(--dm-ink); }
.dm-summary { border-left: 4px solid var(--dm-red); background: var(--dm-soft); padding: 8px 14px; margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--dm-muted); }
.dm-byline { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.dm-byline a { color: var(--dm-ink); }
.dm-meta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dm-pub { font-size: 13px; color: var(--dm-ink); }
.dm-pub .dm-stats { margin-left: 12px; color: var(--dm-muted); }
.dm-share-label { font-size: 13px; font-weight: 600; text-align: right; margin-bottom: 4px; }
.dm-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-share a, .dm-share button {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--dm-line);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
    background: var(--dm-bg); cursor: pointer; padding: 0; color: var(--dm-ink); font-family: var(--dm-font);
}
.dm-share a.fb { color: #1877f2; border-color: #1877f2; }
.dm-share a.wa { color: #25d366; border-color: #25d366; }
.dm-share a.ms { color: #0084ff; border-color: #0084ff; }
.dm-share a.tg { color: #229ed9; border-color: #229ed9; }
.dm-share a.tw { color: #000; border-color: #888; }
html[data-dm-theme="dark"] .dm-share a.tw { color: #fff; }
.dm-share a.ln { color: #0a66c2; border-color: #0a66c2; }
.dm-share .dm-fs { background: var(--dm-soft); font-size: 12px; font-weight: 700; width: 34px; border-radius: 17px; }
.dm-share .dm-print { background: #374151; color: #fff; border-color: #374151; border-radius: 6px; width: 38px; }
.dm-share svg { width: 15px; height: 15px; }

/* featured image */
.dm-article .post-image { margin: 0 0 14px; }
.dm-article .post-image img { width: 100%; height: auto; display: block; }
.dm-article .img-description { text-align: center; font-size: 12px; color: var(--dm-muted); margin-top: 6px; padding: 0 10px; line-height: 1.5; }
.dm-article .post-image-inner { overflow: hidden; }

/* text */
.dm-article .post-text { font-size: 19px; line-height: 1.85; color: var(--dm-ink); word-wrap: break-word; }
.dm-article .post-text p { margin: 0 0 16px; }
.dm-article .post-text img { max-width: 100%; height: auto; }
.dm-article .post-text a { color: var(--dm-link); }
.dm-article .post-text iframe { max-width: 100%; }
.dm-article .post-text blockquote { border-left: 4px solid var(--dm-red); background: var(--dm-soft); margin: 16px 0; padding: 10px 16px; }
.dm-article .post-text table { max-width: 100%; display: block; overflow-x: auto; }
.dm-readmore {
    background: var(--dm-soft); border-top: 4px solid var(--dm-red); text-align: center; padding: 12px 14px; margin: 18px 0; font-size: 17px;
}

/* follow box */
.dm-follow {
    border: 2px dashed var(--dm-line); border-radius: 6px; padding: 14px 16px; margin: 22px 0 14px;
    display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.dm-follow strong { font-size: 18px; }
.dm-follow .dm-soc { justify-content: center; }
.dm-follow .dm-soc a { width: 38px; height: 38px; font-size: 18px; }

/* tags */
.dm-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.dm-tags a { display: block; padding: 5px 14px; background: var(--dm-soft); color: var(--dm-ink); font-size: 15px; }
.dm-tags a:hover { background: var(--dm-red); color: #fff; }

.dm-related { margin-top: 26px; }
.dm-related .dm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.dm-article .about-author { margin-top: 24px; padding: 14px; background: var(--dm-soft); }
.dm-article .img-author { border-radius: 50%; }

/* ------------------------------------------------------------- FOOTER */
.dm-footer { margin-top: 30px; border-top: 8px solid var(--dm-soft); background: var(--dm-bg); color: var(--dm-ink); }
.dm-footer-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 36px; padding: 28px 0 24px; }
.dm-footer-logo img { max-height: 70px; width: auto; display: block; margin: 0 auto 10px; }
.dm-footer-about { text-align: center; font-size: 14px; line-height: 1.7; color: var(--dm-muted); }
.dm-footer-about b { color: var(--dm-ink); }
.dm-footer .dm-soc { justify-content: center; margin-top: 12px; }
.dm-f-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; padding-bottom: 6px; border-bottom: 2px solid #d1d5db; }
.dm-f-title { position: relative; }
.dm-contact { list-style: none; margin: 0; padding: 0; }
.dm-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 16px; line-height: 1.5; }
.dm-contact svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 4px; }
.dm-contact a { color: var(--dm-ink); }
.dm-flinks { list-style: none; margin: 0; padding: 0; }
.dm-flinks li { margin-bottom: 8px; }
.dm-flinks a { color: var(--dm-ink); font-size: 15px; }
.dm-flinks a:hover { color: var(--dm-red); }
.dm-weather { margin-top: 16px; font-size: 14px; }
.dm-weather #weather-top { display: flex; align-items: center; gap: 8px; }
.dm-weather #weather-icon { width: 40px; height: 40px; }
.dm-footer .newsletter-inputs { display: flex; gap: 6px; }
.dm-footer .newsletter-inputs input { flex: 1; min-width: 0; }
.dm-footer-bottom { border-top: 1px solid var(--dm-line); padding: 12px 0 18px; font-size: 13px; color: var(--dm-muted); }
.dm-footer-bottom .dm-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dm-footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.dm-footer-bottom a { color: var(--dm-muted); }
.dm-footer-bottom a:hover { color: var(--dm-red); }
.copyright.text-start { text-align: left; }

/* sticky headline ticker */
.dm-ticker {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: 34px; display: flex; align-items: stretch; background: #fff; border-top: 1px solid var(--dm-line);
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}
html[data-dm-theme="dark"] .dm-ticker { background: var(--dm-card); }
.dm-ticker-label { flex: 0 0 auto; background: var(--dm-red); color: #fff; font-weight: 700; padding: 0 16px; display: flex; align-items: center; font-size: 15px; }
.dm-ticker-view { flex: 1; overflow: hidden; position: relative; }
.dm-ticker-track { display: inline-flex; white-space: nowrap; height: 100%; align-items: center; animation: dmTick 90s linear infinite; padding-left: 100%; }
.dm-ticker-view:hover .dm-ticker-track { animation-play-state: paused; }
.dm-ticker-track a { color: var(--dm-ink); font-size: 14px; padding: 0 22px 0 0; display: inline-flex; align-items: center; }
.dm-ticker-track a::before { content: ''; width: 7px; height: 7px; background: var(--dm-red); margin-right: 10px; display: inline-block; }
.dm-ticker-track a:hover { color: var(--dm-red); }
@keyframes dmTick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
body.magazine { padding-bottom: 34px; }
.scrollup { bottom: 48px !important; }

/* ------------------------------------------------------------ TABLET */
@media (max-width: 1099.98px) {
    .dm-hero { grid-template-columns: 1fr 30%; }
    .dm-hero-left { grid-column: 1 / -1; order: 3; flex-direction: row; flex-wrap: wrap; }
    .dm-hero-left .dm-row { flex: 1 1 calc(50% - 12px); border-bottom: 1px solid var(--dm-line); }
    .dm-national { grid-template-columns: 1fr 1fr; }
    .dm-national-cards { grid-column: 1 / -1; order: 3; grid-template-columns: repeat(4, 1fr); }
    .dm-listtabs { grid-template-columns: 1fr; }
    .dm-sports { grid-template-columns: 1fr; }
    .dm-sports-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
    .dm-ent { grid-template-columns: 1fr 1fr; }
    .dm-ent-rows { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
    .dm-media-row { grid-template-columns: 1fr; }
    .dm-detail { grid-template-columns: 1fr; }
    .dm-footer-grid { grid-template-columns: 1fr 1fr; }
    .dm-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .dm-nav { overflow-x: auto; scrollbar-width: none; }
    .dm-nav::-webkit-scrollbar { display: none; }
    .dm-nav li.dm-has-sub > .dm-sub { display: none !important; }
    .dm-nav .dm-caret { display: none; }
    .dm-nav a.dm-nav-link { height: 40px; }
    .dm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-top-right .dm-soc a:nth-child(n+3) { display: none; }
}

/* ------------------------------------------------------------ MOBILE */
@media (max-width: 767.98px) {
    .dm-wrap { padding: 0 12px; }
    .dm-top { grid-template-columns: 44px 1fr 88px; padding-top: 8px; padding-bottom: 6px; gap: 6px; }
    .dm-top-left { display: contents; }
    .dm-top-left .dm-search-wrap { display: none; }
    .dm-top-left .dm-burger { order: 1; }
    .dm-logo { order: 2; }
    .dm-top-right { order: 3; flex-wrap: nowrap; gap: 6px; }
    .dm-top-right .dm-soc { display: none; }
    .dm-logo img { max-height: 46px; max-width: 190px; }
    .dm-date { display: none; }
    .dm-mobile-date { display: block !important; }
    .dm-soc-btn.dm-mobile-search { display: inline-flex !important; }

    .dm-hero { grid-template-columns: 1fr; gap: 14px; padding-top: 8px; }
    .dm-hero-center { order: 1; }
    .dm-hero-right { order: 2; }
    .dm-hero-left { order: 3; flex-direction: column; }
    .dm-hero-left .dm-row { flex: none; }
    .dm-hero-sub { grid-template-columns: 1fr; }
    .dm-ov-title { font-size: 20px; padding: 34px 12px 10px; }
    .dm-ov-sm .dm-ov-title { font-size: 15px; }

    .dm-sec-head h2 { font-size: 20px; }
    .dm-grid-4 { gap: 12px; }
    .dm-card-title { font-size: 14px; }
    .dm-national { grid-template-columns: 1fr; }
    .dm-national-cards { grid-template-columns: 1fr 1fr; }
    .dm-list2 { grid-template-columns: 1fr; }
    .dm-list2 .dm-row .dm-thumb { flex-basis: 110px; width: 110px; }
    .dm-sports-sub { grid-template-columns: 1fr; }
    .dm-sports-sub .dm-row .dm-thumb { flex-basis: 110px; width: 110px; }
    .dm-sports-side { grid-template-columns: 1fr; }
    .dm-ent { grid-template-columns: 1fr; }
    .dm-ent-rows { grid-template-columns: 1fr; }
    .dm-media-body { grid-template-columns: 1fr; }
    .dm-compact-row { gap: 14px; }

    .dm-title { font-size: 24px; line-height: 1.4; }
    .dm-meta-row { flex-direction: column; align-items: flex-start; }
    .dm-share-label { text-align: left; }
    .dm-article .post-text { font-size: 17px; line-height: 1.8; }
    .dm-related .dm-grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dm-follow { flex-direction: column; gap: 8px; }
    .dm-footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 20px; }
    .dm-footer-bottom .dm-wrap { flex-direction: column; }
    .dm-ticker-label { padding: 0 10px; font-size: 14px; }
}

.dm-mobile-date { display: none; text-align: center; font-size: 12px; color: var(--dm-muted); padding-bottom: 6px; }
.dm-soc-btn.dm-mobile-search { display: none; }

@media print {
    .dm-header, .dm-nav, .dm-ticker, .dm-footer, .dm-detail > aside, .dm-share, .dm-follow, .dm-related, .section-comments, .dm-drawer, .dm-overlay-bg { display: none !important; }
    .dm-detail { display: block; }
    .dm-article .post-text { font-size: 14pt; }
}

#weather-icon[src=""], #weather-icon:not([src]) { display: none; }
