/*
|---------------------------------------------------------
| Anchor Tag Styles
|---------------------------------------------------------
*/
a {
    text-decoration: none;
    color: black;
}

/*
|---------------------------------------------------------
| Border Styles
|---------------------------------------------------------
*/
.primary-border {
    border: 1px solid var(--bg-primary-color);
}

.secondary-border {
    border: 1px solid var(--bg-secondary-color);
}

/*
|----------------------------------------------------------------
| Blogs
|----------------------------------------------------------------
*/
/* publiser section */
.publisher-info h6 {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0px;
}

.publisher-info p {
    font-size: 11px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0px;
    color: rgb(65, 64, 64);
}

/*
|----------------------------------------------------------------
| Cards
|----------------------------------------------------------------
*/
.cust-card {
    background-color: #eefff9;
    border: none;
}
.cust-card .card-header {
    background-color: #00492e;
    color: white;
}

.cust-card textarea,
input,
select {
    color: black !important;
    background-color: white !important;
    border: 1px solid #00492e59 !important;
    font-size: 12px !important;
    outline: none !important;
    box-shadow: none !important;
}

.cust-card label {
    font-size: 12px;
}

.cust-card .cust-btn {
    background-color: #00492e;
    color: white;
}
.cust-card .card-header h6 {
    font-weight: 600;
    font-size: 16px;
}
.card-title-cust {
    font-weight: 600;
    font-size: 12px;
}

/* Tools highlights section -- Tool detail page right section */
.cust-card .stat-box {
    padding: 15px 5px;
    border: 1px solid #00492e59;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
}
.cust-card .stat-box p {
    margin-bottom: 0px;
    line-height: 1.25;
}
.cust-card .stat-box h6 {
    font-weight: bold;
    margin-bottom: 0px;
}
.cust-card .stat-box i {
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 25px;
    padding: 5px 10px;
    color: white;
    font-size: 15px;
    background-color: #00492e;
}

/* Was this helpful section -- Tool detail page right section */
.cust-card .custom-radio-label {
    font-size: 14px;
    box-shadow: none;
}

.cust-card .custom-radio-label {
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #00492e59;
    border-radius: 3px;
}

.cust-card .custom-radio-label:hover {
    background-color: #00492e;
    color: #fff;
}

.cust-card .custom-radio-label:active,
.btn-check:checked + .custom-radio-label {
    background-color: #00492e;
    color: #fff;
    box-shadow: none;
}

/* Related Tools section -- Tool detail page right section */
.cust-card .tl-wrapper a {
    color: black;
}

.cust-card .tl-wrapper:hover {
    border-radius: 5px;
    background-color: #baffe7e0;
}

.cust-card .tl-wrapper p {
    font-size: 11px;
    line-height: 1.25;
}

/*
|---------------------------------------------------------
| Tool Pages Styles
|---------------------------------------------------------
*/
.tool-wrapper textarea {
    font-size: 12px;
}

.file-details-table th,
.file-details-table td {
    font-size: 14px !important;
    width: 50%;
    text-align: left;
}

.file-details-table th {
    font-weight: bold;
}

/*
|---------------------------------------------------------
| Featured Categories
|---------------------------------------------------------
*/
#featured-categories .nav-link {
    padding: 0.5rem;
    line-height: 1.2;
}

#featured-categories .nav-link .item_img {
    width: 55px;
    height: 55px;
}

/*
|---------------------------------------------------------
| Landing page categories (square cards)
|---------------------------------------------------------
*/
.landing-categories .landing-cat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.landing-categories .landing-cat-img {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-categories .landing-cat-img img {
    width: 34px;
    height: 34px;
    padding: 4px;
    object-fit: contain;
}

.landing-categories .landing-cat-title {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    color: #423d3d;
}

/*
|---------------------------------------------------------
| Fandom-style cover tiles (portrait poster cards)
|---------------------------------------------------------
*/
.landing-categories .landing-cat-link--cover {
    text-align: center;
}

.landing-categories .landing-cat-img--cover {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    background:
        linear-gradient(
            160deg,
            var(--cat-bg-1, #0F462F) 0%,
            var(--cat-bg-2, #111111) 100%
        );
    padding: 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-categories .landing-cat-img--cover img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: cover;
    display: block;
}

/* Category color wash from top (per-tile --cat-bg-1 / --cat-bg-2) */
.landing-categories .landing-cat-img--cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        180deg,
        color-mix(in srgb, var(--cat-bg-1, #0F462F) 78%, transparent) 0%,
        color-mix(in srgb, var(--cat-bg-2, var(--cat-bg-1, #0F462F)) 42%, transparent) 36%,
        color-mix(in srgb, var(--cat-bg-2, var(--cat-bg-1, #0F462F)) 10%, transparent) 62%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .landing-categories .landing-cat-img--cover::after {
        background-image: linear-gradient(
            180deg,
            var(--cat-bg-1, #0F462F) 0%,
            transparent 68%
        );
        opacity: 0.72;
    }
}

.landing-categories .landing-cat-link--cover:hover .landing-cat-img--cover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.landing-categories .landing-cat-link--cover .landing-cat-title,
.landing-categories .landing-cat-link--cover .landing-cat-count,
.landing-categories .landing-cat-link--cover .landing-cat-views {
    padding-left: 0;
    font-size: 11px;
}

.landing-categories .landing-cat-link--cover .landing-cat-title {
    margin-top: 4px;
    font-weight: 800;
    line-height: 1.15;
}

.landing-categories .landing-cat-link--cover .landing-cat-views,
.landing-categories .landing-cat-link--cover .landing-cat-count {
    font-size: 10px;
    opacity: 0.75;
}

.hero-logo img.hero-logo-cover {
    width: 108px;
    height: 144px;
    border-radius: 8px;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Category hero engagement stats */
.hero-section--category .hero-content {
    max-width: 720px;
}

.df-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.25rem;
}

.df-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.df-hero-stat-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.df-hero-stat-icon i {
    font-size: 0.95rem;
    line-height: 1;
}

.df-hero-stat-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.df-hero-stat-count {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.df-hero-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.12rem;
}

@media (max-width: 768px) {
    .df-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .df-hero-stat {
        padding: 0.65rem 0.7rem;
    }

    .df-hero-stat-count {
        font-size: 0.98rem;
    }
}

.hero-logo img.df-publisher-hero-avatar,
.hero-section--publisher .hero-logo img.df-publisher-hero-avatar {
    width: 84px;
    height: 112px; /* 3:4 profile card — matches category logo ratio */
    border-radius: 12px;
    border: 2px solid #fff;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .hero-logo img.df-publisher-hero-avatar,
    .hero-section--publisher .hero-logo img.df-publisher-hero-avatar {
        width: 72px;
        height: 96px;
        border-radius: 10px;
    }
}

/* Category detail / home: cover image as hero background */
.hero-section.hero-section--cover {
    background-color: #181818;
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.55) 38%,
            rgba(0, 0, 0, 0.28) 68%,
            rgba(0, 0, 0, 0.18) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(24, 24, 24, 0.92) 82%,
            #181818 100%
        ),
        var(--hero-cover-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Home landing: bias crop toward the graphic cluster on the right */
.hero-section.hero-section--home {
    background-position: 72% center;
}

.hero-section--home .hero-btn {
    min-height: 46px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.hero-section.hero-section--home::before {
    opacity: 0.28;
}

/* Categories index: same L→R + bottom gradient as landing; collage occupies right ~50% */
.hero-section.hero-section--categories {
    background-position: 55% center;
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.55) 38%,
            rgba(0, 0, 0, 0.28) 68%,
            rgba(0, 0, 0, 0.18) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(24, 24, 24, 0.92) 82%,
            #181818 100%
        ),
        var(--hero-cover-image);
}

.hero-section.hero-section--categories::before {
    opacity: 0.28;
}

/* Publishers index: same cover treatment as categories/home */
.hero-section.hero-section--publishers {
    background-position: 55% center;
}

.hero-section.hero-section--publishers::before {
    opacity: 0.28;
}

/* RTL: flip left/right gradient; collage stays on the content-opposite side */
body.df-rtl .hero-section.hero-section--categories {
    background-position: 45% center;
    background-image:
        linear-gradient(
            270deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.55) 38%,
            rgba(0, 0, 0, 0.28) 68%,
            rgba(0, 0, 0, 0.18) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(24, 24, 24, 0.92) 82%,
            #181818 100%
        ),
        var(--hero-cover-image);
}

/* Category / publisher heroes: keep default .hero-section horizontal inset (40px / 20px) */

@media (max-width: 768px) {
    .hero-section.hero-section--cover {
        background-position: 65% center;
    }

    .hero-section.hero-section--home {
        background-position: 78% center;
        min-height: 420px;
    }

    .hero-section.hero-section--categories {
        background-position: 62% center;
        min-height: 420px;
    }

    .hero-section.hero-section--publishers {
        background-position: 62% center;
        min-height: 420px;
    }

    body.df-rtl .hero-section.hero-section--categories {
        background-position: 38% center;
    }

    body.df-rtl .hero-section.hero-section--publishers {
        background-position: 38% center;
    }

    .hero-logo img.hero-logo-cover {
        width: 80px;
        height: 106px;
    }
}

/*
|---------------------------------------------------------
| Home page sections — match hero horizontal padding
|---------------------------------------------------------
*/
.home-page-section {
    padding-left: 28px;
    padding-right: 28px;
}

/* Keep Bootstrap row gutters without cancelling page inset */
.home-page-section > .row {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 768px) {
    .home-page-section {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/*
|---------------------------------------------------------
| Home page categories (match quiz-detail tiles)
|---------------------------------------------------------
*/
.home-categories.landing-categories .landing-cat-link {
    text-align: left;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, padding 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-categories.landing-categories .landing-cat-link:hover {
    background: var(--mc-tile-hover-bg, rgba(217, 197, 255, 1));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    padding: 6px;
}

.home-categories.landing-categories .landing-cat-link:focus-visible {
    outline: 2px solid rgba(124, 77, 255, 0.6);
    outline-offset: 2px;
}

.home-categories.landing-categories .landing-cat-img {
    height: 95px;
    border-radius: 4px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.home-categories.landing-categories .landing-cat-img img {
    width: 56px;
    height: 56px;
    padding: 6px;
}

.home-categories.landing-categories .landing-cat-link--cover {
    min-height: 0;
    padding: 4px;
}

.home-categories.landing-categories .landing-cat-link--cover:hover {
    padding: 6px;
}

.home-categories.landing-categories .landing-cat-img--cover {
    height: auto;
    aspect-ratio: 3 / 4;
    margin-bottom: 4px !important;
    border-radius: 6px;
}

.home-categories.landing-categories .landing-cat-img--cover img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.home-categories .landing-cat-link--cover .landing-cat-title {
    font-size: 14px;
    text-align: left;
    margin-bottom: 0;
}

.home-categories .landing-cat-link--cover .landing-cat-count {
    font-size: 11px;
    text-align: left;
}

.home-categories .landing-cat-title {
    font-size: 14px;
    font-weight: 800;
    color: #212529;
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
    letter-spacing: -0.01em;
    text-align: left;
    margin-bottom: 2px;
}

.home-categories .landing-cat-count {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.65);
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.2;
}

/* Load more tile (last slot of 2nd row) */
.home-categories .landing-cat-img--more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, #1a6b4a 0%, #0F462F 45%, #181818 100%) !important;
}

.home-categories .landing-cat-img--more::after {
    background-image:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.25) 55%,
            rgba(24, 24, 24, 0.7) 100%
        );
}

.home-categories .landing-cat-more-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 6px;
    color: #fff;
}

.home-categories .landing-cat-more-icon {
    font-size: 28px;
    line-height: 1;
    opacity: 0.95;
}

.home-categories .landing-cat-more-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-align: center;
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
}

/*
| Keep homepage categories to 2 rows; Load more stays last visible slot
| xs: 4/row → 8 slots | sm: 6/row → 12 slots | md+: 12/row → 24 slots
*/
@media (max-width: 575.98px) {
    .home-categories .home-cat-slot:nth-child(n + 8):not(.home-cat-loadmore) {
        display: none !important;
    }

    .home-categories .home-cat-loadmore {
        display: block !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .home-categories .home-cat-slot:nth-child(n + 12):not(.home-cat-loadmore) {
        display: none !important;
    }

    .home-categories .home-cat-loadmore {
        display: block !important;
    }
}

/*
|---------------------------------------------------------
| Home — Most Followed Topics (cover + 8-up subcategory grid)
|---------------------------------------------------------
*/
.df-followed-topics {
    position: relative;
    margin: 0.5rem 0 2rem;
    padding-top: 1.25rem;
    padding-bottom: 1.35rem;
    /* Tighter than default .home-page-section gutters (28px) */
    padding-left: 14px;
    padding-right: 14px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #121212;
    /* Cover anchors left (behind copy); darker wash over the cards on the right */
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 28, 20, 0.55) 0%,
            rgba(10, 34, 24, 0.42) 22%,
            rgba(12, 28, 20, 0.58) 42%,
            rgba(14, 18, 16, 0.82) 68%,
            rgba(18, 18, 18, 0.94) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.28) 55%,
            rgba(0, 0, 0, 0.4) 100%
        ),
        var(--followed-topics-cover);
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.df-followed-topics__row {
    position: relative;
    z-index: 1;
    min-height: 280px;
}

.df-followed-topics__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 220px;
    padding: 1.25rem 0.35rem 1.25rem 0.15rem;
    color: #f4f7f5;
}

.df-followed-topics__eyebrow {
    margin: 0 0 0.65rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.92;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.df-followed-topics__title {
    margin: 0 0 0.85rem;
    font-family: "Righteous", cursive;
    font-size: clamp(1.85rem, 3.2vw, 2.85rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: #ffffff;
    text-wrap: balance;
    background-image: linear-gradient(
        110deg,
        #ffffff 0%,
        #ffffff 28%,
        #07e3b0 42%,
        #9dffea 50%,
        #07e3b0 58%,
        #ffffff 72%,
        #ffffff 100%
    );
    background-size: 220% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: df-followed-topics-title-shine 5.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
}

@keyframes df-followed-topics-title-shine {
    0%,
    18% {
        background-position: 100% 50%;
    }
    45%,
    55% {
        background-position: 0% 50%;
    }
    82%,
    100% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .df-followed-topics__title {
        animation: none;
        background-image: none;
        -webkit-text-fill-color: #ffffff;
        color: #ffffff;
        filter: none;
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    }
}

.df-followed-topics__lede {
    margin: 0 0 1.25rem;
    max-width: 22rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
    color: rgba(244, 247, 245, 0.82);
}

.df-followed-topics__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.55rem 0.95rem;
    border-radius: 4px;
    background: rgba(7, 227, 176, 0.14);
    border: 1px solid rgba(7, 227, 176, 0.35);
    color: #ffffff;
    font-family: "Nunito", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.df-followed-topics__cta:hover,
.df-followed-topics__cta:focus-visible {
    background: rgba(7, 227, 176, 0.24);
    border-color: rgba(7, 227, 176, 0.55);
    color: #ffffff;
    transform: translateX(2px);
}

.df-followed-topics__cta i {
    font-size: 0.95rem;
    line-height: 1;
}

.df-followed-topics__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem 0.35rem;
    align-content: center;
    height: 100%;
    padding: 0.35rem 0;
}

.df-followed-topics__grid .landing-cat-tile {
    min-width: 0;
}

.df-followed-topics .landing-cat-link--cover .landing-cat-title,
.df-followed-topics .landing-cat-link--cover .landing-cat-count {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.df-followed-topics .landing-cat-link--cover .landing-cat-count {
    opacity: 0.92;
    font-size: 0.68rem;
}

@media (max-width: 991.98px) {
    .df-followed-topics {
        background-position: left center;
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
        padding-left: 10px;
        padding-right: 10px;
    }

    .df-followed-topics__intro {
        min-height: 0;
        padding: 0.35rem 0 0.15rem;
    }

    .df-followed-topics__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem 0.3rem;
    }
}

@media (max-width: 575.98px) {
    .df-followed-topics {
        margin-bottom: 1.25rem;
        background-position: left center;
        padding-left: 8px;
        padding-right: 8px;
    }

    .df-followed-topics__title {
        font-size: 1.7rem;
    }

    .df-followed-topics__lede {
        font-size: 0.92rem;
        margin-bottom: 0.95rem;
    }

    .df-followed-topics__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem 0.3rem;
    }

    /* Show 12 topics on mobile (3 × 4); keep full set on larger screens */
    .df-followed-topics__grid .landing-cat-tile:nth-child(n + 13) {
        display: none;
    }
}

body.df-rtl .df-followed-topics {
    background-position: right center;
    background-image:
        linear-gradient(
            270deg,
            rgba(8, 28, 20, 0.55) 0%,
            rgba(10, 34, 24, 0.42) 22%,
            rgba(12, 28, 20, 0.58) 42%,
            rgba(14, 18, 16, 0.82) 68%,
            rgba(18, 18, 18, 0.94) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.28) 55%,
            rgba(0, 0, 0, 0.4) 100%
        ),
        var(--followed-topics-cover);
}

body.df-rtl .df-followed-topics__cta:hover,
body.df-rtl .df-followed-topics__cta:focus-visible {
    transform: translateX(-2px);
}

body.df-rtl .df-followed-topics__cta i {
    transform: scaleX(-1);
}

/*
|---------------------------------------------------------
| Quiz detail subcategories (landing tiles variant)
|---------------------------------------------------------
*/
.quiz-subcategories.landing-categories .landing-cat-link {
    text-align: left;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 165px; /* keeps hover background height consistent across tiles */
}

.quiz-subcategories.landing-categories .landing-cat-link:hover {
    background: var(--quiz-tile-hover-bg, var(--quiz-hover-bg, rgba(217, 197, 255, 1)));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.quiz-subcategories.landing-categories .landing-cat-link:focus-visible {
    outline: 2px solid rgba(124, 77, 255, 0.6);
    outline-offset: 2px;
}

.quiz-subcategories.landing-categories .landing-cat-img {
    height: 95px;
    border-radius: 4px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.quiz-subcategories.landing-categories .landing-cat-img img {
    width: 56px;
    height: 56px;
    padding: 6px;
}

.quiz-subcategories .landing-cat-title {
    font-size: 12px;
    font-weight: 800;
    color: #212529;
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
    letter-spacing: -0.01em;
    text-align: left;
    margin-bottom: 2px;
}

.quiz-subcategories .landing-cat-count {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.65);
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.2;
}

/*
|---------------------------------------------------------
| Section separator (thin line)
|---------------------------------------------------------
*/
.mc-section-separator {
    border: 0;
    border-top: 1px solid rgb(191 191 191);
    margin: 0;
    width: 100%;
}

/*
|---------------------------------------------------------
| Today history section (reference layout)
| Accent: #6A9955 (light tint)
|---------------------------------------------------------
*/
.today-history-separator {
    border-top: 1px solid rgba(106, 153, 85, 0.22);
    opacity: 1;
}

.today-history {
    background: #C3FBC2;
}

.today-history-kicker {
    display: inline-block;
    background: rgba(15, 70, 47, 0.92);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
}

.today-history-dates {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.today-history-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.today-history-date-pill-label {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 70, 47, 0.95);
}

.today-history-date-pill-value {
    font-weight: 800;
    color: #111;
}

.today-history-title {
    color: #111;
    font-weight: 900;
    line-height: 1.05;
    font-size: clamp(28px, 3.2vw, 54px);
    margin: 0;
}

.today-history-description {
    max-width: 720px;
    color: #3f4a3f;
    font-style: italic;
    font-size: 18px;
    line-height: 1.45;
}

.today-history-image {
    width: min(360px, 82vw);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    border: 10px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.today-history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.today-history-mini {
    padding-top: 14px;
    border-top: 1px solid rgba(106, 153, 85, 0.22);
}

.today-history-mini-category {
    color: #6A9955;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.today-history-mini-title {
    display: inline-block;
    color: #111;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.25;
    text-decoration: none;
}

.today-history-mini-title:hover {
    text-decoration: underline;
}

/*
|---------------------------------------------------------
| Form styles
|---------------------------------------------------------
*/
.form-label-frontend {
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.form-label {
    color: #08252cde !important;
    text-transform: capitalize;
}

.form-control-solid {
    background-color: #f5f5f5 !important;
    outline: none;
    box-shadow: none;
    border: none !important;
    color: #454141 !important;
}

.tool-tip-icon {
    color: #264046ba;
}

/* Age tools cards styles */
.bg-light-blue {
    border: 1px solid #c3deff;
    border-radius: 3px;
}
.faq-title {
    color: #00492e !important;
    opacity: 1 !important;
    width: 90%;
    transition: all 250ms ease-in-out;
}

.custom-heading {
    font-weight: 600;
    font-size: 14px;
    width: 25%;
    border-radius: 3px;
}

.custom-value {
    font-weight: 500;
    font-size: 14px;
}

details {
    background-color: transparent !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
    border: 1px solid #c3deff !important;
    border-radius: 3px !important;
}

/* BMI Tool Styles */
#bmi-form label {
    font-size: 12px;
}

#bmi-form .nav-tabs {
    border: none;
}

#bmi-form .nav-tabs li {
    width: 50%;
}

#bmi-form .nav-tabs li button {
    width: 100%;
}

#bmi-form .nav-tabs .nav-link {
    color: black;
    background-color: #ffffff;
}

#bmi-form .nav-tabs .nav-link.active {
    border: none;
    background-color: #00492e;
    color: white;
}

