/* ==========================================================================
   Chhayanaut Template 1 — Smooth Scroll, Local Font, & Design Variants CSS
   Variants: classic | enhanced (Option A) | editorial (Option B)
   Heritage Palette: Saffron #FF822F | Forest Green #3ab64a | Ink #1f2321
   ========================================================================== */

/* 1. Local SolaimanLipi Font (zero external blocking font calls) */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('../../../backend/fonts/solaimanlipi/solaimanlipi.woff') format('woff'),
         url('../../../backend/fonts/solaimanlipi/solaimanlipi.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 2. Performance & Smooth Scroll (ALL Template 1 variants)
   Replaces CPU-bound background-attachment: fixed with GPU-composited layer
   and switches 696KB PNG Tagore banner to 180KB WebP */
html[data-frontend-template="template-1"] {
    --t1-orange: #FF822F;
    --t1-orange-dark: #e06a1a;
    --t1-orange-soft: #fff4ec;
    --t1-green: #3ab64a;
    --t1-green-dark: #2a8c37;
    --t1-green-soft: #eef9f0;
    --t1-ink: #1f2421;
    --t1-ink-muted: #565d58;
    --t1-border: #e6e2dc;
    --t1-surface: #ffffff;
    --t1-cream: #faf8f4;
    --t1-fallback-bg: #E9E7E6;
    --t1-font-scale: 1;
    text-size-adjust: 100%;
}

html[data-frontend-template="template-1"] body {
    background: #ddd !important;
    background-image: none !important;
    position: relative;
}

html[data-frontend-template="template-1"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #ddd url('../../images/backgrounds/1.png') 0 0 repeat;
    background-size: auto;
    transform: translateZ(0);
    will-change: transform;
}

html[data-frontend-template="template-1"] #layout {
    position: relative;
    z-index: 1;
}

html[data-frontend-template="template-1"] .full-width-background {
    background-image: url('../../template2/images/top_banner_4.webp');
}

/* Font-Size Scaler support (enhanced & editorial) */
html[data-t1-scale="sm"] { --t1-font-scale: 0.92; }
html[data-t1-scale="md"] { --t1-font-scale: 1; }
html[data-t1-scale="lg"] { --t1-font-scale: 1.1; }

html[data-t1-scale="sm"] body.t1-variant-enhanced .page-content,
html[data-t1-scale="sm"] body.t1-variant-editorial .page-content { font-size: 14px; }
html[data-t1-scale="lg"] body.t1-variant-enhanced .page-content,
html[data-t1-scale="lg"] body.t1-variant-editorial .page-content { font-size: 17px; line-height: 1.72; }

/* Subtle typography upgrade for enhanced & editorial */
body.t1-variant-enhanced,
body.t1-variant-editorial {
    font-family: 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif !important;
    color: var(--t1-ink);
    -webkit-font-smoothing: antialiased;
}

body.t1-variant-editorial h1,
body.t1-variant-editorial h2,
body.t1-variant-editorial .t1-ed-lead__title,
body.t1-variant-editorial .t1-ed-story__title,
body.t1-variant-editorial .t1-sec-head h2 {
    font-family: 'Noto Serif Bengali', 'Hind Siliguri', 'SolaimanLipi', serif;
}

/* ==========================================================================
   3. Top Institutional Utility Bar (Enhanced & Editorial)
   ========================================================================== */
.t1-utility-bar {
    background: #232824;
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 2px solid var(--t1-orange);
    font-size: 13px;
    line-height: 1.3;
    border-radius: 10px 10px 0 0;
}

.full .t1-utility-bar,
.boxed .t1-utility-bar {
    border-radius: 0;
}

.t1-utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.t1-utility-bar__dates {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: rgba(255, 255, 255, 0.9);
}

.t1-utility-bar__dates .t1-u-dot {
    color: var(--t1-orange);
    font-weight: 700;
}

.t1-utility-bar__dates .t1-u-loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #b7ebbf;
    font-weight: 600;
}

.t1-utility-bar__tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t1-font-ctrl {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    overflow: hidden;
}

.t1-font-btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.t1-font-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.t1-font-btn.is-active {
    background: var(--t1-orange);
    color: #fff;
}

