/* Daily Nijaat: modern look layered over the Classic theme. Remove the link in _head.php to undo. */
:root {
    --dn-radius: 16px;
    --dn-radius-sm: 12px;
    --dn-ease: cubic-bezier(.2, .8, .2, 1);
    --dn-shadow: 0 6px 20px rgba(17, 24, 39, .08);
    --dn-shadow-hover: 0 16px 36px rgba(17, 24, 39, .16);
    --dn-shine: rgba(255, 255, 255, .5);
}
[data-bs-theme="dark"] {
    --dn-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    --dn-shadow-hover: 0 16px 36px rgba(0, 0, 0, .55);
    --dn-shine: rgba(255, 255, 255, .22);
}

/* Rounded images */
.post-item .image,
.post-item-mid .image,
.post-item-small .image,
.post-item-horizontal .image,
.menu-post-img-wrapper,
.featured-section .fs-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--dn-radius);
    box-shadow: var(--dn-shadow);
    transition: box-shadow .45s var(--dn-ease), transform .45s var(--dn-ease);
}
.post-item-small .image { border-radius: var(--dn-radius-sm); }
.post-content img,
.post-text img { border-radius: var(--dn-radius); }

/* Smooth zoom */
.post-item .image img,
.post-item-mid .image img,
.post-item-small .image img,
.post-item-horizontal .image img,
.menu-post-img,
.featured-section .fs-img {
    transition: transform .8s var(--dn-ease);
}
.post-item:hover .image img,
.post-item-mid:hover .image img,
.post-item-small:hover .image img,
.post-item-horizontal:hover .image img,
.menu-post-img-wrapper:hover .menu-post-img,
.featured-section .fs-card:hover .fs-img {
    transform: scale(1.06);
}

/* Lift on hover */
.post-item:hover .image,
.post-item-mid:hover .image,
.post-item-small:hover .image,
.post-item-horizontal:hover .image,
.featured-section .fs-card:hover {
    box-shadow: var(--dn-shadow-hover);
}
.post-item:hover .image,
.post-item-mid:hover .image,
.post-item-horizontal:hover .image {
    transform: translateY(-3px);
}

/* Shine: sweeps on hover, and once when an image scrolls into view */
.post-item .image::after,
.post-item-mid .image::after,
.post-item-small .image::after,
.post-item-horizontal .image::after,
.menu-post-img-wrapper::after,
.featured-section .fs-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 55%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 0%, var(--dn-shine) 50%, transparent 100%);
    transform: translateX(-160%) skewX(-18deg);
}
.post-item:hover .image::after,
.post-item-mid:hover .image::after,
.post-item-small:hover .image::after,
.post-item-horizontal:hover .image::after,
.menu-post-img-wrapper:hover::after,
.featured-section .fs-card:hover::after,
.dn-shine-once::after {
    animation: dnShine 1s var(--dn-ease);
}
@keyframes dnShine {
    from { transform: translateX(-160%) skewX(-18deg); }
    to { transform: translateX(300%) skewX(-18deg); }
}

/* Headlines */
.post-item .title a,
.post-item-mid .title a,
.post-item-small .title a,
.post-item-horizontal .title a {
    transition: color .25s ease;
}

/* Featured section */
.featured-section .fs-grid-wrapper,
.featured-section .fs-grid-item { --fs-gap: 12px; }
.featured-section .fs-grid-item { border-radius: var(--dn-radius); }
.featured-section .fs-nav-btn {
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: transform .25s var(--dn-ease);
}
.featured-section .fs-nav-btn:hover { transform: scale(1.1); }

/* Pills */
.badge-category {
    border-radius: 999px;
    padding-inline: .8em;
    transition: transform .25s var(--dn-ease), filter .25s ease;
}
.badge-category:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn { border-radius: 999px; transition: transform .25s var(--dn-ease), box-shadow .25s ease, background-color .25s ease; }
.btn:active { transform: scale(.97); }

/* Section cards */
.sidebar-widget {
    border-radius: var(--dn-radius);
    transition: box-shadow .35s var(--dn-ease);
}
.section-newsticker .container > * { border-radius: var(--dn-radius-sm); overflow: hidden; }

/* Scroll reveal: the class is only added by modern.js, so content stays visible without JS */
.dn-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--dn-ease), transform .6s var(--dn-ease);
    transition-delay: var(--dn-delay, 0ms);
}
.dn-reveal.dn-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .dn-reveal { opacity: 1; transform: none; transition: none; }
    .post-item .image img, .post-item-mid .image img, .post-item-small .image img,
    .post-item-horizontal .image img, .menu-post-img, .featured-section .fs-img,
    .post-item .image, .post-item-mid .image, .post-item-horizontal .image { transition: none; transform: none !important; }
    .post-item .image::after, .post-item-mid .image::after, .post-item-small .image::after,
    .post-item-horizontal .image::after, .menu-post-img-wrapper::after, .featured-section .fs-card::after { display: none; }
}

/* =====================================================================
   Shining red news theme with one compact list style for every block
   ===================================================================== */
:root {
    --dn-red: #d90429;
    --dn-red-bright: #f5213f;
    --dn-red-deep: #a80320;
    --dn-red-gradient: linear-gradient(180deg, var(--dn-red-bright) 0%, var(--dn-red) 55%, var(--dn-red-deep) 100%);
    --dn-gloss: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .12) 100%);
    --dn-thumb: 120px;
}

/* Compact list: small image beside the heading */
.post-item:not(.post-item-mid) {
    display: grid;
    grid-template-columns: var(--dn-thumb) minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    margin-bottom: 14px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vr-card-border-color);
}
.post-item:not(.post-item-mid) > .image {
    grid-column: 1;
    grid-row: 1;
    width: var(--dn-thumb);
    --bs-aspect-ratio: 72%;
    border-radius: 10px;
}
.post-item:not(.post-item-mid) > .post-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
.post-item.post-item-no-image:not(.post-item-mid) { grid-template-columns: minmax(0, 1fr); }
.post-item.post-item-no-image:not(.post-item-mid) > .post-content { grid-column: 1; }
.post-item:not(.post-item-mid) > .category-link,
.post-item:not(.post-item-mid) .description,
.post-item:not(.post-item-mid) .post-content > p,
.post-item-horizontal .category-link,
.post-item-horizontal .description { display: none; }