#bmi-form .tab-content {
    padding: 0px;
    border: none;
    min-height: auto;
}

#bmi-form .tab-content .form-control {
    color: #000;
    border: 1px solid #c6ccd2;
}

/* JSON Formater tool styles */
p.options label {
    margin-right: 10px;
}

p.options input[type=checkbox] {
    vertical-align: middle;
}

textarea#json-input {
    width: 100%;
    height: 200px;
}

textarea#json-input:focus {
    outline: none;
    border: 1px solid #A6BFB6;
}

pre#json-renderer {
    border: 1px solid #A6BFB6;
    font-size: 12px;
    min-height: 200px;
}

.formatter-card {
    background-color: #51ffbf;
}

/*
|---------------------------------------------------------
| Font size classes
|---------------------------------------------------------
*/
.fs-1 {
    font-size: 2rem;
}

.fs-2 {
    font-size: 1.5rem;
}

.fs-3 {
    font-size: 1rem;
}

.fs-4 {
    font-size: 0.9rem;
}

.fs-5 {
    font-size: 0.85rem;
}

.fs-6 {
    font-size: 0.8rem;
}

.fs-7 {
    font-size: 0.75rem;
}

.fs-8 {
    font-size: 0.7rem;
}

.fs-9 {
    font-size: 0.6rem;
}

.fs-10 {
    font-size: 0.5rem;
}

/*
|---------------------------------------------------------
| Font Color
|---------------------------------------------------------
*/
.primary-text {
    color: var(--bg-primary-color);
}
.secondary-text {
    color: var(--bg-secondary-color);
}

/*
|---------------------------------------------------------
| Hero Section Styles
|---------------------------------------------------------
*/

/* hero section styls */
.dotted-background__dots {
    top: 150px !important;
    right: 0px;
    mask-image: linear-gradient(
        0deg,
        hsla(0, 0%, 100%, 0) -10%,
        #fff 95%,
        hsla(0, 0%, 100%, 0)
    );
}

.s1_detail-page-heading {
    font-size: 3rem;
    color: white;
    font-weight: 600;
    font-family: sans-serif;
    line-height: normal;
}

.s1_detail-page-description {
    font-size: 1rem;
    color: white;
    font-weight: 500;
    font-family: sans-serif;
    line-height: 1.5;
    text-align: justify;
}

/* tool page category images */
.cat2_img-bg {
    border-radius: 50px;
    padding: 7px;
    margin: 0px;
}

.cat2_img-title {
    font-family: sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.25;
    margin-bottom: 0px;
}

.h2-title-cust {
    font-family: Rubik, Helvetica, Arial, sans-serif;
    color: #39424d;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
}

.shadow-cust {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.qrcode-settings-separater {
    font-size: 0.8rem !important;
    color: #dc3545;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 5px;
}

/*
|----------------------------------------------------------------
| Sections Styles
|----------------------------------------------------------------
*/
.section-title {
    /* color: var(--bg-primary-color); */
    color: black;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/*
|----------------------------------------------------------------
| Owl Carousel Styles
|----------------------------------------------------------------
*/
#owl-carousel .item .card {
    min-height: 220px;
}

#owl-carousel .top-tool-cat {
    font-size: 11px;
    line-height: 1.25;
}

.owl-carousel .owl-item img {
    font-size: 12px;
    line-height: 1.25;
    color: white;
}

/*
||---------------------------------------------------------
|| Quiz Cards Styles
||---------------------------------------------------------
*/
.quiz-card-modern {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quiz-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.quiz-card-modern a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quiz-card-header {
    padding: 16px 16px 12px;
    text-align: center;
}

.quiz-card-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-card-main {
    flex: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    position: relative;
}

.quiz-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.quiz-card-instructions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    line-height: 1.6;
    padding: 0 20px;
}

.quiz-card-footer {
    padding: 10px;
    background: #fff;
}

.quiz-card-creator {
    margin-bottom: 12px;
}

.quiz-card-stats {
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 8px;
    padding: 0;
}

.quiz-card-stat {
    flex: 1;
    text-align: center;
    position: relative;
}

.quiz-card-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: #e0e0e0;
}

.quiz-card-stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.quiz-card-stat-label {
    font-size: 9px;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-card-creator p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.quiz-card-actions {
    display: flex;
    justify-content: center;
}

.quiz-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border: none;
    background: #2d2d2d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quiz-card-btn:hover {
    background: #1a1a1a;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.quiz-card-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .quiz-card-main {
        min-height: 240px;
        padding: 30px 15px;
    }

    .quiz-card-title {
        font-size: 18px;
    }
}

/*
||---------------------------------------------------------
|| Quiz Detail Page Styles
||---------------------------------------------------------
*/
@media (min-width: 768px) {
    .quiz-sticky-wrapper {
        position: relative;
    }

    .quiz-sticky-score-card.is-sticky {
        position: fixed;
        top: 65px;
        width: inherit;
        z-index: 1000;
    }
}

/* Override hero-section styles to match quizerland */
.quiz-hero-section {
    position: relative !important;
    min-height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    overflow: visible !important;
    padding: 40px !important;
    /* Reset background properties - inline style will override */
    background-size: unset !important;
    background-position: unset !important;
    /* Clear complex multi-gradient backgrounds - inline style will set the background */
    background-image: none;
}

.quiz-hero-section .container-fluid {
    width: 100% !important;
    margin-top: auto !important;
}

.quiz-hero-section::before,
.quiz-hero-section::after {
    display: none !important;
}

/* Ensure heading and description styles match quizerland */
.quiz-heading-1 {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: Poppins, sans-serif;
    line-height: 1;
}

.quiz-description-1 {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Hero section stats */
.quiz-hero-section-stat ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.quiz-stat-wrapper {
    text-align: center;
    padding: 10px 2px;
    border: 1px solid #00000042;
    border-radius: 5px;
}

.quiz-stat-wrapper .quiz-stat-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}

.quiz-stat-wrapper .quiz-stat-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0px;
}

.quiz-stat-wrapper .quiz-stat-number {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 0px;
}

/* Question Card Styles to match quizerland */
.quiz-question-card .quiz-question-title,
.question-card .question-title {
    margin-top: 0px;
    font-size: 2rem;
    font-weight: 700;
    font-family: Poppins, sans-serif;
    line-height: 1;
    padding: 2rem;
    text-align: center;
    color: white;
    min-height: 200px;
}

.quiz-question-card .quiz-option-key,
.question-card .option-key {
    text-align: left;
    font-size: 12px;
    font-weight: 300;
    color: #a4a3a3;
}

.quiz-question-card .quiz-option-value,
.question-card .option-value {
    text-align: left;
    font-size: 15px;
}

/* Answer option hover and default styles */
.quiz-question-card .quiz-answer-option,
.question-card .answer-option {
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
}

.quiz-question-card .quiz-answer-option:hover,
.question-card .answer-option:hover {
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    outline: none !important;
    box-shadow: none !important;
}

.quiz-question-card .quiz-answer-option:focus,
.quiz-question-card .quiz-answer-option:active,
.question-card .answer-option:focus,
.question-card .answer-option:active {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #ddd;
}

/* Accordion styles for explanation */
.quiz-acr-item,
.acr-item {
    background-color: #F8F9FA;
    border: none;
    outline: none;
}

.quiz-acr-btn,
.acr-btn {
    background-color: #F8F9FA !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1.5 !important;
    border: none !important;
    border-bottom: 1px solid #DEE2E6 !important;
    padding: 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.quiz-acr-btn:not(.collapsed),
.acr-btn:not(.collapsed) {
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1.5 !important;
    border-bottom: 1px solid #DEE2E6 !important;
}

.quiz-acr-btn.collapsed,
.acr-btn.collapsed {
    font-size: 1rem !important;
    font-weight: bold !important;
    line-height: 1.5 !important;
    border-bottom: 1px solid #DEE2E6 !important;
}

.accordion-button:focus {
    box-shadow: none;
    outline: none;
    border-bottom: 1px solid #DEE2E6 !important;
}

/* Accordion icon on the right - override template-1 CSS that hides it */
.quiz-acr-btn::after,
.acr-btn::after {
    display: block !important;
    margin-left: auto;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem;
    background-repeat: no-repeat;
    background-position: center;
}

.quiz-acr-btn:not(.collapsed)::after,
.acr-btn:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.quiz-acr-btn.collapsed::after,
.acr-btn.collapsed::after {
    display: block !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(0deg);
}

.quiz-acr-btn:not(.collapsed)::after,
.acr-btn:not(.collapsed)::after {
    display: block !important;
}

/* Fact posters — image-only cards, 5 per row on desktop */
.df-fact-poster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.df-fact-poster-item {
    min-width: 0;
}

.df-fact-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.25;
    border-radius: 12px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.df-fact-poster-item:hover .df-fact-poster {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.df-fact-poster-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}

.df-fact-poster-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.df-fact-poster-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(var(--poster-wash, 37, 99, 235), 0.78) 0%,
        rgba(var(--poster-wash, 37, 99, 235), 0.38) 28%,
        rgba(var(--poster-wash, 37, 99, 235), 0.1) 48%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.92) 100%
    );
}

.df-fact-poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.25;
    z-index: 1;
}

.df-fact-poster-top {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    left: 0.55rem;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    pointer-events: none;
}

.df-fact-poster-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.3rem;
    max-width: calc(100% - 2.75rem);
    min-width: 0;
    pointer-events: auto;
}

.df-fact-poster-cat {
    display: inline-flex;
    align-items: center;
    max-width: 9.5rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #0f462f;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.df-fact-poster-cat:hover {
    background: #fff;
    color: #062418;
    transform: translateY(-1px);
}

.df-fact-poster-actions {
    position: relative;
    top: auto;
    right: auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.4rem;
    margin-inline-start: auto;
    pointer-events: auto;
}

.df-fact-poster-action {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.df-fact-poster-action i {
    font-size: 1rem;
    line-height: 1;
}

.df-fact-poster-action:hover {
    transform: scale(1.06);
    background: #f5f5f5;
}

.df-fact-poster-action:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.df-fact-like-btn.is-liked {
    color: #e11d48;
}

.df-fact-poster-footer {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.df-fact-poster-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    min-width: 0;
}

.df-fact-poster-domain {
    display: block;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.55);
    font-size: calc(0.62rem + 1px);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: lowercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.df-fact-poster-stat {
    margin: 0;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.df-fact-poster-publisher {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
}

.df-fact-poster-publisher.is-static {
    pointer-events: none;
    cursor: default;
}

.df-fact-poster-publisher:hover .df-fact-poster-publisher-name {
    text-decoration: underline;
}

.df-fact-poster-publisher-avatar {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 45px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    background: #222;
}

.df-fact-poster-publisher-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.df-fact-poster-published-by {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.59rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: nowrap;
}

.df-fact-poster-publisher-name {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9rem;
}

.df-fact-poster-publisher-username {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9rem;
}

@media (min-width: 768px) {
    .df-fact-poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .df-fact-poster {
        aspect-ratio: 3 / 4.35;
        border-radius: 14px;
    }

    .df-fact-poster-stat {
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {
    .df-fact-poster-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }

    .df-fact-poster-stat {
        font-size: 1.3rem;
    }
}

/* --------------------------- Pagination --------------------------- */
.df-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

.df-pagination .pagination {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.df-pagination .page-item {
    margin: 0;
}

.df-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid #d7e3dc;
    border-radius: 6px !important;
    background: #fff;
    color: #285744;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.df-pagination .page-link:hover,
.df-pagination .page-link:focus {
    z-index: 2;
    color: #0f462f;
    background: #f3faf6;
    border-color: #b8cfc3;
    box-shadow: none;
    outline: none;
}

.df-pagination .page-link:focus-visible {
    outline: 2px solid rgba(24, 100, 69, 0.45);
    outline-offset: 2px;
}

.df-pagination .page-item.active .page-link {
    color: #fff;
    background: #186445;
    border-color: #186445;
}

.df-pagination .page-item.disabled .page-link {
    color: #a8bdb2;
    background: #fff;
    border-color: #e4ece7;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .df-pagination .page-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.85rem;
    }
}

/* --------------------------- Fact detail page --------------------------- */
/* Fixed main header is full-width; ignore clicks in empty space so
   page controls (e.g. fact back button) remain clickable underneath.
   Keep pointer-events off the hero-top-actions container itself — it
   stretches full width and would otherwise swallow clicks over the
   back button. Only the interactive children should capture events. */
.main-header {
    pointer-events: none;
}

.main-header .hero-top-actions {
    pointer-events: none;
}

.main-header .hero-top-actions > *,
.main-header .hero-top-actions a,
.main-header .hero-top-actions button {
    pointer-events: auto;
}

.df-fact-detail-header {
    position: sticky;
    top: 0;
    z-index: 49;
    background: #fff;
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
    pointer-events: none;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.df-fact-detail-header-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    min-height: 68px;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    padding-right: 11.5rem;
}

.df-fact-detail-back {
    position: relative;
    z-index: 2;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #141414;
    border: 1px solid rgba(20, 20, 20, 0.9);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.25s ease,
        transform 0.15s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.df-fact-detail-back:hover {
    background: #000;
    color: #fff;
    transform: translateX(-2px);
}

.df-fact-detail-back i,
.df-fact-detail-back i::before {
    font-size: 1.15rem;
    line-height: 1;
    pointer-events: none;
}

.df-fact-detail-thumb {
    flex: 0 0 auto;
    width: 27px;
    height: 36px; /* 3:4 — matches category logo ratio; keep header ~landing height */
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.df-fact-detail-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Publisher sticky header: circular DP, same ~36px height as category logo */
.df-fact-detail-thumb--avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Keep publisher sticky bar at the same compact ~68px as categories */
.df-fact-detail-header-inner:has(.df-fact-detail-thumb--avatar) .df-fact-detail-title {
    -webkit-line-clamp: 1;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.2;
}

.df-fact-detail-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 0;
    pointer-events: auto;
}

.df-fact-detail-parent {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: rgba(20, 20, 20, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.df-fact-detail-title {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #141414;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    pointer-events: auto;
    transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Category header with thumb + breadcrumb: keep ~68px like landing title bars */
.df-fact-detail-header-inner:has(.df-fact-detail-thumb) {
    gap: 0.65rem;
    min-height: 68px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.df-fact-detail-heading:has(.df-fact-detail-parent) .df-fact-detail-title {
    -webkit-line-clamp: 1;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.2;
}

/*
 * On fact/category pages the sticky bar is .df-fact-detail-header.
 * Keep the fixed main-header paint transparent so it does not cover
 * the back button + title when scrolled.
 */
body:has(.df-fact-detail-header) .main-header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}

/* Sticky/scrolled header: match inverted controls on dark sticky bar */
body:has(.main-header.scrolled) .df-fact-detail-header {
    background: linear-gradient(135deg, rgba(4, 35, 24, 0.96) 0%, rgba(6, 50, 34, 0.97) 50%, rgba(0, 0, 0, 0.94) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body:has(.main-header.scrolled) .df-fact-detail-back {
    background: #fff;
    color: #141414;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body:has(.main-header.scrolled) .df-fact-detail-back:hover {
    background: #f3f3f3;
    color: #000;
}

body:has(.main-header.scrolled) .df-fact-detail-title {
    color: #fff;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

body:has(.main-header.scrolled) .df-fact-detail-parent {
    color: rgba(255, 255, 255, 0.65);
}

/*
 * Desktop pre-scroll back on the left (same side as sticky back).
 * Hidden once the sticky scroll-reveal bar takes over.
 */
.main-header--has-scroll-start-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.df-fact-detail-back--scroll-start {
    flex: 0 0 42px;
    /* Align with sticky back: sidebar (80) + section gutter (28) - header pad (18) */
    margin-left: calc(80px + 28px - 18px);
    margin-right: auto;
    background: #fff;
    color: #141414;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        background-color 0.25s ease,
        transform 0.15s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.df-fact-detail-back--scroll-start:hover {
    background: #f3f3f3;
    color: #000;
}

.main-header.scrolled .df-fact-detail-back--scroll-start,
body:has(.df-fact-detail-header--scroll-reveal.is-revealed) .df-fact-detail-back--scroll-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.df-rtl .df-fact-detail-back--scroll-start {
    margin-left: auto;
    margin-right: calc(80px + 28px - 18px);
    order: 2;
}

body.df-rtl .main-header--has-scroll-start-back .hero-top-actions {
    order: 1;
}

body.df-rtl .df-fact-detail-back--scroll-start i {
    transform: scaleX(-1);
}

@media (max-width: 991.98px) {
    .df-fact-detail-back--scroll-start {
        display: none !important;
    }
}

/*
 * Categories / publishers: stay in the content column (sticky, not fixed)
 * so the bar never slides under the sidebar — same layout as the old white header.
 * Desktop: collapse until scroll. Title only after .is-revealed.
 */
.df-fact-detail-header--scroll-reveal {
    position: sticky;
    top: 0;
    z-index: 49;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.df-fact-detail-header--scroll-reveal .df-fact-detail-back {
    flex: 0 0 42px;
    background: #fff;
    color: #141414;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.df-fact-detail-header--scroll-reveal .df-fact-detail-back:hover {
    background: #f3f3f3;
    color: #000;
}

.df-fact-detail-header--scroll-reveal .df-fact-detail-thumb,
.df-fact-detail-header--scroll-reveal .df-fact-detail-heading,
.df-fact-detail-header--scroll-reveal .df-fact-detail-title,
.df-fact-detail-header--scroll-reveal .df-fact-detail-parent {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, color 0.25s ease;
}

.df-fact-detail-header--scroll-reveal .df-fact-detail-title {
    color: #fff;
}

.df-fact-detail-header--scroll-reveal .df-fact-detail-parent {
    color: rgba(255, 255, 255, 0.65);
}

.df-fact-detail-header--scroll-reveal.is-revealed {
    background: linear-gradient(135deg, rgba(4, 35, 24, 0.96) 0%, rgba(6, 50, 34, 0.97) 50%, rgba(0, 0, 0, 0.94) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-thumb,
.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-heading,
.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-title,
.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-parent {
    opacity: 1;
    visibility: visible;
}

.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-heading,
.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-title {
    pointer-events: auto;
}

.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-title {
    color: #fff;
}

.df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-parent {
    color: rgba(255, 255, 255, 0.65);
}

/*
 * Desktop (≥ lg): collapse until scroll, then reveal one sticky bar
 * with back + title together. Mobile uses .df-mobile-header instead
 * (see mobile shell rules) — do not show a second sticky back bar.
 */
@media (min-width: 992px) {
    .df-fact-detail-header--scroll-reveal:not(.is-revealed) {
        height: 0;
        min-height: 0;
        overflow: hidden;
        border: none;
        box-shadow: none;
        pointer-events: none;
    }

    .df-fact-detail-header--scroll-reveal:not(.is-revealed) .df-fact-detail-header-inner {
        min-height: 0;
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    .df-fact-detail-header--scroll-reveal:not(.is-revealed) .df-fact-detail-back {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .df-fact-detail-header--scroll-reveal.is-revealed {
        height: auto;
        overflow: visible;
        pointer-events: none;
    }

    .df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-header-inner {
        min-height: 68px;
        height: auto;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-header-inner:has(.df-fact-detail-thumb) {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .df-fact-detail-header--scroll-reveal.is-revealed .df-fact-detail-back {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: #fff;
        color: #141414;
        border-color: rgba(255, 255, 255, 0.85);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile: page sticky back/title is redundant with .df-mobile-header */
@media (max-width: 991.98px) {
    .df-fact-detail-header {
        display: none !important;
    }
}

.df-fact-detail-hero {
    background: #fff;
    /* Horizontal gutters via .home-page-section (28px / 14px) */
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

/*
 * Align column content with sibling .home-page-section bands (sticky header,
 * related facts). Default .home-page-section > .row { margin: 0 } keeps gutters
 * inside the inset; here we restore Bootstrap’s negative row margins so the
 * outer column padding cancels and edges match the 28px / 14px page gutter.
 */
.df-fact-detail-hero.home-page-section > .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 1.5rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.df-fact-detail-poster {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
}

.df-fact-detail-poster .df-fact-poster-item:hover .df-fact-poster {
    transform: none;
}

/* Hero poster on fact detail: no action buttons; larger title + publisher */
.df-fact-detail-poster .df-fact-poster-actions {
    display: none;
}

.df-fact-detail-poster .df-fact-poster-cats {
    max-width: 100%;
}

.df-fact-detail-poster .df-fact-poster-footer {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    gap: 1.15rem;
}

.df-fact-detail-poster .df-fact-poster-stat {
    font-size: 1.55rem;
}

.df-fact-detail-poster .df-fact-poster-publisher {
    gap: 0.55rem;
}

.df-fact-detail-poster .df-fact-poster-publisher-avatar {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    flex: 0 0 56px;
}

.df-fact-detail-poster .df-fact-poster-publisher-name {
    font-size: 0.95rem;
    max-width: 12rem;
}

.df-fact-detail-poster .df-fact-poster-publisher-username {
    font-size: 0.78rem;
    max-width: 12rem;
}

@media (min-width: 768px) {
    .df-fact-detail-poster .df-fact-poster-stat {
        font-size: 1.7rem;
    }
}

.df-fact-detail-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.df-fact-detail-info-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #141414;
}

.df-fact-detail-divider {
    width: 100%;
    height: 0;
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid rgb(191 191 191);
}

.df-fact-detail-publisher {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
}

.df-fact-detail-publisher.is-static {
    pointer-events: none;
    cursor: default;
}

.df-fact-detail-publisher:hover .df-fact-detail-publisher-name {
    color: #0f462f;
}

.df-fact-detail-publisher-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    object-fit: cover;
    background: #eef4f0;
    border: 1px solid rgba(24, 100, 69, 0.12);
}

.df-fact-detail-publisher-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.df-fact-detail-publisher-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #141414;
    transition: color 0.15s ease;
}

.df-fact-detail-publisher-username {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 400;
    color: #8a9a91;
}

.df-fact-detail-social {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}

.df-fact-detail-social > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.df-fact-detail-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(24, 100, 69, 0.18);
    background: #fff;
    color: #0f462f;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.df-fact-detail-action-btn:hover:not(:disabled) {
    background: #f3fbf7;
    color: #062418;
    transform: translateY(-1px);
}

.df-fact-detail-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.df-fact-detail-action-btn.df-fact-like-btn.is-liked {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.28);
    background: #fff5f5;
}

.df-fact-action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 70, 47, 0.08);
    color: #0f462f;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.df-fact-detail-action-btn.df-fact-like-btn.is-liked .df-fact-action-count {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

/* Facebook-style comments modal */
.df-comments-modal-dialog {
    max-width: min(1080px, calc(100vw - 1.5rem));
    margin: 0.75rem auto;
}

.df-comments-modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    max-height: min(90vh, 820px);
}

.df-comments-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.df-comments-modal-close:hover {
    background: rgba(0, 0, 0, 0.72);
}

.df-comments-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    min-height: min(84vh, 720px);
    max-height: min(90vh, 820px);
    height: min(90vh, 820px);
    overflow: hidden;
}

.df-comments-modal-poster {
    position: relative;
    background: #141414;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;
}

.df-comments-modal-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #0a2f20;
}

.df-comments-modal-poster-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.df-comments-modal-poster-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 20, 0.08) 28%,
        rgba(20, 20, 20, 0.55) 68%,
        #141414 100%
    );
    pointer-events: none;
    z-index: 1;
}

.df-comments-modal-poster-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 1.35rem 1.35rem;
    pointer-events: none;
}

.df-comments-modal-poster-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.df-comments-modal-poster-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.1rem;
    margin-top: 0.75rem;
}

.df-comments-modal-poster-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.df-comments-modal-poster-stat i {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.9;
}

.df-comments-modal-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    background: #fff;
    border-left: 1px solid rgba(15, 70, 47, 0.08);
}

.df-comments-modal-header {
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid rgba(15, 70, 47, 0.08);
    padding-right: 3rem;
    flex-shrink: 0;
}

.df-comments-modal-header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.df-comments-modal-publisher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.df-comments-modal-header-copy {
    min-width: 0;
}

.df-comments-modal-publisher-name {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #141414;
}

.df-comments-modal-post-title {
    margin: 0.15rem 0 0;
    font-size: 0.86rem;
    color: #4b5c54;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.df-comments-modal-count {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #61756b;
}

.df-comments-modal-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.9rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #fafcfb;
}

.df-comments-modal-loading,
.df-comments-modal-empty {
    text-align: center;
    color: #61756b;
    font-size: 0.9rem;
    padding: 1.5rem 0.5rem;
}

.df-comments-modal-load-wrap {
    display: flex;
    justify-content: center;
    padding: 0.15rem 0 0.35rem;
}

.df-comments-modal-load-btn {
    border: 1px solid rgba(15, 70, 47, 0.18);
    background: #fff;
    color: #0f462f;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.df-comments-modal-load-btn:hover:not(:disabled) {
    background: #eef6f1;
    border-color: rgba(15, 70, 47, 0.32);
}

.df-comments-modal-load-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.df-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.df-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.df-comment-bubble {
    flex: 1;
    min-width: 0;
    background: #eef5f1;
    border-radius: 16px;
    padding: 0.55rem 0.8rem 0.65rem;
}

.df-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.df-comment-author {
    font-size: 0.84rem;
    font-weight: 800;
    color: #141414;
}

.df-comment-time {
    font-size: 0.72rem;
    color: #7a8a82;
}

.df-comment-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #24332c;
    word-break: break-word;
}

.df-comments-modal-composer {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem 1rem;
    border-top: 1px solid rgba(15, 70, 47, 0.1);
    background: #fff;
    flex-shrink: 0;
}

.df-comments-composer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.df-comments-composer-fields {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.df-comments-composer-name {
    width: 100%;
    border: 1px solid rgba(15, 70, 47, 0.14);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
    outline: none;
}

.df-comments-composer-name:focus,
.df-comments-composer-input:focus {
    border-color: rgba(24, 100, 69, 0.45);
    box-shadow: 0 0 0 3px rgba(24, 100, 69, 0.12);
}

.df-comments-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
}

.df-comments-composer-input {
    flex: 1;
    min-width: 0;
    resize: none;
    border: 1px solid rgba(15, 70, 47, 0.14);
    border-radius: 18px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.35;
    max-height: 120px;
    outline: none;
    background: #f7faf8;
}

.df-comments-composer-submit {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #186445 0%, #0f462f 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.df-comments-composer-submit-icon {
    display: block;
    fill: #fff;
}

.df-comments-composer-submit:hover:not(:disabled) {
    filter: brightness(1.06);
}

.df-comments-composer-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.df-comments-composer-error {
    margin: 0;
    font-size: 0.8rem;
    color: #b91c1c;
}

@media (max-width: 991.98px) {
    .df-comments-modal-content {
        max-height: min(92vh, 860px);
    }

    .df-comments-modal-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        height: min(92vh, 860px);
        max-height: min(92vh, 860px);
    }

    .df-comments-modal-poster {
        min-height: 180px;
        max-height: 32vh;
        flex-shrink: 0;
    }

    .df-comments-modal-poster-meta {
        padding: 0 1rem 1rem;
    }

    .df-comments-modal-poster-title {
        -webkit-line-clamp: 3;
        font-size: clamp(1rem, 4.2vw, 1.25rem);
    }

    .df-comments-modal-poster-stats {
        gap: 0.65rem 0.9rem;
        margin-top: 0.55rem;
    }

    .df-comments-modal-poster-stat {
        font-size: 0.8rem;
    }

    .df-comments-modal-panel {
        border-left: 0;
        border-top: 1px solid rgba(15, 70, 47, 0.08);
        min-height: 0;
        height: 100%;
    }

    .df-comments-modal-close {
        background: rgba(0, 0, 0, 0.65);
    }
}

@media (max-width: 575.98px) {
    .df-comments-modal-dialog {
        max-width: calc(100vw - 0.75rem);
        margin: 0.4rem auto;
    }

    .df-fact-detail-action-btn {
        min-height: 44px;
        padding: 0.55rem 0.35rem;
        font-size: 0.84rem;
        border-radius: 10px;
    }

    .df-fact-action-count {
        min-width: 1.15rem;
        padding: 0.08rem 0.35rem;
        font-size: 0.7rem;
    }
}

.df-fact-detail-social .df-fact-detail-share-btn {
    background: linear-gradient(135deg, #186445 0%, #0f462f 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 70, 47, 0.18);
}

.df-fact-detail-social .df-fact-detail-share-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d7350 0%, #125337 100%);
    color: #fff;
}

.df-fact-detail-social .df-fact-detail-share-btn .df-fact-action-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.df-fact-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.df-fact-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0.95rem;
    border-radius: 14px;
    background: #f7faf8;
    border: 1px solid rgba(24, 100, 69, 0.08);
}

.df-fact-stat-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #186445;
    box-shadow: 0 2px 8px rgba(15, 70, 47, 0.08);
}

.df-fact-stat-icon i {
    font-size: 1.1rem;
    line-height: 1;
}

.df-fact-stat-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.df-fact-stat-count {
    font-size: 1.2rem;
    font-weight: 800;
    color: #141414;
    letter-spacing: -0.02em;
}

.df-fact-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #61756b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

.df-fact-detail-body {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
}

.df-fact-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.df-fact-detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 100, 69, 0.18);
    background: #f3fbf7;
    color: #0f462f;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.df-fact-detail-tag:hover {
    background: #e7f7ef;
    color: #062418;
}

