/* ==========================================================================
   The Islamic Information - Islamic Date Today Stylesheet
   SITE CHROME & HIGH-END SEO CONTENT
   ========================================================================== */

:root {
    --ink: #0d1f1a;
    --ink-soft: #45564d;
    --paper: #fbf9f5;
    --card: #ffffff;
    --green: #0b3d2e;
    --green-2: #14563f;
    --gold: #b8912f;
    --gold-soft: #e6d3a3;
    --line: #e2ded2;
    --shadow: 0 1px 2px rgba(13,31,26,.05), 0 18px 40px -26px rgba(13,31,26,.45);

    /* The Islamic Information brand colors */
    --brand-coral: #ec9687;
    --brand-coral-ink: #c2634f;
    --brand-accent: #f55867;
    --brand-ink: #212529;
    --brand-muted: #5c656c;
    --brand-line: #e9ecef;
    --brand-cream: #f8f3ee;

    --tii-gold: #B69550;
    --tii-dark-gold: #927033;
    --tii-emerald: #0f7a5b;
    --tii-emerald-dark: #0b5c45;
    --tii-emerald-subtle: #f2f8f5;

    --sans: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --serif: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   SITE CHROME — The Islamic Information Header
   ========================================================================== */
.site-head {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #ffffff;
    border-bottom: 1px solid var(--brand-line);
}

.site-head-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 34px);
    min-height: 78px;
}

.brand {
    flex: none;
    display: flex;
    align-items: center;
}

.brand img {
    display: block;
    width: clamp(176px, 18vw, 232px);
    height: auto;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    color: var(--brand-ink);
    cursor: pointer;
}

.nav-toggle i {
    display: block;
    width: 20px;
    height: 1.6px;
    background: currentColor;
    border-radius: 2px;
    transition: 0.2s;
}

.nav-toggle[aria-expanded="true"] i:nth-child(1) {
    transform: translateY(6.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] i:nth-child(3) {
    transform: translateY(-6.6px) rotate(-45deg);
}

.site-nav {
    margin-left: auto;
}

.site-nav > ul {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.45vw, 20px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav > ul > li {
    position: relative;
}

.site-nav > ul > li > a,
.site-nav > ul > li > .nav-parent {
    display: inline-flex;
    align-items: center;
    height: 78px;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > .nav-parent:hover {
    color: #000000;
}

.site-nav .lbl {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-nav .lbl::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--brand-coral);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.18s ease;
}

.site-nav a.is-active .lbl::after,
.site-nav li.open > a .lbl::after,
.site-nav li.open > .nav-parent .lbl::after,
.site-nav > ul > li > a:hover .lbl::after,
.site-nav > ul > li > .nav-parent:hover .lbl::after {
    transform: scaleX(1);
}

.site-nav .chev {
    opacity: 0.55;
    flex: none;
    transition: transform 0.18s ease;
}

.site-nav li.open > a .chev,
.site-nav li.open > .nav-parent .chev {
    transform: rotate(180deg);
}

.site-nav .free {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #ccf6d5;
    color: #0d6423;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.site-nav .sub {
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 1300;
    min-width: 252px;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid var(--brand-line);
    box-shadow: 0 26px 48px -26px rgba(20,24,22,0.4);
    border-radius: 6px;
}

.site-nav li.open > .sub {
    display: flex;
}

.site-nav .sub a {
    display: block;
    padding: 9px 18px;
    font-family: var(--serif);
    font-size: 13.5px;
    line-height: 1.35;
    color: #333333;
    text-decoration: none;
    white-space: normal;
}

.site-nav .sub a:hover,
.site-nav .sub a.is-active {
    background: #fbf7f4;
    color: #0d1f1a;
}

@media (min-width: 1081px) {
    .site-nav > ul > li.has-sub:hover > .sub {
        display: flex;
    }
}

/* ==========================================================================
   PAGE WRAPPER & BREADCRUMBS
   ========================================================================== */
.tii-page-wrapper {
    max-width: 1160px;
    margin: 28px auto 65px;
    padding: 0 20px;
}

.tii-nav-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.tii-nav-strip .tii-breadcrumb {
    margin-bottom: 0;
}

.tii-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--brand-muted);
}