.t1-u-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.t1-u-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.t1-u-btn kbd {
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.t1-u-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.t1-u-btn--cta {
    background: var(--t1-green);
    border-color: var(--t1-green);
    color: #fff !important;
}

.t1-u-btn--cta:hover {
    background: var(--t1-green-dark);
    border-color: var(--t1-green-dark);
}

/* Nav bar real search button replacing dead search_result.html form */
.t1-nav-search-btn {
    float: right;
    border: 0;
    background: transparent;
    color: #ffffff;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.t1-nav-search-btn:hover {
    background: rgba(0, 0, 0, 0.14);
}

.t1-nav-search-btn svg {
    width: 15px;
    height: 15px;
}

/* Enhanced & Editorial Masthead spacing */
body.t1-variant-enhanced .b_head {
    margin: 0 0 14px 0 !important;
    position: relative;
    overflow: hidden;
}

body.t1-variant-editorial .b_head {
    margin: 0 0 12px 0 !important;
    height: auto !important;
    min-height: 132px;
    padding: 10px 0 12px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

body.t1-variant-editorial .logo {
    position: relative;
    z-index: 2;
}

body.t1-variant-editorial .logo img {
    width: 86px !important;
    margin-top: 2px !important;
    margin-left: 10px !important;
}

body.t1-variant-editorial .logo h5 {
    font-size: 13.5px;
    line-height: 1.3;
    margin: 4px 0 0 12px !important;
    color: #2f3430;
}

/* Avoid duplicating dates in .a_head when Enhanced utility bar already displays them */
body.t1-variant-enhanced .a_head #date_time,
body.t1-variant-enhanced .a_head #date_time_bn,
body.t1-variant-enhanced .a_head #date_time_day {
    display: none !important;
}

/* ==========================================================================
   4. Always-Visible Urgent Alert Ribbon (Editorial Variant)
   ========================================================================== */
.t1-alert-ribbon {
    background: linear-gradient(90deg, #fff6ee 0%, #fffdf9 100%);
    border: 1px solid #f5d3b7;
    border-left: 4px solid var(--t1-orange);
    border-radius: 6px;
    margin: 12px 0 6px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(255, 130, 47, 0.08);
}

.t1-alert-ribbon__content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.t1-alert-ribbon__tag {
    display: inline-flex;
    align-items: center;
    background: var(--t1-orange);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.t1-alert-ribbon__tag--program {
    background: var(--t1-green);
}

.t1-alert-ribbon__text {
    color: var(--t1-ink) !important;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
}

.t1-alert-ribbon__text:hover {
    color: var(--t1-orange-dark) !important;
}

.t1-alert-ribbon__link {
    color: var(--t1-green-dark) !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.t1-alert-ribbon__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. 6-Column Department Quick-Access Strip (Enhanced & Editorial)
   ========================================================================== */
.t1-dept-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px 0;
    clear: both;
}

.t1-dept-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 13px;
    background: #fff;
    border: 1px solid var(--t1-border);
    border-top: 3px solid var(--t1-green);
    border-radius: 6px;
    text-decoration: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.t1-dept-card:nth-child(even) {
    border-top-color: var(--t1-orange);
}

.t1-dept-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #d6cfc4;
}

.t1-dept-card strong {
    font-size: 14.5px;
    color: var(--t1-ink);
    line-height: 1.3;
    transition: color 0.15s ease;
}

.t1-dept-card:hover strong {
    color: var(--t1-orange-dark);
}

.t1-dept-card small {
    font-size: 12px;
    color: var(--t1-ink-muted);
    line-height: 1.35;
}

/* ==========================================================================
   6. Interactive Notice & Upcoming Events Desk (Enhanced Sidebar & Editorial Lead)
   ========================================================================== */
.t1-desk {
    background: #fff;
    border: 1px solid var(--t1-border);
    border-top: 3px solid var(--t1-orange);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.t1-desk--sidebar {
    margin-bottom: 24px;
}

.t1-desk__head {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: var(--t1-cream);
    border-bottom: 1px solid var(--t1-border);
}

.t1-desk__tabs {
    display: flex;
    flex: 1;
    min-width: 0;
}

.t1-desk-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px 8px;
    border: 0;
    border-bottom: 2.5px solid transparent;
    background: transparent;
    color: var(--t1-ink-muted);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.t1-desk-tab__ico {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.t1-desk-tab:hover {
    color: var(--t1-ink);
    background: rgba(255, 130, 47, 0.06);
}

.t1-desk-tab.is-active {
    color: var(--t1-ink);
    background: #fff;
    border-bottom-color: var(--t1-green);
}

.t1-desk-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--t1-green-soft);
    color: var(--t1-green-dark);
}

.t1-desk-tab[data-t1-tab="programs"].is-active {
    border-bottom-color: var(--t1-orange);
}

.t1-desk-tab[data-t1-tab="programs"] .t1-desk-count {
    background: var(--t1-orange-soft);
    color: var(--t1-orange-dark);
}

.t1-desk-filter-btn {
    border: 0;
    border-left: 1px solid var(--t1-border);
    background: transparent;
    width: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--t1-ink-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.t1-desk-filter-btn svg {
    width: 15px;
    height: 15px;
}

.t1-desk-filter-btn:hover,
.t1-desk-filter-btn[aria-expanded="true"] {
    background: #fff;
    color: var(--t1-orange-dark);
}

.t1-desk-filter {
    position: relative;
    padding: 8px 10px;
    background: #fcfaf6;
    border-bottom: 1px solid var(--t1-border);
}

.t1-desk-filter[hidden] {
    display: none !important;
}

.t1-desk-filter__input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 28px 7px 10px;
    border: 1px solid #d7d1c8;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    color: var(--t1-ink);
    background: #fff;
}

.t1-desk-filter__input:focus {
    border-color: var(--t1-orange);
    box-shadow: 0 0 0 2px rgba(255, 130, 47, 0.18);
}

.t1-desk-filter__clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #777;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
}

.t1-desk-pane {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.t1-desk-pane[hidden] {
    display: none !important;
}

.t1-desk-bulletins,
.t1-desk-events {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.t1-bulletin {
    border-bottom: 1px solid #efebe4;
    padding: 6px 0;
}

.t1-bulletin:last-child {
    border-bottom: 0;
}

.t1-bulletin__trigger {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 4px 2px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    border-radius: 5px;
    transition: background 0.15s ease;
}

.t1-bulletin__trigger:hover {
    background: #faf7f2;
}

.t1-cal-tile {
    width: 44px;
    min-width: 44px;
    padding: 5px 3px;
    border-radius: 6px;
    background: var(--t1-green-soft);
    border: 1px solid #cdecd2;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex-shrink: 0;
}

.t1-cal-tile strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--t1-green-dark);
}

.t1-cal-tile span {
    font-size: 10.5px;
    color: #3c6943;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t1-cal-tile--orange {
    background: var(--t1-orange-soft);
    border-color: #fad3b6;
}

.t1-cal-tile--orange strong {
    color: var(--t1-orange-dark);
}

.t1-cal-tile--orange span {
    color: #9e4b12;
}

.t1-bulletin__head {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.t1-bulletin__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--t1-ink);
    line-height: 1.4;
}