.df-fact-detail-related {
    background: #f4f7f5;
    /* Horizontal gutters via .home-page-section (28px / 14px) — do not use padding shorthand */
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.df-fact-detail-related-heading {
    margin-bottom: 1.35rem;
}

.df-fact-detail-related-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #141414;
}

.df-fact-detail-related-sub {
    margin: 0.35rem 0 0;
    color: #61756b;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .df-fact-detail-header-inner {
        padding-right: 8.5rem;
        min-height: 60px;
    }
}

@media (min-width: 768px) {
    .df-fact-detail-header-inner {
        padding-right: 16rem;
    }

    .df-fact-detail-hero {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .df-fact-detail-hero.home-page-section > .row {
        --bs-gutter-x: 3rem;
    }

    .df-fact-detail-poster {
        max-width: 100%;
        margin: 0;
    }

    .df-fact-detail-stats {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}
/* ---------------------- Auth modal (simple layout + DF theme) ----------------------- */
.df-auth-modal {
    z-index: 2000;
}

body:has(#loginModal.show) .modal-backdrop {
    z-index: 1990;
    background-color: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 1 !important;
}

.df-auth-modal .modal-dialog {
    max-width: 520px;
    margin: 1.25rem auto;
}

.df-auth-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 26px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.df-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border: 0;
    background: #e8ece9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1c1e21;
    font-size: 0.95rem;
    line-height: 1;
    transition: background-color 0.15s ease;
}

.df-auth-close:hover {
    background: #dce3df;
    color: #1c1e21;
}

.df-auth-close:focus-visible {
    outline: 2px solid var(--df-brand-primary, #186445);
    outline-offset: 2px;
}

.df-auth-modal .modal-body {
    padding: 24px 22px 22px;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

.df-auth-modal .tab-content {
    min-height: 0;
    border: 0;
    padding: 0;
}

.df-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 36px 12px;
}

.df-auth-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.df-auth-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--df-brand-secondary, #171717);
}

.df-auth-modal .modal-title {
    margin: 0 0 16px;
    text-align: left;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1c1e21;
}

.df-auth-modal .alert {
    font-size: 0.9rem;
    border-radius: 8px;
}

.df-auth-field {
    margin-bottom: 0.75rem;
}

.df-auth-field .form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #33453d;
}

.df-auth-field .form-control,
.df-auth-modal .form-select {
    height: 44px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e8eaef;
    border-radius: 5px;
    background: #fff;
    color: #1c1e21;
    font-size: 0.95rem;
    line-height: 1.2;
    box-shadow: none;
}

.df-auth-field .form-control::placeholder {
    color: #9aa3ad;
}

.df-auth-field .form-control:focus,
.df-auth-modal .form-select:focus {
    border: 1px solid #1c1e21;
    box-shadow: none;
    outline: none;
}

.df-auth-password-wrap {
    position: relative;
}

.df-auth-password-wrap .form-control {
    padding-right: 2.75rem;
}

.df-auth-show-password {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--df-brand-primary, #186445);
    padding: 0.35rem 0.5rem;
    line-height: 1;
}

.df-auth-show-password:hover,
.df-auth-show-password:focus {
    color: var(--df-brand-secondary, #171717);
}

.df-auth-section-label {
    margin: 0.15rem 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #33453d;
}

.df-auth-gender {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid #dadada;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #33453d;
    cursor: pointer;
}

.df-auth-gender .form-check-input {
    margin: 0;
    float: none;
    width: 1rem;
    height: 1rem;
}

.df-auth-gender .form-check-input:checked {
    background-color: var(--df-brand-primary, #186445);
    border-color: var(--df-brand-primary, #186445);
}

.df-auth-terms {
    font-size: 0.85rem;
    color: #5b5a5a;
}

.df-auth-terms .form-check-input:checked {
    background-color: var(--df-brand-primary, #186445);
    border-color: var(--df-brand-primary, #186445);
}

.df-auth-terms a {
    color: var(--df-brand-primary, #186445);
    font-weight: 600;
    text-decoration: none;
}

.df-auth-terms a:hover {
    text-decoration: underline;
}

.df-auth-submit {
    margin-top: 0.25rem;
    border: 0;
    border-radius: 10px;
    background: var(--df-brand-primary, #186445);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    height: 44px;
    padding: 0.65rem 1rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.df-auth-submit:hover,
.df-auth-submit:focus {
    background: #145338;
    color: #fff;
    box-shadow: 0 4px 14px rgba(24, 100, 69, 0.28);
    transform: translateY(-1px);
}

.df-auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -0.25rem 0 0.85rem;
}

.df-auth-forgot {
    color: var(--df-brand-primary, #186445);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: right;
}

.df-auth-forgot:hover {
    text-decoration: underline;
    color: var(--df-brand-primary, #186445);
}

.df-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: #8a8d91;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.df-auth-divider::before,
.df-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dadde1;
}

.df-auth-social {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    margin-bottom: 14px;
}

.df-auth-social-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.df-auth-social-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.df-auth-social-google {
    background: #fff;
    border-color: #e5e7eb;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.df-auth-social-google i {
    color: #ea4335;
}

.df-auth-social-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.df-auth-social-facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.df-auth-social-facebook i {
    color: #fff;
}

.df-auth-social-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    color: #fff;
}

.df-auth-switch {
    margin: 4px 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: #5b5a5a;
    line-height: 1.4;
}

.df-auth-switch-link {
    display: inline;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--df-brand-primary, #186445);
    font-size: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.df-auth-switch-link:hover,
.df-auth-switch-link:focus {
    color: var(--df-brand-primary, #186445);
    text-decoration: underline;
}

.df-comments-composer-guest {
    width: 100%;
}

.df-comments-composer-guest-copy {
    font-size: 0.9rem;
    color: #61756b;
}

.df-comments-composer-login-btn {
    width: 100%;
}

/* Home / category / publisher facts tabs (Popular / Latest [/ Personalized])
   Sticky within the facts section — pins while scrolling, releases once past it. */
#facts,
#category-facts,
#publisher-facts {
    overflow: visible;
}

.df-home-facts-tabs {
    position: sticky;
    top: 0;
    z-index: 48;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    margin: 0 0 1.15rem;
    padding: 0.35rem 0 0;
    background: #fff;
}

/* Desktop: bleed past .home-page-section gutters so the border is full-width,
   while tab content / filter tags keep the same 28px section alignment. */
@media (min-width: 992px) {
    .df-home-facts-tabs {
        margin-left: -28px;
        margin-right: -28px;
        width: calc(100% + 56px);
        max-width: none;
        padding-top: 0.55rem;
        padding-bottom: 0;
    }

    .df-home-facts-tabs-bar,
    .df-home-facts-filter-tags {
        padding-left: 28px;
        padding-right: 28px;
        box-sizing: border-box;
    }

    /* More space between tab labels / filter and the bottom border */
    .df-home-facts-tab {
        min-height: 48px;
        padding: 0.7rem 1.1rem 0.8rem;
    }

    .df-home-facts-filter-btn {
        margin-top: 0.35rem;
        margin-bottom: 0.45rem;
    }
}

/* Sit under the solid desktop main-header once it appears on scroll */
body:has(.main-header.scrolled) .df-home-facts-tabs {
    top: 60px;
}

/* Desktop only: sit under the compact sticky page header (~68px).
   On mobile the page sticky bar is hidden — tabs must pin under .df-mobile-header (~56px). */
@media (min-width: 992px) {
    body:has(.df-fact-detail-header--scroll-reveal.is-revealed) #category-facts .df-home-facts-tabs,
    body:has(.df-fact-detail-header--scroll-reveal.is-revealed) #publisher-facts .df-home-facts-tabs,
    body:has(.df-fact-detail-header--scroll-reveal.is-revealed) #publishers .df-home-facts-tabs,
    body:has(.main-header.scrolled):has(.df-fact-detail-header--scroll-reveal.is-revealed) #category-facts .df-home-facts-tabs,
    body:has(.main-header.scrolled):has(.df-fact-detail-header--scroll-reveal.is-revealed) #publisher-facts .df-home-facts-tabs,
    body:has(.main-header.scrolled):has(.df-fact-detail-header--scroll-reveal.is-revealed) #publishers .df-home-facts-tabs {
        top: 68px;
    }
}

@media (max-width: 991.98px) {
    .df-home-facts-tabs,
    #category-facts .df-home-facts-tabs,
    #publisher-facts .df-home-facts-tabs,
    #publishers .df-home-facts-tabs,
    #facts .df-home-facts-tabs {
        top: calc(var(--df-mobile-header-h, 56px) + env(safe-area-inset-top, 0px));
        z-index: 1020;
        margin-top: 0;
    }

    /* Home facts: keep flush under mobile header */
    .df-home-facts-tabs,
    #facts .df-home-facts-tabs {
        padding-top: 0;
    }

    /* Category / publisher / publishers index: top padding only — border stays flush at the bottom edge */
    #category-facts .df-home-facts-tabs,
    #publisher-facts .df-home-facts-tabs,
    #publishers .df-home-facts-tabs {
        padding-top: 0.45rem;
        padding-bottom: 0;
    }

    body:has(.main-header.scrolled) .df-home-facts-tabs,
    body:has(.main-header.scrolled) #category-facts .df-home-facts-tabs,
    body:has(.main-header.scrolled) #publisher-facts .df-home-facts-tabs,
    body:has(.main-header.scrolled) #publishers .df-home-facts-tabs {
        top: calc(var(--df-mobile-header-h, 56px) + env(safe-area-inset-top, 0px));
    }
}

.df-home-facts-tabs-bar {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    border-bottom: 1px solid rgba(15, 70, 47, 0.12);
}

/* Category / publisher / publishers index: match /feed tabs bar — a bit taller + light sticky bg.
   No padding/margin under the bar so the bottom border sits on the edge. */
#category-facts .df-home-facts-tabs,
#publisher-facts .df-home-facts-tabs,
#publishers .df-home-facts-tabs {
    padding-top: 0.45rem;
    padding-bottom: 0;
    background: #fff;
}

#category-facts .df-home-facts-tab,
#publisher-facts .df-home-facts-tab,
#publishers .df-home-facts-tab {
    min-height: 48px;
    padding: 0.65rem 1.1rem;
}

#category-facts .df-home-facts-filter-btn,
#publisher-facts .df-home-facts-filter-btn,
#publishers .df-home-facts-filter-btn {
    margin-bottom: 0;
    align-self: stretch;
}

.df-home-facts-tabs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
}

.df-home-facts-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    min-height: 40px;
    margin-bottom: -1px;
    padding: 0.45rem 1rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--df-brand-secondary, #171717);
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