.tii-breadcrumb a {
    color: #4a5a52;
}

.tii-breadcrumb a:hover {
    color: var(--brand-coral-ink);
    text-decoration: underline;
}

.tii-breadcrumb span {
    color: #a9b3ad;
}

.tii-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tii-emerald-dark);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tii-btn-back:hover {
    background: var(--brand-cream);
    border-color: var(--brand-coral);
    color: var(--brand-coral-ink);
    transform: translateX(-2px);
}

.tii-btn-back svg {
    transition: transform 0.2s ease;
}

.tii-btn-back:hover svg {
    transform: translateX(-3px);
}

/* Bottom Return Card */
.tii-bottom-cta {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 32px;
    margin: 32px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow);
}

.tii-bottom-cta-text h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tii-emerald-dark);
}

.tii-bottom-cta-text p {
    margin: 0;
    font-size: 0.92rem;
    color: #666;
}

.tii-bottom-cta .tii-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--tii-emerald);
    border: 1px solid var(--tii-emerald);
    border-radius: 10px;
    padding: 12px 22px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tii-bottom-cta .tii-btn-primary:hover {
    background: var(--tii-emerald-dark);
    border-color: var(--tii-emerald-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 81, 50, 0.2);
}

@media (max-width: 680px) {
    .tii-bottom-cta {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .tii-bottom-cta .tii-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   HERO DATE CARD
   ========================================================================== */
.tii-hero-card {
    background: linear-gradient(135deg, #0f7a5b 0%, #0b5c45 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 42px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 122, 91, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
}

.tii-hero-card::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -160px;
    right: -90px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.tii-hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -110px;
    left: -70px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.tii-hero-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.tii-hero-title {
    font-family: var(--sans);
    font-size: clamp(24px, 3.8vw, 36px);
    font-weight: 750;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.tii-hero-subtitle {
    font-size: 1.02rem;
    opacity: 0.92;
    color: #e5f6f0;
}

.tii-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.92rem;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tii-hijri-display {
    position: relative;
    z-index: 2;
    margin: 18px 0;
}

.tii-hijri-main {
    font-family: var(--sans);
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    line-height: 1.2;
}

.tii-hijri-ar {
    font-family: var(--font-arabic);
    font-size: clamp(24px, 3.8vw, 36px);
    direction: rtl;
    color: #ffd880;
    margin-top: 6px;
    font-weight: 600;
}

.tii-date-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    max-width: 680px;
    margin: 24px auto 16px;
    position: relative;
    z-index: 2;
}

.tii-detail-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tii-detail-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.tii-detail-card .val {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2px;
}

.tii-hero-note {
    font-size: 0.84rem;
    opacity: 0.88;
    max-width: 780px;
    margin: 20px auto 0;
    line-height: 1.55;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   ADSENSE SLOTS — High-Viewability / High-CTR Placements
   ========================================================================== */
.ad-slot {
    margin: 24px auto;
    padding: 12px 14px 14px;
    background: #ffffff;
    border: 1px dashed #dcd5ca;
    border-radius: 12px;
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.ad-lbl {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a968f;
    margin-bottom: 8px;
    font-family: var(--sans);
}

/* Legacy alias support */
.tii-ad-slot {
    margin: 24px auto;
    padding: 12px 14px 14px;
    background: #ffffff;
    border: 1px dashed #dcd5ca;
    border-radius: 12px;
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tii-ad-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a968f;
    margin-bottom: 8px;
    font-family: var(--sans);
}

/* ==========================================================================
   SEARCH BAR & POPULAR FILTER CHIPS
   ========================================================================== */
.tii-directory-section {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.tii-section-title {
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 750;
    color: #1f2430;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--tii-emerald);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.tii-section-subtitle {
    color: var(--brand-muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.tii-search-box-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.tii-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    pointer-events: none;
}

.tii-country-search-input {
    width: 100%;
    padding: 15px 45px 15px 50px;
    font-family: var(--sans);
    font-size: 1.05rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: #222222;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tii-country-search-input:focus {
    border-color: var(--tii-emerald);
    box-shadow: 0 0 0 4px rgba(15, 122, 91, 0.12);
}

.tii-search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #475569;
}

.tii-popular-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.tii-popular-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #444444;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
}

.tii-chip {
    background: var(--brand-cream);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2b3340;
    transition: all 0.2s;
}

.tii-chip:hover {
    background: var(--tii-emerald);
    color: #ffffff;
    border-color: var(--tii-emerald);
    transform: translateY(-1px);
}

/* ==========================================================================
   CONTINENT & COUNTRY GRID
   ========================================================================== */
.tii-continent-block {
    margin-bottom: 30px;
}

.tii-continent-title {
    background: var(--brand-cream);
    border-left: 4px solid var(--tii-emerald);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2430;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tii-continent-count {
    font-size: 0.82rem;
    font-weight: 400;
    color: #64748b;
}

.tii-country-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
    margin: 0;
    padding: 0;
}

.tii-country-item {
    border-bottom: 1px dashed var(--brand-line);
    padding: 6px 0;
}

.tii-country-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tii-emerald);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.15s, transform 0.15s;
}

.tii-country-link:hover {
    color: var(--tii-dark-gold);
    text-decoration: underline;
    transform: translateX(2px);
}

.tii-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    display: none;
}

/* ==========================================================================
   CONTENT CARDS, ISLAMIC MONTHS & REGIONAL DIFFERENCES
   ========================================================================== */
.tii-content-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.tii-content-card h2 {
    font-family: var(--sans);
    font-size: 1.55rem;
    font-weight: 750;
    color: #1f2430;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--tii-gold);
    padding-bottom: 8px;
}

.tii-content-card h3 {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tii-emerald-dark);
    margin: 22px 0 8px;
}

.tii-content-card p {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #333333;
}

/* Islamic Months Grid */
.tii-months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

a.tii-month-item,
.tii-month-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.tii-month-item:hover,
.tii-month-item:hover {
    transform: translateY(-2px);
    border-color: var(--tii-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

a.tii-month-item:hover .tii-month-title {
    color: var(--tii-emerald);
    text-decoration: underline;
}

.tii-month-item.is-current {
    background: var(--tii-emerald-subtle);
    border: 2px solid var(--tii-emerald);
}

.tii-month-num {
    background: var(--brand-cream);
    color: var(--tii-dark-gold);
    font-weight: 700;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.tii-month-names {
    flex: 1;
}

.tii-month-en {
    font-weight: 700;
    font-size: 0.98rem;
    color: #1f2430;
}

.tii-month-ar {
    font-family: var(--font-arabic);
    font-size: 1.15rem;
    color: var(--tii-dark-gold);
}

/* Regional Differences Grid */
.tii-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.tii-region-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
}

.tii-region-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--tii-emerald-dark);
    margin-bottom: 6px;
}

.tii-region-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #555555;
}