.t1-bulletin.is-expanded .t1-bulletin__title {
    color: var(--t1-orange-dark);
}

.t1-bulletin__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11.5px;
    color: var(--t1-ink-muted);
}

.t1-bulletin__deadline {
    background: #fff0e5;
    color: #c24b0a;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
}

.t1-bulletin__chev {
    width: 18px;
    height: 18px;
    color: #888;
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform 0.2s ease, color 0.15s ease;
}

.t1-bulletin__chev svg {
    width: 16px;
    height: 16px;
}

.t1-bulletin.is-expanded .t1-bulletin__chev {
    transform: rotate(180deg);
    color: var(--t1-orange);
}

.t1-bulletin__body {
    padding: 6px 4px 8px 54px;
}

.t1-bulletin__body[hidden] {
    display: none !important;
}

.t1-bulletin__excerpt {
    font-size: 12.8px;
    line-height: 1.55;
    color: var(--t1-ink-muted);
    margin: 0 0 8px 0 !important;
}

.t1-bulletin__actions,
.t1-event-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.t1-bulletin__read {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--t1-green-dark) !important;
    text-decoration: none;
}

.t1-bulletin__read:hover {
    color: var(--t1-orange-dark) !important;
    text-decoration: underline;
}

.t1-bulletin__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--t1-green);
    color: #fff !important;
    font-size: 11.8px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.t1-bulletin__cta:hover {
    background: var(--t1-green-dark);
}