a.df-home-facts-tab,
a.df-home-facts-tab:visited,
a.df-home-facts-tab:hover,
a.df-home-facts-tab:focus {
    color: var(--df-brand-secondary, #171717);
    text-decoration: none;
}

.df-home-facts-tab i {
    font-size: 0.95rem;
    line-height: 1;
}

.df-home-facts-tab:hover {
    color: var(--df-brand-secondary, #171717);
    background: transparent;
}

.df-home-facts-tab.is-active {
    background: transparent;
    color: var(--df-brand-secondary, #171717);
    border-bottom-color: var(--df-brand-primary, #186445);
    box-shadow: none;
}

.df-home-facts-tab:disabled {
    opacity: 0.65;
    cursor: wait;
}

.df-home-facts-tab:focus-visible {
    outline: 2px solid rgba(24, 100, 69, 0.45);
    outline-offset: 2px;
}

.df-home-facts-filter-btn {
    position: relative;
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 0.15rem 0.2rem 0;
    border: 0;
    border-radius: 5px;
    background: rgba(15, 70, 47, 0.08);
    color: var(--df-brand-secondary, #171717);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.df-home-facts-filter-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.df-home-facts-filter-btn:hover,
.df-home-facts-filter-btn[aria-expanded="true"] {
    background: rgba(15, 70, 47, 0.14);
    color: var(--df-brand-primary, #186445);
}

.df-home-facts-filter-btn.is-active {
    background: rgba(24, 100, 69, 0.14);
    color: var(--df-brand-primary, #186445);
}

.df-home-facts-filter-btn__dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--df-brand-primary, #186445);
    box-shadow: 0 0 0 2px #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.df-home-facts-filter-btn.is-active .df-home-facts-filter-btn__dot {
    opacity: 1;
    transform: scale(1);
}

.df-home-facts-filter-btn:focus-visible {
    outline: 2px solid rgba(24, 100, 69, 0.45);
    outline-offset: 2px;
}

.df-home-facts-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    /* Horizontal padding comes from desktop full-bleed tab bars (28px) */
    padding-top: 0.7rem;
    padding-bottom: 0.15rem;
}

.df-home-facts-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    min-height: 30px;
    padding: 0.2rem 0.45rem 0.2rem 0.7rem;
    border: 1px solid rgba(15, 70, 47, 0.14);
    border-radius: 5px;
    background: rgba(15, 70, 47, 0.06);
    color: var(--df-brand-secondary, #171717);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.df-home-facts-filter-tag span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.df-home-facts-filter-tag i {
    flex: 0 0 auto;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.7;
}

.df-home-facts-filter-tag:hover {
    background: rgba(15, 70, 47, 0.12);
    border-color: rgba(15, 70, 47, 0.22);
}

.df-home-facts-filter-tag:focus-visible {
    outline: 2px solid rgba(24, 100, 69, 0.45);
    outline-offset: 2px;
}

/* Facts filter drawer (right sidebar) */
body.df-facts-filter-open {
    overflow: hidden;
}

.df-facts-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 1080;
    pointer-events: none;
    visibility: hidden;
}

.df-facts-filter-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.df-facts-filter-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 14, 0.42);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.df-facts-filter-drawer.is-open .df-facts-filter-drawer__backdrop {
    opacity: 1;
}

.df-facts-filter-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(100vw, 380px);
    height: 100%;
    height: 100dvh;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
    transform: translateX(104%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.df-facts-filter-drawer.is-open .df-facts-filter-drawer__panel {
    transform: translateX(0);
}

.df-facts-filter-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(15, 70, 47, 0.1);
}

.df-facts-filter-drawer__header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--df-brand-secondary, #171717);
}

.df-facts-filter-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 5px;
    background: rgba(15, 70, 47, 0.08);
    color: var(--df-brand-secondary, #171717);
    cursor: pointer;
}

.df-facts-filter-drawer__close:hover {
    background: rgba(15, 70, 47, 0.14);
}

.df-facts-filter-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.df-facts-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
}

.df-facts-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5a6b62;
}

.df-facts-filter-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 0.85rem;
    border: 1px solid rgba(15, 70, 47, 0.16);
    border-radius: 5px;
    background: rgba(15, 70, 47, 0.04);
}

.df-facts-filter-search i {
    color: #61756b;
    font-size: 0.95rem;
}

.df-facts-filter-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--df-brand-secondary, #171717);
}

.df-facts-filter-field select {
    min-height: 44px;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(15, 70, 47, 0.16);
    border-radius: 5px;
    background: #fff;
    color: var(--df-brand-secondary, #171717);
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2361756b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.2rem;
}

.df-facts-filter-field select:disabled {
    opacity: 0.9;
    cursor: not-allowed;
    color: var(--df-brand-secondary, #171717);
    background-color: rgba(15, 70, 47, 0.06);
    background-image: none;
}

.df-facts-filter-search--mini {
    min-height: 38px;
    margin-bottom: 0.45rem;
}

.df-facts-filter-search--mini input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.df-facts-filter-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 210px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.45rem;
    border: 1px solid rgba(15, 70, 47, 0.16);
    border-radius: 5px;
    background: rgba(15, 70, 47, 0.03);
}

.df-facts-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.35rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(15, 70, 47, 0.08);
}

.df-facts-filter-group:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.df-facts-filter-group__title {
    padding: 0.35rem 0.4rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a6b62;
}

.df-facts-filter-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.45rem 0.4rem;
    border-radius: 5px;
    cursor: pointer;
    color: var(--df-brand-secondary, #171717);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.df-facts-filter-check:hover {
    background: rgba(15, 70, 47, 0.08);
}

.df-facts-filter-check.is-hidden,
.df-facts-filter-group.is-hidden,
.df-facts-filter-checklist-empty.is-hidden {
    display: none !important;
}

.df-facts-filter-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 0.12rem;
    accent-color: var(--df-brand-primary, #186445);
    cursor: pointer;
}

.df-facts-filter-check span {
    min-width: 0;
}

.df-facts-filter-checklist-empty {
    margin: 0;
    padding: 0.65rem 0.4rem;
    color: #61756b;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

.df-facts-filter-drawer__footer {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.65rem;
    flex: 0 0 auto;
    padding: 0.9rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 70, 47, 0.1);
    background: #fff;
}

.df-facts-filter-btn-clear,
.df-facts-filter-btn-apply {
    min-height: 44px;
    border-radius: 5px;
    border: 0;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.df-facts-filter-btn-clear {
    background: rgba(15, 70, 47, 0.08);
    color: var(--df-brand-secondary, #171717);
}

.df-facts-filter-btn-clear:hover {
    background: rgba(15, 70, 47, 0.14);
}

.df-facts-filter-btn-apply {
    background: var(--df-brand-primary, #186445);
    color: #fff;
}

.df-facts-filter-btn-apply:hover {
    background: #145338;
}

.df-facts-filter-btn-clear:disabled,
.df-facts-filter-btn-apply:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 575.98px) {
    .df-home-facts-tabs {
        width: 100%;
    }

    .df-home-facts-tab {
        flex: 1 1 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.84rem;
        text-align: center;
    }

    .df-home-facts-filter-btn {
        width: 36px;
        height: 36px;
        margin-right: 0.35rem;
    }

    .df-facts-filter-drawer__panel {
        width: min(100vw, 100%);
    }
}

.df-home-facts-gate,
.df-home-facts-empty {
    margin-top: 0.25rem;
}

/* Load-more card inside the fact poster grid (15th slot → full listing page) */
.df-fact-loadmore-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    color: #fff;
    padding: 0;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(ellipse 80% 60% at 20% 15%, rgba(26, 107, 74, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 55% at 88% 82%, rgba(24, 100, 69, 0.28), transparent 50%),
        linear-gradient(165deg, #1a1f1c 0%, #101412 42%, #0a0d0b 100%);
    overflow: hidden;
}

.df-fact-loadmore-card:hover {
    color: #fff;
    text-decoration: none;
}

.df-fact-loadmore-card:focus-visible {
    outline: 2px solid rgba(24, 100, 69, 0.55);
    outline-offset: 3px;
}

.df-fact-loadmore-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 38%),
        linear-gradient(145deg, transparent 40%, rgba(26, 107, 74, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

.df-fact-loadmore-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(18px);
}

.df-fact-loadmore-orb--1 {
    width: 58%;
    height: 42%;
    left: -12%;
    top: -8%;
    background: radial-gradient(circle, rgba(34, 140, 96, 0.55), transparent 70%);
    opacity: 0.85;
    animation: df-fact-loadmore-orb-a 7s ease-in-out infinite alternate;
}

.df-fact-loadmore-orb--2 {
    width: 48%;
    height: 38%;
    right: -10%;
    bottom: -6%;
    background: radial-gradient(circle, rgba(15, 70, 47, 0.65), transparent 70%);
    opacity: 0.9;
    animation: df-fact-loadmore-orb-b 9s ease-in-out infinite alternate;
}

@keyframes df-fact-loadmore-orb-a {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(8%, 10%) scale(1.08); }
}

@keyframes df-fact-loadmore-orb-b {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-6%, -8%) scale(1.12); }
}

.df-fact-loadmore-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem;
    text-align: center;
}

.df-fact-loadmore-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 45%),
        linear-gradient(145deg, rgba(26, 107, 74, 0.95), rgba(10, 40, 28, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(26, 107, 74, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.df-fact-poster-item:hover .df-fact-loadmore-icon-wrap {
    transform: scale(1.06);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 36px rgba(34, 140, 96, 0.45);
}

.df-fact-loadmore-icon {
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
}

.df-fact-loadmore-label {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #fff;
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
}

.df-fact-loadmore-sub {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.2;
}

/* Feed page: back + Feeds header, then tabs bar, then grid */
.df-feed-tabs-header {
    position: sticky;
    /* Sit under the always-visible .df-fact-detail-header (~68px + padding) */
    top: 68px;
    z-index: 48;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding-top: 0.35rem;
    padding-bottom: 0.1rem;
}

/* Desktop: full-bleed border under tabs; content stays on the 28px section grid */
@media (min-width: 992px) {
    .df-feed-tabs-header.home-page-section {
        padding-left: 0;
        padding-right: 0;
    }

    .df-feed-tabs-bar,
    .df-feed-tabs-header .df-home-facts-filter-tags {
        padding-left: 28px;
        padding-right: 28px;
        box-sizing: border-box;
    }
}

body:has(.main-header.scrolled) .df-feed-tabs-header {
    top: 68px;
}

.df-feed-tabs-bar {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    border-bottom: 1px solid rgba(15, 70, 47, 0.12);
}

.df-feed-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.df-feed-tabs-header .df-home-facts-filter-btn {
    margin-bottom: 0.35rem;
}

.df-feed-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    min-height: 48px;
    margin-bottom: -1px;
    padding: 0.65rem 1.1rem;
    border-radius: 0;
    color: var(--df-brand-secondary, #171717);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.df-feed-tab i {
    font-size: 0.95rem;
    line-height: 1;
}

.df-feed-tab:hover {
    color: var(--df-brand-secondary, #171717);
    background: transparent;
    text-decoration: none;
}

.df-feed-tab.is-active {
    background: transparent;
    color: var(--df-brand-secondary, #171717);
    border-bottom-color: var(--df-brand-primary, #186445);
    box-shadow: none;
}

.df-feed-tab.is-disabled {
    pointer-events: none;
    opacity: 0.65;
    cursor: wait;
}

.df-feed-tab:focus-visible {
    outline: 2px solid rgba(24, 100, 69, 0.45);
    outline-offset: 2px;
}

.df-feed-gate-wrap,
.df-feed-empty {
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    /* Match landing/likes: no section inset so posters + tabs go edge-to-edge */
    #feed.home-page-section {
        padding-top: 0.75rem !important;
        padding-bottom: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .df-feed-tabs-header.home-page-section {
        padding-left: 0;
        padding-right: 0;
        top: calc(var(--df-mobile-header-h, 56px) + env(safe-area-inset-top, 0px));
        z-index: 1020;
    }

    body:has(.main-header.scrolled) .df-feed-tabs-header {
        top: calc(var(--df-mobile-header-h, 56px) + env(safe-area-inset-top, 0px));
    }
}

@media (max-width: 575.98px) {
    .df-feed-tabs {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .df-feed-tab {
        flex: 1 1 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.84rem;
        text-align: center;
    }

    .df-feed-tabs-header .df-home-facts-filter-btn {
        margin-right: 0.35rem;
    }
}

/* Home latest-facts infinite scroll loader */
.df-facts-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 64px;
    padding: 1.35rem 0 0.35rem;
    color: #61756b;
}

.df-facts-loader-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 12px;
}

.df-facts-loader .loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    opacity: 0;
    transform: translateY(0);
}

.df-facts-loader-label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.df-facts-loader.is-loading .loading-dot {
    opacity: 0.35;
    animation: df-facts-load-dot 1s ease-in-out infinite;
}

.df-facts-loader.is-loading .loading-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.df-facts-loader.is-loading .loading-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.df-facts-loader.is-loading .df-facts-loader-label {
    opacity: 1;
}

@keyframes df-facts-load-dot {
    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/*
|---------------------------------------------------------
| Wider collapsed sidebar (matches sidebar.css 78px)
|---------------------------------------------------------
*/
.work-force-main-section {
    margin-left: 80px;
}

@media screen and (max-width: 768px) {
    .work-force-main-section {
        margin-left: 0;
    }
}

/*
|---------------------------------------------------------
| RTL layout (Arabic / Urdu) — sidebar on the right
|---------------------------------------------------------
*/
body.df-rtl .sideBar_div,
body.df-rtl .sidebar {
    left: auto;
    right: 0;
}

body.df-rtl .work-force-main-section {
    margin-left: 0;
    margin-right: 80px;
}

body.df-rtl .sideBar_div .close .nav-links li .sub-menu,
body.df-rtl .sidebar.close .nav-links li .sub-menu {
    left: auto;
    right: 100%;
    border-radius: 6px 0 0 6px;
}

body.df-rtl .close_sidebar {
    margin-left: 0;
    margin-right: 100%;
}

@keyframes sidebarMoveRtl {
    from {
        transform: translateX(78px);
    }

    to {
        transform: translateX(0);
    }
}

body.df-rtl .sideBar_div {
    animation-name: sidebarMoveRtl;
}

/* Header actions opposite the right sidebar; dropdowns open inward */
body.df-rtl .main-header .hero-top-actions,
body.df-rtl .hero-top-actions {
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: auto;
    width: auto;
    max-width: calc(100% - 12px);
    /* Keep LTR packing so the cluster sits on the physical left
       (away from the right sidebar) and button order stays stable */
    direction: ltr;
    justify-content: flex-start;
}

body.df-rtl .profile-dropdown,
body.df-rtl .notifications-dropdown,
body.df-rtl .language-dropdown {
    right: auto;
    left: 0;
    max-width: min(400px, calc(100vw - 24px));
}

/* Sidebar profile menu opens inward (left of the right-side sidebar) */
body.df-rtl .sidebar-profile-wrapper .profile-dropdown {
    left: auto;
    right: calc(100% + 12px);
}

/* Create is the leftmost control — keep its menu aligned to the trigger */
body.df-rtl .create-dropdown {
    left: 0;
    right: auto;
    max-width: min(280px, calc(100vw - 24px));
}

body.df-rtl .df-fact-detail-header-inner {
    padding-right: 0.85rem;
    padding-left: 11.5rem;
}

@media (max-width: 767.98px) {
    body.df-rtl .df-fact-detail-header-inner {
        padding-right: 0.85rem;
        padding-left: 8.5rem;
    }

    body.df-rtl .profile-dropdown {
        left: 0;
        right: auto;
    }
}

@media (min-width: 768px) {
    body.df-rtl .df-fact-detail-header-inner {
        padding-right: 0.85rem;
        padding-left: 16rem;
    }
}

@media screen and (max-width: 768px) {
    body.df-rtl .work-force-main-section {
        margin-right: 0;
    }

    body.df-rtl .notifications-dropdown {
        width: min(350px, calc(100vw - 24px));
    }
}

/*
|---------------------------------------------------------
| Language switch loader
|---------------------------------------------------------
*/
.df-lang-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.df-lang-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.df-lang-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 70, 47, 0.14);
}

.df-lang-loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #d7e5de;
    border-top-color: #0f462f;
    animation: df-lang-spin 0.7s linear infinite;
}

.df-lang-loader-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f462f;
    line-height: 1.2;
}

/*
|---------------------------------------------------------
| Page navigation loader (center spinner)
|---------------------------------------------------------
*/
.df-nav-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.df-nav-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.df-nav-loader__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #d7e5de;
    border-top-color: var(--df-brand-primary, #186445);
    animation: df-lang-spin 0.7s linear infinite;
}

@keyframes df-lang-spin {
    to {
        transform: rotate(360deg);
    }
}

body.df-lang-switching #df-page-content,
body.df-lang-switching #sideBar_id .nav-links {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

body.df-rtl .landing-cat-title,
body.df-rtl .menu-item-title,
body.df-rtl .df-fact-poster-stat,
body.df-rtl .section-title {
    direction: rtl;
    unicode-bidi: plaintext;
}

body.df-rtl .language-dropdown-item {
    text-align: right;
}

/*
|---------------------------------------------------------
| RTL category cards — home, categories page, subcats
|---------------------------------------------------------
*/
body.df-rtl .home-categories.landing-categories .landing-cat-link,
body.df-rtl .quiz-subcategories.landing-categories .landing-cat-link {
    text-align: right;
}

body.df-rtl .home-categories .landing-cat-title,
body.df-rtl .home-categories .landing-cat-link--cover .landing-cat-title,
body.df-rtl .home-categories .landing-cat-count,
body.df-rtl .home-categories .landing-cat-link--cover .landing-cat-count,
body.df-rtl .quiz-subcategories .landing-cat-title,
body.df-rtl .quiz-subcategories .landing-cat-count {
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
}

/*
|---------------------------------------------------------
| Urdu typography — Noto Nastaliq (replaces Latin fallbacks)
| Nastaliq needs more line-height and slightly smaller sizes.
|---------------------------------------------------------
*/
html[lang="ur"],
html[lang="ur"] body {
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Urdu Typesetting", serif;
    line-height: 2.35;
    font-size: 13.5px;
}

html[lang="ur"] .landing-cat-title,
html[lang="ur"] .landing-cat-count,
html[lang="ur"] .landing-cat-views,
html[lang="ur"] .landing-cat-more-label,
html[lang="ur"] .menu-item-title,
html[lang="ur"] .menuitem p,
html[lang="ur"] .df-fact-poster-stat,
html[lang="ur"] .section-title,
html[lang="ur"] .hero-logo-text,
html[lang="ur"] .hero-logo-tagline,
html[lang="ur"] .hero-description,
html[lang="ur"] .df-hero-stat-count,
html[lang="ur"] .df-hero-stat-label,
html[lang="ur"] .categories-index-card__title,
html[lang="ur"] .categories-index-card__count,
html[lang="ur"] .sub-menu .sub-menu-title h5,
html[lang="ur"] .sub-menu .menu-item-title,
html[lang="ur"] .sub-menu-card p,
html[lang="ur"] .sub-menu-card .sub-menu-title2,
html[lang="ur"] .language-dropdown-item label,
html[lang="ur"] .df-lang-loader-label {
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Urdu Typesetting", serif;
    line-height: 2.2;
}

/* Urdu sizes — a bit smaller than other non-English locales */
html[lang="ur"] .landing-categories .landing-cat-title {
    font-size: 11px;
}

html[lang="ur"] .landing-categories .landing-cat-link--cover .landing-cat-title {
    font-size: 10px;
}

html[lang="ur"] .landing-categories .landing-cat-link--cover .landing-cat-count,
html[lang="ur"] .landing-categories .landing-cat-link--cover .landing-cat-views {
    font-size: 9px;
}

html[lang="ur"] .home-categories .landing-cat-title,
html[lang="ur"] .home-categories .landing-cat-link--cover .landing-cat-title {
    font-size: 12.5px;
}

html[lang="ur"] .home-categories .landing-cat-count,
html[lang="ur"] .home-categories .landing-cat-link--cover .landing-cat-count {
    font-size: 10px;
}

html[lang="ur"] .home-categories .landing-cat-more-label {
    font-size: 11px;
}

html[lang="ur"] .quiz-subcategories .landing-cat-title {
    font-size: 11px;
}

html[lang="ur"] .quiz-subcategories .landing-cat-count {
    font-size: 10px;
}

html[lang="ur"] .menu-item-title,
html[lang="ur"] .menuitem p,
html[lang="ur"] .menuitem > a > .item_img + .menu-item-title {
    font-size: 10px;
    line-height: 1.85;
}

html[lang="ur"] .categories-index-card__title {
    font-size: 18px;
    line-height: 1.85;
}

html[lang="ur"] .categories-index-card__count {
    font-size: 12px;
    line-height: 1.85;
}

html[lang="ur"] .hero-logo-text {
    line-height: 1.7;
}

html[lang="ur"] .hero-logo-tagline,
html[lang="ur"] .hero-description {
    line-height: 2.3;
}

html[lang="ur"] .df-fact-poster-stat {
    font-size: 1.1rem;
    line-height: 2.15;
}

html[lang="ur"] .df-fact-detail-poster .df-fact-poster-stat {
    font-size: 1.32rem;
    line-height: 2.15;
}

@media (min-width: 768px) {
    html[lang="ur"] .df-fact-poster-stat {
        font-size: 1.18rem;
    }

    html[lang="ur"] .df-fact-detail-poster .df-fact-poster-stat {
        font-size: 1.45rem;
    }
}

@media (min-width: 1200px) {
    html[lang="ur"] .df-fact-poster-stat {
        font-size: 1.12rem;
    }
}

/*
|---------------------------------------------------------
| Non-English typography — posters & category cards
| Arabic / Urdu / Hindi scripts read smaller at the same
| px size as Latin; bump titles so they match English weight.
|---------------------------------------------------------
*/
html:not([lang="en"]) .landing-categories .landing-cat-title {
    font-size: 14px;
}

html:not([lang="en"]) .landing-categories .landing-cat-link--cover .landing-cat-title {
    font-size: 13px;
}

html:not([lang="en"]) .landing-categories .landing-cat-link--cover .landing-cat-count,
html:not([lang="en"]) .landing-categories .landing-cat-link--cover .landing-cat-views {
    font-size: 11px;
}

html:not([lang="en"]) .home-categories .landing-cat-title,
html:not([lang="en"]) .home-categories .landing-cat-link--cover .landing-cat-title {
    font-size: 16px;
}

html:not([lang="en"]) .home-categories .landing-cat-count,
html:not([lang="en"]) .home-categories .landing-cat-link--cover .landing-cat-count {
    font-size: 12px;
}

html:not([lang="en"]) .home-categories .landing-cat-more-label {
    font-size: 14px;
}

html:not([lang="en"]) .quiz-subcategories .landing-cat-title {
    font-size: 14px;
}

html:not([lang="en"]) .quiz-subcategories .landing-cat-count {
    font-size: 12px;
}

html:not([lang="en"]) .df-fact-poster-stat {
    font-size: 1.42rem;
}

html:not([lang="en"]) .df-fact-detail-poster .df-fact-poster-stat {
    font-size: 1.72rem;
}

@media (min-width: 768px) {
    html:not([lang="en"]) .df-fact-poster-stat {
        font-size: 1.55rem;
    }

    html:not([lang="en"]) .df-fact-detail-poster .df-fact-poster-stat {
        font-size: 1.9rem;
    }
}

@media (min-width: 1200px) {
    html:not([lang="en"]) .df-fact-poster-stat {
        font-size: 1.45rem;
    }
}

/*
|---------------------------------------------------------
| RTL sidebar category hover modals
|---------------------------------------------------------
*/
body.df-rtl .sub-menu {
    direction: rtl;
    text-align: right;
}

body.df-rtl .sub-menu .sub-menu-title {
    flex-direction: row;
}

body.df-rtl .sub-menu .sub-menu-title h5 {
    justify-content: flex-end;
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
}

body.df-rtl .sub-menu .menu-item-title,
body.df-rtl .sub-menu .sub-menu-cat-title,
body.df-rtl .sub-menu .sub-menu-cat-count {
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
}

body.df-rtl .sub-menu-card p,
body.df-rtl .sub-menu-card .sub-menu-title2 {
    justify-content: flex-end;
    text-align: right;
}

/*
|---------------------------------------------------------
| RTL hero — logo, title, description aligned to the start
|---------------------------------------------------------
*/
body.df-rtl .hero-section,
body.df-rtl .quiz-hero-section {
    align-items: flex-start;
}

body.df-rtl .hero-content {
    margin-inline-start: 0;
    margin-inline-end: auto;
    text-align: right;
    direction: rtl;
}

body.df-rtl .hero-logo-container {
    text-align: right;
}

body.df-rtl .hero-logo {
    flex-direction: row;
    justify-content: flex-start;
}

body.df-rtl .hero-logo-text,
body.df-rtl .hero-logo-tagline,
body.df-rtl .hero-description {
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
}

body.df-rtl .hero-buttons {
    justify-content: flex-start;
}

body.df-rtl .df-hero-stat-copy,
body.df-rtl .df-hero-stat-count,
body.df-rtl .df-hero-stat-label {
    text-align: right;
}

/*
|---------------------------------------------------------
| Categories index — full-width section cards (subscribed-style)
|---------------------------------------------------------
*/
/* Desktop: match .hero-section horizontal inset (40px). Mobile kept below. */
.categories-index-page {
    padding-left: 40px;
    padding-right: 40px;
}

.categories-index-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.categories-index-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
}