/* ==========================================================================
   COUNTRY PAGE — EDITORIAL INTRO & BESPOKE DATE INSTRUMENT
   ========================================================================== */
.tii-country-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.tii-intro-text {
    flex: 1;
    max-width: 820px;
}

.tii-country-intro .eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a6a17;
}

.tii-country-intro h1 {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -.02em;
    color: var(--ink);
}

.tii-country-intro .h1-subdate {
    display: inline-block;
    font-weight: 600;
    color: var(--brand-coral-ink);
    font-size: 0.9em;
}

.tii-country-intro .lede {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 72ch;
}

.tii-verified-badge {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a6a17;
    background: #fbf3dd;
    border: 1px solid var(--gold-soft);
    padding: 7px 13px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .tii-country-intro {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================================================
   DATE INSTRUMENT CARD (Human-Crafted Centerpiece)
   ========================================================================== */
.tii-date-instrument {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.tii-instrument-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #fbfaf6;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.tii-status-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--green);
}

.tii-status-live .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.tii-tz-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-weight: 500;
}

.tii-instrument-body {
    padding: 30px 28px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: center;
}

.tii-display-en {
    border-right: 1px solid var(--line);
    padding-right: 28px;
}

.tii-day-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand-coral-ink);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.tii-date-hijri {
    font-size: clamp(26px, 3.8vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--ink);
    margin-bottom: 6px;
}