/* Upcoming event cards */
.t1-event-card {
    padding: 9px 0;
    border-bottom: 1px solid #efebe4;
}

.t1-event-card:last-child {
    border-bottom: 0;
}

.t1-event-card__top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.t1-event-card__info {
    flex: 1;
    min-width: 0;
}

.t1-event-card__rel {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--t1-orange-dark);
    margin-bottom: 2px;
}

.t1-event-card__title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--t1-ink) !important;
    line-height: 1.4;
}

.t1-event-card__title:hover {
    color: var(--t1-orange-dark) !important;
}

.t1-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
    font-size: 11.8px;
    color: var(--t1-ink-muted);
}

.t1-event-card__excerpt {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--t1-ink-muted);
    margin: 7px 0 7px 54px !important;
}

.t1-event-card__actions {
    margin: 6px 0 0 54px;
}

.t1-desk-empty {
    font-size: 13px;
    color: var(--t1-ink-muted);
    text-align: center;
    padding: 18px 8px;
    margin: 0 !important;
}

.t1-desk-pane__foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #efebe4;
}

.t1-desk-more-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1-green-dark) !important;
}

.t1-desk-more-link:hover {
    color: var(--t1-orange-dark) !important;
    text-decoration: underline;
}

/* Online Services 3-Col Dock */
.t1-desk-dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--t1-border);
    border-top: 1px solid var(--t1-border);
}

.t1-desk-dock__item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 8px;
    background: #faf8f4;
    text-decoration: none !important;
    color: var(--t1-ink) !important;
    transition: background 0.15s ease;
}

.t1-desk-dock__item:hover {
    background: var(--t1-orange-soft);
}

.t1-desk-dock__item svg {
    width: 17px;
    height: 17px;
    color: var(--t1-green-dark);
    flex-shrink: 0;
}

.t1-desk-dock__item:hover svg {
    color: var(--t1-orange-dark);
}

.t1-desk-dock__item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--t1-ink);
}

.t1-desk-dock__item small {
    display: block;
    font-size: 10.5px;
    color: var(--t1-ink-muted);
    line-height: 1.25;
}

.t1-desk--sidebar .t1-desk-dock {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   7. Inline HTML5 Audio Player (Enhanced & Editorial Sidebar)
   ========================================================================== */
.t1-audio-player {
    background: #202521;
    color: #f4f3ef;
    border-radius: 8px;
    overflow: hidden;
    border-top: 3px solid var(--t1-orange);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.t1-audio-player__now {
    padding: 13px 13px 11px;
}

.t1-audio-player__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.t1-audio-player__play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--t1-orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.t1-audio-player__play:hover {
    background: var(--t1-orange-dark);
    transform: scale(1.05);
}

.t1-audio-player__play svg {
    width: 16px;
    height: 16px;
}

.t1-audio-player__play .t1-ap-pause {
    display: none;
}

.t1-audio-player.is-playing .t1-audio-player__play {
    background: var(--t1-green);
}

.t1-audio-player.is-playing .t1-ap-play {
    display: none;
}

.t1-audio-player.is-playing .t1-ap-pause {
    display: block;
}

.t1-audio-player__meta {
    flex: 1;
    min-width: 0;
}

.t1-audio-player__meta strong {
    display: block;
    font-size: 13.2px;
    color: #fff;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t1-audio-player__meta span {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 1px;
}

.t1-audio-player__link {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffc599 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.t1-audio-player__link:hover {
    color: #fff !important;
    text-decoration: underline;
}

.t1-audio-player__scrub {
    margin-top: 11px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.t1-audio-player__fill {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--t1-green) 0%, var(--t1-orange) 100%);
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}

.t1-audio-player__times {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.68);
}

.t1-audio-player__queue {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.t1-audio-player__queue li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 !important;
    margin: 0 !important;
}

.t1-audio-player__queue li:last-child {
    border-bottom: 0;
}

.t1-queue-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    transition: background 0.15s ease;
}