.categories-index-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        165deg,
        color-mix(in srgb, var(--cat-bg-1, #0F462F) 18%, #fff) 0%,
        color-mix(in srgb, var(--cat-bg-2, var(--cat-bg-1, #0F462F)) 10%, #fff) 42%,
        #fff 78%
    );
    pointer-events: none;
    z-index: 0;
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
    .categories-index-card::before {
        background-image: linear-gradient(
            165deg,
            var(--cat-bg-1, #0F462F) 0%,
            #fff 72%
        );
        opacity: 0.12;
    }
}

.categories-index-card > * {
    position: relative;
    z-index: 1;
}

.categories-index-card__header {
    padding: 14px 130px 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

body.df-rtl .categories-index-card__header {
    padding: 14px 16px 14px 130px;
}

.categories-index-card__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1;
}

.categories-index-card__brand:hover .categories-index-card__title {
    color: #0F462F;
}

.categories-index-card__logo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.categories-index-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.categories-index-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.categories-index-card__title {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a2e;
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories-index-card__count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #868e96;
    font-family: "Poppins", "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.2;
}

.categories-index-card__body {
    padding: 0.75rem;
}

.categories-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .categories-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .categories-index-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .categories-index-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .categories-index-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.categories-index-card__empty {
    padding: 0.75rem 0.25rem 0.5rem;
    margin: 0;
    text-align: left;
    color: #868e96;
    font-size: 0.8125rem;
    font-weight: 600;
}

.categories-index-card__empty a {
    color: #0F462F;
    font-weight: 800;
    text-decoration: none;
}

.categories-index-card__empty a:hover {
    text-decoration: underline;
}

.categories-index-card .home-categories.landing-categories .landing-cat-img--cover {
    border-radius: 6px;
}

.categories-index-card .home-categories .landing-cat-link--cover .landing-cat-title {
    font-size: 13px;
}

/*
|---------------------------------------------------------
| Category subscribe (+ / tick) buttons
|---------------------------------------------------------
*/
.landing-cat-tile {
    position: relative;
    height: 100%;
}

.df-cat-subscribe-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #212529;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.df-cat-subscribe-btn i {
    font-size: 14px;
    line-height: 1;
}

.df-cat-subscribe-btn:hover,
.df-cat-subscribe-btn:focus-visible {
    background: #fff;
    color: #0F462F;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    outline: none;
}

.df-cat-subscribe-btn.is-subscribed {
    color: #0F462F;
}

.df-cat-subscribe-btn.is-subscribed:hover,
.df-cat-subscribe-btn.is-subscribed:focus-visible {
    color: #212529;
}

.df-cat-subscribe-btn.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.df-cat-subscribe-btn--card {
    top: 12px;
    right: 12px;
    width: auto;
    height: auto;
    min-height: 32px;
    padding: 0.35rem 0.8rem;
    gap: 0.35rem;
    border-radius: 5px;
    background: #fff;
    color: #141414;
}

.df-cat-subscribe-btn--card i {
    font-size: 13px;
}

.df-cat-subscribe-btn--card .df-cat-subscribe-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.df-cat-subscribe-btn--card.is-subscribed {
    background: #141414;
    border-color: #141414;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.df-cat-subscribe-btn--card.is-subscribed:hover,
.df-cat-subscribe-btn--card.is-subscribed:focus-visible {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.df-cat-subscribe-btn--card:not(.is-subscribed):hover,
.df-cat-subscribe-btn--card:not(.is-subscribed):focus-visible {
    background: #141414;
    border-color: #141414;
    color: #fff;
}

.df-cat-subscribe-btn--card .df-cat-subscribe-tip {
    top: 50%;
    right: calc(100% + 8px);
    transform: translateY(-50%);
}

.df-cat-subscribe-btn--card .df-cat-subscribe-tip::before {
    top: 50%;
    right: -4px;
    left: auto;
    margin-top: -4px;
}

.df-cat-subscribe-btn--card:hover .df-cat-subscribe-tip,
.df-cat-subscribe-btn--card:focus-visible .df-cat-subscribe-tip {
    transform: translateY(-50%);
}

.df-cat-subscribe-btn--tile {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
}

.df-cat-subscribe-btn--tile i {
    font-size: 12px;
}

.df-cat-subscribe-tip {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    white-space: nowrap;
    background: #212529;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 5px 8px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    z-index: 4;
}

.df-cat-subscribe-tip::before {
    content: "";
    position: absolute;
    top: -4px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #212529;
    transform: rotate(45deg);
}

.df-cat-subscribe-btn:hover .df-cat-subscribe-tip,
.df-cat-subscribe-btn:focus-visible .df-cat-subscribe-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.df-rtl .df-cat-subscribe-btn,
body.df-rtl .df-cat-subscribe-btn--card,
body.df-rtl .df-cat-subscribe-btn--tile {
    right: auto;
    left: 8px;
}

body.df-rtl .df-cat-subscribe-btn--card {
    left: 12px;
}

body.df-rtl .df-cat-subscribe-btn--tile {
    left: 6px;
}

body.df-rtl .df-cat-subscribe-tip {
    right: auto;
    left: 0;
}

body.df-rtl .df-cat-subscribe-tip::before {
    right: auto;
    left: 10px;
}

body.df-rtl .df-cat-subscribe-btn--card .df-cat-subscribe-tip {
    left: calc(100% + 8px);
    right: auto;
}

body.df-rtl .df-cat-subscribe-btn--card .df-cat-subscribe-tip::before {
    left: -4px;
    right: auto;
}

@media (max-width: 575.98px) {
    .df-cat-subscribe-btn--tile {
        width: 22px;
        height: 22px;
        top: 4px;
        right: 4px;
    }

    .df-cat-subscribe-btn--tile i {
        font-size: 11px;
    }

    .df-cat-subscribe-tip {
        font-size: 10px;
        padding: 4px 6px;
    }

    /* Match landing gutters: drop extra page inset; tighten parent card chrome */
    .categories-index-page.home-page-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .categories-index-page {
        padding-left: 0;
        padding-right: 0;
    }

    .categories-index-sections {
        gap: 0.75rem;
    }

    .categories-index-card__header {
        padding: 12px 118px 12px 12px;
    }

    body.df-rtl .categories-index-card__header {
        padding: 12px 12px 12px 118px;
    }

    .df-cat-subscribe-btn--card {
        top: 10px;
        right: 8px;
        min-height: 30px;
        padding: 0.3rem 0.65rem;
    }

    .df-cat-subscribe-btn--card .df-cat-subscribe-label {
        font-size: 11px;
    }

    body.df-rtl .df-cat-subscribe-btn--card {
        left: 8px;
    }

    .categories-index-card__logo {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .categories-index-card__brand {
        gap: 8px;
    }

    .categories-index-card__title {
        font-size: 1rem;
    }

    .categories-index-card__count {
        font-size: 0.75rem;
    }

    .categories-index-card__body {
        padding: 0.5rem;
    }

    .categories-index-grid {
        gap: 0.35rem;
    }

    .categories-index-card .home-categories.landing-categories .landing-cat-link--cover {
        padding: 2px;
    }

    .categories-index-card .home-categories.landing-categories .landing-cat-link--cover:hover {
        padding: 2px;
    }

    .categories-index-card .home-categories.landing-categories .landing-cat-img--cover {
        border-radius: 4px;
        margin-bottom: 2px !important;
    }

    .categories-index-card .home-categories .landing-cat-link--cover .landing-cat-title {
        font-size: 11px;
    }
}

/*
|---------------------------------------------------------
| Mobile top header + bottom navigation
|---------------------------------------------------------
*/
.df-mobile-header,
.df-mobile-nav {
    display: none;
}

@media (max-width: 991.98px) {
    :root {
        --df-mobile-header-h: 56px;
        --df-mobile-nav-h: 64px;
    }

    .main-header {
        display: none !important;
    }

    .mainPag_div,
    .mobile_menu {
        display: none !important;
    }

    body {
        padding-top: calc(var(--df-mobile-header-h) + env(safe-area-inset-top, 0px));
        padding-bottom: calc(var(--df-mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    .df-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1045;
        display: block;
        min-height: var(--df-mobile-header-h);
        padding-top: env(safe-area-inset-top, 0px);
        background: #ffffff;
        border-bottom: 1px solid rgba(24, 100, 69, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    }

    .df-mobile-header__bar {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        min-height: var(--df-mobile-header-h);
        padding: 0.5rem 0.75rem;
    }

    .df-mobile-header__brand {
        flex: 1 1 auto;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        line-height: 0;
        text-decoration: none;
        color: inherit;
    }

    .df-mobile-header__favicon {
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        border-radius: 5px;
        object-fit: contain;
        display: block;
    }

    .df-mobile-header__sitename {
        flex: 1 1 auto;
        min-width: 0;
        font-family: "Righteous", cursive;
        font-size: 1.15rem;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: 0.02em;
        color: #141414;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .df-mobile-header__back,
    .df-mobile-header__icon-btn,
    .df-mobile-header__search-close {
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: #1a1a1a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .df-mobile-header__back {
        background: #2a2a2a;
        color: #ffffff;
    }

    .df-mobile-header__back:hover,
    .df-mobile-header__back:focus-visible {
        background: #1a1a1a;
        color: #ffffff;
        outline: none;
    }

    /* Light-page icon buttons (search + language) */
    .df-mobile-header__icon-btn:hover,
    .df-mobile-header__search-close:hover,
    .df-mobile-header__icon-btn:focus-visible,
    .df-mobile-header__search-close:focus-visible {
        background: rgba(24, 100, 69, 0.08);
        color: var(--df-brand-primary, #186445);
        outline: none;
    }

    .df-mobile-header__back iconify-icon,
    .df-mobile-header__icon-btn iconify-icon,
    .df-mobile-header__search-close iconify-icon {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .df-mobile-header__actions {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 0.15rem;
        margin-left: auto;
    }

    .df-mobile-header__lang-wrapper {
        position: relative;
        flex: 0 0 auto;
    }

    .df-mobile-header__lang-wrapper .language-dropdown {
        right: 0;
        top: calc(100% + 8px);
        min-width: 200px;
        max-width: min(280px, calc(100vw - 24px));
        z-index: 1050;
    }

    body.df-rtl .df-mobile-header__lang-wrapper .language-dropdown {
        right: auto;
        left: 0;
    }

    .df-mobile-header__title {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -0.02em;
        color: #141414;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Expandable search: logo-height (32px), light bg, 5px radius */
    .df-mobile-header__search {
        position: relative;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        min-width: 0;
        height: 32px;
        padding: 0 0.55rem 0 2.15rem;
        border-radius: 5px;
        background: #f7f8f7;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .df-mobile-header__search-icon {
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 15px;
        width: 15px;
        height: 15px;
        color: #9ca3af;
        pointer-events: none;
    }

    .df-mobile-header__search-input {
        width: 100%;
        min-width: 0;
        height: 100%;
        border: 0;
        background: transparent;
        color: #141414;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1;
        outline: none;
        box-shadow: none;
        padding: 0 0.4rem;
        -webkit-appearance: none;
        appearance: none;
    }

    .df-mobile-header__search-input::placeholder {
        color: #9ca3af;
        font-weight: 500;
    }

    .df-mobile-header__search-input::-webkit-search-decoration,
    .df-mobile-header__search-input::-webkit-search-cancel-button,
    .df-mobile-header__search-input::-webkit-search-results-button,
    .df-mobile-header__search-input::-webkit-search-results-decoration {
        -webkit-appearance: none;
        appearance: none;
    }

    /* Search expands across the bar; hide all other header chrome */
    .df-mobile-header__search--expandable {
        display: none;
        flex: 1 1 auto;
        width: 100%;
        padding-right: 2rem;
    }

    .df-mobile-header__search--expandable .df-mobile-header__search-close {
        position: absolute;
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        color: #6b7280;
    }

    .df-mobile-header.is-search-open [data-df-mobile-header-chrome] {
        display: none !important;
    }

    .df-mobile-header.is-search-open .df-mobile-header__search--expandable {
        display: flex;
    }

    body.df-rtl .df-mobile-header__actions {
        margin-left: 0;
        margin-right: auto;
    }

    body.df-rtl .df-mobile-header__search {
        padding: 0 2.15rem 0 0.55rem;
    }

    body.df-rtl .df-mobile-header__search-icon {
        left: auto;
        right: 0.5rem;
    }

    body.df-rtl .df-mobile-header__search--expandable {
        padding-right: 0.55rem;
        padding-left: 2rem;
    }

    body.df-rtl .df-mobile-header__search--expandable .df-mobile-header__search-close {
        right: auto;
        left: 2px;
    }

    body.df-rtl .df-mobile-header__back iconify-icon {
        transform: scaleX(-1);
    }

    #footer {
        margin-bottom: 0;
        padding-bottom: 1.5rem;
    }

    .df-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        gap: 0;
        min-height: 64px;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        border-top: 1px solid rgba(24, 100, 69, 0.12);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
    }

    .df-mobile-nav__item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        padding: 4px 2px;
        margin: 0;
        border: 0;
        background: transparent;
        color: #6b7280;
        text-decoration: none;
        font-family: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.15s ease;
    }

    .df-mobile-nav__item:hover,
    .df-mobile-nav__item:focus-visible {
        color: var(--df-brand-primary, #186445);
        outline: none;
    }

    .df-mobile-nav__item.is-active {
        color: var(--df-brand-primary, #186445);
    }

    .df-mobile-nav__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        line-height: 1;
    }

    .df-mobile-nav__icon iconify-icon {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }

    .df-mobile-nav__icon--avatar {
        width: 28px;
        height: 28px;
    }

    .df-mobile-nav__avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        border: 1.5px solid rgba(24, 100, 69, 0.25);
    }

    .df-mobile-nav__item.is-active .df-mobile-nav__avatar {
        border-color: var(--df-brand-primary, #186445);
    }

    .df-mobile-nav__item.is-active .df-mobile-nav__icon {
        transform: translateY(-1px);
    }

    .df-mobile-nav__label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Category / home heroes: no top header clutter on mobile */
    .hero-section {
        min-height: 420px;
        padding: 24px 16px 28px;
    }

    .hero-section--category .hero-logo img.hero-logo-cover {
        width: 72px;
        height: 96px;
    }

    .df-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Keep .home-page-section gutters (28px / 14px @ ≤768) — do not tighten here */

    /* Fact posters: single column, free scroll (no snap-per-post).
       !important beats Bootstrap pt-4/pb-5 so tabs sit flush under the mobile header
       and cards keep the landing 10px gutters (not stacked on .home-page-section inset). */
    #facts.home-page-section,
    #category-facts.home-page-section,
    #publisher-facts.home-page-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Likes/bookmarks: drop section inset so posters match landing 10px gutters */
    #likes.home-page-section {
        padding-left: 0;
        padding-right: 0;
    }

    #facts .section-title,
    #facts > p.text-dark,
    #category-facts .section-title,
    #publisher-facts .df-pagination,
    #likes .df-pagination,
    #likes [data-likes-empty] {
        padding-left: 12px;
        padding-right: 12px;
    }

    /*
     * Fact detail: match landing poster gutters on mobile.
     * Landing uses 0 section inset + .df-fact-poster-item 10px;
     * detail was stacking .home-page-section 14px + Bootstrap col gutters.
     */
    .df-fact-detail-hero.home-page-section,
    .df-fact-detail-related.home-page-section {
        padding-left: 0;
        padding-right: 0;
    }

    .df-fact-detail-hero.home-page-section > .row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .df-fact-detail-hero.home-page-section > .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .df-fact-detail-poster {
        max-width: 100%;
        margin: 0;
    }

    .df-fact-detail-info,
    .df-fact-detail-stats {
        padding-left: 10px;
        padding-right: 10px;
    }

    .df-fact-detail-related-heading {
        padding-left: 12px;
        padding-right: 12px;
    }

    .df-fact-poster-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .df-fact-poster-item {
        padding: 0 10px;
    }

    /* 10% taller than desktop (3 / 4.25 → 3 / 4.675) */
    .df-fact-poster {
        height: auto;
        aspect-ratio: 3 / 4.675;
        border-radius: 12px;
    }

    .df-fact-poster-top {
        top: 0.85rem;
        right: 0.85rem;
        left: 0.85rem;
        gap: 0.45rem;
    }

    .df-fact-poster-cats {
        max-width: calc(100% - 3.25rem);
        gap: 0.35rem;
    }

    .df-fact-poster-cat {
        max-width: 10rem;
        padding: 0.32rem 0.62rem;
        font-size: 0.72rem;
    }

    .df-fact-poster-actions {
        gap: 0.55rem;
    }

    .df-fact-poster-action {
        width: 42px;
        height: 42px;
    }

    .df-fact-poster-action i {
        font-size: 1.15rem;
    }

    .df-fact-poster-footer {
        left: 1rem;
        right: 4.25rem;
        bottom: 1.15rem;
        gap: 0.85rem;
    }

    .df-fact-poster-stat {
        font-size: 1.45rem;
        -webkit-line-clamp: 6;
    }

    .df-fact-poster-publisher-name {
        max-width: 14rem;
        font-size: 0.88rem;
    }

    .df-fact-poster-publisher-username {
        max-width: 14rem;
        font-size: 0.72rem;
    }

    .df-pagination {
        padding: 1.25rem 12px 1.5rem;
    }

    .df-facts-loader {
        padding: 1.25rem 12px;
    }
}

@media (max-width: 575.98px) {
    .df-mobile-nav__label {
        font-size: 9px;
    }

    .df-mobile-nav__icon iconify-icon {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .hero-section--category .hero-description {
        font-size: 0.9rem;
        line-height: 1.45;
    }
}

body.df-rtl .df-mobile-nav {
    direction: rtl;
}

/*
|----------------------------------------------------------------
| Fact of the Day — Netflix-style preview modal
|----------------------------------------------------------------
*/
.df-fotd-modal .modal-backdrop {
    --bs-backdrop-opacity: 0.72;
}

.df-fotd-modal-dialog {
    max-width: 860px;
    margin: 1.25rem auto;
}

.df-fotd-modal-content {
    position: relative;
    background: #fff;
    border: 1px solid #404040;
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(90vh, 920px);
    color: #141414;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    -webkit-overflow-scrolling: touch;
}

.df-fotd-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 5;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #141414;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.df-fotd-modal-close:hover {
    background: #f2f2f2;
    color: #000;
    transform: scale(1.05);
}

.df-fotd-modal-banner {
    position: relative;
    background: #141414;
    color: #fff;
}

.df-fotd-modal-side-actions {
    position: absolute;
    top: 50%;
    right: 1rem;
    left: auto;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transform: translateY(-50%);
    pointer-events: auto;
}

.df-fotd-modal-side-actions .df-fact-poster-action {
    width: 42px;
    height: 42px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.df-fotd-modal-side-actions .df-fact-poster-action i {
    font-size: 1.1rem;
}

.df-fotd-modal-hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.df-fotd-modal-hero-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 320px;
    max-height: 520px;
    object-fit: cover;
    object-position: center top;
}

.df-fotd-modal-hero-fallback {
    min-height: 320px;
    width: 100%;
}

.df-fotd-modal-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 20, 0.08) 28%,
        rgba(20, 20, 20, 0.55) 68%,
        #141414 100%
    );
    pointer-events: none;
}

.df-fotd-modal-banner-meta {
    position: relative;
    margin-top: -88px;
    padding: 0 2rem 1.5rem;
    z-index: 1;
}

.df-fotd-modal-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.df-fotd-modal-title {
    margin: 0 0 0.95rem;
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.df-fotd-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.df-fotd-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border: 0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.df-fotd-modal-btn:disabled {
    opacity: 0.72;
    cursor: default;
}

.df-fotd-modal-btn--primary {
    background: #fff;
    color: #141414;
}

.df-fotd-modal-btn--primary:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #141414;
    transform: translateY(-1px);
}

.df-fotd-modal-btn--ghost {
    background: rgba(109, 109, 110, 0.55);
    color: #fff;
}

.df-fotd-modal-btn--ghost:hover {
    background: rgba(109, 109, 110, 0.75);
    color: #fff;
}

.df-fotd-modal-btn i {
    font-size: 1.15rem;
    line-height: 1;
}

.df-fotd-modal-panel {
    background: #fff;
    color: #141414;
    padding: 1.5rem 2rem 1.75rem;
}

.df-fotd-modal-desc {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #222;
}

.df-fotd-modal-desc--muted {
    color: #7a8a82;
}

.df-fotd-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.df-fotd-modal-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(24, 100, 69, 0.18);
    background: #f3fbf7;
    color: #0f462f;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.df-fotd-modal-tag:hover {
    background: #e7f7ef;
    color: #062418;
}

.df-fotd-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.df-fotd-modal-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    background: #f7faf8;
    border: 1px solid rgba(24, 100, 69, 0.08);
}

.df-fotd-modal-stat-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #186445;
    box-shadow: 0 2px 8px rgba(15, 70, 47, 0.08);
}

.df-fotd-modal-stat-icon i {
    font-size: 1.05rem;
    line-height: 1;
}

.df-fotd-modal-stat-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.df-fotd-modal-stat-count {
    font-size: 1.05rem;
    font-weight: 800;
    color: #141414;
    letter-spacing: -0.02em;
}

.df-fotd-modal-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #61756b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.12rem;
}

.df-fotd-modal-divider {
    width: 100%;
    height: 0;
    margin: 1.35rem 0;
    border: 0;
    border-top: 1px solid rgb(191 191 191);
}

.df-fotd-modal-publisher {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
}

.df-fotd-modal-publisher.is-static {
    pointer-events: none;
    cursor: default;
}

.df-fotd-modal-publisher:hover .df-fotd-modal-publisher-name {
    color: #0f462f;
}

.df-fotd-modal-publisher-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    object-fit: cover;
    background: #eef4f0;
    border: 1px solid rgba(24, 100, 69, 0.12);
}

.df-fotd-modal-publisher-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.df-fotd-modal-publisher-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #141414;
    transition: color 0.15s ease;
}