.post-item-horizontal {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vr-card-border-color);
}
.post-item-horizontal > .row {
    display: grid;
    grid-template-columns: var(--dn-thumb) minmax(0, 1fr);
    column-gap: 14px;
    margin: 0;
}
.post-item-horizontal > .row > [class*="col-"] { width: auto !important; padding: 0; min-width: 0; }
.post-item-horizontal.post-item-no-image > .row { grid-template-columns: minmax(0, 1fr); }
.post-item-horizontal .image { --bs-aspect-ratio: 72%; margin: 0 !important; border-radius: 10px; }

.post-item-small {
    margin-bottom: 14px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vr-card-border-color);
}
.post-item-small .image { border-radius: 10px; }
.post-item-small .image,
.post-item-small .image img { width: var(--dn-thumb); max-width: var(--dn-thumb); flex-shrink: 0; }
.post-item-small .image img { aspect-ratio: 1 / .72; object-fit: cover; }
.footer-widget .post-item-small { border-bottom-color: rgba(255, 255, 255, .12); }

/* Headings */
.post-item:not(.post-item-mid) .title,
.post-item-horizontal .title,
.post-item-small .title {
    font-size: 1.05rem;
    line-height: 1.9;
    font-weight: 600;
    margin: 0 0 4px;
}
.post-item .title a:hover,
.post-item-horizontal .title a:hover,
.post-item-small .title a:hover { color: var(--dn-red) !important; }

/* Credit line always stays on one row */
.post-item .post-meta,
.post-item-horizontal .post-meta,
.post-item-small .post-meta,
.featured-section .fs-meta {
    flex-wrap: nowrap;
    gap: 9px;
    overflow: hidden;
    white-space: nowrap;
}
.post-item .post-meta .meta-item,
.post-item-horizontal .post-meta .meta-item,
.post-item-small .post-meta .meta-item { flex-shrink: 0; }
.post-item .post-meta .meta-item:first-child,
.post-item-horizontal .post-meta .meta-item:first-child,
.post-item-small .post-meta .meta-item:first-child { flex-shrink: 1; min-width: 0; overflow: hidden; }
.post-meta .meta-item .a-username { color: var(--dn-red) !important; font-weight: 600; text-overflow: ellipsis; overflow: hidden; }
.featured-section .fs-meta a,
.featured-section .fs-meta .a-username { color: #fff !important; font-weight: 400; }

/* Section headings: each keeps its category colour, with a glossy finish */
.section .section-title { border-bottom-width: 3px !important; }
.section .section-title .title {
    position: relative;
    overflow: hidden;
    height: 38px;
    padding: 0 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    background-image: var(--dn-gloss);
}
.sidebar-widget .widget-head {
    height: 38px;
    background-image: var(--dn-red-gradient);
    border-radius: 8px 8px 0 0;
    border-bottom: 3px solid var(--dn-red-deep);
    margin-bottom: 1.1rem;
    padding: 0 15px;
}
.sidebar-widget .widget-head .title { font-size: 1.05rem; font-weight: 600; }
.section .section-title .title::after,
.sidebar-widget .widget-head::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: translateX(-180%) skewX(-18deg);
    animation: dnBarShine 7s ease-in-out infinite;
}
@keyframes dnBarShine {
    0%, 72% { transform: translateX(-180%) skewX(-18deg); }
    100% { transform: translateX(380%) skewX(-18deg); }
}

/* Header */
.topbar { background-color: #16080a !important; }
#mega-menu-wrapper {
    background-color: var(--dn-red) !important;
    background-image: var(--dn-red-gradient) !important;
    border: 0 !important;
    box-shadow: 0 4px 16px rgba(169, 3, 32, .28);
}
#mega-menu-wrapper nav.navbar { background: transparent !important; border: 0 !important; box-shadow: none !important; }
#mega-menu-wrapper .navbar-nav > .nav-item > .nav-link,
#mega-menu-wrapper .navbar-nav > .nav-item > .nav-link * { color: #fff !important; }
#mega-menu-wrapper .navbar-nav > .nav-item > .nav-link { transition: background-color .25s ease, padding .3s var(--dn-ease); border-radius: 6px; }
#mega-menu-wrapper .navbar-nav > .nav-item > .nav-link:hover { background-color: rgba(0, 0, 0, .16); }
#mega-menu-wrapper .navbar-nav > .nav-item > .nav-link::after { background-color: #fff !important; }
#mega-menu-wrapper .mn-icon { color: #fff !important; fill: #fff !important; }
#mega-menu-wrapper .search-icon-btn,
#mega-menu-wrapper .search-icon-btn * { color: #fff !important; }
#mega-menu-wrapper .search-icon-btn svg { stroke: currentColor; }
.btn-nav-subscribe {
    background: #fff !important;
    color: var(--dn-red) !important;
    border-color: #fff !important;
    font-weight: 700;
    border-radius: 999px !important;
}
.mobile-header { border-top: 3px solid var(--dn-red); }

/* Footer */

