/* =========================================================
   PakSindh v5.1 - Homepage redesign
   Loaded only on the homepage (after style.css).
   Sections: heading, hero, Discover Sindh strip, Explore Sindh bento,
   category layouts (feature / grid / mosaic / headlines), festivals,
   insights, gallery, poets, dark mode, responsive.
   ========================================================= */
body[class*="ps-home-"] {
    --home-radius: 18px;
    --home-shadow: 0 1px 2px rgba(11, 26, 58, .04), 0 10px 26px rgba(11, 26, 58, .06);
    --home-shadow-hover: 0 18px 40px rgba(11, 26, 58, .14);
    --gold: #e9b949;
}
body[class*="ps-home-"] .section-latest { margin-top: 56px; }
body[class*="ps-home-"] .section-latest.section-recent { margin-top: 44px; }

/* ---------------------------------------------------------
   1. SECTION HEADING - icon tile + serif title + description + pill link
   (works for the new .home-head and the older .section-head markup)
   --------------------------------------------------------- */
body[class*="ps-home-"] .section-head { align-items: center; gap: 14px; margin-bottom: 22px; }
body[class*="ps-home-"] .ribbon-title { height: auto; align-items: center; gap: 14px; min-width: 0; }
body[class*="ps-home-"] .ribbon-pattern {
    position: relative;
    flex: 0 0 46px;
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    clip-path: none;
    color: #fff;
    background: linear-gradient(135deg, var(--rb2, #c4161c), var(--rb, #9b1118));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 18px color-mix(in srgb, var(--rb, #9b1118) 32%, transparent);
}
/* old headings have no icon inside: show an Ajrak diamond */
body[class*="ps-home-"] .ribbon-title .ribbon-pattern::before {
    content: '';
    width: 15px; height: 15px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 3px;
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}
body[class*="ps-home-"] .ribbon-pattern::after {
    content: '';
    position: absolute;
    left: 6px; right: 6px; bottom: -5px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}
body[class*="ps-home-"] .hh-icon .icon { width: 22px; height: 22px; }
body[class*="ps-home-"] .ribbon-text {
    margin: 0;
    padding: 0;
    background: none;
    background-image: none;
    box-shadow: none;
    clip-path: none;
    text-shadow: none;
    color: var(--ink);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.2px;
    text-transform: none;
    white-space: normal;
    line-height: 1.15;
}
body[class*="ps-home-"] .hh-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body[class*="ps-home-"] .hh-kicker { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text-soft); }
body[class*="ps-home-"] .section-head .section-line {
    height: 1px;
    margin: 0 4px;
    min-width: 24px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--rb, #9b1118) 45%, transparent), rgba(170, 178, 196, 0));
}
body[class*="ps-home-"] .section-head .view-all-link {
    flex: 0 0 auto;
    gap: 7px;
    padding: 8px 14px 8px 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--rb, #9b1118) 28%, var(--line));
    background: color-mix(in srgb, var(--rb, #9b1118) 6%, var(--card));
    color: var(--rb, var(--red));
    font-size: 13px;
    transition: background .2s ease, color .2s ease, gap .2s ease;
}
body[class*="ps-home-"] .section-head .view-all-link:hover { background: var(--rb, var(--red)); border-color: transparent; color: #fff; gap: 10px; }
body[class*="ps-home-"] .va-count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rb, #9b1118) 14%, transparent);
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}
body[class*="ps-home-"] .section-head .view-all-link:hover .va-count { background: rgba(255, 255, 255, .22); }
body[class*="ps-home-"] .section-head .banner-kicker { flex: 0 0 auto; }

/* ---------------------------------------------------------
   2. HERO
   --------------------------------------------------------- */
body[class*="ps-home-"] .hero-area { grid-template-columns: 1.2fr 1fr; gap: 16px; height: 500px; margin-top: 24px; }
body[class*="ps-home-"] .hero-slider,
body[class*="ps-home-"] .hero-card { border-radius: var(--home-radius); }
body[class*="ps-home-"] .hero-slider { box-shadow: var(--home-shadow); }
body[class*="ps-home-"] .hero-grid-right { gap: 16px; }
body[class*="ps-home-"] .hero-grid-right.n-1 { grid-template-rows: 1fr; }
body[class*="ps-home-"] .hero-grid-right.n-2 .grid-card-half { grid-column: 1 / -1; }
body[class*="ps-home-"] .hero-overlay {
    gap: 12px;
    padding: 26px 70px 24px 28px;
    background: linear-gradient(180deg, rgba(8, 18, 45, 0) 25%, rgba(8, 18, 45, .5) 55%, rgba(8, 18, 45, .94) 100%);
}
body[class*="ps-home-"] .hero-main .hero-overlay { padding: 30px 80px 30px 32px; }
body[class*="ps-home-"] .hero-main .hero-title { font-size: 36px; line-height: 1.15; max-width: 600px; }
body[class*="ps-home-"] .grid-card-full .hero-title { font-size: 25px; max-width: 520px; }
body[class*="ps-home-"] .grid-card-half .hero-title { font-size: 18px; line-height: 1.28; }
body[class*="ps-home-"] .hero-excerpt {
    margin: 0;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .86);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body[class*="ps-home-"] .hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
body[class*="ps-home-"] .hero-card .cat-badge,
body[class*="ps-home-"] .tile-card .cat-badge,
body[class*="ps-home-"] .lead-card .cat-badge { border-radius: 999px; padding: 5px 12px; }
body[class*="ps-home-"] .hero-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
body[class*="ps-home-"] .hero-read .icon { width: 13px; height: 13px; }
body[class*="ps-home-"] .grid-card-half .hero-read,
body[class*="ps-home-"] .grid-card-half .hero-meta .meta-item + .meta-item { display: none; }
body[class*="ps-home-"] .hero-flag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #2a1a00;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    pointer-events: none;
}
body[class*="ps-home-"] .hero-flag .icon { width: 13px; height: 13px; }
body[class*="ps-home-"] .hero-controls { top: 14px; right: 14px; }
body[class*="ps-home-"] .hero-arrow { width: 40px; height: 40px; right: 20px; bottom: 22px; }

/* ---------------------------------------------------------
   3. DISCOVER SINDH topic strip
   --------------------------------------------------------- */
.topic-strip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 22px;
    padding: 16px 20px 16px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    overflow: hidden;
}
.topic-strip::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 7px;
    background: url('assets/ajrak-pattern.svg') center / 14px repeat;
}
.ts-intro { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding-right: 22px; border-right: 1px solid var(--line); }
.ts-mark {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c4161c, #8f1015);
    color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, #c4161c 14%, transparent);
}
.ts-mark .icon { width: 20px; height: 20px; }
.ts-title { margin: 0; font-size: 20px; line-height: 1.2; color: var(--ink); }
.ts-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--text-soft); }
.ts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ts-list li { margin: 0; }
.ts-chip {
    --tc: #b3141b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--tc) 22%, var(--line));
    background: color-mix(in srgb, var(--tc) 7%, var(--card));
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.ts-ico {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tc);
    color: #fff;
    transition: background .2s ease;
}
.ts-ico .icon { width: 14px; height: 14px; }
.ts-chip:hover, .ts-chip:focus-visible { background: var(--tc); border-color: var(--tc); color: #fff; transform: translateY(-2px); }
.ts-chip:hover .ts-ico, .ts-chip:focus-visible .ts-ico { background: rgba(255, 255, 255, .2); }
.ts-history  { --tc: #8b4513; }
.ts-heritage { --tc: #7d6410; }
.ts-culture  { --tc: #a8155f; }
.ts-shrine   { --tc: #0e7a4b; }
.ts-tourism  { --tc: #1d6fa8; }

/* ---------------------------------------------------------
   4. LATEST / CARD GRIDS
   --------------------------------------------------------- */
body[class*="ps-home-"] .article-grid { gap: 20px; }

/* ---------------------------------------------------------
   5. EXPLORE SINDH (bento: 1 big + 4 cards)
   --------------------------------------------------------- */
body[class*="ps-home-"] .section-explore { margin-top: 60px; }
body[class*="ps-home-"] .explore-head h2 { font-size: 32px; }
body[class*="ps-home-"] .explore-head .orn { color: var(--red); }
body[class*="ps-home-"] .explore-sub { margin: 8px 0 24px; font-size: 15px; }
.explore-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, 260px); gap: 16px; }
body[class*="ps-home-"] .explore-card {
    --ec: #0e7a4b;
    min-height: 0;
    border-radius: var(--home-radius);
    background-color: #0b1a3a;
    box-shadow: var(--home-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
body[class*="ps-home-"] .explore-card.is-big { grid-row: 1 / span 2; }
body[class*="ps-home-"] .explore-card::before {
    background: linear-gradient(180deg, rgba(8, 18, 45, .12) 0%, color-mix(in srgb, var(--ec) 30%, rgba(8, 18, 45, .55)) 48%, rgba(8, 18, 45, .95) 100%);
}
body[class*="ps-home-"] .explore-card:hover,
body[class*="ps-home-"] .explore-card:focus-within { transform: translateY(-5px); box-shadow: var(--home-shadow-hover); }
body[class*="ps-home-"] .explore-card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
body[class*="ps-home-"] .explore-card h3 a { color: #fff; }
body[class*="ps-home-"] .explore-card h3 a:focus-visible { outline: none; }
.explore-history  { --ec: #8b4513 !important; }
.explore-culture  { --ec: #a8155f !important; }
.explore-heritage { --ec: #7d6410 !important; }
.explore-tourism  { --ec: #1d6fa8 !important; }
.explore-recipes  { --ec: #b3470f !important; }
.explore-card.explore-heritage:not(.has-img) { background-image: linear-gradient(135deg, #7d6410, #2e2408); }
.explore-card.explore-recipes:not(.has-img) { background-image: linear-gradient(135deg, #b3470f, #3b1606); }

body[class*="ps-home-"] .explore-inner {
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 12px;
    padding: 20px;
}
.explore-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body[class*="ps-home-"] .explore-icon {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--ec);
    border: 1.5px solid rgba(255, 255, 255, .55);
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}
.explore-count {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
body[class*="ps-home-"] .explore-copy h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
body[class*="ps-home-"] .explore-card.is-big .explore-copy h3 { font-size: 32px; }
body[class*="ps-home-"] .explore-copy p {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body[class*="ps-home-"] .explore-card.is-big .explore-copy p { font-size: 15px; -webkit-line-clamp: 3; max-width: 440px; }
.explore-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.explore-tags li {
    margin: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .26);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}
body[class*="ps-home-"] .explore-copy .explore-btn { display: none; }
body[class*="ps-home-"] .explore-card.is-big .explore-copy .explore-btn { display: inline-flex; margin-top: 18px; background: #fff; color: #0b1a3a; padding: 10px 20px; }
body[class*="ps-home-"] .explore-card.is-big:hover .explore-btn { background: var(--gold); color: #2a1a00; gap: 11px; }

/* ---------------------------------------------------------
   6. CATEGORY SECTION LAYOUTS
   --------------------------------------------------------- */
/* 6a. feature: big lead story + 3 horizontal cards */
.sec-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.sec-feature.is-rev .lead-card { order: 2; }
.lead-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.lead-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    z-index: 3;
    background: linear-gradient(90deg, var(--cc, var(--red)), var(--gold, #e9b949));
}
.lead-card:hover { transform: translateY(-4px); box-shadow: var(--home-shadow-hover); border-color: color-mix(in srgb, var(--cc, #b3141b) 30%, var(--line)); }
.lead-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--navy) url('assets/ajrak-pattern.svg') center / 48px repeat;
}
.lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.lead-card:hover .lead-media img { transform: scale(1.05); }
.lead-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 24px 22px; flex: 1 1 auto; }
.lead-read { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lead-read .icon { width: 13px; height: 13px; }
.lead-title { margin: 0; font-size: 27px; line-height: 1.22; }
.lead-title a { color: var(--ink); }
.lead-card:hover .lead-title a { color: var(--cc, var(--red)); }
.lead-excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead-card .article-meta { margin-top: auto; padding-top: 6px; font-size: 12.5px; }

.sec-list { display: flex; flex-direction: column; gap: 14px; }
.hcard {
    position: relative;
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 26, 58, .04);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.hcard:hover { transform: translateX(4px); box-shadow: 0 12px 26px rgba(11, 26, 58, .1); border-color: color-mix(in srgb, var(--cc, #b3141b) 35%, var(--line)); }
.hcard-thumb {
    position: relative;
    display: block;
    height: 100%;
    min-height: 112px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy) url('assets/ajrak-pattern.svg') center / 32px repeat;
}
.hcard-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hcard:hover .hcard-thumb img { transform: scale(1.07); }
.hcard-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 6px; }
.hcard-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--cc, var(--red)); }
.hcard-title { margin: 0; font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-title a { color: var(--ink); }
.hcard-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.hcard:hover .hcard-title a { color: var(--cc, var(--red)); }
.hcard-excerpt { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .article-meta { font-size: 11.5px; }

/* 6b. mosaic: picture tiles with the title on the image */
.sec-mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 16px; }
.sec-mosaic.n-3 { grid-template-columns: 1.4fr 1fr; }
.sec-mosaic.n-4 .tile-card:nth-child(4) { grid-column: 2 / span 2; }
.tile-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--home-radius);
    background: var(--navy) url('assets/ajrak-pattern.svg') center / 56px repeat;
    color: #fff;
    box-shadow: var(--home-shadow);
}
.tile-card.tile-big { grid-row: 1 / span 2; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile-card:hover .tile-img { transform: scale(1.06); }
.tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 9px;
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(8, 18, 45, 0) 30%, rgba(8, 18, 45, .6) 62%, rgba(8, 18, 45, .95) 100%);
}
.tile-title { margin: 0; font-size: 19px; line-height: 1.25; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.tile-big .tile-title { font-size: 30px; line-height: 1.18; max-width: 520px; }
.tile-title a, .tile-title a:hover { color: #fff; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: rgba(255, 255, 255, .88); }
.tile-card::after {
    content: '';
    position: absolute;
    left: 22px; bottom: 0;
    z-index: 3;
    width: 0; height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--gold, #e9b949);
    transition: width .35s ease;
}
.tile-card:hover::after { width: 80px; }

/* 6c. headlines: 2 x 2 horizontal cards (News) */
.sec-headlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sec-headlines .hcard { grid-template-columns: 150px minmax(0, 1fr); }
.sec-headlines .hcard-thumb { min-height: 104px; }

/* ---------------------------------------------------------
   7. COMING UP IN SINDH (festival countdown)
   --------------------------------------------------------- */
.section-festivals[hidden] { display: none !important; }
body[class*="ps-home-"] .section-festivals .festival-strip {
    position: relative;
    margin-top: 0;
    padding: 26px 22px 18px;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(233, 185, 73, .18), transparent 60%),
        linear-gradient(135deg, #1b1145 0%, #2a1a6b 55%, #4c1d95 100%);
    box-shadow: var(--home-shadow);
}
body[class*="ps-home-"] .section-festivals .festival-strip::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 8px;
    background: url('assets/ajrak-pattern.svg') center / 16px repeat;
}
body[class*="ps-home-"] .section-festivals .festival-grid { gap: 14px; }
body[class*="ps-home-"] .section-festivals .ft {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    box-shadow: none;
    transition: transform .25s ease, background .25s ease;
}
body[class*="ps-home-"] .section-festivals .ft:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .11); }
body[class*="ps-home-"] .section-festivals .ft-icon { background: var(--gold); color: #2a1a6b; flex: 0 0 42px; width: 42px; height: 42px; }
body[class*="ps-home-"] .section-festivals .ft-name { color: #fff; font-size: 17px; }
body[class*="ps-home-"] .section-festivals .ft-note,
body[class*="ps-home-"] .section-festivals .ft-when { color: rgba(255, 255, 255, .74); }
body[class*="ps-home-"] .section-festivals .ft-when { margin-top: 4px; font-weight: 600; }
body[class*="ps-home-"] .section-festivals .ft-count {
    position: absolute;
    top: 18px; right: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffd98a;
    font-size: 15px;
}
body[class*="ps-home-"] .section-festivals .ft-first { background: linear-gradient(135deg, #f4d27a, #e9b949); border-color: transparent; }
body[class*="ps-home-"] .section-festivals .ft-first .ft-icon { background: #2a1a6b; color: var(--gold); }
body[class*="ps-home-"] .section-festivals .ft-first .ft-name { color: #2a1a00; }
body[class*="ps-home-"] .section-festivals .ft-first .ft-note,
body[class*="ps-home-"] .section-festivals .ft-first .ft-when { color: rgba(42, 26, 0, .78); }
body[class*="ps-home-"] .section-festivals .ft-first .ft-count { background: #2a1a6b; color: #ffd98a; }
body[class*="ps-home-"] .section-festivals .ft.ft-now:not(.ft-first) { border-color: #8ef0bf; box-shadow: inset 3px 0 0 #8ef0bf; }
body[class*="ps-home-"] .section-festivals .ft-now:not(.ft-first) .ft-count { color: #8ef0bf; }
body[class*="ps-home-"] .section-festivals .pw-note { color: rgba(255, 255, 255, .66); margin: 14px 0 0; }

/* ---------------------------------------------------------
   8. INSIGHTS, TODAY, GUIDE, LEARN & PLAY - shared card polish
   --------------------------------------------------------- */
body[class*="ps-home-"] .insights-grid > .widget,
body[class*="ps-home-"] .today-grid > .widget,
body[class*="ps-home-"] .guide-grid > .widget,
body[class*="ps-home-"] .learn-play-grid > * { border-radius: var(--home-radius); box-shadow: var(--home-shadow); }
body[class*="ps-home-"] .insights-grid { gap: 18px; }

/* ---------------------------------------------------------
   9. SINDH IN PICTURES (mosaic gallery)
   --------------------------------------------------------- */
body[class*="ps-home-"] .pg-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 160px; grid-auto-flow: dense; gap: 12px; }
body[class*="ps-home-"] .pg-strip .pg-item { aspect-ratio: auto; border-radius: 16px; box-shadow: var(--home-shadow); }
body[class*="ps-home-"] .pg-strip .pg-item:first-child { grid-column: span 2; grid-row: span 2; }
body[class*="ps-home-"] .pg-strip .pg-item:nth-child(6) { grid-column: span 2; }
body[class*="ps-home-"] .pg-strip .pg-item::after {
    content: attr(data-title);
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 34px 14px 12px;
    background: linear-gradient(180deg, rgba(8, 18, 45, 0), rgba(8, 18, 45, .88));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body[class*="ps-home-"] .pg-strip .pg-item:first-child::after { font-family: var(--font-serif); font-size: 20px; opacity: 1; transform: none; padding: 60px 20px 18px; }
body[class*="ps-home-"] .pg-strip .pg-item:hover::after,
body[class*="ps-home-"] .pg-strip .pg-item:focus-visible::after { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   10. POETS & LEGENDS
   --------------------------------------------------------- */
body[class*="ps-home-"] .poet-card { border-radius: 16px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
body[class*="ps-home-"] .poet-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 26, 58, .1); border-color: color-mix(in srgb, #0b5d3b 35%, var(--line)); }
body[class*="ps-home-"] .poet-initial { background: linear-gradient(135deg, #0f7146, #0b5d3b); box-shadow: 0 0 0 3px color-mix(in srgb, #0f7146 18%, transparent); }
body[class*="ps-home-"] .heroines { border-radius: var(--home-radius); }

/* ---------------------------------------------------------
   11. MAGAZINE design - share the new card language
   --------------------------------------------------------- */
body.ps-home-magazine .mag-lead,
body.ps-home-magazine .mag-stack-item,
body.ps-home-magazine .mag-latest,
body.ps-home-magazine .mag-band-card,
body.ps-home-magazine .mag-block-main { border-radius: var(--home-radius); }
body.ps-home-magazine .mag-topic { border-radius: 999px; }

/* ---------------------------------------------------------
   12. DARK MODE
   --------------------------------------------------------- */
html[data-theme="dark"] body[class*="ps-home-"] {
    --home-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --home-shadow-hover: 0 18px 40px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] body[class*="ps-home-"] .section-head .view-all-link { color: color-mix(in srgb, var(--rb, #b8161e) 45%, #fff); background: color-mix(in srgb, var(--rb, #b8161e) 16%, var(--card)); border-color: color-mix(in srgb, var(--rb, #b8161e) 40%, var(--line)); }
html[data-theme="dark"] body[class*="ps-home-"] .section-head .view-all-link:hover { color: #fff; background: var(--rb, var(--red)); }
html[data-theme="dark"] .ts-chip { background: color-mix(in srgb, var(--tc) 18%, var(--card)); border-color: color-mix(in srgb, var(--tc) 40%, var(--line)); }
html[data-theme="dark"] .hcard-cat { color: color-mix(in srgb, var(--cc, #b3141b) 50%, #fff); }
html[data-theme="dark"] .hcard:hover .hcard-title a,
html[data-theme="dark"] .lead-card:hover .lead-title a { color: color-mix(in srgb, var(--cc, #b3141b) 45%, #fff); }
html[data-theme="dark"] body[class*="ps-home-"] .explore-head .orn { color: #ff7f86; }

/* ---------------------------------------------------------
   13. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1100px) {
    body[class*="ps-home-"] .hero-area { height: 450px; }
    body[class*="ps-home-"] .hero-main .hero-title { font-size: 30px; }
    .topic-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ts-intro { padding-right: 0; border-right: 0; }
    .explore-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 240px 240px; }
    body[class*="ps-home-"] .explore-card.is-big { grid-column: 1 / -1; grid-row: auto; }
    .sec-feature { grid-template-columns: 1fr; }
    .sec-feature.is-rev .lead-card { order: 0; }
    .sec-feature .lead-media { aspect-ratio: 2 / 1; }
    .sec-mosaic, .sec-mosaic.n-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 210px 210px; }
    .tile-card.tile-big { grid-column: 1 / -1; grid-row: auto; }
    .sec-mosaic.n-4 .tile-card:nth-child(4) { grid-column: 1 / -1; }
    .sec-mosaic.n-3 { grid-template-rows: 300px 210px; }
    body[class*="ps-home-"] .section-festivals .festival-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    body[class*="ps-home-"] .hero-area { height: auto; grid-template-columns: 1fr; }
    body[class*="ps-home-"] .hero-slider { height: 400px; }
    body[class*="ps-home-"] .section-latest { margin-top: 44px; }
    body[class*="ps-home-"] .ribbon-text { font-size: 23px; }
    body[class*="ps-home-"] .hh-kicker { font-size: 12.5px; }
    .sec-headlines { grid-template-columns: 1fr; }
    body[class*="ps-home-"] .pg-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 130px; }
    body[class*="ps-home-"] .pg-strip .pg-item:nth-child(6) { grid-column: auto; }
}
@media (max-width: 700px) {
    .ts-list { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .ts-list::-webkit-scrollbar { display: none; }
    .topic-strip { padding: 14px 14px 14px 20px; }
    .explore-bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
    body[class*="ps-home-"] .explore-card { min-height: 220px; }
    body[class*="ps-home-"] .explore-card.is-big { min-height: 320px; }
    body[class*="ps-home-"] .explore-card.is-big .explore-copy h3 { font-size: 26px; }
    .sec-mosaic, .sec-mosaic.n-3 { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
    .tile-card.tile-big { grid-row: auto; }
    .sec-mosaic .tile-card.tile-big { min-height: 280px; }
    .tile-big .tile-title { font-size: 24px; }
    .lead-title { font-size: 22px; }
    .lead-body { padding: 18px; }
}
@media (max-width: 600px) {
    body[class*="ps-home-"] .hero-slider { height: 360px; }
    body[class*="ps-home-"] .hero-main .hero-overlay { padding: 22px 60px 22px 20px; }
    body[class*="ps-home-"] .hero-main .hero-title { font-size: 24px; }
    body[class*="ps-home-"] .hero-excerpt { display: none; }
    body[class*="ps-home-"] .hero-flag { top: 12px; left: 12px; padding: 5px 10px; font-size: 10.5px; }
    body[class*="ps-home-"] .section-head { flex-wrap: nowrap; gap: 12px; }
    body[class*="ps-home-"] .ribbon-pattern { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
    body[class*="ps-home-"] .hh-icon .icon { width: 19px; height: 19px; }
    body[class*="ps-home-"] .ribbon-text { font-size: 21px; padding: 0; letter-spacing: 0; }
    body[class*="ps-home-"] .section-head .view-all-link { padding: 7px 10px 7px 12px; font-size: 12px; margin-inline-start: auto; }
    body[class*="ps-home-"] .va-count { display: none; }
    .hcard, .sec-headlines .hcard { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; }
    .hcard-thumb, .sec-headlines .hcard-thumb { min-height: 92px; }
    .hcard-title { font-size: 15.5px; }
    .hcard-excerpt { display: none; }
    body[class*="ps-home-"] .section-festivals .festival-grid { grid-template-columns: 1fr; }
    body[class*="ps-home-"] .pg-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
    body[class*="ps-home-"] .pg-strip .pg-item:first-child::after { font-size: 16px; padding: 40px 14px 12px; }
}
@media (max-width: 380px) {
    body[class*="ps-home-"] .ribbon-text { font-size: 19px; }
    body[class*="ps-home-"] .hh-kicker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lead-card, .hcard, .tile-card, .ts-chip, body[class*="ps-home-"] .explore-card, body[class*="ps-home-"] .section-festivals .ft { transition: none !important; }
    .lead-card:hover, .hcard:hover, .ts-chip:hover, body[class*="ps-home-"] .explore-card:hover { transform: none !important; }
}

/* =========================================================
   v5.2 NEW HOMEPAGE SECTIONS (inc/home-extra.php)
   14. Sindh at a Glance  15. Timeline  16. Regions
   17. Readers' Favourites  18. Share Your Sindh  19. dark + responsive
   ========================================================= */
.section-timeline  { --rb: #8b4513; --rb2: #a8551b; }
.section-regions   { --rb: #0f766e; --rb2: #13948a; }
.section-trending  { --rb: #b3141b; --rb2: #d0242b; }

/* ---------- 14. SINDH AT A GLANCE ---------- */
.section-glance {
    position: relative;
    margin-top: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: 28px;
    align-items: center;
    padding: 34px 34px 30px;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(520px 260px at 0% 0%, rgba(196, 22, 28, .38), transparent 70%),
        radial-gradient(520px 260px at 100% 100%, rgba(233, 185, 73, .18), transparent 70%),
        linear-gradient(135deg, #0b1a3a 0%, #13285a 100%);
    box-shadow: 0 18px 40px rgba(11, 26, 58, .18);
}
.section-glance::before, .section-glance::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 8px;
    background: url('assets/ajrak-pattern.svg') center / 16px repeat;
    opacity: .9;
}
.section-glance::before { top: 0; }
.section-glance::after { bottom: 0; }
.glance-kicker {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--gold, #e9b949);
    color: #2a1a00;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.glance-title { text-wrap: balance; margin: 14px 0 10px; color: #fff; font-size: 32px; line-height: 1.15; }
.glance-text { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.6; }
.glance-src { margin: 12px 0 0; color: rgba(255, 255, 255, .5); font-size: 11.5px; }
.glance-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.glance-grid li { margin: 0; }
.glance-item {
    height: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
a.glance-item:hover, a.glance-item:focus-visible { background: rgba(255, 255, 255, .12); border-color: var(--gold, #e9b949); transform: translateY(-3px); color: #fff; }
.gl-icon {
    grid-row: 1 / span 3;
    align-self: start;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 185, 73, .16);
    color: var(--gold, #e9b949);
}
.gl-icon .icon { width: 20px; height: 20px; }
.gl-value { font-family: var(--font-serif); font-size: 23px; font-weight: 800; line-height: 1.15; color: #fff; }
.gl-label { margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.gl-note { margin-top: 2px; font-size: 12.5px; color: var(--gold, #e9b949); }
.gl-note[dir="rtl"] { text-align: left; font-size: 15px; }

/* ---------- 15. SINDH THROUGH THE AGES ---------- */
.tl-wrap { position: relative; }
.tl-track {
    list-style: none;
    margin: 0;
    padding: 6px 4px 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, calc((100% - 3 * 18px) / 4));
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, #8b4513 40%, transparent) transparent;
    position: relative;
}
.tl-track:focus-visible { outline: 2px solid var(--rb); outline-offset: 4px; border-radius: 12px; }
.tl-item { position: relative; margin: 0; padding-top: 38px; scroll-snap-align: start; }
/* the line runs through every item */
.tl-item::before {
    content: '';
    position: absolute;
    top: 17px; left: 0; right: -18px;
    height: 3px;
    background: repeating-linear-gradient(90deg, #8b4513 0 10px, transparent 10px 16px);
    opacity: .45;
}
.tl-item:last-child::before { right: 50%; }
.tl-dot {
    position: absolute;
    top: 0; left: 18px;
    z-index: 1;
    width: 37px; height: 37px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8551b, #8b4513);
    color: #fff;
    box-shadow: 0 0 0 5px var(--cream), 0 6px 14px rgba(139, 69, 19, .35);
}
.tl-dot .icon { width: 17px; height: 17px; }
.tl-card {
    position: relative;
    height: calc(100% - 4px);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 26, 58, .04), 0 8px 20px rgba(11, 26, 58, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tl-card::before {
    content: '';
    position: absolute;
    top: -8px; left: 30px;
    width: 14px; height: 14px;
    background: var(--card);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.tl-item:hover .tl-card { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(11, 26, 58, .12); border-color: color-mix(in srgb, #8b4513 35%, var(--line)); }
.tl-when { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, #8b4513 11%, transparent); color: #8b4513; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.tl-title { margin: 2px 0 0; font-size: 19px; line-height: 1.25; }
.tl-title a { color: var(--ink); }
.tl-title a::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.tl-item:hover .tl-title a { color: #8b4513; }
.tl-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-soft); }
.tl-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; font-size: 12.5px; font-weight: 700; color: #8b4513; }
.tl-more .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.tl-item:hover .tl-more .icon { transform: translateX(3px); }
.tl-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11, 26, 58, .15);
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.tl-nav .icon { width: 18px; height: 18px; }
.tl-prev { left: -16px; }
.tl-prev .icon { transform: rotate(180deg); }
.tl-next { right: -16px; }
.tl-nav:hover:not(:disabled) { background: #8b4513; border-color: #8b4513; color: #fff; }
.tl-nav:disabled { opacity: 0; pointer-events: none; }
.tl-static .tl-nav { display: none; }

/* ---------- 16. EXPLORE BY REGION ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.region-card {
    --rc: #0f766e;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 20px 18px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--rc) 9%, var(--card)) 0%, var(--card) 60%);
    border: 1px solid color-mix(in srgb, var(--rc) 20%, var(--line));
    box-shadow: 0 1px 2px rgba(11, 26, 58, .04), 0 8px 22px rgba(11, 26, 58, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.region-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rc); }
.region-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11, 26, 58, .12); border-color: color-mix(in srgb, var(--rc) 45%, var(--line)); }
.rg-karachi  { --rc: #1d6fa8; }
.rg-laar     { --rc: #7d6410; }
.rg-vicholo  { --rc: #a8155f; }
.rg-kohistan { --rc: #8b4513; }
.rg-siro     { --rc: #0e7a4b; }
.rg-thar     { --rc: #b3470f; }
.region-card > *:not(.rg-script) { position: relative; z-index: 1; }
.rg-script {
    position: absolute;
    right: 14px; bottom: -18px;
    z-index: 0;
    font-size: 76px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rc);
    opacity: .1;
    pointer-events: none;
    user-select: none;
}
.rg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rg-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--rc); color: #fff; box-shadow: 0 8px 16px color-mix(in srgb, var(--rc) 30%, transparent); }
.rg-icon .icon { width: 19px; height: 19px; }
.rg-count { position: relative; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 12%, var(--card)); color: var(--rc); font-size: 12px; font-weight: 700; }
.rg-title { margin: 4px 0 0; font-size: 20px; line-height: 1.2; }
.rg-title a { color: var(--ink); }
.rg-title a:hover { color: var(--rc); }
.rg-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-soft); }
.rg-places { list-style: none; margin: auto 0 0; padding: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rg-places li { margin: 0; }
.rg-places a {
    display: inline-flex;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--rc) 25%, var(--line));
    background: var(--card);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.rg-places a:hover, .rg-places a:focus-visible { background: var(--rc); border-color: var(--rc); color: #fff; }

/* ---------- 17. READERS' FAVOURITES ---------- */
.trend-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.trend-archive { display: flex; flex-direction: column; }
.archive-list { flex: 1 1 auto; }
.archive-list .hcard { flex: 1 1 0; }
.trend-panel {
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11, 26, 58, .04), 0 8px 22px rgba(11, 26, 58, .05);
}
.trend-sub { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.trend-sub .icon { width: 18px; height: 18px; color: var(--rb, #b3141b); }
.trend-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.trend-item {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 13px 0;
    border-top: 1px dashed var(--line);
}
.trend-item:first-child { border-top: 0; }
.trend-rank {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--cc, #b3141b);
}
.trend-item:first-child .trend-rank { color: var(--cc, #b3141b); -webkit-text-stroke: 0; }
.trend-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trend-title { margin: 0; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-title a { color: var(--ink); }
.trend-title a::after { content: ''; position: absolute; inset: 0; }
.trend-item:hover .trend-title a { color: var(--cc, var(--red)); }
.trend-meta { font-size: 12px; color: var(--muted); }
.trend-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; transition: transform .3s ease; }
.trend-item:hover .trend-thumb { transform: scale(1.05); }
.trend-archive { background: linear-gradient(180deg, color-mix(in srgb, #e9b949 10%, var(--card)), var(--card) 40%); }
.archive-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.archive-list .hcard { grid-template-columns: 120px minmax(0, 1fr); padding: 10px; }
.archive-list .hcard-thumb { min-height: 86px; }
.archive-list .hcard-title { font-size: 15.5px; }
.surprise-btn {
    margin-top: 14px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1.5px dashed color-mix(in srgb, #b3141b 40%, var(--line));
    color: var(--red, #b3141b);
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.surprise-btn .icon { width: 16px; height: 16px; }
.surprise-btn:hover { background: var(--red, #b3141b); border-color: var(--red, #b3141b); border-style: solid; color: #fff; }

/* ---------- 18. SHARE YOUR SINDH ---------- */
.section-contribute {
    position: relative;
    margin-top: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding: 36px 36px 36px 44px;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(480px 240px at 100% 0%, rgba(233, 185, 73, .25), transparent 70%),
        linear-gradient(135deg, #8f1015 0%, #b3141b 55%, #c4161c 100%);
    box-shadow: 0 18px 40px rgba(143, 16, 21, .25);
}
.section-contribute::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 12px;
    background: url('assets/ajrak-pattern.svg') center / 18px repeat;
}
.ct-kicker { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ct-title { margin: 14px 0 10px; max-width: 560px; color: #fff; font-size: 29px; line-height: 1.2; text-wrap: balance; }
.ct-text { margin: 0; max-width: 540px; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.6; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.ct-btn .icon { width: 17px; height: 17px; }
.ct-primary { background: #fff; color: #8f1015; }
.ct-primary:hover { background: var(--gold, #e9b949); color: #2a1a00; transform: translateY(-2px); }
.ct-ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.ct-ghost:hover { background: #fff; color: #0e7a4b; transform: translateY(-2px); }
.ct-ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-ideas li {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
}
.ct-ideas strong { color: #fff; font-size: 15px; }
.ct-ico { width: 36px; height: 36px; margin-bottom: 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #b3141b; }
.ct-ico .icon { width: 18px; height: 18px; }

/* ---------- 19. DARK MODE + RESPONSIVE (new sections) ---------- */
html[data-theme="dark"] .section-glance { background: radial-gradient(520px 260px at 0% 0%, rgba(196, 22, 28, .3), transparent 70%), linear-gradient(135deg, #0a1430 0%, #111f45 100%); border: 1px solid var(--line); }
html[data-theme="dark"] .tl-dot { box-shadow: 0 0 0 5px var(--cream), 0 6px 14px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .tl-when,
html[data-theme="dark"] .tl-more,
html[data-theme="dark"] .tl-item:hover .tl-title a { color: #e9a36b; }
html[data-theme="dark"] .tl-when { background: rgba(233, 163, 107, .14); }
html[data-theme="dark"] .rg-count,
html[data-theme="dark"] .rg-title a:hover { color: color-mix(in srgb, var(--rc) 45%, #fff); }
html[data-theme="dark"] .rg-count { background: color-mix(in srgb, var(--rc) 22%, var(--card)); }
html[data-theme="dark"] .rg-script { opacity: .16; color: color-mix(in srgb, var(--rc) 50%, #fff); }
html[data-theme="dark"] .trend-rank { -webkit-text-stroke-color: color-mix(in srgb, var(--cc, #b3141b) 50%, #fff); }
html[data-theme="dark"] .trend-item:first-child .trend-rank { color: color-mix(in srgb, var(--cc, #b3141b) 50%, #fff); }
html[data-theme="dark"] .trend-archive { background: linear-gradient(180deg, rgba(233, 185, 73, .07), var(--card) 40%); }
html[data-theme="dark"] .surprise-btn { color: #ff8a90; }
html[data-theme="dark"] .surprise-btn:hover { color: #fff; }
html[data-theme="dark"] .section-contribute { background: radial-gradient(480px 240px at 100% 0%, rgba(233, 185, 73, .16), transparent 70%), linear-gradient(135deg, #5e0b0f 0%, #85101a 100%); }

@media (max-width: 1100px) {
    .section-glance { grid-template-columns: 1fr; padding: 30px 26px 26px; }
    .glance-intro { max-width: 640px; }
    .tl-track { grid-auto-columns: minmax(250px, calc((100% - 2 * 18px) / 3)); }
    .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-contribute { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .trend-grid { grid-template-columns: 1fr; }
    .tl-track { grid-auto-columns: minmax(240px, calc((100% - 18px) / 2)); }
    .tl-prev { left: -8px; }
    .tl-next { right: -8px; }
}
@media (max-width: 700px) {
    .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .glance-item { grid-template-columns: 1fr; padding: 14px; }
    .gl-icon { grid-row: auto; width: 34px; height: 34px; margin-bottom: 8px; }
    .gl-value { font-size: 20px; }
    .glance-title { font-size: 26px; }
    .region-grid { grid-template-columns: 1fr; }
    .section-contribute { padding: 28px 22px 26px 30px; }
    .ct-title { font-size: 23px; }
}
@media (max-width: 600px) {
    .section-glance, .section-contribute { margin-top: 44px; border-radius: 18px; }
    .tl-track { grid-auto-columns: 82%; gap: 14px; }
    .tl-item::before { right: -14px; }
    .tl-nav { display: none; }
    .trend-panel { padding: 16px; }
    .trend-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
    .trend-rank { font-size: 30px; }
    .trend-thumb { width: 60px; height: 60px; }
    .archive-list .hcard { grid-template-columns: 100px minmax(0, 1fr); }
    .ct-ideas { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ct-ideas li { padding: 12px; }
    .ct-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .glance-item, .tl-card, .region-card, .trend-thumb, .ct-btn { transition: none !important; }
    .tl-item:hover .tl-card, .region-card:hover, a.glance-item:hover { transform: none !important; }
}

/* v5.2: mobile headings - give the title the full row */
@media (max-width: 600px) {
    body[class*="ps-home-"] .home-head { justify-content: flex-start; align-items: flex-start; }
    body[class*="ps-home-"] .home-head .section-line { display: none; }
    body[class*="ps-home-"] .home-head .hh-text { flex: 1 1 auto; text-align: start; }
    body[class*="ps-home-"] .home-head .view-all-link { align-self: center; }
}