.df-fotd-modal-publisher-username {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 400;
    color: #8a9a91;
}

@media (max-width: 767.98px) {
    .df-fotd-modal-dialog {
        max-width: calc(100% - 1.5rem);
        margin: 0.75rem auto;
    }

    .df-fotd-modal-hero,
    .df-fotd-modal-hero-img,
    .df-fotd-modal-hero-fallback {
        min-height: 240px;
    }

    .df-fotd-modal-hero-img {
        max-height: 380px;
    }

    .df-fotd-modal-banner-meta {
        margin-top: -56px;
        padding: 0 1.15rem 1.15rem;
    }

    .df-fotd-modal-panel {
        padding: 1.15rem 1.15rem 1.35rem;
    }

    .df-fotd-modal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .df-fotd-modal-close {
        top: 10px;
        right: 10px;
        left: auto;
    }

    .df-fotd-modal-side-actions {
        right: 0.75rem;
        gap: 0.45rem;
    }

    .df-fotd-modal-side-actions .df-fact-poster-action {
        width: 38px;
        height: 38px;
    }
}

body.df-rtl .df-fotd-modal-close {
    right: 14px;
    left: auto;
}

body.df-rtl .df-fotd-modal-side-actions {
    right: 1rem;
    left: auto;
}

/*
|----------------------------------------------------------------
| PWA install modal — cover hero + split content
|----------------------------------------------------------------
*/
.df-pwa-modal-banner {
    color: #fff;
    overflow: visible;
    background: #141414;
}

.df-pwa-modal-hero {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.df-pwa-modal-cover-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.df-pwa-modal-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 70, 47, 0.35) 0%,
        rgba(15, 70, 47, 0.62) 45%,
        rgba(15, 70, 47, 0.92) 100%
    ),
    linear-gradient(
        90deg,
        rgba(15, 70, 47, 0.72) 0%,
        rgba(15, 70, 47, 0.45) 55%,
        rgba(15, 70, 47, 0.28) 100%
    );
    pointer-events: none;
}

.df-pwa-modal-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.85fr);
    grid-template-areas: "copy visual";
    align-items: center;
    gap: 1.25rem 1.5rem;
    min-height: 340px;
    padding: 2.25rem 2rem 1.75rem;
}

.df-pwa-modal-copy {
    grid-area: copy;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.df-pwa-modal-visual {
    grid-area: visual;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: stretch;
    min-height: 280px;
}

.df-pwa-modal-brand-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.df-pwa-modal-tagline {
    margin: 0 0 1rem;
    max-width: 22ch;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.df-pwa-modal-counters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0 0 1.25rem;
    max-width: 420px;
}

.df-pwa-modal-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.df-pwa-modal-counter-value {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.df-pwa-modal-counter-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.df-pwa-modal-app-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
}

.df-pwa-store-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.df-pwa-store-chip:hover {
    color: #fff;
    background: #000;
    transform: translateY(-1px);
}

.df-pwa-store-chip i {
    font-size: 1.55rem;
    line-height: 1;
}

.df-pwa-store-chip span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 0.92rem;
    font-weight: 700;
}