/* Accents */
.badge-category { box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.section-newsticker { --vr-theme-color: var(--dn-red); }
.featured-section .fs-card { border-radius: 14px; }
::selection { background: var(--dn-red); color: #fff; }

@media (max-width: 575.98px) {
    :root { --dn-thumb: 110px; }
    .post-item:not(.post-item-mid) .title,
    .post-item-horizontal .title,
    .post-item-small .title { font-size: 1rem; }
    .post-meta .meta-item a, .post-meta .meta-item span { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
    .section .section-title .title::after, .sidebar-widget .widget-head::after { display: none; }
}

/* =====================================================================
   Latest news marquee below the main menu
   ===================================================================== */
#mega-menu-wrapper { margin-bottom: 0 !important; }
.mobile-header-spacer { margin-bottom: 0 !important; }
.dn-marquee {
    position: sticky;
    top: var(--dn-menu-h, 52px);
    z-index: 1010;
    display: flex;
    align-items: stretch;
    height: 54px;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--vr-card-border-color);
    box-shadow: 0 3px 12px rgba(17, 24, 39, .06);
}
.body-profile-page .dn-marquee { margin-bottom: 0; }
.dn-marquee-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 16px;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    background-image: var(--dn-red-gradient);
    box-shadow: -6px 0 14px rgba(169, 3, 32, .25);
}
.dn-marquee-label i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: dnMarqueePulse 1.6s ease-out infinite;
}
.dn-marquee-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
/* Urdu reads right to left, so headlines enter from the left and move right */
.dn-marquee-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: dnMarqueeMove var(--dn-marquee-time, 100s) linear infinite;
    will-change: transform;
}
.dn-marquee:hover .dn-marquee-track,
.dn-marquee:focus-within .dn-marquee-track { animation-play-state: paused; }
.dn-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.dn-marquee-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-inline: 20px;
    height: 100%;
    color: var(--bs-body-color) !important;
    font-size: .98rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border-inline-start: 1px solid var(--vr-card-border-color);
    transition: color .2s ease;
}
.dn-marquee-item:hover { color: var(--dn-red) !important; }
.dn-marquee-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .18);
}
@keyframes dnMarqueeMove {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}
@keyframes dnMarqueePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); }
    100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
@media (max-width: 575.98px) {
    .dn-marquee { height: 48px; margin-bottom: 16px; }
    .dn-marquee-label { padding: 0 10px; font-size: .85rem; }
    .dn-marquee-item { font-size: .9rem; padding-inline: 14px; }
    .dn-marquee-item img { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .dn-marquee-track { animation: none; }
    .dn-marquee-viewport { overflow-x: auto; }
    .dn-marquee-group[aria-hidden="true"] { display: none; }
    .dn-marquee-label i { animation: none; }
}

/* =====================================================================
   Mobile bottom navigation
   ===================================================================== */
.dn-bottom-nav {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    height: 64px;
    padding: 0 4px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(17, 24, 39, .06);
    box-shadow: 0 10px 30px rgba(17, 24, 39, .2);
    animation: dnNavIn .5s var(--dn-ease);
}
[data-bs-theme="dark"] .dn-bottom-nav {
    background: rgba(28, 28, 31, .94);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.dn-bn-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vr-text-muted) !important;
    font: inherit;
    font-size: .72rem;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, transform .2s var(--dn-ease);
    -webkit-tap-highlight-color: transparent;
}
.dn-bn-item svg,
.dn-bn-cta svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dn-bn-item:active { transform: scale(.92); }
.dn-bn-item.is-active { color: var(--dn-red) !important; font-weight: 700; }
.dn-bn-item.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--dn-red);
}
.dn-bn-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 7px;
    color: var(--dn-red) !important;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.dn-bn-cta i {
    position: absolute;
    top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    background-image: var(--dn-red-gradient);
    border: 3px solid var(--bs-body-bg, #fff);
    box-shadow: 0 8px 18px rgba(169, 3, 32, .45);
    transition: transform .2s var(--dn-ease);
}
.dn-bn-cta i::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: translateX(-180%) skewX(-18deg);
    animation: dnBarShine 5s ease-in-out infinite;
}
.dn-bn-cta i svg { width: 26px; height: 26px; stroke-width: 2.6; }
.dn-bn-cta:active i { transform: scale(.92); }
@keyframes dnNavIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 991.98px) {
    .dn-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    .btn-scroll-up { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }
    .dn-install { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .dn-bottom-nav { animation: none; }
    .dn-bn-cta i::after { display: none; }
}

/* =====================================================================
   Become a reporter page
   ===================================================================== */
.dn-rp { padding-bottom: 40px; }
.dn-rp-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0;
    margin-bottom: 28px;
    text-align: center;
    color: #fff;
    background-image: var(--dn-red-gradient);
}
.dn-rp-hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: translateX(-180%) skewX(-18deg);
    animation: dnRpShine 8s ease-in-out infinite;
}
@keyframes dnRpShine {
    0%, 70% { transform: translateX(-180%) skewX(-18deg); }
    100% { transform: translateX(520%) skewX(-18deg); }
}
.dn-rp-kicker {
    display: inline-block;
    padding: 2px 16px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-size: .85rem;
    background: rgba(255, 255, 255, .18);
}
.dn-rp-hero h1 { margin: 0 0 12px; color: #fff; font-size: 2.2rem; line-height: 1.7; font-weight: 700; }
.dn-rp-hero p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; line-height: 2; opacity: .95; }
.dn-rp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.dn-rp-step,
.dn-rp-card {
    padding: 22px;
    border-radius: var(--dn-radius);
    border: 1px solid var(--vr-card-border-color);
    background: var(--bs-body-bg, #fff);
    box-shadow: var(--dn-shadow);
}
.dn-rp-step { text-align: center; }
.dn-rp-step b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    border-radius: 50%;
    color: #fff;
    background-image: var(--dn-red-gradient);
}
.dn-rp-step h2 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.9; font-weight: 700; }
.dn-rp-step p { margin: 0; font-size: .92rem; line-height: 1.9; color: var(--vr-text-muted); }
.dn-rp-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.dn-rp-side { display: grid; gap: 18px; }
.dn-rp-title {
    margin: 0 0 16px;
    padding-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.9;
    font-weight: 700;
    border-bottom: 3px solid var(--dn-red);
}
.dn-rp-field { margin-bottom: 16px; }
.dn-rp-field label { display: block; margin-bottom: 6px; font-weight: 600; }
.dn-rp-field .form-control,
.dn-rp-field .form-select { border-radius: 10px; line-height: 1.9; }
.dn-rp-field .form-control:focus,
.dn-rp-field .form-select:focus { border-color: var(--dn-red); box-shadow: 0 0 0 3px rgba(217, 4, 41, .14); }
.dn-rp-field small { display: block; margin-top: 4px; color: var(--vr-text-muted); line-height: 1.9; }
.dn-rp-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.dn-rp-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background-image: var(--dn-red-gradient);
    box-shadow: 0 6px 16px rgba(169, 3, 32, .3);
    transition: transform .2s var(--dn-ease);
}
.dn-rp-btn:hover { transform: translateY(-1px); }
.dn-rp-btn-alt {
    color: var(--dn-red) !important;
    background: none;
    box-shadow: inset 0 0 0 2px var(--dn-red);
}
.dn-rp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dn-rp-lead { line-height: 2; margin-bottom: 16px; }
.dn-rp-note { margin: 14px 0 0; font-size: .9rem; line-height: 2; color: var(--vr-text-muted); }
.dn-rp-note a { color: var(--dn-red); font-weight: 600; }
.dn-rp-rules, .dn-rp-list { margin: 0; padding: 0; list-style: none; }
.dn-rp-rules li { padding: 8px 0; font-size: .93rem; line-height: 2; border-bottom: 1px solid var(--vr-card-border-color); }
.dn-rp-rules li:last-child, .dn-rp-list li:last-child { border-bottom: 0; }
.dn-rp-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .92rem; line-height: 1.9; border-bottom: 1px solid var(--vr-card-border-color); }
.dn-rp-list em { flex-shrink: 0; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-style: normal; font-weight: 700; }
.dn-rp-list em.is-live { color: #15803d; background: rgba(21, 128, 61, .12); }
.dn-rp-list em.is-pending { color: #b45309; background: rgba(180, 83, 9, .12); }
@media (max-width: 767.98px) {
    .dn-rp-hero { padding: 30px 0; }
    .dn-rp-hero h1 { font-size: 1.7rem; }
    .dn-rp-steps, .dn-rp-grid { grid-template-columns: minmax(0, 1fr); }
    .dn-rp-step, .dn-rp-card { padding: 16px; }
    .dn-rp-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .dn-rp-hero::after { display: none; }
}

/* =====================================================================
   Footer
   ===================================================================== */
#footer.dn-footer {
    position: relative;
    margin-top: 64px;
    color: #c9c6c8;
    background: #141012;
    font-size: .95rem;
    line-height: 1.95;
}
.dn-footer a { transition: color .2s ease; }

/* Send your news band */
.dn-footer-cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-image: var(--dn-red-gradient);
}
.dn-footer-cta::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: translateX(-180%) skewX(-18deg);
    animation: dnRpShine 9s ease-in-out infinite;
}
.dn-footer-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}
.dn-footer-cta h3 { margin: 0; color: #fff; font-size: 1.3rem; line-height: 1.9; font-weight: 700; }
.dn-footer-cta p { margin: 0; font-size: .95rem; line-height: 1.9; opacity: .94; }
.dn-footer-cta-btn {
    flex-shrink: 0;
    padding: 8px 28px;
    border-radius: 999px;
    color: var(--dn-red) !important;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
    transition: transform .2s var(--dn-ease);
}
.dn-footer-cta-btn:hover { transform: translateY(-2px); }

/* Columns */
.dn-footer-main { padding: 52px 0 44px; }
.dn-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .7fr) minmax(0, 1.25fr) minmax(0, 1.05fr);
    gap: 40px;
}
.dn-footer h4 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 700;
}
.dn-footer h4::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background-image: linear-gradient(90deg, var(--dn-red-deep), var(--dn-red-bright));
}
.dn-footer-logo { display: inline-block; margin-bottom: 14px; }
.dn-footer-logo img { width: auto; height: 64px; object-fit: contain; }
.dn-footer-about p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}
.dn-footer .footer-social-links { margin-top: 18px; gap: 8px; }
.dn-footer .footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    transition: background-color .2s ease, transform .2s var(--dn-ease);
}
.dn-footer .footer-social-links a:hover { background: var(--dn-red); transform: translateY(-2px); }
.dn-footer .footer-social-links a svg { width: 16px; height: 16px; }