.t1-queue-btn:hover {
    background: rgba(255, 255, 255, 0.07);
}

.t1-queue-btn.is-active {
    background: rgba(255, 130, 47, 0.18);
    color: #fff;
}

.t1-queue-btn__ico {
    font-size: 10px;
    color: var(--t1-orange);
    flex-shrink: 0;
}

.t1-queue-btn__name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t1-queue-btn__tag {
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    flex-shrink: 0;
}

.t1-audio-player__foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 13px;
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.t1-audio-player__foot a {
    color: #b7ebbf !important;
    font-weight: 600;
}

.t1-audio-player__foot a:hover {
    color: #ffc599 !important;
    text-decoration: underline;
}

/* ==========================================================================
   8. Seamless Image Handling (Enhanced & Editorial — keeps ALL images visible!)
   ========================================================================== */
.t1-img-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f1ed;
}

.t1-img-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.t1-img-frame:hover img {
    transform: scale(1.03);
}

.t1-img-frame.is-fallback {
    background: var(--t1-fallback-bg);
}

.t1-img-frame.is-fallback img {
    object-fit: contain;
}

/* Enhanced variant subtle polish on classic .post_day cards */
body.t1-variant-enhanced .post_day {
    background: #fff;
    border: 1px solid var(--t1-border);
    border-radius: 8px;
    padding: 18px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.t1-variant-enhanced .post_day:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    border-color: #d7cfc3;
}

body.t1-variant-enhanced .post_day .title h4,
body.t1-variant-enhanced .post_day .title h4 a {
    font-size: 18px;
    line-height: 1.4;
    color: #ffffff !important;
    text-decoration: none;
}

body.t1-variant-enhanced .post_day .title h4 a:hover {
    color: #fff6ed !important;
    text-decoration: underline;
}

/* ==========================================================================
   9. Editorial Variant (Option B) — Lead Showcase & 2-Col Magazine Feed
   ========================================================================== */
.t1-ed-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin: 0 0 26px 0;
    clear: both;
}

.t1-ed-lead-grid--solo {
    grid-template-columns: 1fr;
}

.t1-ed-lead {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 2px solid var(--t1-border);
    padding-bottom: 18px;
}

.t1-ed-lead__photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f0ec;
    margin-bottom: 15px;
}

.t1-ed-lead__photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.t1-ed-lead__photo:hover img {
    transform: scale(1.025);
}

.t1-ed-lead__photo.is-fallback {
    background: var(--t1-fallback-bg);
}

.t1-ed-lead__photo.is-fallback img {
    object-fit: contain;
}

.t1-kicker-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--t1-ink-muted);
}

.t1-kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--t1-green-soft);
    color: var(--t1-green-dark);
}

.t1-kicker--notice {
    background: var(--t1-orange-soft);
    color: var(--t1-orange-dark);
}

.t1-ed-lead__title {
    font-size: 25px;
    line-height: 1.35;
    margin: 0 0 10px 0 !important;
}

.t1-ed-lead__title a {
    color: var(--t1-ink) !important;
    text-decoration: none;
}

.t1-ed-lead__title a:hover {
    color: var(--t1-orange-dark) !important;
}

.t1-ed-lead__excerpt {
    font-size: 15px;
    line-height: 1.68;
    color: #464c48;
    margin-bottom: 16px;
}

.t1-ed-lead__excerpt p {
    margin-bottom: 0 !important;
}

.t1-ed-lead__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.t1-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 5px;
    background: var(--t1-orange);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.16s ease, transform 0.15s ease;
}

.t1-btn-primary:hover {
    background: var(--t1-orange-dark);
    transform: translateY(-1px);
}

/* Section Header */
.t1-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin: 0 0 18px 0;
    border-bottom: 2px solid var(--t1-ink);
}

.t1-sec-head h2 {
    font-size: 21px;
    margin: 0 !important;
    color: var(--t1-ink);
}

.t1-sec-head__links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.t1-sec-head__links a {
    color: var(--t1-green-dark) !important;
}

.t1-sec-head__links a:hover {
    color: var(--t1-orange-dark) !important;
}

/* Borderless 2-Column Magazine Feed */
.t1-ed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
}