.tii-date-sub {
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* Localized Date Instrument Right-Column */
.tii-display-ar,
.tii-display-local {
    text-align: right;
    padding-left: 8px;
}

.tii-display-ar,
.tii-display-local[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.tii-display-local[dir="ltr"] {
    direction: ltr;
    text-align: right;
}

.tii-day-ar-eyebrow,
.tii-day-local-eyebrow {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #8a6a17;
    margin-bottom: 2px;
}

.tii-day-ar-eyebrow,
.tii-day-local-eyebrow.font-arabic {
    font-family: var(--font-arabic);
    font-size: 18px;
}

.tii-day-local-eyebrow.font-cjk {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "PingFang SC", "Microsoft YaHei", "Malgun Gothic", sans-serif;
    font-size: 13.5px;
    letter-spacing: .02em;
}

.tii-date-hijri-ar,
.tii-date-hijri-local {
    font-size: clamp(24px, 3.8vw, 38px);
    font-weight: 700;
    color: var(--green);
    line-height: 1.25;
    margin-bottom: 4px;
}

.tii-date-hijri-ar,
.tii-date-hijri-local.font-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(28px, 4.2vw, 42px);
}

.tii-date-hijri-local.font-cjk {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "PingFang SC", "Microsoft YaHei", "Malgun Gothic", sans-serif;
    font-size: clamp(22px, 3.2vw, 32px);
    letter-spacing: -0.01em;
}

.tii-date-ar-sub,
.tii-date-local-sub {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.tii-date-ar-sub,
.tii-date-local-sub.font-arabic {
    font-family: var(--font-arabic);
    font-size: 15px;
}

.tii-date-local-sub.font-cjk {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "PingFang SC", "Microsoft YaHei", "Malgun Gothic", sans-serif;
    font-size: 13px;
}

/* Hairline Metadata Strip */
.tii-instrument-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fcfbf8;
    border-top: 1px solid var(--line);
}

.tii-meta-col {
    padding: 13px 20px;
    border-right: 1px solid var(--line);
}

.tii-meta-col:last-child {
    border-right: none;
}

.tii-meta-col .meta-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-muted);
    margin-bottom: 3px;
}

.tii-meta-col .meta-val {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

@media (max-width: 820px) {
    .tii-instrument-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
    }
    .tii-display-en {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--line);
        padding-bottom: 20px;
    }
    .tii-display-local[dir="ltr"] {
        text-align: left;
        direction: ltr;
        padding-left: 0;
    }
    .tii-display-local[dir="rtl"],
    .tii-display-ar {
        text-align: right;
        direction: rtl;
        padding-left: 0;
    }
    .tii-instrument-meta {
        grid-template-columns: 1fr 1fr;
    }
    .tii-meta-col:nth-child(2) {
        border-right: none;
    }
    .tii-meta-col:nth-child(1),
    .tii-meta-col:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 500px) {
    .tii-instrument-meta {
        grid-template-columns: 1fr;
    }
    .tii-meta-col {
        border-right: none !important;
        border-bottom: 1px solid var(--line);
    }
    .tii-meta-col:last-child {
        border-bottom: none;
    }
}

/* ==========================================================================
   FEATURED HERO BANNER WITH CAPTION
   ========================================================================== */
.tii-featured-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #0b221a;
    line-height: 0;
    margin: 24px 0;
}

.tii-featured-hero picture,
.tii-featured-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    object-position: center;
}

.tii-featured-img {
    transition: transform 0.4s ease;
}

.tii-featured-hero:hover .tii-featured-img {
    transform: scale(1.015);
}

.tii-hero-caption {
    background: #ffffff;
    border-top: 1px solid var(--line);
    padding: 11px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tii-hero-caption .caption-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a6a17;
    background: #fbf3dd;
    padding: 2px 7px;
    border-radius: 4px;
    flex: none;
}

@media (max-width: 680px) {
    .tii-featured-hero {
        border-radius: 12px;
        max-height: 240px;
        margin: 18px 0;
    }
    .tii-featured-hero picture,
    .tii-featured-hero img,
    .tii-featured-img {
        max-height: 240px;
    }
}

/* ==========================================================================
   EDITORIAL SECTION BLOCKS & HEADINGS
   ========================================================================== */
.tii-section-block {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 28px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
}

.tii-section-head {
    margin-bottom: 20px;
}