.dn-footer-links ul { margin: 0; padding: 0; list-style: none; }
.dn-footer-links li { margin-bottom: 3px; }
.dn-footer-links a {
    display: inline-block;
    color: #c9c6c8 !important;
    text-decoration: none;
    transition: color .2s ease, transform .2s var(--dn-ease);
}
.dn-footer-links a:hover { color: #fff !important; transform: translateX(-4px); }

/* Trending: smaller thumbnails than the page blocks */
.dn-footer .footer-posts .post-item-small {
    margin-bottom: 12px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.dn-footer .footer-posts .post-item-small:last-child { margin-bottom: 0 !important; border-bottom: 0; }
.dn-footer .footer-posts .post-item-small .image,
.dn-footer .footer-posts .post-item-small .image img { width: 76px; max-width: 76px; }
.dn-footer .footer-posts .post-item-small .flex-grow-1 { min-width: 0; margin-inline-start: 12px !important; }
.dn-footer .footer-posts .post-item-small .title { margin: 0; font-size: .92rem; line-height: 1.85; font-weight: 500; }
.dn-footer .footer-posts .post-item-small .title a { color: #ececec !important; }
.dn-footer .footer-posts .post-item-small .title a:hover { color: var(--dn-red-bright) !important; }
.dn-footer .footer-posts .post-meta { display: none; }

/* Newsletter */
.dn-footer-news .description { margin: 0 0 14px; }
.dn-footer-news .newsletter-inputs {
    display: flex;
    flex-wrap: nowrap !important;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    transition: border-color .2s ease;
}
.dn-footer-news .newsletter-inputs:focus-within { border-color: var(--dn-red-bright); }
.dn-footer-news .newsletter .form-input {
    width: 1% !important;
    padding: 9px 16px;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff;
    background: transparent !important;
}
.dn-footer-news .newsletter .form-input::placeholder { color: #a29ea1; }
.dn-footer-news .newsletter-inputs .newsletter-button {
    flex-shrink: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 999px !important;
    color: #fff;
    font-weight: 700;
    text-shadow: none;
    background-image: var(--dn-red-gradient);
}

/* Bottom bar */
.dn-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: #0d0a0b; }
.dn-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding: 16px 0;
    font-size: .85rem;
}
.dn-footer-bottom .copyright { color: #a29ea1; }
.dn-footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.dn-footer-legal a { color: #c9c6c8 !important; text-decoration: none; }
.dn-footer-legal a:hover { color: #fff !important; }

@media (max-width: 991.98px) {
    .dn-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
    .dn-footer-main { padding: 40px 0 34px; }
}
@media (max-width: 575.98px) {
    #footer.dn-footer { margin-top: 40px; }
    .dn-footer-about p { -webkit-line-clamp: 4; }
    .dn-footer-logo img { height: 52px; }
    .dn-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .dn-footer-cta-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
    .dn-footer-cta-btn { text-align: center; }
    .dn-footer-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
    .dn-footer-bottom-inner { flex-direction: column; text-align: center; }
    .dn-footer-legal { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .dn-footer-cta::after { display: none; }
}

/* =====================================================================
   Category blocks: lead story + 3 columns on desktop, plain list below
   ===================================================================== */
.dn-cat-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.dn-cat-grid > div { display: contents; }
.dn-cat-extra { display: none; }
@media (min-width: 768px) and (max-width: 991.98px) {
    .dn-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (min-width: 992px) {
    .dn-cat-extra { display: block; }
    .dn-cat-grid { gap: 26px; align-items: start; }
    .dn-cat-grid.dn-cols-3 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
    .dn-cat-grid.dn-cols-2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .dn-cat-grid > div { display: block; min-width: 0; --dn-thumb: 96px; }
    .dn-cat-grid .post-item:not(.post-item-mid) { column-gap: 12px; }
    .dn-cat-grid .dn-cat-cell:last-child .post-item:not(.post-item-mid) { margin-bottom: 0 !important; border-bottom: 0; padding-bottom: 0; }
    .dn-cat-grid .post-item:not(.post-item-mid) .title { font-size: .98rem; line-height: 1.8; }
    .dn-cat-grid .post-meta { gap: 7px; }
    .dn-cat-grid .post-meta .meta-item a,
    .dn-cat-grid .post-meta .meta-item span { font-size: .72rem; }

    /* Lead and first middle stories: image on top */
    .dn-cat-lead .post-item:not(.post-item-mid),
    .dn-cat-mid .dn-cat-cell:first-child .post-item:not(.post-item-mid) { display: block; }
    .dn-cat-lead .post-item:not(.post-item-mid) > .image,
    .dn-cat-mid .dn-cat-cell:first-child .post-item:not(.post-item-mid) > .image { width: 100%; max-width: none; }

    .dn-cat-lead .post-item:not(.post-item-mid) { margin: 0 !important; padding: 0; border: 0; }
    .dn-cat-lead .post-item:not(.post-item-mid) > .image { --bs-aspect-ratio: 62%; border-radius: 16px 16px 0 0; box-shadow: none; }
    .dn-cat-lead .post-item:hover > .image { transform: none; box-shadow: none; }
    .dn-cat-lead .post-content {
        padding: 14px 18px 16px;
        border-radius: 0 0 16px 16px;
        background: rgba(17, 24, 39, .045);
    }
    [data-bs-theme="dark"] .dn-cat-lead .post-content { background: rgba(255, 255, 255, .06); }
    .dn-cat-lead .post-item:not(.post-item-mid) .title { margin-bottom: 8px; font-size: 1.6rem; line-height: 1.75; font-weight: 700; }
    .dn-cat-lead .post-meta .meta-item a,
    .dn-cat-lead .post-meta .meta-item span { font-size: .82rem; }

    .dn-cat-mid .dn-cat-cell:first-child .post-item:not(.post-item-mid) > .image { --bs-aspect-ratio: 60%; margin-bottom: 8px; border-radius: 12px; }
    .dn-cat-mid .dn-cat-cell:first-child .post-item:not(.post-item-mid) .title { font-size: 1.15rem; line-height: 1.8; font-weight: 700; }

    /* Sidebar widgets become a band below the blocks on the homepage */
    .dn-home-side .col-sidebar { position: static !important; margin-top: 12px; }
    .dn-home-side .col-sidebar > .row > .col-12 {
        display: flex;
        align-items: flex-start;
        margin-inline: -14px;
        width: auto;
    }
    .dn-home-side .col-sidebar > .row > .col-12 > .sidebar-widget {
        flex: 1 1 0;
        min-width: 0;
        margin-inline: 14px;
    }

    /* The lead card fills its column so the three columns finish together */
    .dn-cat-grid { align-items: stretch; }
    .dn-cat-lead { display: flex !important; }
    .dn-cat-lead .dn-cat-cell { display: flex; flex: 1; min-width: 0; }
    .dn-cat-lead .post-item:not(.post-item-mid) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
    .dn-cat-lead .post-item:not(.post-item-mid) > .image { --bs-aspect-ratio: 66%; flex-shrink: 0; }
    .dn-cat-lead .post-item:not(.post-item-mid) > .post-content { flex: 1; }
    .dn-cat-lead .post-item:not(.post-item-mid) .description,
    .dn-cat-lead .post-item:not(.post-item-mid) .post-content > p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;
        margin: 12px 0 0;
        font-size: .98rem;
        line-height: 2;
        color: var(--vr-text-muted);
    }
}

/* Latest Posts: two columns on desktop, including stories added by Load More */
@media (min-width: 992px) {
    .latest-posts #postsLoadMoreContent {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
        margin: 0;
    }
    .latest-posts #postsLoadMoreContent > * { width: auto; padding: 0; min-width: 0; }
}

/* =====================================================================
   Header panel: weather, live clock, Hijri date
   ===================================================================== */
.header-brand .col-right { height: auto; min-height: 90px; align-items: center; overflow: visible; }
.dn-hinfo { display: flex; align-items: stretch; gap: 10px; }
.dn-hinfo-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    padding: 6px 16px;
    border-radius: 14px;
    border: 1px solid var(--vr-card-border-color);
    background: var(--bs-body-bg, #fff);
    box-shadow: var(--dn-shadow);
    text-align: center;
    white-space: nowrap;
}
.dn-hinfo-kicker { color: var(--dn-red); font-size: .78rem; font-weight: 700; line-height: 1.7; }
.dn-hinfo-box strong { font-size: 1rem; font-weight: 700; line-height: 1.7; }
.dn-hinfo-box small { color: var(--vr-text-muted); font-size: .76rem; line-height: 1.7; }
.dn-hinfo-clock { min-width: 148px; color: #fff; border: 0; background-image: var(--dn-red-gradient); box-shadow: 0 6px 16px rgba(169, 3, 32, .28); }
.dn-hinfo-clock .dn-hinfo-kicker { color: #fff; opacity: .92; font-weight: 500; }
.dn-hinfo-clock strong { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.dn-hinfo-weather { flex-direction: row; align-items: center; gap: 10px; }
.dn-hinfo-weather i { display: block; width: 40px; height: 40px; flex-shrink: 0; }
.dn-hinfo-weather i svg { display: block; width: 100%; height: 100%; }
.dn-hinfo-temp, .dn-hinfo-place { display: flex; flex-direction: column; }
.dn-hinfo-temp strong { font-family: Arial, Helvetica, sans-serif; font-size: 1.3rem; line-height: 1.25; }
.dn-hinfo-temp small { font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
.dn-hinfo-place b { font-size: .9rem; line-height: 1.8; }
@media (max-width: 1199.98px) {
    .dn-hinfo { gap: 7px; }
    .dn-hinfo-box { padding: 5px 10px; }
    .dn-hinfo-clock { min-width: 128px; }
    .dn-hinfo-clock strong { font-size: 1.05rem; }
    .dn-hinfo-place { display: none; }
}

/* Weather button and 7-day forecast */
.dn-hinfo-weather-wrap { position: relative; z-index: 1050; display: flex; }
.dn-hinfo-weather-wrap[hidden] { display: none; }
.dn-hinfo-weather { color: inherit; font: inherit; cursor: pointer; transition: box-shadow .2s ease, border-color .2s ease; }
.dn-hinfo-weather:hover,
.dn-hinfo-weather[aria-expanded="true"] { border-color: var(--dn-red); box-shadow: var(--dn-shadow-hover); }
.dn-hinfo-chev { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: var(--dn-red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--dn-ease); }
.dn-hinfo-weather[aria-expanded="true"] .dn-hinfo-chev { transform: rotate(180deg); }
.dn-forecast {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 370px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--vr-card-border-color);
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 18px 44px rgba(17, 24, 39, .24);
    animation: dnForecastIn .25s var(--dn-ease);
}
.dn-forecast[hidden] { display: none; }
@keyframes dnForecastIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.dn-forecast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: #fff;
    background-image: var(--dn-red-gradient);
}
.dn-forecast-head strong { font-size: .98rem; line-height: 1.9; }
.dn-forecast-head span { font-size: .85rem; line-height: 1.9; }
.dn-forecast ul { margin: 0; padding: 4px 16px; list-style: none; }
.dn-forecast li {
    display: grid;
    grid-template-columns: 82px 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--vr-card-border-color);
}
.dn-forecast li:last-child { border-bottom: 0; }
.dn-fc-day { display: flex; flex-direction: column; }
.dn-fc-day b { font-size: .86rem; line-height: 1.7; }
.dn-fc-day small { color: var(--vr-text-muted); font-size: .7rem; line-height: 1.6; }
.dn-forecast li i { display: block; width: 28px; height: 28px; }
.dn-forecast li i svg { display: block; width: 100%; height: 100%; }
.dn-fc-cond { overflow: hidden; color: var(--vr-text-muted); font-size: .8rem; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; }
.dn-fc-temps { font-family: Arial, Helvetica, sans-serif; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.dn-forecast-note { display: block; padding: 4px 16px 8px; color: var(--vr-text-muted); font-size: .7rem; line-height: 1.8; text-align: center; }
@media (prefers-reduced-motion: reduce) {
    .dn-forecast { animation: none; }
}

/* Mobile weather, time and date strip */
.dn-minfo { margin-bottom: 16px; border-bottom: 1px solid var(--vr-card-border-color); background: var(--bs-body-bg, #fff); }
.body-profile-page .dn-minfo { margin-bottom: 0; }
.dn-minfo-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 3px 12px; }
.dn-minfo-weather { min-width: 0; flex: 0 1 auto; }
.dn-minfo-weather[hidden] { display: none; }
.dn-minfo-weather button {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-height: 36px;
    padding: 2px 8px 2px 6px;
    border: 1px solid var(--vr-card-border-color);
    border-radius: 999px;
    color: inherit;
    font: inherit;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.dn-minfo-weather button[aria-expanded="true"] { border-color: var(--dn-red); }
.dn-minfo-weather button[aria-expanded="true"] .dn-hinfo-chev { transform: rotate(180deg); }
.dn-minfo-weather i { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.dn-minfo-weather i svg { display: block; width: 100%; height: 100%; }
.dn-minfo-weather strong { font-family: Arial, Helvetica, sans-serif; font-size: .95rem; line-height: 1; }
.dn-minfo-city { max-width: 88px; overflow: hidden; font-size: .78rem; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; }
.dn-minfo-weather .dn-hinfo-chev { width: 13px; height: 13px; }
.dn-minfo-clock { flex-shrink: 0; color: var(--dn-red); font-family: Arial, Helvetica, sans-serif; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.dn-minfo-date { flex-shrink: 0; color: var(--vr-text-muted); font-size: .76rem; line-height: 1.8; white-space: nowrap; }
.dn-forecast.dn-forecast-inline { position: static; width: auto; margin: 0 12px 10px; box-shadow: var(--dn-shadow); }
@media (max-width: 991.98px) {
    .dn-marquee { margin-bottom: 0; }
}
@media (max-width: 359.98px) {
    .dn-minfo-bar { gap: 5px; padding-inline: 8px; }
    .dn-minfo-city { display: none; }
}

/* Desktop header: time and date, centred logo, weather */
@media (min-width: 992px) {
    .header-brand {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 20px;
    }
    .header-brand > .logo { justify-self: center; text-align: center; }
    .header-brand .col-right { justify-content: flex-end; min-width: 0; }
    .dn-htime { justify-content: flex-start; }
    .dn-hweather { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
    .dn-hweather[hidden] { display: none; }
    .dn-hw-today { display: flex; align-items: center; flex-shrink: 0; gap: 6px; padding-inline-end: 4px; }
    .dn-hw-today > strong { font-family: Arial, Helvetica, sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1; white-space: nowrap; }
    .dn-hw-today i { display: block; width: 40px; height: 40px; flex-shrink: 0; }
    .dn-hw-today i svg { display: block; width: 100%; height: 100%; }
    .dn-hw-place { display: flex; flex-direction: column; text-align: center; }
    .dn-hw-place b { max-width: 78px; overflow: hidden; font-size: .88rem; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
    .dn-hw-place small { max-width: 78px; overflow: hidden; color: var(--vr-text-muted); font-size: .68rem; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
    .dn-hw-days { display: flex; gap: 4px; min-width: 0; margin: 0; padding: 0; list-style: none; }
    .dn-hw-days li {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-areas: "day day" "icon max" "icon min";
        align-content: center;
        justify-content: center;
        gap: 0 3px;
        width: 50px;
        min-height: 76px;
        padding: 3px 2px;
        border-radius: 10px;
        background: rgba(17, 24, 39, .045);
        text-align: center;
    }
    [data-bs-theme="dark"] .dn-hw-days li { background: rgba(255, 255, 255, .07); }
    .dn-hw-days b { grid-area: day; overflow: hidden; font-size: .66rem; font-weight: 600; line-height: 1.8; white-space: nowrap; }
    .dn-hw-days i { grid-area: icon; display: block; align-self: center; width: 18px; height: 18px; }
    .dn-hw-days i svg { display: block; width: 100%; height: 100%; }
    .dn-hw-days strong { grid-area: max; font-family: Arial, Helvetica, sans-serif; font-size: .72rem; font-weight: 700; line-height: 1.3; }
    .dn-hw-days small { grid-area: min; color: var(--vr-text-muted); font-family: Arial, Helvetica, sans-serif; font-size: .66rem; line-height: 1.3; }
}
/* Narrower desktops: fewer days and a compact date, so everything stays on one row */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-brand { gap: 12px; }
    .dn-hw-days li:nth-child(n+4) { display: none; }
    .dn-hw-place { display: none; }
    .dn-htime .dn-hinfo-date small { display: none; }
    .dn-htime .dn-hinfo-box { padding: 5px 8px; }
    .dn-htime .dn-hinfo-clock { min-width: 112px; }
    .dn-htime .dn-hinfo-clock strong { font-size: .98rem; }
    .dn-htime .dn-hinfo-date strong { font-size: .86rem; }
}

/* Animated logo: a red and white shine that stays inside the letter shapes */
.dn-logo {
    position: relative;
    display: inline-block;
    width: 134px;
    line-height: 0;
    vertical-align: middle;
    transition: transform .35s var(--dn-ease), filter .35s ease;
}
.dn-logo img { display: block; width: 100%; height: auto; max-width: 100%; }
.header-logo .dn-logo { width: 92px; }
.dn-footer-logo .dn-logo { width: 122px; }
.dn-footer-logo .dn-logo img { width: 100%; height: auto; }
[data-bs-theme="dark"] .dn-logo img,
.dn-logo-light img { filter: brightness(0) invert(1); }
.dn-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(105deg, transparent 38%, rgba(217, 4, 41, .95) 46%, #fff 50%, rgba(217, 4, 41, .95) 54%, transparent 62%);
    background-repeat: no-repeat;
    background-size: 300% 100%;
    background-position: 130% 0;
    -webkit-mask: url("../../../logo/daily-nijaat-logo.svg") center / 100% 100% no-repeat;
    mask: url("../../../logo/daily-nijaat-logo.svg") center / 100% 100% no-repeat;
    animation: dnLogoShine 6.5s ease-in-out 1s infinite;
}
.dn-logo-drawing::after { animation: none; opacity: 0; }
@keyframes dnLogoShine {
    0%, 62% { background-position: 130% 0; }
    100% { background-position: -30% 0; }
}
a:hover > .dn-logo { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 6px 12px rgba(217, 4, 41, .28)); }
@media (prefers-reduced-motion: reduce) {
    .dn-logo { transition: none; }
    .dn-logo::after { display: none; }
    a:hover > .dn-logo { transform: none; }
}

/* City name uses the same font as post titles */
.dn-hw-place b,
.dn-minfo-city,
.dn-forecast-head span[data-dn="city"] { font-family: var(--vr-font-secondary); font-weight: 600; }

/* =====================================================================
   Digital press card pages
   ===================================================================== */
.dn-pc .dn-rp-hero p a { color: #fff; font-weight: 700; text-decoration: underline; }
.dn-pc-narrow { max-width: 620px; margin-inline: auto; }
.dn-pc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.dn-pc-full { grid-column: 1 / -1; }
.dn-pc-privacy { margin: 0 0 14px; padding: 8px 14px; border-radius: 10px; font-size: .88rem; line-height: 2; background: rgba(17, 24, 39, .045); }
.dn-pc-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 18px; padding: 10px 18px; border-radius: 12px; line-height: 2; }
.dn-pc-state.is-pending { color: #92400e; background: rgba(245, 158, 11, .14); }
.dn-pc-state.is-rejected { color: #991b1b; background: rgba(217, 4, 41, .1); }
.dn-pc-state.is-valid { color: #166534; background: rgba(21, 128, 61, .12); }
.dn-pc-ready .dn-rp-title { max-width: 640px; margin-inline: auto; }
.dn-pc-stage { display: flex; justify-content: center; max-width: 640px; margin: 0 auto; }
.dn-pc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.dn-pc-actions .dn-rp-btn:disabled { opacity: .65; cursor: wait; }
.dn-pc-msg { min-height: 1.9em; margin: 8px 0; text-align: center; font-size: .9rem; line-height: 1.9; color: var(--vr-text-muted); }
.dn-pc-center { justify-content: center; }
.dn-pc-verify { max-width: 560px; margin: 28px auto 0; }
.dn-pc-verify-body { display: flex; gap: 18px; align-items: flex-start; }
.dn-pc-verify-body img { flex-shrink: 0; width: 120px; height: 150px; object-fit: cover; border-radius: 12px; }
.dn-pc-verify dl { flex: 1; min-width: 0; margin: 0; }
.dn-pc-verify dt { color: var(--dn-red); font-size: .82rem; line-height: 1.7; }
.dn-pc-verify dd { margin: 0 0 6px; font-weight: 600; line-height: 1.9; }
.dn-pc-ltr { text-align: right; font-family: Arial, Helvetica, sans-serif; }
@media (max-width: 575.98px) {
    .dn-pc-form { grid-template-columns: minmax(0, 1fr); }
    .dn-pc-actions .dn-rp-btn { width: 100%; }
}
@media print {
    body * { visibility: hidden !important; }
    #dnpcSheet, #dnpcSheet * { visibility: visible !important; }
    /* Standard ID card width: 54 mm */
    #dnpcSheet { position: absolute; top: 0; right: 0; transform-origin: top right; transform: scale(.319) !important; }
    .dnpc-side { box-shadow: none !important; outline: 1px solid #ddd; break-inside: avoid; }
    @page { margin: 10mm; }
}

/* Small white logo in the main menu, shown once the menu is fixed */
.dn-menu-logo {
    display: block;
    flex-shrink: 0;
    width: 0;
    margin-inline-end: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    line-height: 0;
    transition: width .3s var(--dn-ease), margin .3s var(--dn-ease), opacity .3s ease, visibility .3s;
}
.dn-menu-logo img { display: block; width: 76px; max-width: none; height: auto; filter: brightness(0) invert(1); transition: transform .25s var(--dn-ease); }
.dn-menu-logo:hover img { transform: scale(1.05); }
#mega-menu-wrapper.dn-stuck .dn-menu-logo { width: 76px; margin-inline-end: 8px; opacity: 1; visibility: visible; }
#mega-menu-wrapper.dn-stuck .navbar-nav { margin-inline-start: 0 !important; }
#mega-menu-wrapper.dn-stuck .navbar-nav > .nav-item > .nav-link { padding-inline: .6rem !important; }
@media (prefers-reduced-motion: reduce) {
    .dn-menu-logo, .dn-menu-logo img { transition: none; }
}

/* Headings: two complete lines, then "..." only if the title is longer */
.post-item .title,
.post-item-mid .title,
.post-item-small .title,
.post-item-horizontal .title,
.featured-section .fs-title,
.menu-post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.post-item .title a,
.post-item-mid .title a,
.post-item-small .title a,
.post-item-horizontal .title a,
.featured-section .fs-title a { display: inline !important; }

/* =====================================================================
   Speed
   ===================================================================== */
/* Sections below the screen are not drawn until they are needed */
.section-category,
.dn-home-side,
#footer.dn-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
}

/* Phones and tablets: keep it smooth by dropping constant repainting */
@media (max-width: 991.98px) {
    .dn-logo::after { animation-iteration-count: 2; }
    .section .section-title .title::after,
    .sidebar-widget .widget-head::after,
    .dn-bn-cta i::after,
    .dn-rp-hero::after,
    .dn-footer-cta::after,
    .post-item .image::after,
    .post-item-mid .image::after,
    .post-item-small .image::after,
    .post-item-horizontal .image::after,
    .menu-post-img-wrapper::after { display: none; }
    .dn-bottom-nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: var(--bs-body-bg, #fff);
    }
    .post-item .image,
    .post-item-mid .image,
    .post-item-small .image,
    .post-item-horizontal .image,
    .featured-section .fs-card { box-shadow: none; transition: none; }
    .post-item .image img,
    .post-item-mid .image img,
    .post-item-small .image img,
    .post-item-horizontal .image img,
    .featured-section .fs-img { transition: none; }
}

/* =====================================================================
   Gmail-only login and sign up
   ===================================================================== */
.dn-auth-dialog { max-width: 420px; }
@media (max-width: 575.98px) { .dn-auth-dialog { margin-inline: auto; padding-inline: 14px; } .dn-auth-body { padding-inline: 20px; } }
.dn-auth-page { padding: 34px 0 10px; }
.dn-auth-page .dn-auth { margin-inline: auto; }
.dn-auth {
    position: relative;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 24px 60px rgba(17, 24, 39, .28);
}
.dn-auth-close { position: absolute; top: 14px; left: 14px; z-index: 2; opacity: .9; }
.dn-auth-head {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 26px 24px 30px;
    border-radius: 0 0 50% 50% / 0 0 26px 26px;
    background-image: linear-gradient(135deg, #ff2d4d 0%, #d90429 48%, #7d0218 100%);
}
.dn-auth-head img { display: block; width: 138px; height: auto; filter: brightness(0) invert(1); }
.dn-auth-body { padding: 18px 28px 22px; text-align: center; }
.dn-auth-title { margin: 0 0 6px; font-size: 1.75rem; font-weight: 700; line-height: 1.7; }
.dn-auth-sub { margin: 0 0 18px; color: var(--vr-text-muted); font-size: .95rem; line-height: 2; }
.dn-gmail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 6px 18px;
    border: 1px solid #dadce0;
    border-radius: 14px;
    color: #1f1f1f !important;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.8;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .1);
    transition: box-shadow .2s ease, transform .2s var(--dn-ease), border-color .2s ease;
}
.dn-gmail-btn:hover { border-color: #c3c6cb; box-shadow: 0 8px 20px rgba(17, 24, 39, .16); transform: translateY(-1px); }
.dn-gmail-btn:active { transform: scale(.98); }
.dn-gmail-btn:focus-visible { outline: 3px solid var(--dn-red); outline-offset: 2px; }
.dn-gmail-btn svg { flex-shrink: 0; }
.dn-auth-points { display: grid; gap: 2px; margin: 16px 0 12px; padding: 0; list-style: none; color: var(--vr-text-muted); font-size: .86rem; line-height: 2; }
.dn-auth-points li::before { content: "✓"; margin-inline-end: 7px; color: #15803d; font-weight: 700; }
.dn-auth-terms { margin: 0; padding-top: 10px; border-top: 1px solid var(--vr-card-border-color); color: var(--vr-text-muted); font-size: .78rem; line-height: 2; }
.dn-auth-terms a { color: var(--dn-red); font-weight: 600; }
.dn-auth-off { padding: 12px; border-radius: 12px; color: #991b1b; background: rgba(217, 4, 41, .1); line-height: 2; }
[data-bs-theme="dark"] .dn-gmail-btn { border-color: #fff; }
