/* ==========================================================================
   ODIA CALENDAR - MODERN SENIOR-FRIENDLY & ACCESSIBLE STYLESHEET
   Targeted for Age 40+: High Contrast, Large Type, Clear Deep-Blue Links,
   and Refined Muted/Faded Interactive Buttons.
   ========================================================================== */

:root {
    /* Brand & Muted Surface Palette */
    --brand-primary: #b84a0b;       /* Muted warm terracotta */
    --brand-dark: #64220b;          /* Deep earthy brown-red */
    --brand-crimson: #9e2a2b;       /* Muted antique crimson */
    --brand-light: #fef7ee;         /* Ultra-soft warm ivory */
    --brand-subtle: #fae8d4;        /* Soft sand container tint */
    --border-color: #e5d5c5;        /* Gentle tactile border */
    
    /* Text Typography Colors (High Contrast) */
    --text-heading: #0f172a;        /* Deep slate black */
    --text-body: #1e293b;           /* Legible dark charcoal */
    --text-muted: #475569;          /* Readable medium slate */
    --bg-page: #fbfbf9;             /* Anti-glare soft natural white */
    
    /* Dedicated Link Palette */
    --link-color: #0f4c81;          /* Classic deep royal navy */
    --link-hover: #08294a;          /* Midnight blue on hover */
    --link-decoration: #93c5fd;     /* Soft contrast underline */

    /* Muted Soft Button Palette (No Vibrant Neons) */
    --btn-muted-primary-bg: #8c532b;    /* Muted warm walnut */
    --btn-muted-primary-text: #ffffff;
    --btn-muted-secondary-bg: #e2e8f0;  /* Cool calm fog */
    --btn-muted-secondary-text: #1e293b;
    --btn-muted-accent-bg: #f8e8d8;     /* Soft faded amber */
    --btn-muted-accent-border: #e2cbb4;
    --btn-muted-accent-text: #64220b;

    /* Elevation & Curves */
    --card-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Noto Sans Oriya', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    font-size: 17px; /* Increased from 15px for age 40+ comfort */
    line-height: 1.75;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   GLOBAL LINK ENHANCEMENTS: DEEP BLUE & HIGH VISIBILITY
   -------------------------------------------------------------------------- */
a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: var(--link-decoration);
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover, a:focus-visible {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
    text-decoration-thickness: 2px;
}

/* Accessible Headings */
h1, h2, h3, h4, .section-title, .event-name, .panjika-title-en {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.4;
}

.odia-text, [lang="or"] {
    font-family: 'Noto Sans Oriya', 'Lexend', sans-serif !important;
    font-size: 1.05em;
    line-height: 1.85;
}

/* Base Mobile Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --------------------------------------------------------------------------
   SITE HEADER
   -------------------------------------------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 100;
}
.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 8px 0;
}
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.site-logo-img {
    height: 42px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}
.header-right-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    min-height: 44px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-login {
    color: var(--text-heading);
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
}
.btn-login:hover {
    background: #e2e8f0;
    color: #000;
}
.btn-advertise {
    color: var(--btn-muted-primary-text);
    background: var(--btn-muted-primary-bg);
    border: 1.5px solid #713f12;
}
.btn-advertise:hover {
    background: #713f12;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   TOP STICKY & AD CONTAINERS
   -------------------------------------------------------------------------- */
.top-sticky-ad-wrapper {
    position: sticky;
    top: 0;
    z-index: 990;
    background: rgba(251, 251, 249, 0.96);
    backdrop-filter: blur(6px);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.ad-banner-wrap {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 8px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ad-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.mid-ad-container {
    margin: 24px auto 28px auto;
}

/* --------------------------------------------------------------------------
   SECTIONS & ACCESSIBLE BOXES
   -------------------------------------------------------------------------- */
.section-box {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}
.section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--brand-subtle);
    padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   SECTION 1: UPCOMING OBSERVES (Large Contrast Cards)
   -------------------------------------------------------------------------- */
.two-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.card-inner {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.event-row:last-child {
    border-bottom: none;
}
.event-name {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a !important;
}
.event-subname {
    font-size: 14px;
    margin-top: 3px;
    font-weight: 500;
    color: #475569 !important;
}
.event-badge {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    padding: 5px 9px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   SECTION 2: 6 CANONICAL CALENDARS (Muted Chips & Easy Touch Targets)
   -------------------------------------------------------------------------- */
.panjika-stack-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.panjika-full-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    box-shadow: var(--card-shadow);
}
.panjika-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1.5px solid var(--brand-subtle);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.panjika-title-en {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.panjika-title-en a {
    color: var(--link-color) !important;
    text-decoration: underline;
    text-decoration-color: var(--link-decoration);
}
.panjika-title-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #475569;
}
.panjika-months-row-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.panjika-month-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 10px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: var(--link-color) !important;
    text-decoration: underline;
    text-decoration-color: rgba(15, 76, 129, 0.3);
    min-height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.panjika-month-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    text-decoration-color: var(--link-color);
}
/* Faded, dignified active button rather than blinding red */
.panjika-month-chip.active-month {
    background: #8b3a2b !important;
    color: #ffffff !important;
    border-color: #5c2419 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.panjika-card-desc {
    font-size: 15px;
    line-height: 1.65;
    background: #f8fafc;
    border-left: 4px solid var(--brand-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 14px;
    margin-bottom: 14px;
    color: #334155 !important;
}
.panjika-card-archives {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}
.archive-label {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand-dark);
    text-transform: uppercase;
}
.archive-year-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: var(--link-color);
    min-height: 38px;
}
.archive-year-btn:hover {
    background: #f1f5f9;
}
.archive-year-btn.active-year {
    background: #64748b;
    color: #ffffff !important;
    border-color: #475569;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   SECTION 3: CALENDAR GRID (Crisp Lines, Large Date Type)
   -------------------------------------------------------------------------- */
.calendar-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    border: 1.5px solid #cbd5e1;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 680px;
    background: #ffffff;
}
.calendar-table th {
    background: #1e293b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 4px;
    text-align: center;
    line-height: 1.35;
}
.calendar-table th.sun { background: #881337; }
.calendar-table td {
    border: 1px solid #cbd5e1;
    height: 105px;
    vertical-align: top;
    padding: 6px;
    font-size: 13px;
}
.calendar-table td.empty { background: #f8fafc; }
.calendar-table td.bg-festivals { background: #fef7ee !important; }
.calendar-table td.bg-ekadashi  { background: #eff6ff !important; }
.calendar-table td.bg-sankranti { background: #fefce8 !important; }
.calendar-table td.bg-purnima   { background: #faf5ff !important; }
.calendar-table td.bg-amavasya  { background: #f1f5f9 !important; }

.calendar-table td.is-today-cell {
    outline: 3px solid #047857;
    outline-offset: -2px;
    background-color: #ecfdf5 !important;
}

.today-badge-blinking {
    display: inline-flex;
    align-items: center;
    background: #047857;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

.cal-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.cal-day-num {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}
.cal-day-num.sun-color { color: #9f1239; }
.cal-day-odia {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #475569;
}
.cal-event-dual {
    margin-top: 3px;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1.3;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
}
.cal-event-dual .ev-en {
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-event-dual .ev-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-weight: 600;
    display: block;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Faded / Muted Badge Colors for Senior Readability */
.cal-event-dual.festivals { background: #fed7aa; color: #431407; }
.cal-event-dual.ekadashi  { background: #bfdbfe; color: #172554; }
.cal-event-dual.sankranti { background: #fef08a; color: #422006; }
.cal-event-dual.purnima   { background: #e9d5ff; color: #3b0764; }
.cal-event-dual.amavasya  { background: #cbd5e1; color: #020617; }

.legend-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   SECTION 4: DEDICATED CALENDARS (Muted Cards, Blue Links)
   -------------------------------------------------------------------------- */
.hub-cards-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.hub-item-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hub-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.hub-item-icon { font-size: 26px; }
.hub-item-title { font-size: 19px; font-weight: 800; color: #0f172a; }
.hub-item-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    color: #334155 !important;
}
.hub-upcoming-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 16px;
}
.hub-upcoming-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-dark);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.hub-upcoming-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    gap: 8px;
}
.hub-upcoming-row:last-child { border-bottom: none; }
.hub-upcoming-name { font-weight: 700; color: #0f172a; }
.hub-upcoming-date {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f4c81;
    background: #e0f2fe;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}
/* Faded dignified action button */
.hub-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff !important;
    background: #64748b;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    min-height: 48px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.hub-view-btn:hover {
    background: #475569;
}

/* --------------------------------------------------------------------------
   SECTION 5: DIRECTORY TILES (Deep Blue Read Links)
   -------------------------------------------------------------------------- */
.directory-stack-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.directory-row-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}
.directory-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1.5px solid var(--brand-subtle);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.directory-title-en {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.directory-title-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
}
.directory-intro {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 14px;
    color: #334155 !important;
}
.directory-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.directory-link-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px;
    text-decoration: none;
}
.directory-link-tile:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.tile-heading { 
    font-size: 16.5px; 
    font-weight: 800; 
    color: var(--link-color) !important;
    text-decoration: underline;
    text-decoration-color: var(--link-decoration);
    margin-bottom: 4px; 
}
.tile-subheading-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
    display: block;
}
.tile-desc { 
    font-size: 14.5px; 
    line-height: 1.55; 
    color: #334155 !important; 
}
.tile-action {
    font-size: 14px;
    font-weight: 800;
    color: var(--link-color);
    text-decoration: underline;
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   SECTION 6: HERITAGE ENCYCLOPEDIA (High Legibility Reader)
   -------------------------------------------------------------------------- */
.heritage-article { 
    font-size: 16px; 
    line-height: 1.8; 
    color: #1e293b;
}
.heritage-lead {
    font-size: 16.5px;
    line-height: 1.75;
    margin-bottom: 18px;
    background: #f8fafc;
    border-left: 4px solid #64748b;
    padding: 14px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.heritage-subhead {
    font-size: 18px;
    font-weight: 800;
    margin: 22px 0 10px 0;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 6px;
    color: #0f172a;
}
.heritage-paragraph { margin-bottom: 14px; }
.heritage-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 0;
}
.spec-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px;
}
.spec-box-title { 
    font-size: 15.5px; 
    font-weight: 800; 
    color: #0f172a; 
    margin-bottom: 6px; 
}
.panjika-deep-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
}
.panjika-deep-title { 
    font-size: 16px; 
    font-weight: 800; 
    margin-bottom: 6px; 
}
.heritage-list { padding-left: 22px; margin-bottom: 16px; }
.heritage-list li { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   SECTION 7: FAQ
   -------------------------------------------------------------------------- */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}
.faq-question { 
    font-size: 17px; 
    font-weight: 700; 
    color: #0f172a; 
    margin-bottom: 4px; 
}
.faq-answer { 
    font-size: 15.5px; 
    line-height: 1.65; 
    color: #334155 !important;
}

/* --------------------------------------------------------------------------
   SECTION 8: RASIFALA (Subdued Pills & Crisp Tables)
   -------------------------------------------------------------------------- */
.rasi-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.rasi-card-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    text-decoration: none;
    min-height: 52px;
}
.rasi-card-pill:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}
.rasi-icon-badge {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.rasi-name-en { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: var(--link-decoration);
}
.rasi-name-or {
    font-family: 'Noto Sans Oriya', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}
.rasi-interactive-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 16px;
}
.rasi-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.rasi-dropdown {
    width: 100%;
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #94a3b8;
    background: #ffffff;
    min-height: 48px;
}
.rasi-detail-pane { display: none; }
.rasi-detail-pane.active-pane { display: block; }
.rasi-specs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0 14px 0;
}
.rasi-spec-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
}
.rasi-spec-k { font-size: 12.5px; font-weight: 700; color: #475569; text-transform: uppercase; }
.rasi-spec-v { font-size: 14.5px; font-weight: 700; color: #0f172a; }
.rasi-prediction-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #1e293b;
}

/* --------------------------------------------------------------------------
   FOOTER (High Contrast Dark Slate)
   -------------------------------------------------------------------------- */
.modern-site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 34px 0 24px 0;
    font-size: 14.5px;
    border-top: 4px solid #475569;
    margin-top: 32px;
}
.footer-top-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #334155;
    margin-bottom: 18px;
}
.footer-brand {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none;
}
.footer-main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}
.footer-nav-link {
    color: #93c5fd;
    text-decoration: underline;
    font-size: 14.5px;
    font-weight: 600;
}
.footer-cal-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}
.footer-cal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}
.footer-cal-card-btn {
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
}
.footer-cal-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}
.footer-cal-year {
    color: #93c5fd;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: underline;
}
.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #334155;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENTS: TABLET (min-width: 600px)
   ========================================================================== */
@media (min-width: 600px) {
    .container { padding: 0 20px; }
    .site-logo-img { height: 44px; max-width: 180px; }
    .section-box { padding: 22px; margin-bottom: 26px; }
    .section-title { font-size: 21px; }

    .two-cards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .panjika-months-row-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .directory-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .heritage-specs-grid { grid-template-columns: 1fr 1fr; }
    .rasi-hub-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .footer-cal-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .footer-top-row { flex-direction: row; justify-content: space-between; align-items: center; }
    .footer-bottom-bar { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENTS: DESKTOP (min-width: 768px & 1024px)
   ========================================================================== */
@media (min-width: 768px) {
    body { font-size: 17px; }
    .section-box { padding: 26px; border-radius: var(--radius-lg); }
    .section-title { font-size: 22px; }

    .panjika-card-header { flex-direction: row; justify-content: space-between; align-items: baseline; }
    .panjika-months-row-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .hub-cards-grid-v2 { grid-template-columns: 1fr 1fr; gap: 20px; }
    .directory-head { flex-direction: row; justify-content: space-between; align-items: baseline; }
    .rasi-select-wrap { flex-direction: row; align-items: center; }
    .rasi-dropdown { width: auto; min-width: 280px; }
    .rasi-specs-table { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .calendar-table { min-width: 100%; }
    .directory-articles-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rasi-hub-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .footer-cal-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
}