.df-pwa-store-chip small {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.df-pwa-install-btn {
    min-height: 48px;
}

.df-pwa-modal-hero-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 360px;
    margin: 0;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.df-pwa-modal-status {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #f3fbf7;
    border: 1px solid rgba(24, 100, 69, 0.14);
    color: #0f462f;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.df-pwa-guides-intro {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #141414;
}

.df-pwa-guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.df-pwa-guide {
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 14px;
    background: #f7faf8;
    border: 1px solid rgba(24, 100, 69, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.df-pwa-guide.is-active {
    background: #eefaf3;
    border-color: rgba(24, 100, 69, 0.35);
    box-shadow: 0 8px 24px rgba(15, 70, 47, 0.08);
}

.df-pwa-guide-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.df-pwa-guide-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #186445;
    box-shadow: 0 2px 8px rgba(15, 70, 47, 0.08);
    font-size: 1.25rem;
}

.df-pwa-guide-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #141414;
    line-height: 1.2;
}

.df-pwa-guide-sub {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #61756b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.df-pwa-guide-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: df-pwa-step;
}

.df-pwa-guide-steps li {
    position: relative;
    counter-increment: df-pwa-step;
    padding: 0.55rem 0 0.55rem 2.15rem;
    border-top: 1px solid rgba(24, 100, 69, 0.08);
    color: #222;
    font-size: 0.92rem;
    line-height: 1.45;
}

.df-pwa-guide-steps li:first-child {
    border-top: 0;
    padding-top: 0.15rem;
}

.df-pwa-guide-steps li::before {
    content: counter(df-pwa-step);
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #186445;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.df-pwa-guide-steps li:first-child::before {
    top: 0.15rem;
}

/* Home hero: app download full-width on phone */
@media (max-width: 767.98px) {
    .hero-section--home .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }

    .hero-section--home .hero-buttons > .hero-btn {
        min-height: 48px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    /* First two buttons: half width each (col-6) */
    .hero-section--home .hero-buttons > .hero-btn:not(.hero-btn-app) {
        flex: 1 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
        justify-content: center;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* App download: full width */
    .hero-section--home .hero-btn-app {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    /*
     * Centered dialogs taller than the viewport clip the top.
     * Pin to top so image / stats / download buttons stay visible.
     */
    .df-pwa-modal .df-pwa-modal-dialog.modal-dialog-centered {
        align-items: flex-start;
        min-height: 0;
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        padding: 0;
    }

    .df-pwa-modal .df-pwa-modal-content {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .df-pwa-modal-split {
        grid-template-columns: 88px minmax(0, 1fr);
        grid-template-areas:
            "visual title"
            "visual tagline"
            "counters counters"
            "buttons buttons";
        align-items: start;
        min-height: 0;
        padding: 1.15rem 1rem 1rem;
        gap: 0.35rem 0.75rem;
    }

    .df-pwa-modal-copy {
        display: contents;
    }

    .df-pwa-modal-brand-title {
        grid-area: title;
        font-size: clamp(1.35rem, 6.5vw, 1.7rem);
        padding-inline-end: 2rem;
        margin: 0;
        align-self: end;
    }

    .df-pwa-modal-tagline {
        grid-area: tagline;
        max-width: none;
        margin: 0 0 0.35rem;
        font-size: 0.9rem;
        padding-inline-end: 0.25rem;
    }

    .df-pwa-modal-counters {
        grid-area: counters;
        max-width: none;
        margin: 0.25rem 0 0;
        gap: 0.4rem;
    }

    .df-pwa-modal-counter {
        padding: 0.55rem 0.45rem;
        border-radius: 10px;
    }

    .df-pwa-modal-counter-value {
        font-size: 1.05rem;
    }

    .df-pwa-modal-counter-label {
        font-size: 0.62rem;
        letter-spacing: 0.02em;
    }

    .df-pwa-modal-app-btns {
        grid-area: buttons;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .df-pwa-store-chip {
        width: 100%;
        min-height: 46px;
        padding: 0.4rem 0.65rem;
    }

    .df-pwa-store-chip i {
        font-size: 1.35rem;
    }

    .df-pwa-store-chip span {
        font-size: 0.82rem;
    }

    .df-pwa-install-btn,
    .df-pwa-modal-app-btns [data-df-pwa-later] {
        width: 100%;
        justify-content: center;
        grid-column: 1 / -1;
    }

    .df-pwa-modal-visual {
        grid-area: visual;
        justify-content: center;
        align-items: flex-start;
        align-self: start;
        min-height: 0;
        margin: 0;
        width: 88px;
        max-width: 88px;
    }

    .df-pwa-modal-hero-img {
        width: 100%;
        max-height: 150px;
        height: auto;
        object-position: top center;
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
    }

    .df-pwa-modal .df-fotd-modal-panel {
        padding: 1rem 1rem 1.15rem;
    }

    .df-pwa-guides-intro {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .df-pwa-guides {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .df-pwa-guide {
        padding: 0.85rem 0.85rem 0.95rem;
    }

    .df-pwa-guide-steps li {
        font-size: 0.88rem;
    }

    .df-pwa-modal .df-fotd-modal-close {
        top: 10px;
        right: 10px;
        z-index: 6;
    }
}

@media (max-width: 380px) {
    .df-pwa-modal-split {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.55rem 0.6rem;
    }

    .df-pwa-modal-visual {
        width: 72px;
        max-width: 72px;
    }

    .df-pwa-modal-hero-img {
        max-height: 130px;
    }

    .df-pwa-modal-app-btns {
        grid-template-columns: 1fr;
    }
}

body.df-rtl .df-pwa-modal-split {
    direction: rtl;
}

body.df-rtl .df-pwa-modal-counter {
    align-items: flex-end;
}

body.df-rtl .df-pwa-modal-visual {
    justify-content: flex-start;
}

body.df-rtl .df-pwa-modal-hero-img {
    object-position: bottom left;
}

@media (max-width: 767.98px) {
    body.df-rtl .df-pwa-modal-hero-img {
        object-position: top center;
    }
}

body.df-rtl .df-pwa-guide-steps li {
    padding-left: 0;
    padding-right: 2.15rem;
}

body.df-rtl .df-pwa-guide-steps li::before {
    left: auto;
    right: 0;
}

/* Header profile button: white ring (3px) + image or themed initial */
.hero-profile-icon {
    padding: 3px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-profile-icon .profile-avatar-img,
.hero-profile-icon .profile-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-profile-icon .profile-initial {
    background: var(--df-brand-primary, #186445);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.hero-profile-icon .profile-initial--guest {
    background: #eef2f0;
    color: #4a5560;
}

.hero-profile-icon .profile-initial--guest svg {
    width: 14px;
    height: 14px;
}

.profile-dropdown-avatar {
    overflow: hidden;
    padding: 0;
}

.profile-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-dropdown-rank-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 3rem;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: rgba(15, 70, 47, 0.1);
    border: 1px solid rgba(15, 70, 47, 0.18);
    color: #0F462F;
    text-decoration: none;
    line-height: 1.15;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.profile-dropdown-rank-label:hover {
    background: rgba(15, 70, 47, 0.16);
    border-color: rgba(15, 70, 47, 0.28);
    color: #0F462F;
}

.profile-dropdown-rank-caption {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.profile-dropdown-rank-value {
    font-size: 0.9375rem;
    font-weight: 800;
}

/* Notification unread badge + empty / seen states */
.notification-unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

body.df-rtl .notification-unread-badge {
    right: auto;
    left: -2px;
}

.notifications-empty {
    padding: 28px 20px;
    text-align: center;
    color: #606060;
    font-size: 13px;
    line-height: 1.5;
}

.notifications-empty a {
    color: #0F462F;
    font-weight: 600;
    text-decoration: underline;
}

.notification-item {
    text-decoration: none;
    color: inherit;
}

.notification-item.is-seen .notification-channel,
.notification-item.is-seen .notification-text {
    color: #606060;
}

.notification-thumb-label {
    width: 100%;
    height: 100%;
    min-height: 40px;
    background: linear-gradient(135deg, #0F462F 0%, #1a6b4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* ------------------------------------------------------------------
| Publishers index — section toolbar (heading + search + sort)
------------------------------------------------------------------ */
.df-publishers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.df-publishers-toolbar-title {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.df-publishers-toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
}

.df-publishers-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 220px;
    max-width: 320px;
    min-width: 0;
}

.df-publishers-search > .bi-search {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7c73;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.df-publishers-search-input {
    width: 100%;
    height: 42px;
    padding: 0 4.5rem 0 2.35rem;
    border: 1px solid #d7e3dc;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.9rem;
    line-height: 1.2;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.df-publishers-search-input::placeholder {
    color: #8a9a91;
}

.df-publishers-search-input:focus {
    border-color: #186445;
    box-shadow: 0 0 0 3px rgba(24, 100, 69, 0.12);
}

.df-publishers-search-btn {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 6px;
    background: #186445;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.df-publishers-search-btn:hover {
    background: #0f462f;
}

.df-publishers-sort {
    position: relative;
    flex: 0 0 auto;
    min-width: 160px;
}

.df-publishers-sort-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 42px;
    padding: 0 2.1rem 0 0.85rem;
    border: 1px solid #d7e3dc;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.df-publishers-sort-select:focus {
    border-color: #186445;
    box-shadow: 0 0 0 3px rgba(24, 100, 69, 0.12);
}

.df-publishers-sort-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7c73;
    font-size: 0.85rem;
    pointer-events: none;
}

body.df-rtl .df-publishers-toolbar-controls {
    margin-left: 0;
    margin-right: auto;
}

body.df-rtl .df-publishers-search > .bi-search {
    left: auto;
    right: 0.75rem;
}

body.df-rtl .df-publishers-search-input {
    padding: 0 2.35rem 0 4.5rem;
}

body.df-rtl .df-publishers-search-btn {
    right: auto;
    left: 0.3rem;
}

body.df-rtl .df-publishers-sort-select {
    padding: 0 0.85rem 0 2.1rem;
}

body.df-rtl .df-publishers-sort-icon {
    right: auto;
    left: 0.75rem;
}

@media (max-width: 767.98px) {
    .df-publishers-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.85rem;
        margin-bottom: 1.1rem;
    }

    .df-publishers-toolbar-controls {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .df-publishers-search {
        flex: 1 1 100%;
        max-width: none;
    }

    .df-publishers-sort {
        flex: 1 1 100%;
        min-width: 0;
    }

    body.df-rtl .df-publishers-toolbar-controls {
        margin-right: 0;
    }
}

/* ------------------------------------------------------------------
| Top Publishers slider (landing — white band)
------------------------------------------------------------------ */
.df-top-publishers {
    background: #ffffff;
    padding-top: 1.35rem;
    padding-bottom: 1.75rem;
}

.df-top-publishers__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.df-top-publishers__title {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #141414;
}

.df-top-publishers__nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.df-top-publishers__nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(15, 70, 47, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #0F462F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.df-top-publishers__nav-btn:hover {
    background: #0F462F;
    border-color: #0F462F;
    color: #fff;
}

.df-top-publishers__nav-btn.is-disabled,
.df-top-publishers__nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.df-top-publishers__nav-btn:focus-visible {
    outline: 2px solid #0F462F;
    outline-offset: 2px;
}

.df-top-publishers__nav-btn i {
    font-size: 1rem;
    line-height: 1;
}

.df-top-publishers__slider {
    margin: 0;
}

.df-top-publishers__slide {
    min-width: 0;
}

.df-top-publishers .df-publisher-poster-item {
    height: 100%;
}

.df-top-publishers .df-publisher-poster {
    height: 100%;
}

.df-top-publishers .owl-item img.df-publisher-poster-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.df-publisher-poster.df-publisher-poster--more {
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1a6b4a, #0F462F) !important;
    text-align: center;
}

.df-publisher-poster.df-publisher-poster--more:hover {
    color: #fff;
}

.df-publisher-poster-more-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: auto 0;
    padding: 1rem;
}

.df-publisher-poster-more-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.df-publisher-poster-more-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.df-publisher-poster-more-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
}

body.df-rtl .df-top-publishers__nav-btn i {
    transform: scaleX(-1);
}

@media (max-width: 575.98px) {
    .df-top-publishers {
        padding-top: 1.1rem;
        padding-bottom: 1.35rem;
    }

    .df-top-publishers__title {
        font-size: 1.15rem;
    }

    .df-top-publishers__nav-btn {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }
}

/* ------------------------------------------------------------------
| Latest blogs — home grid (4 × 2) + View all
------------------------------------------------------------------ */
.df-latest-blogs {
    background: #ffffff;
    padding-top: 1.35rem;
    padding-bottom: 1.85rem;
}

.df-latest-blogs__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.df-latest-blogs__title {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #141414;
}

.df-latest-blogs__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(15, 70, 47, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #0F462F;
    font-family: "Nunito", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.df-latest-blogs__view-all:hover,
.df-latest-blogs__view-all:focus-visible {
    background: #0F462F;
    border-color: #0F462F;
    color: #fff;
    text-decoration: none;
}

.df-latest-blogs__view-all:focus-visible {
    outline: 2px solid #0F462F;
    outline-offset: 2px;
}

.df-latest-blogs__view-all i {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.df-latest-blogs__view-all:hover i,
.df-latest-blogs__view-all:focus-visible i {
    transform: translateX(2px);
}

body.df-rtl .df-latest-blogs__view-all i {
    transform: scaleX(-1);
}

body.df-rtl .df-latest-blogs__view-all:hover i,
body.df-rtl .df-latest-blogs__view-all:focus-visible i {
    transform: scaleX(-1) translateX(2px);
}

@media (max-width: 575.98px) {
    .df-latest-blogs {
        padding-top: 1.1rem;
        padding-bottom: 1.45rem;
    }

    .df-latest-blogs__title {
        font-size: 1.15rem;
    }

    .df-latest-blogs__view-all {
        padding: 0.45rem 0.75rem;
        font-size: 0.82rem;
        border-radius: 7px;
    }
}

/* ------------------------------------------------------------------
| Newsletter subscribe — section cover + gradient, col-6 form
------------------------------------------------------------------ */
.df-newsletter {
    --df-nl-ink: #f7fffb;
    position: relative;
    margin: 0.5rem 0 0;
    padding-top: 3.1rem;
    padding-bottom: 3.1rem;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    color: var(--df-nl-ink);
    background-color: #07110e;
    background-image:
        linear-gradient(
            100deg,
            rgba(5, 14, 11, 0.94) 0%,
            rgba(7, 18, 14, 0.88) 28%,
            rgba(8, 28, 20, 0.62) 52%,
            rgba(6, 22, 18, 0.34) 72%,
            rgba(4, 16, 14, 0.18) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22) 0%,
            rgba(0, 0, 0, 0.08) 45%,
            rgba(0, 0, 0, 0.35) 100%
        ),
        radial-gradient(70% 80% at 88% 70%, rgba(7, 227, 176, 0.22) 0%, transparent 58%),
        var(--newsletter-cover);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 0 0 1px rgba(7, 227, 176, 0.12),
        0 16px 40px rgba(0, 0, 0, 0.2);
}

.df-newsletter__row {
    position: relative;
    z-index: 1;
    min-height: 460px;
}

.df-newsletter__copy {
    max-width: 34rem;
    margin-left: auto;
    padding: 0.55rem 0;
    text-align: left;
}

.df-newsletter__lede {
    margin: 0;
    max-width: 28rem;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
    color: rgba(244, 247, 245, 0.86);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.df-newsletter__title {
    margin: 0 0 0.85rem;
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.df-newsletter__title-line {
    display: block;
    color: #ffffff;
}

.df-newsletter__title-accent {
    display: block;
    margin-top: 0.1em;
    background: linear-gradient(105deg, #07e3b0 0%, #9dffea 48%, #07e3b0 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: df-newsletter-accent-shift 6s ease-in-out infinite;
}

@keyframes df-newsletter-accent-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.df-newsletter__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.55rem;
    max-width: 30rem;
}

.df-newsletter__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.15rem 0;
}

.df-newsletter__stat-value {
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, #9dffea 55%, #07e3b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.df-newsletter__stat-label {
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(244, 247, 245, 0.78);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.df-newsletter__card-shell {
    position: relative;
    width: 100%;
    padding: 2px;
    border-radius: 18px;
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(7, 227, 176, 0.08);
}

.df-newsletter__card-glow {
    position: absolute;
    inset: -55%;
    z-index: 0;
    background: conic-gradient(
        from 0deg,
        #00492e 0deg,
        #07e3b0 70deg,
        #9dffea 140deg,
        #1a6b4a 210deg,
        #07e3b0 280deg,
        #00492e 360deg
    );
    animation: df-newsletter-border-spin 4.5s linear infinite;
    will-change: transform;
}

.df-newsletter__card-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(157, 255, 234, 0.18),
        0 0 28px rgba(7, 227, 176, 0.18);
    pointer-events: none;
}

@keyframes df-newsletter-border-spin {
    to {
        transform: rotate(360deg);
    }
}

.df-newsletter__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding: 1.35rem 1.3rem 1.4rem;
    border-radius: 16px;
    background: rgba(8, 24, 18, 0.88);
    border: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.df-newsletter__label {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.df-newsletter__input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #ffffff;
    color: #102018;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.18s ease;
}

.df-newsletter__input::placeholder {
    color: rgba(16, 32, 24, 0.4);
    font-weight: 600;
}

.df-newsletter__input:focus {
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 0 0 3px rgba(7, 227, 176, 0.45);
}

.df-newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.1rem 0 0;
    font-family: "Nunito", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(247, 255, 251, 0.92);
    cursor: pointer;
}

.df-newsletter__consent input {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    accent-color: #07e3b0;
    cursor: pointer;
}

.df-newsletter__legal {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.45;
    color: #b8f5d8;
}

.df-newsletter__legal a {
    color: #9dffea;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.df-newsletter__legal a:hover,
.df-newsletter__legal a:focus-visible {
    color: #ffffff;
}

.df-newsletter__btn {
    align-self: flex-start;
    margin-top: 0.2rem;
    border: 0;
    border-radius: 12px;
    padding: 0.82rem 1.55rem;
    background: #ffffff;
    color: #0a1f15;
    font-family: "Nunito", sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.df-newsletter__btn:hover,
.df-newsletter__btn:focus-visible {
    transform: translateY(-2px);
    background: #f3fffa;
    box-shadow: 0 14px 28px rgba(7, 227, 176, 0.25);
    color: #0a1f15;
}

.df-newsletter__btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.df-newsletter__error {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffb4b4;
}

body.df-rtl .df-newsletter {
    background-position: left center;
    background-image:
        linear-gradient(
            260deg,
            rgba(5, 14, 11, 0.94) 0%,
            rgba(7, 18, 14, 0.88) 28%,
            rgba(8, 28, 20, 0.62) 52%,
            rgba(6, 22, 18, 0.34) 72%,
            rgba(4, 16, 14, 0.18) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22) 0%,
            rgba(0, 0, 0, 0.08) 45%,
            rgba(0, 0, 0, 0.35) 100%
        ),
        radial-gradient(70% 80% at 12% 70%, rgba(7, 227, 176, 0.22) 0%, transparent 58%),
        var(--newsletter-cover);
}

@media (max-width: 767.98px) {
    .df-newsletter {
        padding-top: 1.85rem;
        padding-bottom: 1.9rem;
        background-position: 70% center;
        background-image:
            linear-gradient(
                180deg,
                rgba(5, 14, 11, 0.92) 0%,
                rgba(7, 18, 14, 0.86) 42%,
                rgba(6, 20, 16, 0.72) 100%
            ),
            linear-gradient(
                100deg,
                rgba(5, 14, 11, 0.7) 0%,
                rgba(5, 14, 11, 0.35) 55%,
                rgba(5, 14, 11, 0.2) 100%
            ),
            radial-gradient(80% 70% at 85% 80%, rgba(7, 227, 176, 0.2) 0%, transparent 60%),
            var(--newsletter-cover);
    }

    .df-newsletter__row {
        min-height: 0;
    }

    .df-newsletter__copy {
        margin-left: 0;
        margin-top: 0.35rem;
    }

    .df-newsletter__title {
        font-size: 1.65rem;
        margin-bottom: 0.65rem;
    }

    .df-newsletter__lede {
        font-size: 0.92rem;
    }

    .df-newsletter__stats {
        gap: 0.65rem;
        margin-top: 1.2rem;
    }

    .df-newsletter__stat-value {
        font-size: 1.55rem;
    }

    .df-newsletter__stat-label {
        font-size: 0.7rem;
    }

    .df-newsletter__card-shell {
        border-radius: 16px;
    }

    .df-newsletter__card {
        padding: 1.1rem 1rem 1.15rem;
        border-radius: 14px;
    }

    .df-newsletter__btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .df-newsletter__title-accent,
    .df-newsletter__card-glow {
        animation: none;
    }

    .df-newsletter__card-glow {
        background: linear-gradient(
            135deg,
            #00492e 0%,
            #07e3b0 35%,
            #9dffea 65%,
            #1a6b4a 100%
        );
    }
}

/* Newsletter success toast */
.df-newsletter-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 1080;
    width: min(420px, calc(100vw - 1.5rem));
    transform: translateX(-50%) translateY(1.25rem) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.28s ease;
}

.df-newsletter-toast.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.df-newsletter-toast__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1rem 1.1rem;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(18, 42, 32, 0.98) 0%, rgba(10, 28, 20, 0.98) 100%);
    border: 1px solid rgba(7, 227, 176, 0.35);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 28px rgba(7, 227, 176, 0.18);
    color: #f4f7f5;
}

.df-newsletter-toast__icon {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
}

.df-newsletter-toast__check {
    width: 100%;
    height: 100%;
}

.df-newsletter-toast__ring {
    fill: rgba(7, 227, 176, 0.12);
    stroke: #07e3b0;
    stroke-width: 2.5;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
}

.df-newsletter-toast__tick {
    fill: none;
    stroke: #07e3b0;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.df-newsletter-toast.is-on .df-newsletter-toast__ring {
    animation: df-newsletter-ring 0.55s ease forwards;
}

.df-newsletter-toast.is-on .df-newsletter-toast__tick {
    animation: df-newsletter-tick 0.35s 0.28s ease forwards;
}

@keyframes df-newsletter-ring {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes df-newsletter-tick {
    to {
        stroke-dashoffset: 0;
    }
}

.df-newsletter-toast__body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.1rem;
}

.df-newsletter-toast__title {
    margin: 0 0 0.2rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
}

.df-newsletter-toast__msg {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(244, 247, 245, 0.78);
}

.df-newsletter-toast__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    margin: -0.15rem -0.2rem 0 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.df-newsletter-toast__close:hover,
.df-newsletter-toast__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.df-newsletter-toast__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, #07e3b0, #9dffea);
    transform: scaleX(0);
}

.df-newsletter-toast.is-on .df-newsletter-toast__progress {
    animation: df-newsletter-progress 4.2s linear forwards;
}

@keyframes df-newsletter-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.df-newsletter-toast.is-error .df-newsletter-toast__card {
    border-color: rgba(255, 140, 140, 0.4);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(255, 100, 100, 0.12);
}

.df-newsletter-toast.is-error .df-newsletter-toast__title {
    color: #ffd0d0;
}

.df-newsletter-toast.is-error .df-newsletter-toast__ring,
.df-newsletter-toast.is-error .df-newsletter-toast__tick {
    stroke: #ff8e8e;
}

.df-newsletter-toast.is-error .df-newsletter-toast__ring {
    fill: rgba(255, 142, 142, 0.12);
}

.df-newsletter-toast.is-error .df-newsletter-toast__progress {
    background: linear-gradient(90deg, #ff8e8e, #ffc4c4);
}

@media (prefers-reduced-motion: reduce) {
    .df-newsletter-toast,
    .df-newsletter-toast.is-on .df-newsletter-toast__ring,
    .df-newsletter-toast.is-on .df-newsletter-toast__tick,
    .df-newsletter-toast.is-on .df-newsletter-toast__progress {
        animation: none;
        transition: opacity 0.2s ease;
    }

    .df-newsletter-toast.is-on .df-newsletter-toast__ring,
    .df-newsletter-toast.is-on .df-newsletter-toast__tick {
        stroke-dashoffset: 0;
    }
}

/* ------------------------------------------------------------------
| Home FAQ — light mint gradient, copy left, accordion right
------------------------------------------------------------------ */
.df-home-faq {
    --df-faq-ink: #12241c;
    --df-faq-muted: rgba(18, 36, 28, 0.72);
    --df-faq-green: #0f462f;
    position: relative;
    margin: 0;
    padding-top: 4.25rem;
    padding-bottom: 4.35rem;
    overflow: hidden;
    border-radius: 0;
    color: var(--df-faq-ink);
    background-color: #f3faf6;
    background-image:
        radial-gradient(70% 90% at 8% 12%, rgba(7, 227, 176, 0.16) 0%, transparent 55%),
        radial-gradient(55% 70% at 96% 88%, rgba(15, 70, 47, 0.1) 0%, transparent 58%),
        linear-gradient(165deg, #f7fcf9 0%, #eef8f3 48%, #e8f4ee 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 70, 47, 0.06);
}

/* Lightest decorative icons — top-left corner */
.df-home-faq__effects {
    position: absolute;
    top: 0;
    left: 0;
    width: min(420px, 55%);
    height: min(280px, 55%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.df-home-faq__fx {
    position: absolute;
    color: rgba(15, 70, 47, 0.09);
    line-height: 1;
    display: block;
}

.df-home-faq__fx--1 {
    top: 1.35rem;
    left: 1.5rem;
    font-size: 2.6rem;
    transform: rotate(-12deg);
}

.df-home-faq__fx--2 {
    top: 3.4rem;
    left: 5.8rem;
    font-size: 1.85rem;
    color: rgba(7, 227, 176, 0.14);
    transform: rotate(14deg);
}

.df-home-faq__fx--3 {
    top: 1.1rem;
    left: 9.2rem;
    font-size: 1.55rem;
    transform: rotate(8deg);
}

.df-home-faq__fx--4 {
    top: 6.4rem;
    left: 2.4rem;
    font-size: 1.35rem;
    color: rgba(7, 227, 176, 0.12);
    transform: rotate(-18deg);
}

.df-home-faq__fx--5 {
    top: 5.1rem;
    left: 8.4rem;
    font-size: 1.15rem;
    opacity: 0.85;
    transform: rotate(22deg);
}

.df-home-faq__fx--6 {
    top: 8.2rem;
    left: 5.2rem;
    font-size: 1.7rem;
    transform: rotate(6deg);
}

.df-home-faq__row {
    position: relative;
    z-index: 2;
    min-height: 420px;
}

.df-home-faq__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    max-width: 28rem;
    padding: 0.35rem 0.25rem 0.35rem 0;
}

.df-home-faq__eyebrow {
    margin: 0 0 0.7rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--df-faq-green);
}

.df-home-faq__title {
    margin: 0 0 0.85rem;
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.df-home-faq__title-line {
    display: block;
    color: var(--df-faq-ink);
}

.df-home-faq__title-accent {
    display: block;
    margin-top: 0.08em;
    background: linear-gradient(105deg, #0f462f 0%, #07e3b0 48%, #1a6b4a 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: df-home-faq-accent-shift 6s ease-in-out infinite;
}

@keyframes df-home-faq-accent-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.df-home-faq__lede {
    margin: 0 0 1.35rem;
    max-width: 24rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--df-faq-muted);
}

.df-home-faq__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.df-home-faq__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.05rem;
    border-radius: 10px;
    font-family: "Nunito", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.df-home-faq__cta--primary {
    background: var(--df-faq-green);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 70, 47, 0.18);
}

.df-home-faq__cta--primary:hover,
.df-home-faq__cta--primary:focus-visible {
    transform: translateY(-2px);
    background: #134f36;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(7, 227, 176, 0.22);
}

.df-home-faq__cta--ghost {
    background: rgba(255, 255, 255, 0.65);
    color: var(--df-faq-green);
    border: 1.5px solid rgba(15, 70, 47, 0.22);
}

.df-home-faq__cta--ghost:hover,
.df-home-faq__cta--ghost:focus-visible {
    background: #ffffff;
    border-color: rgba(15, 70, 47, 0.4);
    color: var(--df-faq-green);
}

.df-home-faq__cta i {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

.df-home-faq__cta--primary:hover i,
.df-home-faq__cta--primary:focus-visible i {
    transform: translateX(2px);
}

.df-home-faq__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    height: 100%;
    padding: 0.25rem 0;
}

.df-home-faq details.df-home-faq__item {
    background: rgba(255, 255, 255, 0.9) !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    border: 1px solid rgba(15, 70, 47, 0.1) !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.df-home-faq details.df-home-faq__item[open] {
    border: 1px solid transparent !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(120deg, #0f462f 0%, #07e3b0 42%, #9dffea 72%, #1a6b4a 100%) border-box !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow: none !important;
}

.df-home-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-family: "Nunito", sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--df-faq-ink);
    transition: color 0.15s ease;
}

.df-home-faq__question::-webkit-details-marker {
    display: none;
}

.df-home-faq__question::marker {
    content: "";
}

.df-home-faq__question:hover {
    color: var(--df-faq-green);
}

.df-home-faq__question:focus,
.df-home-faq__question:focus-visible {
    outline: none;
}

.df-home-faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(15, 70, 47, 0.08);
    color: var(--df-faq-green);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.df-home-faq__icon::before,
.df-home-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.72rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.df-home-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.df-home-faq__item[open] .df-home-faq__icon {
    background: rgba(7, 227, 176, 0.18);
    color: #086b52;
}

.df-home-faq__item[open] .df-home-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
    opacity: 0;
}

.df-home-faq__answer {
    padding: 0 1.15rem 1.15rem;
}

.df-home-faq__answer p {
    margin: 0;
    border-top: 1px solid rgba(15, 70, 47, 0.08);
    padding-top: 0.9rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--df-faq-muted);
}

.df-home-faq__answer a {
    color: var(--df-faq-green);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.df-home-faq__answer a:hover,
.df-home-faq__answer a:focus-visible {
    color: #086b52;
}

body.df-rtl .df-home-faq__effects {
    left: auto;
    right: 0;
}

body.df-rtl .df-home-faq__intro {
    padding: 0.35rem 0 0.35rem 0.25rem;
    margin-left: auto;
}

body.df-rtl .df-home-faq__cta i {
    transform: scaleX(-1);
}

body.df-rtl .df-home-faq__cta--primary:hover i,
body.df-rtl .df-home-faq__cta--primary:focus-visible i {
    transform: scaleX(-1) translateX(2px);
}

@media (max-width: 991.98px) {
    .df-home-faq {
        padding-top: 3.1rem;
        padding-bottom: 3.2rem;
    }

    .df-home-faq__effects {
        width: min(280px, 70%);
        height: min(180px, 40%);
        opacity: 0.85;
    }

    .df-home-faq__row {
        min-height: 0;
    }

    .df-home-faq__intro {
        min-height: 0;
        max-width: none;
        padding: 0;
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .df-home-faq {
        padding-top: 2.5rem;
        padding-bottom: 2.6rem;
    }

    .df-home-faq__title {
        font-size: 1.55rem;
    }

    .df-home-faq__lede {
        font-size: 0.92rem;
        margin-bottom: 1.1rem;
    }

    .df-home-faq__question {
        padding: 0.95rem 1rem;
        font-size: 0.95rem;
    }

    .df-home-faq__answer {
        padding: 0 1rem 1rem;
    }

    .df-home-faq__answer p {
        font-size: 0.9rem;
    }

    .df-home-faq__cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .df-home-faq__title-accent {
        animation: none;
        background: linear-gradient(105deg, #0f462f 0%, #07e3b0 100%);
    }
}

/* ------------------------------------------------------------------
| Publisher posters — portrait cards with image wash + stats CTA
------------------------------------------------------------------ */
.df-publisher-poster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.df-publisher-poster-item {
    position: relative;
    min-width: 0;
}

.df-publisher-poster {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    aspect-ratio: 3 / 4.35;
    border-radius: 12px;
    overflow: hidden;
    background: #181818;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Social platform links — vertical stack, top-right (like fact share actions) */
.df-publisher-poster-socials {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    pointer-events: auto;
}

.df-publisher-poster-social {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
    padding: 0;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.df-publisher-poster-social i {
    font-size: 1rem;
    line-height: 1;
}

.df-publisher-poster-social:hover {
    transform: scale(1.06);
    background: #f5f5f5;
    color: #0F462F;
    text-decoration: none;
}

.df-publisher-poster-social:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.df-publisher-poster-social--youtube:hover { color: #ff0000; }
.df-publisher-poster-social--facebook:hover { color: #1877f2; }
.df-publisher-poster-social--instagram:hover { color: #e4405f; }
.df-publisher-poster-social--linkedin:hover { color: #0a66c2; }
.df-publisher-poster-social--twitter:hover { color: #111; }
.df-publisher-poster-social--whatsapp:hover { color: #25d366; }
.df-publisher-poster-social--snapchat:hover { color: #fffc00; background: #111; }
.df-publisher-poster-social--website:hover { color: #0F462F; }

.df-publisher-poster-social--more {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
}

.df-publisher-poster-social--more i {
    font-size: 1.2rem;
    font-weight: 700;
    -webkit-text-stroke: 0.55px currentColor;
}

.df-publisher-poster-social--more:hover {
    background: #f5f5f5;
    color: #0F462F;
}

/* Quick-info tooltip on "+" */
.df-publisher-poster-social--more[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 0.55rem);
    left: auto;
    transform: translateY(-50%) translateX(4px);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(15, 20, 18, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 6;
}

.df-publisher-poster-social--more[data-tooltip]::before {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(100% + 0.28rem);
    left: auto;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(15, 20, 18, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 6;
}

.df-publisher-poster-social--more[data-tooltip]:hover::after,
.df-publisher-poster-social--more[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.df-publisher-poster-social--more[data-tooltip]:hover::before,
.df-publisher-poster-social--more[data-tooltip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

body.df-rtl .df-publisher-poster-social--more[data-tooltip]::after {
    right: auto;
    left: calc(100% + 0.55rem);
    transform: translateY(-50%) translateX(-4px);
}

body.df-rtl .df-publisher-poster-social--more[data-tooltip]::before {
    right: auto;
    left: calc(100% + 0.28rem);
    border-left-color: transparent;
    border-right-color: rgba(15, 20, 18, 0.92);
}

body.df-rtl .df-publisher-poster-social--more[data-tooltip]:hover::after,
body.df-rtl .df-publisher-poster-social--more[data-tooltip]:focus-visible::after {
    transform: translateY(-50%) translateX(0);
}

body.df-rtl .df-publisher-poster-socials {
    right: auto;
    left: 0.65rem;
}

.df-publisher-poster-item.has-socials .df-publisher-poster-rank {
    max-width: calc(100% - 3.6rem);
}

/* ------------------------------------------------------------------
| Publisher preview modal (FOTD-style)
------------------------------------------------------------------ */
.df-publisher-modal .df-fotd-modal-hero,
.df-publisher-modal .df-fotd-modal-hero-fallback {
    min-height: 200px;
}

.df-publisher-modal .df-fotd-modal-hero-img {
    min-height: 200px;
    max-height: 220px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
}

.df-publisher-modal .df-fotd-modal-banner-meta {
    margin-top: -110px;
}

.df-publisher-modal-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.df-publisher-modal-logo {
    flex: 0 0 96px;
    width: 96px;
    height: 128px; /* 3:4 — matches category logo / profile card */
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid #fff;
}

.df-publisher-modal-brand-copy {
    min-width: 0;
    flex: 1;
    padding-top: 0.15rem;
}

.df-publisher-modal-username {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 500;
}

.df-publisher-modal .df-fotd-modal-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.df-publisher-modal .df-fotd-modal-eyebrow strong {
    color: #fff;
    font-weight: 700;
}

.df-publisher-modal .df-fotd-modal-title {
    margin-bottom: 0.15rem;
}

/* Publisher detail hero: portrait profile card (category-style) */
.hero-section--publisher .df-publisher-hero-avatar {
    width: 84px;
    height: 112px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.df-publisher-modal-like-btn.is-liked,
.df-publisher-modal-like-btn.is-liked:hover {
    background: rgba(225, 29, 72, 0.22);
    color: #fff;
}

.df-publisher-modal-like-btn.is-liked i {
    color: #fb7185;
}

.df-publisher-modal-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.df-publisher-modal-social-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 70, 47, 0.12);
    background: #f4f7f5;
    color: #141414;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.df-publisher-modal-social-chip__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.df-publisher-modal-social-chip__icon i {
    font-size: 0.9rem;
    line-height: 1;
}

.df-publisher-modal-social-chip:hover {
    background: #eaf2ed;
    color: #0F462F;
    text-decoration: none;
    transform: translateY(-1px);
}

.df-publisher-modal-social-chip.df-publisher-poster-social--youtube:hover { color: #ff0000; }
.df-publisher-modal-social-chip.df-publisher-poster-social--facebook:hover { color: #1877f2; }
.df-publisher-modal-social-chip.df-publisher-poster-social--instagram:hover { color: #e4405f; }
.df-publisher-modal-social-chip.df-publisher-poster-social--linkedin:hover { color: #0a66c2; }
.df-publisher-modal-social-chip.df-publisher-poster-social--twitter:hover { color: #111; }
.df-publisher-modal-social-chip.df-publisher-poster-social--whatsapp:hover { color: #25d366; }
.df-publisher-modal-social-chip.df-publisher-poster-social--snapchat:hover { color: #c9b800; }
.df-publisher-modal-social-chip.df-publisher-poster-social--website:hover { color: #0F462F; }

@media (max-width: 767.98px) {
    .df-publisher-modal .df-fotd-modal-hero,
    .df-publisher-modal .df-fotd-modal-hero-fallback,
    .df-publisher-modal .df-fotd-modal-hero-img {
        min-height: 160px;
        max-height: 170px;
        height: 160px;
    }

    .df-publisher-modal .df-fotd-modal-banner-meta {
        margin-top: -88px;
    }

    .df-publisher-modal-logo {
        flex-basis: 72px;
        width: 72px;
        height: 96px;
        border-radius: 10px;
    }

    .hero-section--publisher .df-publisher-hero-avatar {
        width: 72px;
        height: 96px;
        border-radius: 10px;
    }
}

.df-publisher-poster:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    color: #fff;
    text-decoration: none;
}

.df-publisher-poster:focus-visible {
    outline: 2px solid #0F462F;
    outline-offset: 3px;
}

.df-publisher-poster-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: 0;
}

.df-publisher-poster-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(var(--poster-wash, 37, 99, 235), 0.78) 0%,
        rgba(var(--poster-wash, 37, 99, 235), 0.38) 28%,
        rgba(var(--poster-wash, 37, 99, 235), 0.1) 48%,
        rgba(0, 0, 0, 0.55) 70%,
        rgba(0, 0, 0, 0.94) 100%
    );
}

.df-publisher-poster-rank {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    max-width: calc(100% - 1.3rem);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 70, 47, 0.62);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.df-publisher-poster-rank strong {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
}

body.df-rtl .df-publisher-poster-rank {
    left: auto;
    right: 0.65rem;
}

.df-publisher-poster-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.85rem 0.85rem;
    min-width: 0;
}

.df-publisher-poster-name {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.df-publisher-poster-username {
    margin: 0.2rem 0 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.df-publisher-poster-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 0.75rem;
}

.df-publisher-poster-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0.55rem 0.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.df-publisher-poster-stat:last-child {
    border-right: none;
}

.df-publisher-poster-stat strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.df-publisher-poster-stat em {
    margin-top: 0.15rem;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.2;
}

.df-publisher-poster-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.df-publisher-poster-cta i {
    font-size: 1rem;
    line-height: 1;
}

.df-publisher-poster:hover .df-publisher-poster-cta {
    background: #f3f4f6;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .df-publisher-poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .df-publisher-poster {
        aspect-ratio: 3 / 4.45;
        border-radius: 14px;
    }

    .df-publisher-poster-name {
        font-size: 1.15rem;
    }

    .df-publisher-poster-stat strong {
        font-size: 1.05rem;
    }
}

@media (min-width: 1200px) {
    .df-publisher-poster-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }

    .df-publisher-poster-body {
        padding: 1.05rem 0.9rem 0.9rem;
    }

    .df-publisher-poster-name {
        font-size: 1.05rem;
    }

    .df-publisher-poster-username {
        font-size: 0.72rem;
        margin-bottom: 0.65rem;
    }

    .df-publisher-poster-stat {
        padding: 0.45rem 0.15rem;
    }

    .df-publisher-poster-stat strong {
        font-size: 0.9rem;
    }

    .df-publisher-poster-stat em {
        font-size: 0.55rem;
    }

    .df-publisher-poster-cta {
        padding: 0.58rem 0.65rem;
        font-size: 0.75rem;
        border-radius: 7px;
    }
}

@media (max-width: 575.98px) {
    .df-publisher-poster-rank {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.55rem;
        padding: 0.3rem 0.45rem;
    }

    .df-publisher-poster-rank strong {
        font-size: 0.6rem;
    }

    body.df-rtl .df-publisher-poster-rank {
        left: auto;
        right: 0.5rem;
    }

    .df-publisher-poster-socials {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.32rem;
    }

    .df-publisher-poster-social {
        width: 32px;
        height: 32px;
    }

    .df-publisher-poster-social i {
        font-size: 0.9rem;
    }

    .df-publisher-poster-social--more i {
        font-size: 1.05rem;
    }

    body.df-rtl .df-publisher-poster-socials {
        right: auto;
        left: 0.5rem;
    }

    .df-publisher-poster-body {
        padding: 0.8rem 0.65rem 0.7rem;
    }

    .df-publisher-poster-name {
        font-size: 0.9rem;
    }

    .df-publisher-poster-username {
        font-size: 0.68rem;
        margin: 0.12rem 0 0.55rem;
    }

    .df-publisher-poster-stats {
        margin-bottom: 0.55rem;
    }

    .df-publisher-poster-stat {
        padding: 0.4rem 0.1rem;
    }

    .df-publisher-poster-stat strong {
        font-size: 0.8rem;
    }

    .df-publisher-poster-stat em {
        font-size: 0.5rem;
    }

    .df-publisher-poster-cta {
        padding: 0.55rem 0.5rem;
        font-size: 0.72rem;
        gap: 0.3rem;
    }
}

/* ------------------------------------------------------------------ */
/* Blogs listing + cards                                              */
/* ------------------------------------------------------------------ */
.hero-section.hero-section--blogs {
    background-position: 55% center;
}

.hero-section.hero-section--blogs::before {
    opacity: 0.28;
}

@media (max-width: 768px) {
    .hero-section.hero-section--blogs {
        background-position: 62% center;
        min-height: 420px;
    }

    body.df-rtl .hero-section.hero-section--blogs {
        background-position: 38% center;
    }
}

.df-blogs-toolbar-controls {
    flex-wrap: wrap;
}

.df-blogs-active-filters {
    font-size: 0.9rem;
}

.df-blogs-active-filters a {
    color: var(--brand-primary-dark, #0f462f);
    font-weight: 600;
    text-decoration: none;
}

.df-blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1199px) {
    .df-blogs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .df-blogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .df-blogs-grid {
        grid-template-columns: 1fr;
    }
}

.df-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 70, 47, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 31, 21, 0.06);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.df-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 31, 21, 0.12);
}

.df-blog-card-media {
    --blog-media-pad: 5px;
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: var(--blog-media-pad);
    background: #fff;
    border-bottom: none;
    box-sizing: border-box;
}

/* Gradient placeholder behind the cover until the image paints */
.df-blog-card-media::before {
    content: "";
    position: absolute;
    inset: var(--blog-media-pad);
    z-index: 0;
    border-radius: 6px;
    background:
        linear-gradient(
            125deg,
            color-mix(in srgb, var(--blog-accent, #186445) 92%, #07110e) 0%,
            var(--blog-accent, #186445) 38%,
            color-mix(in srgb, var(--blog-accent, #186445) 55%, #07e3b0) 68%,
            color-mix(in srgb, var(--blog-accent, #186445) 35%, #9dffea) 100%
        );
    background-size: 180% 180%;
    animation: df-blog-media-gradient 7s ease-in-out infinite;
}

@keyframes df-blog-media-gradient {
    0%,
    100% {
        background-position: 0% 40%;
    }
    50% {
        background-position: 100% 60%;
    }
}

.df-blog-card-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    background: transparent;
    transition: transform 0.35s ease;
}

.df-blog-card:hover .df-blog-card-media img {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .df-blog-card-media::before {
        animation: none;
    }
}

.df-blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1rem 0.75rem;
    flex: 1 1 auto;
}

.df-blog-card-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blog-accent, #186445);
    text-decoration: none;
}

.df-blog-card-category:hover {
    color: #0f462f;
}

.df-blog-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #14241c;
}

.df-blog-card-title:hover {
    color: #0f462f;
}

.df-blog-card-excerpt {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #5a6b62;
}

.df-blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.df-blog-card-tags a {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(15, 70, 47, 0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    color: #2d4a3c;
    text-decoration: none;
    background: #f5faf7;
}

.df-blog-card-tags a:hover {
    background: #e8f4ee;
    border-color: rgba(15, 70, 47, 0.35);
}

.df-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(15, 70, 47, 0.08);
}

.df-blog-card-publisher {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.df-blog-card-publisher img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.df-blog-card-publisher .pub-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #14241c;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.df-blog-card-publisher .pub-meta {
    display: block;
    font-size: 0.72rem;
    color: #6b7c73;
    line-height: 1.2;
}

.df-blog-card-views {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a6b62;
    flex-shrink: 0;
}

/* Blog detail — full-width hero (matches fact detail page width) */
.df-blog-detail-hero {
    background: #fff;
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
}

.df-blog-detail-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: center;
    width: 100%;
}

.df-blog-detail-hero.has-cover .df-blog-detail-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.df-blog-detail-copy {
    min-width: 0;
}

.df-blog-detail-title {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #14241c;
}

.df-blog-detail-lead {
    margin: 0 0 1.25rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #4a5c53;
    max-width: 42rem;
}

.df-blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.df-blog-detail-cover {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border-bottom: 4px solid var(--blog-accent, #186445);
    background: #eef5f1;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.df-blog-detail-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.df-rtl .df-blog-detail-hero.has-cover .df-blog-detail-hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

body.df-rtl .df-blog-detail-hero.has-cover .df-blog-detail-copy {
    order: 2;
}

body.df-rtl .df-blog-detail-hero.has-cover .df-blog-detail-cover {
    order: 1;
}

.df-blog-detail-body-section {
    padding-top: 1.75rem;
}

.df-blog-detail-layout {
    display: block;
    width: 100%;
}

.df-blog-detail-layout.has-toc {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.df-blog-toc-col {
    position: sticky;
    top: 88px;
    align-self: start;
    z-index: 5;
}

.df-blog-toc {
    padding: 1.15rem 1.1rem;
    border: 1px solid rgba(15, 70, 47, 0.12);
    border-radius: 10px;
    background: #f7faf8;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.df-blog-toc-label {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6b62;
}

.df-blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(15, 70, 47, 0.12);
}

.df-blog-toc-item {
    position: relative;
    margin: 0;
}

.df-blog-toc-item::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    background: transparent;
    border-radius: 2px;
}

.df-blog-toc-item.is-active::before {
    background: var(--blog-accent, #186445);
}

.df-blog-toc-link {
    display: block;
    padding: 0.4rem 0 0.4rem 0.85rem;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #4a5c53;
    text-decoration: none;
    transition: color 0.15s ease, font-weight 0.15s ease;
}

.df-blog-toc-link:hover {
    color: #0f462f;
}

.df-blog-toc-item.is-active .df-blog-toc-link {
    color: #0f462f;
    font-weight: 700;
}

.df-blog-toc-mobile {
    display: none;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.df-blog-toc-mobile a {
    flex: 0 0 auto;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(15, 70, 47, 0.16);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2d4a3c;
    text-decoration: none;
    background: #f5faf7;
    white-space: nowrap;
}

.df-blog-toc-mobile a.is-active {
    background: var(--blog-accent, #186445);
    border-color: var(--blog-accent, #186445);
    color: #fff;
}

.df-blog-detail-main {
    min-width: 0;
    max-width: 860px;
}

@media (min-width: 768px) {
    .df-blog-detail-hero {
        padding-top: 2rem;
        padding-bottom: 2.75rem;
    }
}

.df-blog-detail-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #24352c;
}

.df-blog-detail-body h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #14241c;
    scroll-margin-top: 100px;
}

.df-blog-detail-body h2:first-child {
    margin-top: 0;
}

.df-blog-detail-body p {
    margin-bottom: 1rem;
}

.df-blog-detail-rich {
    margin: 1rem 0;
}

.df-blog-detail-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.df-blog-detail-tags {
    margin-top: 1.75rem;
}

@media (max-width: 991px) {
    .df-blog-detail-hero.has-cover .df-blog-detail-hero-inner {
        grid-template-columns: 1fr;
    }

    body.df-rtl .df-blog-detail-hero.has-cover .df-blog-detail-hero-inner {
        grid-template-columns: 1fr;
    }

    body.df-rtl .df-blog-detail-hero.has-cover .df-blog-detail-copy,
    body.df-rtl .df-blog-detail-hero.has-cover .df-blog-detail-cover {
        order: initial;
    }

    .df-blog-detail-layout.has-toc {
        display: block;
    }

    .df-blog-toc-col {
        position: static;
    }

    .df-blog-toc-mobile {
        display: flex;
    }
}

@media (max-width: 575px) {
    .df-blog-detail-cover {
        border-radius: 10px;
    }
}

/*
|----------------------------------------------------------------
| Category subscribe — Netflix-style choice modal
|----------------------------------------------------------------
*/
.df-cat-sub-modal .modal-backdrop {
    --bs-backdrop-opacity: 0.72;
}

.df-cat-sub-modal-dialog {
    max-width: 780px;
    margin: 1.25rem auto;
}

.df-cat-sub-modal-content {
    position: relative;
    background: #141414;
    border: 1px solid #404040;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.df-cat-sub-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 5;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #141414;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.df-cat-sub-modal-close:hover {
    background: #f2f2f2;
    color: #000;
    transform: scale(1.05);
}

.df-cat-sub-modal-banner {
    position: relative;
    background: #141414;
    color: #fff;
}

.df-cat-sub-modal-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.df-cat-sub-modal-hero-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 420px;
    max-height: 560px;
    object-fit: cover;
    object-position: center top;
}

.df-cat-sub-modal-hero-fallback {
    min-height: 420px;
    width: 100%;
}

.df-cat-sub-modal-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 20, 0.05) 20%,
        rgba(20, 20, 20, 0.55) 62%,
        #141414 100%
    );
    pointer-events: none;
}

.df-cat-sub-modal-banner-meta {
    position: relative;
    margin-top: -140px;
    padding: 0 1.75rem 1.75rem;
    z-index: 1;
}

.df-cat-sub-modal-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.df-cat-sub-modal-logo {
    flex: 0 0 96px;
    width: 96px;
    height: 128px; /* 3:4 — matches category logo ratio */
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid #fff;
}

.df-cat-sub-modal-brand-copy {
    min-width: 0;
    flex: 1;
}

.df-cat-sub-modal-eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.df-cat-sub-modal-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.df-cat-sub-modal-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.df-cat-sub-modal-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.df-cat-sub-modal-stat-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1;
}

.df-cat-sub-modal-stat-copy {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    line-height: 1.1;
    min-width: 0;
}

.df-cat-sub-modal-stat-count {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.df-cat-sub-modal-stat-label {
    font-size: 0.68rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.df-cat-sub-modal-desc {
    margin: 0 0 1.15rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 36rem;
}

.df-cat-sub-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.df-cat-sub-modal-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.df-cat-sub-modal-btn-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.df-cat-sub-modal-btn-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.df-cat-sub-modal-btn-label {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.df-cat-sub-modal-btn-hint {
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.82;
}

.df-cat-sub-modal-btn--primary {
    background: #fff;
    color: #141414;
}

.df-cat-sub-modal-btn--primary .df-cat-sub-modal-btn-icon {
    background: rgba(20, 20, 20, 0.08);
    color: #141414;
}

.df-cat-sub-modal-btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #141414;
    transform: translateY(-1px);
}

.df-cat-sub-modal-btn--ghost {
    background: rgba(109, 109, 110, 0.55);
    color: #fff;
}

.df-cat-sub-modal-btn--ghost .df-cat-sub-modal-btn-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.df-cat-sub-modal-btn--ghost:hover {
    background: rgba(109, 109, 110, 0.75);
    color: #fff;
    transform: translateY(-1px);
}

body.df-rtl .df-cat-sub-modal-close {
    right: auto;
    left: 14px;
}

body.df-rtl .df-cat-sub-modal-brand,
body.df-rtl .df-cat-sub-modal-btn {
    text-align: right;
}

@media (max-width: 575.98px) {
    .df-cat-sub-modal-dialog {
        max-width: calc(100% - 1.25rem);
        margin: 0.75rem auto;
    }

    .df-cat-sub-modal-hero,
    .df-cat-sub-modal-hero-img,
    .df-cat-sub-modal-hero-fallback {
        min-height: 300px;
    }

    .df-cat-sub-modal-banner-meta {
        margin-top: -110px;
        padding: 0 1.1rem 1.25rem;
    }

    .df-cat-sub-modal-logo {
        flex-basis: 72px;
        width: 72px;
        height: 96px; /* 3:4 — matches category logo ratio */
        border-radius: 10px;
    }

    .df-cat-sub-modal-title {
        font-size: 1.4rem;
        margin-bottom: 0.55rem;
    }

    .df-cat-sub-modal-stat {
        padding: 0.35rem 0.55rem;
    }

    .df-cat-sub-modal-stat-count {
        font-size: 0.88rem;
    }

    .df-cat-sub-modal-desc {
        font-size: 0.94rem;
    }
}