.t1-ed-story {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--t1-border);
}

.t1-ed-story__media {
    margin-bottom: 12px;
}

.t1-ed-story__title {
    font-size: 17.5px;
    line-height: 1.42;
    margin: 0 0 8px 0 !important;
}

.t1-ed-story__title a {
    color: var(--t1-ink) !important;
}

.t1-ed-story__title a:hover {
    color: var(--t1-orange-dark) !important;
}

.t1-ed-story__excerpt {
    font-size: 14px;
    line-height: 1.62;
    color: #505752;
    margin-bottom: 12px;
}

.t1-ed-story__excerpt p {
    margin-bottom: 0 !important;
}

.t1-ed-story__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.t1-read-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--t1-orange-dark) !important;
}

.t1-read-link:hover {
    color: var(--t1-green-dark) !important;
    text-decoration: underline;
}

/* ==========================================================================
   10. Executive 4-Column Archival Charcoal Institutional Footer (Editorial)
   ========================================================================== */
.t1-exec-footer {
    background: #1c201d !important;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 32px;
    padding: 0 !important;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.full .t1-exec-footer,
.boxed .t1-exec-footer {
    border-radius: 0;
}

.t1-exec-footer__rule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 4px;
}

.t1-exec-footer__rule-green {
    background: var(--t1-green);
}

.t1-exec-footer__rule-orange {
    background: var(--t1-orange);
}

.t1-exec-footer__wrap {
    padding: 36px 0 22px;
}

.t1-exec-footer__identity {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t1-exec-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    margin-bottom: 12px;
}

.t1-exec-footer__logo {
    width: 62px;
    height: auto;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
    flex-shrink: 0;
}

.t1-exec-footer__brand-name {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.t1-exec-footer__brand-sub {
    display: block;
    color: #b7ebbf;
    font-size: 12.5px;
    margin-top: 3px;
}

.t1-exec-footer__about {
    font-size: 13.8px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
    margin: 0 !important;
}

.t1-exec-footer__label {
    color: #ffc599 !important;
    font-size: 14px !important;
    font-weight: 700;
    margin: 0 0 8px 0 !important;
}

.t1-exec-footer__address {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 10px 0 !important;
}

.t1-exec-footer__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 13px;
}

.t1-exec-footer__contacts a {
    color: #fff !important;
}

.t1-exec-footer__contacts a span {
    color: rgba(255, 255, 255, 0.6);
}

.t1-exec-footer__contacts a:hover {
    color: var(--t1-orange) !important;
}

.t1-exec-footer__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.t1-exec-footer__socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.16s ease, transform 0.16s ease;
}

.t1-exec-footer__socials a:hover {
    background: var(--t1-orange);
    transform: translateY(-2px);
}

.t1-exec-footer__socials svg {
    width: 15px;
    height: 15px;
}

.t1-exec-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t1-exec-footer__heading {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    margin: 0 0 12px 0 !important;
    padding-bottom: 7px;
    border-bottom: 2px solid rgba(255, 130, 47, 0.55);
    display: inline-block;
}

.t1-exec-footer__links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.t1-exec-footer__links li {
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
}

.t1-exec-footer__links a {
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 13.5px;
    line-height: 1.45;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.t1-exec-footer__links a:hover {
    color: #ffc599 !important;
    padding-left: 3px;
}

.t1-exec-footer__payment {
    margin: 18px 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.t1-exec-footer__payment-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.t1-exec-footer__payment-img {
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    max-width: 720px;
}

.t1-exec-footer__payment-img img {
    display: block;
    max-height: 36px;
    width: auto;
    max-width: 100%;
    height: auto;
}

.t1-exec-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.t1-exec-footer__bottom a {
    color: #ffc599 !important;
}

.t1-exec-footer__totop {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 13px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.t1-exec-footer__totop:hover {
    background: var(--t1-orange);
    border-color: var(--t1-orange);
}

/* ==========================================================================
   11. Quick-Jump Search Modal (/) & Floating Back-to-Top
   ========================================================================== */
.t1-search-modal {
    position: fixed;
    inset: 0;
    z-index: 100005;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 24px;
}

.t1-search-modal[hidden] {
    display: none !important;
}

.t1-search-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 21, 0.62);
    backdrop-filter: blur(2px);
}

.t1-search-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    border-top: 3px solid var(--t1-orange);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    font-family: 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
}

