/* ==========================================================================
   Homepage density (26 Nov 2026)
   Layered over style.css on the front page only (enqueued by
   cbk_home_density_assets() in functions.php).

   "At 100% zoom the website looks zoomed in": most laptops run Windows at
   125-150% display scaling, so a 1920px screen gives the browser a
   1280-1536px wide page at 100% zoom. The homepage type was sized for a
   1920px page (32px section headings, 18-20px card titles), so it read as
   zoomed in. Headings and card titles now scale with the page width and
   stop at a smaller maximum.

   Also:
   - Multimedia & Videos: the video column now takes all the space next to
     Key Rates. Both columns had fixed max-widths with space-between, which
     left an empty band between them at many widths.
   - Auction Results / On Offer: the Treasury Bills and Treasury Bonds
     buttons stay side by side at every width (they only did below 1025px).
   ========================================================================== */

/* ---- Section headings -------------------------------------------------- */
@media (min-width: 1025px) {
    body.home .tabbed-posts-tab,
    body.home .multimedia-title,
    body.home .quick-top-hdg .elementor-heading-title,
    body.home .trurs-hdg .elementor-heading-title,
    body.home .exchange-rates.exchange-rates-extra .indic-inr-mn h2 {
        font-size: clamp(24px, 1.6vw, 28px) !important;
        line-height: 1.3 !important;
    }
}

/* ---- Recent News and Events: card titles ------------------------------ */
body.home .tabbed-posts-post-title,
body.home .tabbed-posts-post-title a {
    font-size: clamp(15px, 0.85vw, 16px) !important;
    line-height: 1.4 !important;
}

/* Read More buttons line up along the bottom of each row: the cards are
   already equal height (grid stretch), so the text area fills the card and
   the button is pushed to its foot. */
body.home .tabbed-posts-grid > .tabbed-posts-post {
    display: flex;
    flex-direction: column;
}
body.home .tabbed-posts-post > .tabbed-posts-post-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
body.home .tabbed-posts-post-content > .tabbed-posts-read-more-wrapper {
    margin-top: auto;
}
/* Category and date: each stays on one line ("BANKING SECTOR" was split
   over two lines next to a split date); the date moves under the category
   when the card is too narrow for both. The "—" separator sits in the gap
   to the left of the date, so when the date wraps to its own line the
   dash falls outside the meta box and is clipped instead of leading it. */
body.home .tabbed-posts-meta {
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 34px;
    overflow: hidden;
}
body.home .tabbed-posts-meta > span {
    white-space: nowrap;
}
body.home .tabbed-posts-meta > .tabbed-posts-date {
    position: relative;
}
body.home .tabbed-posts-meta > .tabbed-posts-date::before {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 9px !important;
}

/* ---- Multimedia & Videos: card titles --------------------------------- */
body.home .exchn-rate-mn .cbkytb-widget-video-info-title {
    font-size: 15px !important;
    line-height: 1.35 !important;
}
body.home .exchn-rate-mn .cbkytb-widget-video-info-properties {
    font-size: 14px !important;
}

/* ---- Quick Links: card titles and text -------------------------------- */
body.home .quick-link-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
}
body.home .quick-link-content {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* ---- Multimedia & Videos: no gap before Key Rates --------------------- */
@media (min-width: 1025px) {
    body.home .exchn-rate-mn > .elementor-container {
        justify-content: flex-start !important;
        flex-wrap: nowrap;
    }
    body.home .exchn-rate-mn > .elementor-container > .exchange-rates.exchange-rates-extra {
        flex: 1 1 0 !important;
        min-width: 0;
        max-width: none !important;
    }
    body.home .exchn-rate-mn > .elementor-container > .innser-sec-new-rate-key {
        flex: 0 0 clamp(300px, 24%, 380px) !important;
        width: clamp(300px, 24%, 380px) !important;
        max-width: clamp(300px, 24%, 380px) !important;
    }
}

/* ---- Auction Results / On Offer: two buttons on one row --------------- */
/* A grid: the icon + heading takes the first row, the two buttons share
   the second and shrink together (never wrap) when the card is narrow. */
body.home .Auction-result-inner .elementor-widget-wrap.elementor-element-populated {
    display: grid !important;
    grid-template-columns: max-content max-content;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
body.home .Auction-result-inner .elementor-widget-wrap > .elementor-widget:not(.resul-inr-btn) {
    grid-column: 1 / -1;
}
body.home .Auction-result .resul-inr-btn {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
}
body.home .Auction-result .resul-inr-btn .elementor-button-wrapper,
body.home .Auction-result .resul-inr-btn a {
    width: 100%;
}
/* Card heading: centred over the buttons, Poppins like the rest of the
   site (was Arial), and its own icon instead of the shared document-and-pen
   image (Frame-13.svg, set in Elementor): a gavel for Auction Results
   (element df9c3e8) and a security certificate with a % seal for On Offer
   (element 5564820). The Elementor SVG is hidden, not removed. */
body.home .Auction-result .elementor-widget-icon-list .elementor-icon-list-item {
    justify-content: center;
    align-items: center;
    gap: 14px;
}
body.home .Auction-result .elementor-widget-icon-list .elementor-icon-list-text {
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    padding-left: 0 !important;
}
body.home .Auction-result .elementor-widget-icon-list .elementor-icon-list-icon {
    width: 44px !important;
    height: 44px;
    flex: 0 0 44px;
    /* Longhands only: a "background" shorthand here would reset the
       per-card background-image below (this selector is more specific). */
    background-position: center;
    background-size: 44px 44px;
    background-repeat: no-repeat;
    margin: 0 !important;
}
body.home .Auction-result .elementor-widget-icon-list .elementor-icon-list-icon svg {
    display: none !important;
}
body.home .elementor-element-df9c3e8 .elementor-icon-list-icon {
    background-image: url("../images/home-auction-results.svg");
}
body.home .elementor-element-5564820 .elementor-icon-list-icon {
    background-image: url("../images/home-on-offer.svg");
}
body.home .Auction-result .elementor-widget-icon-list {
    margin-bottom: 6px !important;
}

/* Buttons never shrink below their label (that overlapped the text at
   100% zoom on 1280px pages). Instead the card keeps the 10px inner
   padding it has on wide screens (style.css raised it to 30px under
   1400px) and the label size eases from 16px down to 14px on pages
   narrower than about 1400px. Elementor's own button typography is more
   specific, hence !important. */
@media (min-width: 1025px) {
    body.home .Auction-result > .elementor-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    /* The cards' column was capped at 290px under 1400px while the DhowCSD
       text + phone image beside it kept 529px, so at 100% zoom on a 1280px
       page the image grew and squeezed the cards. The cards now keep up to
       360px and the image side gives up the difference. */
    body.home .hom-bnr-sldr-col .resul-col {
        max-width: 360px !important;
        flex: 0 0 auto !important;
    }
    body.home .hom-bnr-sldr-col .exchange-rates.exchange-rates-extra {
        min-width: 0;
    }
}
body.home .Auction-result .resul-inr-btn a {
    justify-content: center;
    white-space: nowrap;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: clamp(14px, 1.15vw, 16px) !important;
}