.tii-section-title {
    margin: 0 0 6px;
    font-family: var(--sans);
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 750;
    color: var(--ink);
    letter-spacing: -.015em;
    line-height: 1.3;
}

.tii-section-desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 78ch;
}

.tii-section-footnote {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--brand-muted);
}

/* ==========================================================================
   CITY DIRECTORY CARDS
   ========================================================================== */
.tii-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 13px;
    margin: 16px 0;
}

.tii-city-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.tii-city-card {
    text-decoration: none;
    cursor: pointer;
}

a.tii-city-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-coral);
    box-shadow: 0 8px 20px -8px rgba(13, 31, 26, 0.12);
}

.tii-city-card .city-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
}

a.tii-city-card:hover .city-name {
    color: var(--brand-coral-ink);
}

.tii-city-card .city-region {
    font-size: 0.8rem;
    color: var(--ink-soft);
    display: block;
    margin-top: 2px;
}

.tii-city-card .city-prayer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green-2);
    background: #edf7f2;
    border: 1px solid #d2ebd9;
    padding: 3px 9px;
    border-radius: 6px;
    margin-top: 6px;
    transition: all 0.15s ease;
}

a.tii-city-card:hover .city-prayer-badge {
    background: var(--green-2);
    color: #ffffff;
    border-color: var(--green-2);
}

.tii-city-card .city-arabic,
.tii-city-card .city-native {
    font-size: 1.15rem;
    font-weight: 600;
    color: #8a6a17;
    text-align: right;
    line-height: 1.3;
}

.tii-city-card .city-arabic,
.tii-city-card .city-native[dir="rtl"] {
    font-family: var(--font-arabic);
    font-size: 1.25rem;
    direction: rtl;
}

.tii-city-card .city-native.font-cjk {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "PingFang SC", "Microsoft YaHei", "Malgun Gothic", sans-serif;
    font-size: 1.1rem;
    letter-spacing: .02em;
}

.tii-city-card .city-native.font-local {
    font-family: var(--sans);
    font-size: 1.05rem;
}

/* ==========================================================================
   EVENT TABLE WITH PILL BADGES
   ========================================================================== */
.tii-table-card {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 16px 0;
}

.tii-events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    text-align: left;
}

.tii-events-table th {
    background: #fbfaf6;
    color: var(--ink);
    font-weight: 700;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tii-events-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--ink);
    vertical-align: middle;
}

.tii-events-table tr:last-child td {
    border-bottom: none;
}

.tii-events-table tr:hover td {
    background: #fdfcf9;
}

.event-name {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
}

.event-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: .02em;
}

.pill-green { background: #dcefe0; color: #1c6340; }
.pill-gold { background: #fbe7bd; color: #6d4c05; }
.pill-coral { background: #f9e2dd; color: #9a3d2e; }
.pill-purple { background: #ede2f7; color: #5a2c8a; }

.event-date {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}

/* ==========================================================================
   EDITORIAL ARTICLE & AT-A-GLANCE TAKEAWAY BOX
   ========================================================================== */
.tii-article-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 34px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--brand-line);
}

.article-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #8a6a17;
    margin-bottom: 6px;
}

.article-header h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.8vw, 27px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -.02em;
}

.article-lead {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink);
    margin: 0;
}

/* "At a Glance" Callout */
.tii-takeaway-box {
    background: #fbf9f3;
    border: 1px solid #ebdcc0;
    border-left: 4px solid #b8912f;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 22px 0 26px;
}

.takeaway-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 750;
    color: #6d4c05;
    margin-bottom: 10px;
}

.takeaway-list {
    margin: 0;
    padding-left: 20px;
    color: #4a3e2b;
    font-size: 13.8px;
    line-height: 1.65;
}

.takeaway-list li {
    margin-bottom: 6px;
}

.takeaway-list li:last-child {
    margin-bottom: 0;
}

.article-body h3 {
    margin: 26px 0 8px;
    font-size: 18px;
    font-weight: 750;
    color: var(--green);
    letter-spacing: -.01em;
}

.article-body p {
    font-size: 15px;
    line-height: 1.75;
    color: #2b3933;
    margin-bottom: 14px;
}

/* ==========================================================================
   FAQ NUMBERED CARDS
   ========================================================================== */
.tii-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.tii-faq-card {
    background: #fbfaf6;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background .15s ease, border-color .15s ease;
}