.t1-search-modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--t1-border);
}

.t1-search-modal__head svg {
    width: 18px;
    height: 18px;
    color: var(--t1-orange);
    flex-shrink: 0;
}

.t1-search-modal__input {
    flex: 1;
    border: 0 !important;
    outline: none !important;
    font-size: 15.5px;
    font-family: inherit;
    color: var(--t1-ink);
    background: transparent;
}

.t1-search-modal__close {
    border: 1px solid var(--t1-border);
    background: #f5f3ef;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.t1-search-modal__close:hover {
    background: #eae6de;
    color: #111;
}

.t1-search-modal__results {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
}

.t1-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    color: var(--t1-ink) !important;
    transition: background 0.12s ease;
}

.t1-search-item:hover,
.t1-search-item.is-selected {
    background: var(--t1-orange-soft);
}

.t1-search-item__label {
    font-size: 14px;
    font-weight: 600;
}

.t1-search-item__group {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--t1-green-dark);
    background: var(--t1-green-soft);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.t1-search-empty {
    padding: 24px 12px;
    text-align: center;
    font-size: 14px;
    color: var(--t1-ink-muted);
}

.t1-search-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: var(--t1-cream);
    border-top: 1px solid var(--t1-border);
    font-size: 12px;
    color: var(--t1-ink-muted);
}

.t1-float-top {
    position: fixed;
    right: 22px;
    bottom: 84px;
    z-index: 9990;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--t1-orange);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}

.t1-float-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.t1-float-top:hover {
    background: var(--t1-green-dark);
}

.t1-float-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   12. Responsive Breakpoints (Laptop, Tablet, Mobile)
   ========================================================================== */
@media only screen and (max-width: 1180px) {
    .t1-dept-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .t1-ed-lead-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 18px;
    }
}

@media only screen and (max-width: 959px) {
    .t1-ed-lead-grid {
        grid-template-columns: 1fr;
    }
    .t1-exec-footer__identity {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .t1-exec-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .t1-nav-search-btn span {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    html[data-frontend-template="template-1"] body {
        overflow-x: hidden;
    }
    html[data-frontend-template="template-1"] .boxed-margin,
    html[data-frontend-template="template-1"] .boxed,
    html[data-frontend-template="template-1"] .full {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    html[data-frontend-template="template-1"] .page-content {
        margin: 16px 0 !important;
        padding: 0 !important;
    }
    html[data-frontend-template="template-1"] .row {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }
    html[data-frontend-template="template-1"] #header .c_head {
        margin-left: -12px;
        margin-right: -12px;
    }
    html[data-frontend-template="template-1"] .page-content .grid_12,
    html[data-frontend-template="template-1"] .page-content .grid_9,
    html[data-frontend-template="template-1"] .page-content .grid_6,
    html[data-frontend-template="template-1"] .page-content .grid_3 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }
    .t1-utility-bar {
        border-radius: 0;
    }
    .t1-utility-bar__inner {
        padding: 7px 0;
        gap: 8px;
    }
    .t1-utility-bar__dates {
        font-size: 12px;
    }
    .t1-u-btn kbd {
        display: none;
    }
    .t1-dept-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .t1-ed-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .t1-ed-lead__title {
        font-size: 20px;
    }
    .t1-desk-dock {
        grid-template-columns: 1fr;
    }
    .t1-exec-footer__wrap {
        padding: 26px 4px 18px;
    }
    .t1-exec-footer__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .t1-alert-ribbon {
        margin: 10px 0 8px;
        padding: 8px 10px;
    }
    .t1-float-top {
        right: 14px;
        bottom: 76px;
        width: 38px;
        height: 38px;
    }
    body.t1-variant-editorial .b_head {
        min-height: 118px;
        padding: 8px 0 10px;
    }
    body.t1-variant-editorial .logo img {
        width: 78px !important;
    }
    body.t1-variant-enhanced .a_head {
        height: auto !important;
    }
    body.t1-variant-enhanced .a_head .right_bar {
        display: none !important;
    }
}