.tii-faq-card:hover {
    background: #ffffff;
    border-color: var(--brand-coral);
}

.faq-num {
    flex: none;
    font-size: 12px;
    font-weight: 800;
    color: #8a6a17;
    background: #f6edd7;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.faq-content {
    flex: 1;
}

.faq-content .tii-faq-question {
    margin: 0 0 5px;
    font-size: 15.5px;
    font-weight: 750;
    color: var(--ink);
    line-height: 1.4;
}

.faq-content .tii-faq-answer {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.tii-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.tii-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.tii-table th {
    background: #f7f9fa;
    color: var(--tii-emerald-dark);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.tii-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: #333;
}

.tii-table tr:last-child td {
    border-bottom: none;
}

.tii-table tr:hover td {
    background: #fafbfb;
}

/* ==========================================================================
   FAQ & DISCLAIMER
   ========================================================================== */
.tii-faq-section {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.tii-faq-item {
    border-bottom: 1px solid var(--brand-line);
    padding: 18px 0;
}

.tii-faq-item:last-child {
    border-bottom: none;
}

.tii-faq-question {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tii-emerald-dark);
    margin-bottom: 8px;
}

.tii-faq-answer {
    font-size: 0.98rem;
    color: #444444;
    line-height: 1.7;
}

.tii-disclaimer {
    background: #fbf7ea;
    border-left: 4px solid #d9a441;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 25px;
    font-size: 0.92rem;
    color: #554418;
    line-height: 1.6;
}

/* ==========================================================================
   SITE FOOTER (SITE FOOT)
   ========================================================================== */
.site-foot {
    background: var(--brand-cream);
    border-top: 1px solid #eadfd4;
    margin-top: 60px;
}

.site-foot-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 20px 34px;
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr;
    gap: 34px;
}

.site-foot h2 {
    margin: 0 0 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2a26;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-foot p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--brand-muted);
    max-width: 40ch;
}

.site-foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.site-foot li {
    line-height: 1.35;
}

.site-foot a {
    font-size: 13.5px;
    color: #4a545a;
    text-decoration: none;
}

.site-foot a:hover {
    color: var(--brand-coral-ink);
    text-decoration: underline;
}

.site-foot .f-brand img {
    display: block;
    width: 196px;
    height: auto;
    margin: 0 0 14px;
}

.site-foot-bot {
    border-top: 1px solid #e8dcd0;
}

.site-foot-bot div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 22px;
    font-size: 12px;
    color: #63686b;
}

.site-foot-bot a {
    color: #4a545a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-foot-bot a:hover {
    color: var(--brand-coral-ink);
    border-bottom-color: currentColor;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
    .site-head-in {
        min-height: 66px;
        gap: 12px;
    }

    .brand img {
        width: clamp(158px, 40vw, 200px);
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: #ffffff;
        border-top: 1px solid var(--brand-line);
        box-shadow: 0 28px 44px -30px rgba(0,0,0,0.45);
        padding: 4px 20px 18px;
        max-height: calc(100dvh - 67px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav > ul > li {
        border-bottom: 1px solid #f1f3f5;
    }

    .site-nav > ul > li:last-child {
        border-bottom: 0;
    }

    .site-nav > ul > li > a,
    .site-nav > ul > li > .nav-parent {
        height: auto;
        padding: 14px 2px;
        font-size: 16px;
        width: 100%;
        justify-content: space-between;
    }

    .site-nav .lbl::after {
        display: none;
    }

    .site-nav .sub {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0 10px 14px;
        background: transparent;
    }

    .site-nav .sub a {
        padding: 8px 4px;
        font-size: 14px;
    }

    .site-foot-in {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 600px) {
    .tii-page-wrapper {
        padding: 0 14px;
        margin-top: 18px;
    }

    .tii-hero-card {
        padding: 28px 16px;
        border-radius: 16px;
    }

    .tii-directory-section,
    .tii-content-card,
    .tii-faq-section {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .tii-country-grid {
        grid-template-columns: 1fr;
    }

    .tii-date-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .tii-country-search-input {
        font-size: 0.98rem;
        padding-left: 44px;
    }

    .tii-search-icon {
        left: 14px;
    }
}
