@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-variable-latin.woff2') format('woff2-variations'),
        url('../fonts/inter-variable-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Sans Bengali';
    src: url('../fonts/noto-sans-bengali-variable.woff2') format('woff2-variations'),
        url('../fonts/noto-sans-bengali-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
    unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --secondary-color: #e3f2fd;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --header-bg: #ffffff;
    --nav-bg: linear-gradient(180deg, #ffffff 0%, #e0f7fa 100%);
    --body-bg: radial-gradient(circle at 10% 10%, rgba(219, 234, 254, 0.7) 0%, transparent 45%),
               radial-gradient(circle at 90% 15%, rgba(237, 233, 254, 0.6) 0%, transparent 40%),
               radial-gradient(circle at 50% 95%, rgba(209, 250, 229, 0.5) 0%, transparent 50%),
               #f1f5f9;
    --white: #ffffff;
    --red: #dc2626;
    --green: #059669;
    --blue-text: #0d47a1;
}

[data-theme="dark"] {
    --primary-color: #38bdf8;
    --primary-hover: #0284c7;
    --secondary-color: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #151e2e;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --header-bg: #0f172a;
    --nav-bg: #1e293b;
    --body-bg: radial-gradient(circle at 10% 10%, rgba(30, 58, 138, 0.35) 0%, transparent 45%),
               radial-gradient(circle at 90% 15%, rgba(88, 28, 135, 0.3) 0%, transparent 40%),
               radial-gradient(circle at 50% 95%, rgba(6, 78, 59, 0.3) 0%, transparent 50%),
               #0b0f19;
    --white: #151e2e;
    --blue-text: #60a5fa;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    background: var(--body-bg);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Base Card & Container Modernization */
.container.main-content,
.card,
.container {
    border-radius: 14px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Site Header Wrapper (Modern Full-Width Sticky Glassmorphic Navbar) */
.site-header-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
    background: rgba(255, 255, 255, 0.94);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Compact Sticky Header — fires after 80px scroll via JS class */
.site-header-wrapper.scrolled {
    box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.12), 0 2px 8px -2px rgba(15, 23, 42, 0.06) !important;
    border-bottom-color: rgba(203, 213, 225, 0.9) !important;
}

.site-header-wrapper.scrolled .top-header-content {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.site-header-wrapper.scrolled .brand-logo-emblem {
    width: 34px !important;
    height: 34px !important;
}

.site-header-wrapper.scrolled .brand-title {
    font-size: 18px !important;
}

[data-theme="dark"] .site-header-wrapper.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
    border-bottom-color: #334155 !important;
}

.top-header-content {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-bar-inner {
    display: flex;
    align-items: center;
}

.main-logo-link {
    text-decoration: none !important;
    display: inline-block;
}

/* Modern Brand Logo */
.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-wrap:hover {
    transform: scale(1.02);
}

.brand-logo-emblem {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.25s ease, height 0.25s ease;
}

.brand-logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(2, 132, 199, 0.25));
}

.brand-logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0d47a1;
    transition: color 0.2s ease, font-size 0.25s ease;
}

[data-theme="dark"] .brand-title {
    color: #f8fafc;
}

.brand-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.brand-pill {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.brand-pill-ext {
    opacity: 0.85;
    font-weight: 600;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Action Controls (Language Switcher & Theme Switcher) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions-mobile {
    display: none;
    align-items: center;
    gap: 10px;
}

/* Language Switcher Pill */
.lang-switch-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.06);
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .lang-switch-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.lang-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    color: var(--text-color);
}

.lang-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .lang-btn.active {
    background: #1e293b;
    color: #38bdf8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Header Action Buttons (Search & Theme Toggle) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-action-btn,
.theme-toggle-btn,
.search-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color, #1e293b);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

.header-action-btn:hover,
.theme-toggle-btn:hover,
.search-toggle-btn:hover {
    transform: translateY(-1px) scale(1.06);
    background: rgba(15, 23, 42, 0.09);
    border-color: rgba(0, 0, 0, 0.16);
    color: #2563eb;
}

.theme-toggle-btn:active,
.search-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn svg,
.search-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.theme-toggle-btn .theme-icon-sun {
    display: none;
    color: #f59e0b;
}

.theme-toggle-btn .theme-icon-moon {
    display: block;
    color: #475569;
}

[data-theme="dark"] .header-action-btn,
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .search-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

[data-theme="dark"] .header-action-btn:hover,
[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    color: #38bdf8;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
    display: block;
    color: #fbbf24;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
    display: none;
}

/* Theme switch spin animation */
.theme-toggle-btn.animating svg {
    transform: rotate(360deg) scale(1.15);
}

/* ==========================================================================
   Search Modal (Events & Festivals Instant Search)
   ========================================================================== */
.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(30px, 8vh, 90px) 16px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.search-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-dialog {
    width: 100%;
    max-width: 580px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    transform: scale(0.96) translateY(-8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.active .search-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Search Header & Input */
.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: relative;
}

.search-modal-icon {
    color: #64748b;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-modal-icon svg {
    width: 20px;
    height: 20px;
}

.search-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
    font-weight: 500;
}

.search-input-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(241, 245, 249, 0.8);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.search-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.search-kbd-hint {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    letter-spacing: 0.5px;
}

/* Search Results Body */
.search-modal-body {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
    max-height: 440px;
    overscroll-behavior: contain;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.search-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.15s ease;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f1f5f9;
    transform: translateX(2px);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Holiday Legend Color Matching in Search Modal */
/* 1. Public Holiday (Red) */
.search-result-icon.fest-public {
    background: #fef2f2;
    color: #dc2626;
}
.search-result-badge.public {
    background: #fee2e2;
    color: #b91c1c;
}

/* 2. State Holiday (Maroon) */
.search-result-icon.fest-state {
    background: #fdf2f8;
    color: #990033;
}
.search-result-badge.state {
    background: #fce7f3;
    color: #880e4f;
}

/* 3. General / Restricted Holiday (Blue) */
.search-result-icon.fest-restricted,
.search-result-icon.fest-general {
    background: #eff6ff;
    color: #0284c7;
}
.search-result-badge.restricted,
.search-result-badge.general {
    background: #e0f2fe;
    color: #0369a1;
}

/* 4. Sectional Holiday (Magenta) */
.search-result-icon.fest-sectional {
    background: #fdf4ff;
    color: #d946ef;
}
.search-result-badge.sectional {
    background: #fae8ff;
    color: #a21caf;
}

/* 5. Custom / Other Festivals */
.search-result-icon.fest-custom {
    background: #f8fafc;
    color: #64748b;
}
.search-result-badge.custom {
    background: #f1f5f9;
    color: #475569;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

.search-result-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-arrow {
    color: #94a3b8;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.selected .search-result-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.search-empty-state {
    padding: 36px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Dark Mode Search Modal */
[data-theme="dark"] .search-modal-dialog {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .search-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .search-input-field {
    color: #f8fafc;
}

[data-theme="dark"] .search-close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

[data-theme="dark"] .search-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

[data-theme="dark"] .search-kbd-hint {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .search-result-item {
    color: #f8fafc;
}

[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.selected {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .search-result-title {
    color: #f8fafc;
}

[data-theme="dark"] .search-result-desc {
    color: #94a3b8;
}

[data-theme="dark"] .search-result-icon {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .search-result-icon.fest-public {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}
[data-theme="dark"] .search-result-badge.public {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

[data-theme="dark"] .search-result-icon.fest-state {
    background: rgba(219, 39, 119, 0.18);
    color: #f472b6;
}
[data-theme="dark"] .search-result-badge.state {
    background: rgba(219, 39, 119, 0.25);
    color: #fbcfe8;
}

[data-theme="dark"] .search-result-icon.fest-restricted,
[data-theme="dark"] .search-result-icon.fest-general {
    background: rgba(2, 132, 199, 0.18);
    color: #38bdf8;
}
[data-theme="dark"] .search-result-badge.restricted,
[data-theme="dark"] .search-result-badge.general {
    background: rgba(2, 132, 199, 0.25);
    color: #7dd3fc;
}

[data-theme="dark"] .search-result-icon.fest-sectional {
    background: rgba(217, 70, 239, 0.18);
    color: #e879f9;
}
[data-theme="dark"] .search-result-badge.sectional {
    background: rgba(217, 70, 239, 0.25);
    color: #f0abfc;
}

[data-theme="dark"] .search-result-icon.fest-custom {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
[data-theme="dark"] .search-result-badge.custom {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* Modern Navigation Bar Container */
.nav-bar-container {
    border-radius: 14px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 8px;
    position: relative;
    z-index: 950;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .nav-bar-container {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}

.mobile-drawer-header,
.mobile-drawer-footer {
    display: none !important;
}

.mobile-drawer-body {
    display: contents;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    color: #0284c7;
}

[data-theme="dark"] .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-text-bn {
    font-size: 0.88em;
    opacity: 0.78;
    font-weight: 500;
}

[data-theme="dark"] .nav-item,
[data-theme="dark"] .nav-text,
[data-theme="dark"] .nav-dropdown-trigger {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .nav-text-bn {
    color: #cbd5e1 !important;
    opacity: 0.85;
}

[data-theme="dark"] .nav-dropdown-arrow {
    color: #94a3b8 !important;
}

.nav-item.active {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    font-weight: 700;
}

[data-theme="dark"] .nav-item.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8 !important;
}

/* Icon Badges */
.nav-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon-badge {
    transform: scale(1.1);
}

.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-green { background: #ecfdf5; color: #059669; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-pink { background: #fdf2f8; color: #db2777; }
.badge-amber { background: #fffbeb; color: #d97706; }
.badge-cyan { background: #f0fdf4; color: #0891b2; }
.badge-sky { background: #f0f9ff; color: #0284c7; }
.badge-orange { background: #fff7ed; color: #ea580c; }
.badge-purple { background: #faf5ff; color: #7c3aed; }

[data-theme="dark"] .badge-blue { background: rgba(29, 78, 216, 0.22); color: #60a5fa; }
[data-theme="dark"] .badge-green { background: rgba(5, 150, 105, 0.22); color: #34d399; }
[data-theme="dark"] .badge-red { background: rgba(220, 38, 38, 0.22); color: #f87171; }
[data-theme="dark"] .badge-pink { background: rgba(219, 39, 119, 0.22); color: #f472b6; }
[data-theme="dark"] .badge-amber { background: rgba(217, 119, 6, 0.22); color: #fbbf24; }
[data-theme="dark"] .badge-cyan { background: rgba(8, 145, 178, 0.22); color: #38bdf8; }
[data-theme="dark"] .badge-sky { background: rgba(2, 132, 199, 0.22); color: #38bdf8; }
[data-theme="dark"] .badge-orange { background: rgba(234, 88, 12, 0.22); color: #fb923c; }
[data-theme="dark"] .badge-purple { background: rgba(124, 58, 237, 0.22); color: #a78bfa; }

/* Submenu Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}

.nav-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
    opacity: 0.65;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 290px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-theme="dark"] .nav-dropdown-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dropdown-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.dropdown-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.mobile-drawer-header {
    display: none;
}

/* Hamburger Button (Modern Circular Mobile Control) */
.hamburger {
    display: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(15, 23, 42, 0.09);
    border-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-1px) scale(1.05);
}

.hamburger:active {
    transform: scale(0.95);
}

[data-theme="dark"] .hamburger {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .hamburger:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

.hamburger div {
    width: 17px;
    height: 2px;
    background-color: var(--text-color, #1e293b);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
}

[data-theme="dark"] .hamburger div {
    background-color: #f8fafc !important;
}

.hamburger.open div:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open div:nth-child(2) {
    opacity: 0;
    transform: scale(0.3);
}

.hamburger.open div:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open .site-header-wrapper {
    z-index: 10002 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (min-width: 881px) {
    .menu-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 880px) {
    .site-header-wrapper {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 999;
        border-radius: 0;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .site-header-wrapper.header-hidden-mobile {
        transform: translateY(-100%);
    }

    .top-header-content {
        padding: 10px 14px;
    }

    .desktop-only-actions {
        display: none !important;
    }

    .header-actions-mobile {
        display: flex;
    }

    .logo-section {
        flex: 1;
        width: 100%;
    }

    .logo-bar-inner {
        width: 100%;
        justify-content: space-between;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-logo-emblem {
        width: 36px;
        height: 36px;
    }

    .brand-tagline {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-bar-container {
        margin-top: 0;
        border: none;
        box-shadow: none;
        background: transparent !important;
    }

    /* Mobile Drawer Header, Body & Footer */
    .mobile-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background: #ffffff;
        flex-shrink: 0;
    }

    [data-theme="dark"] .mobile-drawer-header {
        background: #0f172a !important;
        border-bottom-color: #1e293b !important;
    }

    .mobile-drawer-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-drawer-title {
        font-size: 15px;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.2px;
    }

    [data-theme="dark"] .mobile-drawer-title {
        color: #f8fafc !important;
    }

    .mobile-drawer-close {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: none;
        background: #f1f5f9;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .mobile-drawer-close:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

    [data-theme="dark"] .mobile-drawer-close {
        background: #1e293b !important;
        color: #94a3b8 !important;
    }

    [data-theme="dark"] .mobile-drawer-close:hover {
        background: #334155 !important;
        color: #ffffff !important;
    }

    .mobile-drawer-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        padding: 10px 12px !important;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-drawer-footer {
        display: flex !important;
        padding: 12px 14px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        background: #f8fafc !important;
        flex-shrink: 0 !important;
    }

    [data-theme="dark"] .mobile-drawer-footer {
        background: #0b0f19 !important;
        border-top-color: #1e293b !important;
    }

    .mobile-drawer-app-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 9px 12px;
        background: #ecfdf5;
        border: 1px solid #a7f3d0;
        border-radius: 8px;
        color: #059669;
        font-size: 12.5px;
        font-weight: 700;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }

    .mobile-drawer-app-btn:hover {
        background: #d1fae5;
        border-color: #6ee7b7;
        color: #047857;
    }

    [data-theme="dark"] .mobile-drawer-app-btn {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #38bdf8 !important;
    }

    /* Sleek Right Side Slide-Over Drawer */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(86vw, 345px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        background: #ffffff !important;
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.28) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-top: none !important;
        border-radius: 0 !important;
        z-index: 10005 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s ease !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    [data-theme="dark"] .nav-links {
        background: #0f172a !important;
        border-left: 1px solid #334155 !important;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8) !important;
    }

    .nav-links.responsive {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }

    .nav-item {
        width: 100%;
        padding: 10px 14px;
        border-radius: 10px;
        border-bottom: none;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #1e293b !important;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        box-sizing: border-box;
        transition: background 0.18s ease, transform 0.18s ease;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-item .nav-text {
        color: #1e293b !important;
        font-size: 14px;
        font-weight: 600;
    }

    [data-theme="dark"] .nav-item,
    [data-theme="dark"] .nav-item .nav-text {
        color: #f8fafc !important;
    }

    .nav-item:hover,
    .nav-item:focus {
        background: rgba(2, 132, 199, 0.06);
    }

    [data-theme="dark"] .nav-item:hover,
    [data-theme="dark"] .nav-item:focus {
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .nav-item.active {
        background: rgba(2, 132, 199, 0.1) !important;
        color: #0284c7 !important;
    }

    [data-theme="dark"] .nav-item.active {
        background: rgba(56, 189, 248, 0.12) !important;
        color: #38bdf8 !important;
    }

    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-dropdown-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        color: #1e293b !important;
        user-select: none;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-dropdown-trigger:focus,
    .nav-dropdown-trigger:focus-visible {
        outline: none !important;
    }

    [data-theme="dark"] .nav-dropdown-trigger {
        color: #f8fafc !important;
    }

    .nav-dropdown-arrow {
        font-size: 11px;
        color: #64748b !important;
        transition: transform 0.25s ease;
        margin-left: auto;
    }

    [data-theme="dark"] .nav-dropdown-arrow {
        color: #94a3b8 !important;
    }

    .nav-dropdown.open .nav-dropdown-arrow {
        transform: rotate(180deg);
        color: #0284c7 !important;
    }

    [data-theme="dark"] .nav-dropdown.open .nav-dropdown-arrow {
        color: #38bdf8 !important;
    }

    /* Clean Indented Accordion Submenu on Mobile */
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(2, 132, 199, 0.25);
        background: transparent;
        border-radius: 0;
        padding: 4px 0 4px 10px;
        margin: 4px 0 6px 16px;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-sizing: border-box;
    }

    [data-theme="dark"] .nav-dropdown-menu {
        background: transparent !important;
        border-left-color: rgba(56, 189, 248, 0.3) !important;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .dropdown-item {
        padding: 8px 10px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        box-sizing: border-box;
        transition: background 0.18s ease;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(2, 132, 199, 0.08);
    }

    [data-theme="dark"] .dropdown-item:hover,
    [data-theme="dark"] .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .dropdown-item-title {
        color: #1e293b !important;
        font-size: 13px;
        font-weight: 600;
        display: block;
    }

    [data-theme="dark"] .dropdown-item-title {
        color: #f8fafc !important;
    }

    .dropdown-item-desc {
        display: none !important;
    }
}

/* ============================================================
   PREMIUM CONTACT PAGE (Luxury 2-Column Responsive Layout)
   ============================================================ */
.contact-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 40px;
}

.contact-header-section {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid #bfdbfe;
}

.contact-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color, #0f172a);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.contact-hero-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

/* Contact Info Sidebar Cards */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon--email {
    background: #eff6ff;
    color: #2563eb;
}

.contact-info-icon--panjika {
    background: #fffbeb;
    color: #d97706;
}

.contact-info-icon--time {
    background: #ecfdf5;
    color: #059669;
}

.contact-info-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin: 0 0 4px;
}

.contact-info-text {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 6px;
}

.contact-info-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    word-break: break-all;
}

.contact-info-link:hover {
    text-decoration: underline;
}

/* Contact Form Card */
.contact-form-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modern-form-group {
    margin-bottom: 20px;
}

.modern-form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color, #1e293b);
}

.required-star {
    color: #ef4444;
    font-weight: 700;
}

.modern-form-input,
.modern-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: var(--text-color, #0f172a);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modern-form-input:focus,
.modern-form-textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modern-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.contact-back-row {
    margin-top: 20px;
    text-align: center;
}

.contact-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 880px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-card {
        padding: 20px 18px;
    }

    .form-row-dual {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-hero-title {
        font-size: 24px;
    }
}

/* ============================================================
   FULL-WIDTH SINGLE-COLUMN LAYOUT (Modern Premium)
   ============================================================ */

/* Legacy .container kept for non-index pages (blog, pages, etc.) */
.container {
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.06);
    margin: 0 auto 20px auto;
    display: block;
    border: 1px solid rgba(226, 232, 240, 0.85);
}

/* Primary full-width wrapper — main layout on index.php */
.main-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Content extension (blog cards, FAQ, SEO, about) */
.content-extension {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sidebar rules kept for legacy/non-index pages */
.sidebar {
    display: none; /* Hidden on main layout — replaced by hero-strip */
}

.right-sidebar {
    display: none; /* Hidden — embed moved to modal */
}

.sidebar-header {
    background: var(--header-bg);
    padding: 6px 12px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
}

.current-date-box {
    padding: 10px 0;
    background: #e8f5e9;
    border-bottom: 2px solid var(--primary-color);
}

.big-date {
    font-size: 60px;
    font-weight: bold;
    color: #2e7d32;
    margin: 0;
    line-height: 1;
}

.day-name {
    font-size: 24px;
    color: #2e7d32;
    font-weight: bold;
}

/* Main content area is now flex child of .main-wrapper */
.main-content {
    width: 100%;
    min-height: 100px;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* =============================================================
   PREMIUM HERO STRIP — 3 Date/Panjika/Hijri Cards (Compact & Elegant)
   ============================================================= */
.hero-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 4px 0 16px;
    margin-bottom: 6px;
}

.hero-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 3px 14px -3px rgba(15, 23, 42, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

.hero-card--date::before { background: linear-gradient(90deg, #2563eb, #0ea5e9); }
.hero-card--panjika::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.hero-card--hijri::before { background: linear-gradient(90deg, #059669, #10b981); }

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -3px rgba(15, 23, 42, 0.09), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

/* Copy button on hero cards */
.hero-copy-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease, background 0.18s ease;
    padding: 0;
    z-index: 2;
}

.hero-card:hover .hero-copy-btn {
    opacity: 1;
    transform: scale(1);
}

.hero-copy-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.hero-copy-btn svg {
    width: 13px;
    height: 13px;
    pointer-events: none;
}

.hero-copy-btn.copied {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    opacity: 1;
    transform: scale(1);
}

[data-theme="dark"] .hero-copy-btn {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

[data-theme="dark"] .hero-copy-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.hero-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.hero-card--date .hero-card-icon { background: #eff6ff; color: #2563eb; }
.hero-card--panjika .hero-card-icon { background: #fffbeb; color: #d97706; }
.hero-card--hijri .hero-card-icon { background: #ecfdf5; color: #059669; }

.hero-card-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.hero-card-body {
    flex: 1;
    min-width: 0;
}

.hero-card-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.hero-card-month {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card-day-name {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 2px;
}

.hero-card-big-num {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    color: #2563eb;
    letter-spacing: -1px;
    margin: 2px 0;
}

.hero-card-big-num--hijri {
    color: #059669;
}

.hero-card-season {
    font-size: 11.5px;
    font-weight: 600;
    color: #dc2626;
    margin-top: 2px;
}

.hero-card-greg {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
}

.hero-hijri-day {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 2px;
}

/* Panjika rows inside hero card */
.hero-panjika-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 3px;
}

.hero-panjika-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.hero-panjika-ico {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-panjika-ico svg {
    width: 14px;
    height: 14px;
}

.hero-panjika-ico--sun { color: #f59e0b; }
.hero-panjika-ico--sunset { color: #f97316; }
.hero-panjika-ico--tithi { color: #8b5cf6; }
.hero-panjika-ico--clock { color: #64748b; }

.hero-panjika-key {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 44px;
}

.hero-panjika-val {
    font-weight: 700;
    color: var(--text-color);
}

.hero-moon-sym {
    display: inline-block;
    color: #f59e0b;
    margin-left: 2px;
}

/* Dark mode overrides for hero cards */
[data-theme="dark"] .hero-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .hero-card-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .hero-card-month {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .hero-card-day-name {
    color: #60a5fa !important;
}

[data-theme="dark"] .hero-card-big-num {
    color: #38bdf8 !important;
}

[data-theme="dark"] .hero-card-big-num--hijri {
    color: #34d399 !important;
}

[data-theme="dark"] .hero-hijri-day {
    color: #34d399 !important;
}

[data-theme="dark"] .hero-card-season {
    color: #f87171 !important;
}

[data-theme="dark"] .hero-card-greg {
    color: #94a3b8 !important;
}

[data-theme="dark"] .hero-panjika-key {
    color: #94a3b8 !important;
}

[data-theme="dark"] .hero-panjika-val {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .hero-card--date .hero-card-icon { background: rgba(37, 99, 235, 0.2) !important; color: #60a5fa !important; }
[data-theme="dark"] .hero-card--panjika .hero-card-icon { background: rgba(217, 119, 6, 0.2) !important; color: #fbbf24 !important; }
[data-theme="dark"] .hero-card--hijri .hero-card-icon { background: rgba(5, 150, 105, 0.2) !important; color: #34d399 !important; }

/* Hero strip responsive */
@media (max-width: 900px) {
    .hero-strip {
        grid-template-columns: 1fr 1fr;
    }
    .hero-card--hijri {
        grid-column: 1 / -1;
    }
    .hero-card-big-num { font-size: 30px; }
}

/* On mobile, mobile_info_strip.php handles info — hide duplicate hero cards */
@media (max-width: 768px) {
    .hero-strip {
        display: none !important;
    }
}

.day-cell.empty {
    background: #f8fafc;
}

.tithi-text {
    font-size: 10px;
    color: var(--green);
    text-align: left;
    line-height: 1.4;
    font-weight: bold;
    margin-bottom: 2px;
    padding-right: 2px;
    padding-top: 2px;
    width: 100%;
}

.tithi-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tithi-time {
    display: block;
    width: 100%;
    font-size: 9px;
    color: #555;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.bengali-date {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    color: black;
    line-height: 1;
    margin-top: 0;
    flex-grow: 1;
}

.english-date {
    font-size: 14px;
    color: blue;
    text-align: right;
    font-weight: bold;
    position: absolute;
    bottom: 15px;
    right: 2px;
    margin-bottom: 0;
}

.day-cell .moon-symbol {
    font-size: 12px;
    position: absolute;
    top: 2px;
    right: 0px;
    line-height: 1;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #1d4ed8 100%);
    color: #ffffff;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 21px;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cal-hdr-left {
    flex: 1;
    text-align: left;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cal-hdr-right {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cal-hdr-grange {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: none;
    border-left: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    background: #fff;
    width: 100%;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08);
}

.day-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    text-align: center;
    padding: 8px 4px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.day-header.day-sunday,
.day-header:nth-child(1) {
    color: #e11d48 !important;
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%) !important;
}

.day-cell {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    min-height: 80px;
    position: relative;
    padding: 2px;
    padding-bottom: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    min-width: 0;
}

.day-cell:hover {
    background-color: #b3e5fc !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.today {
    background: radial-gradient(circle, #e0f7fa 20%, #4dd0e1 100%);
    border: 2px solid #0097a7;
}

.day-cell.highlight-date {
    background-color: #fff9c4 !important;
    border: 2px solid #fbc02d !important;
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 192, 45, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(251, 192, 45, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 192, 45, 0);
    }
}

.holiday .bengali-date {
    color: red;
}

.festival-text {
    font-size: 10px;
    color: red;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0px;
    box-sizing: border-box;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panjika-box {
    padding: 5px;
}

.panjika-title {
    font-weight: bold;
    color: #d32f2f;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}

.bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    background: #f8fafc;
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 8px;
}

.bottom-nav-btn,
.today-btn,
.nav-btn-round {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
}

.bottom-nav-btn {
    background: #1976d2;
}

.nav-btn-round {
    background: #e0e0e0;
    color: #333;
    border-radius: 20px;
    border: 1px solid #ccc;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-round i {
    font-size: 0.9em;
}

.nav-btn-round:hover {
    background: #d5d5d5;
}

.today-btn {
    background: #2e7d32;
}

.ad-container {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
}

.sidebar-ad {
    min-height: 250px;
}

.top-ad,
.bottom-ad {
    min-height: 90px;
}

.right-sidebar {
    display: none; /* Replaced by embed modal */
}

.embed-box {
    padding: 10px;
    background: #fff;
}

.embed-textarea {
    width: 100%;
    height: 150px;
    font-size: 12px;
    resize: none;
    border: 1px solid #ccc;
    padding: 5px;
    cursor: pointer;
}

/* Download Button */
.download-btn {
    display: block;
    width: auto;
    margin: 10px auto;
    padding: 10px 20px;
    background-color: #ff9800;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    max-width: 90%;
}

.download-btn:hover {
    background-color: #f57c00;
}


/* Embed Modal (replaces right sidebar) */
.embed-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.embed-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.embed-modal-dialog {
    width: 90%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: scale(0.95) translateY(-10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.embed-modal-overlay.active .embed-modal-dialog {
    transform: scale(1) translateY(0);
}

.embed-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: white;
}

.embed-modal-title {
    font-weight: 800;
    font-size: 16px;
}

.embed-modal-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.embed-modal-close:hover { background: rgba(255,255,255,0.35); }

.embed-modal-body {
    padding: 20px;
}

.embed-modal-body p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
}

[data-theme="dark"] .embed-modal-dialog {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

[data-theme="dark"] .embed-modal-body p {
    color: #94a3b8 !important;
}

[data-theme="dark"] .embed-textarea {
    background: #0b0f19 !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}

/* SEO Section & FAQ Container Modern Luxury Cards */
.seo-section,
.faq-container {
    margin-top: 14px;
    background-color: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
    padding: 0;
}

.faq-accordion {
    padding: 12px 16px;
}

.seo-text {
    padding: 16px 20px;
    font-size: 14.5px;
    color: var(--text-color, #334155);
    line-height: 1.75;
    text-align: left;
}

.seo-text p {
    margin: 0;
}

.about-section {
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .seo-section,
    .faq-container {
        margin-top: 10px;
        border-radius: 12px;
        padding: 0;
    }

    .faq-accordion {
        padding: 10px 12px;
    }

    .seo-text {
        padding: 12px 14px;
        font-size: 13.5px;
        line-height: 1.65;
    }
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .main-wrapper,
    .content-extension {
        padding: 0 8px 16px;
    }

    .big-date {
        font-size: 40px;
    }

    .day-name {
        font-size: 20px;
    }

    .bengali-date {
        font-size: 32px;
    }

    .calendar-header {
        font-size: 16px;
        padding: 8px;
    }

    .ad-container {
        max-width: 100%;
        overflow: hidden;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .day-cell {
        padding-top: 1px;
        padding-left: 0px !important;
        padding-right: 0px !important;
        padding-bottom: 20px;
        min-height: 60px;
    }

    .tithi-text {
        font-size: 8px;
        line-height: 1.1;
        margin-bottom: 1px;
        white-space: normal;
        word-wrap: break-word;
        overflow: hidden;
        padding-right: 0;
    }

    .tithi-text .tithi-name::after {
        content: "";
    }

    .tithi-time {
        display: block !important;
        width: 100% !important;
        font-size: 8px;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap;
    }

    .english-date {
        font-size: 10px;
        bottom: 2px;
        right: 2px;
    }

    .day-cell .moon-symbol {
        font-size: 10px;
        top: 1px;
    }
}

.festivals-section {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
}

/* Clean Plain Text Section Headers (No Heavy Colored Bars) */
.section-plain-header {
    padding: 12px 18px 11px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
}

.section-title-text {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-color, #1e293b);
    margin: 0;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.section-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
}

.section-title-icon svg {
    width: 15px;
    height: 15px;
}

.section-title-icon--festivals {
    background: #eff6ff;
    color: #2563eb;
}

.section-title-icon--shuvodinr {
    background: #fffbeb;
    color: #d97706;
}

.section-title-icon--converter {
    background: #ecfdf5;
    color: #059669;
}

.section-title-icon--faq {
    background: #f0fdfa;
    color: #0d9488;
}

.section-title-icon--about {
    background: #eef2ff;
    color: #4f46e5;
}

.section-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.festivals-layout {
    display: block;
    padding: 12px 16px;
}

.festivals-left {
    width: 100%;
    border-right: none;
    padding-right: 0;
}

/* Clean, compact directory list (Not chunky card boxes) */
.festivals-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 14px;
    margin-bottom: 12px;
    max-height: none;
    overflow: visible;
}

@media (max-width: 960px) {
    .festivals-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .festivals-list {
        grid-template-columns: 1fr;
    }
}

.festival-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9);
    border-radius: 4px;
    transition: background 0.15s ease;
}

.festival-item:hover {
    background: rgba(2, 132, 199, 0.04);
}

.festival-date-box {
    background: #eff6ff;
    color: #2563eb;
    min-width: 26px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
    padding: 0 4px;
}

.festival-date-box.fest-public {
    background: #fee2e2;
    color: #dc2626;
}

.festival-date-box.fest-state {
    background: #fce7f3;
    color: #a6024f;
}

.festival-date-box.fest-sectional {
    background: #f3e8ff;
    color: #9333ea;
}

.festival-name {
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.festival-name.fest-public {
    color: #dc2626;
}

.festival-name.fest-state {
    color: #a6024f;
}

.festival-name.fest-sectional {
    color: #9333ea;
}

.no-festivals {
    color: #777;
    font-style: italic;
    padding: 10px;
}

.festival-legend {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #555;
}

.festival-legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 12px;
}

@media (max-width: 768px) {
    .festival-legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-dot.public { background-color: #ef4444; }
.legend-dot.sectional { background-color: #a855f7; }
.legend-dot.general { background-color: #3b82f6; }
.legend-dot.state { background-color: #a6024f; }

/* Shuvodinr Section (Modern Clean Container) */
.shuvodinr-section {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
}

.shuvodinr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.shuvodinr-table th,
.shuvodinr-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.shuvodinr-table th {
    background: #f8fafc;
    color: #334155;
    text-align: left;
    font-weight: 700;
    font-size: 12.5px;
    border-bottom: 2px solid #e2e8f0;
}

.shuvodinr-table td:first-child {
    background: transparent;
    font-weight: 600;
    color: #047857;
    width: 42%;
}

.shuvodinr-table td:last-child {
    background: transparent;
    color: #1e293b;
}

.shuvodinr-table tbody tr:hover td {
    background-color: #f0fdf4;
}

/* Date Converter Section (Modern Clean Tool) */
.converter-section {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
}

.converter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px;
}

@media (max-width: 768px) {
    .converter-grid {
        grid-template-columns: 1fr;
    }
}

.converter-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.converter-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
}

.converter-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.04em;
}

.badge-b2e {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.badge-e2b {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.converter-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 8px;
}

.converter-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.converter-select {
    width: 100%;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.converter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.convert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px -1px rgba(37, 99, 235, 0.3);
}

.convert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -1px rgba(37, 99, 235, 0.4);
}

.converter-result {
    min-height: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Dark mode overrides for festival, shuvodinr & converter */
[data-theme="dark"] .section-plain-header {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .section-title-text {
    color: #f8fafc !important;
}

[data-theme="dark"] .section-subtitle {
    color: #94a3b8 !important;
}

[data-theme="dark"] .section-title-icon--festivals {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .section-title-icon--shuvodinr {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .section-title-icon--converter {
    background: rgba(5, 150, 105, 0.2) !important;
    color: #34d399 !important;
}

[data-theme="dark"] .section-title-icon--faq {
    background: rgba(13, 148, 136, 0.2) !important;
    color: #2dd4bf !important;
}

[data-theme="dark"] .section-title-icon--about {
    background: rgba(79, 70, 229, 0.2) !important;
    color: #818cf8 !important;
}

[data-theme="dark"] .festivals-section,
[data-theme="dark"] .shuvodinr-section,
[data-theme="dark"] .converter-section,
[data-theme="dark"] .faq-container,
[data-theme="dark"] .seo-section {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .festival-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    border-radius: 4px !important;
}

[data-theme="dark"] .festival-item:hover {
    background: rgba(56, 189, 248, 0.08) !important;
}

[data-theme="dark"] .festival-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .shuvodinr-table {
    background: transparent !important;
    border: none !important;
}

[data-theme="dark"] .shuvodinr-table th {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: none !important;
    border-bottom: 2px solid #334155 !important;
}

[data-theme="dark"] .shuvodinr-table td {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .shuvodinr-table td:first-child {
    color: #34d399 !important;
    font-weight: 600;
    background: transparent !important;
}

[data-theme="dark"] .shuvodinr-table tbody tr:hover td {
    background-color: rgba(56, 189, 248, 0.08) !important;
}

[data-theme="dark"] .converter-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .converter-card-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .converter-field label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .converter-select {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .converter-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: 1px solid #0284c7 !important;
}

[data-theme="dark"] .converter-result {
    background: #151e2e !important;
    border: 1px dashed #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .converter-result-primary {
    color: #38bdf8 !important;
}

[data-theme="dark"] .converter-result-secondary {
    color: #94a3b8 !important;
}

/* Calendar Top Bar - Ultra Compact Single Row */
.calendar-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px auto 3px auto;
    flex-wrap: wrap;
}

.calendar-selector-bar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-selector-bar:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .calendar-selector-bar {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.calendar-selector-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.calendar-selector-bar label {
    color: #0369a1;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

[data-theme="dark"] .calendar-selector-bar label {
    color: #38bdf8 !important;
}

.calendar-selector-bar select {
    padding: 0 28px 0 10px;
    border: 1.5px solid #bae6fd;
    border-radius: 7px;
    color: #0f172a;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    outline: none;
    height: 34px;
    line-height: 34px;
    transition: all 0.2s ease;
}

.calendar-selector-bar select:hover {
    border-color: #0284c7;
    background-color: #ffffff;
}

.calendar-selector-bar select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
    background-color: #ffffff;
}

[data-theme="dark"] .calendar-selector-bar select {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .calendar-selector-bar select:hover,
[data-theme="dark"] .calendar-selector-bar select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.calendar-selector-bar button {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 0 16px;
    height: 34px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    cursor: pointer;
    line-height: 34px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    white-space: nowrap;
}

.calendar-selector-bar button:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.calendar-selector-bar button:active {
    transform: scale(0.97);
}

[data-theme="dark"] .calendar-selector-bar button {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3) !important;
}

@media (max-width: 768px) {
    .calendar-selector-bar {
        padding: 5px 8px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
    .calendar-selector-form {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .calendar-selector-bar label {
        font-size: 12px;
    }
    .calendar-selector-bar select {
        height: 30px;
        line-height: 30px;
        font-size: 12px;
        padding-right: 22px;
    }
    .calendar-selector-bar button {
        height: 30px;
        line-height: 30px;
        padding: 0 12px;
        font-size: 12px;
    }
}

.calendar-page-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 8px 0 10px 0;
    color: #1e293b;
    line-height: 1.35;
}

[data-theme="dark"] .calendar-page-title {
    color: #f8fafc !important;
}

@media (max-width: 600px) {
    .calendar-page-title {
        font-size: 14.5px;
        margin: 6px 0 8px 0;
    }
}

@media (max-width: 1200px) {
    .bengali-date {
        font-size: 32px;
    }

    .day-cell {
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }


    .container {
        flex-direction: column;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
    }

    .sidebar,
    .right-sidebar {
        width: 100%;
        margin-bottom: 10px;
        border: none;
        border-radius: 0;
    }

    .main-content {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .right-sidebar {
        order: 3;
    }

    .big-date {
        font-size: 40px;
    }

    .day-name {
        font-size: 20px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 10px;
    }

    .day-header {
        font-size: 12px;
        padding: 2px;
    }

    .day-cell {
        min-height: 60px;
        padding: 2px;
        padding-bottom: 20px;
    }

    .tithi-text {
        font-size: 8px;
        line-height: 1;
    }

    .bengali-date {
        font-size: 20px;
    }

    .english-date {
        font-size: 9px;
        bottom: 15px;
    }

    .festival-text {
        font-size: 8px;
        bottom: 0;
    }

    .moon-symbol {
        font-size: 10px;
        top: 3px;
        right: 1px;
    }

    .festivals-layout {
        flex-direction: column;
        padding: 5px;
        gap: 10px;
    }

    .festivals-left {
        border-right: none;
        padding-right: 0;
        padding-bottom: 5px;
    }

    .festivals-right {
        width: 100%;
        padding-left: 0;
        margin-top: 10px;
    }


}

@media (max-width: 480px) {
    .bengali-date {
        font-size: 25px;
    }

    .day-cell {
        min-height: 50px;
    }

    .tithi-text,
    .festival-text {
        font-size: 8px;
    }
}

@media (max-width: 768px) {

    .bottom-nav {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }

    .nav-btn-round,
    .today-btn {
        padding: 6px 10px;
        font-size: 12px;
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 45%;
    }

    .today-btn {
        max-width: 60px;
    }

}

.festival-item {
    gap: 15px !important;
    align-items: center !important;
}

.festival-date-box {
    flex-shrink: 0;
}

/* ==========================================================================
   MASTER FOOTER & REFERENCE DIRECTORY (Modern 4-Column Responsive Suite)
   ========================================================================== */

:root {
    --footer-bg-start: #0f172a;
    --footer-bg-end: #090d16;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-text: #94a3b8;
    --footer-heading: #f8fafc;
    --footer-link: #cbd5e1;
    --footer-link-hover: #38bdf8;
    --footer-accent: #0284c7;
}

[data-theme="dark"] {
    --footer-bg-start: #090d16;
    --footer-bg-end: #050810;
    --footer-border: rgba(255, 255, 255, 0.06);
    --footer-text: #64748b;
    --footer-heading: #f1f5f9;
    --footer-link: #94a3b8;
    --footer-link-hover: #38bdf8;
}

/* Upper Tier: Reference Section */
.reference-section {
    background: linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    color: var(--footer-text);
    padding: 56px 0 36px;
    margin-top: 36px;
    margin-bottom: 0 !important;
    border-top: 1px solid var(--footer-border);
    position: relative;
}

.ref-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.6fr 1.4fr 1fr 1.1fr;
    gap: 36px;
    box-sizing: border-box;
}

.ref-col {
    display: flex;
    flex-direction: column;
}

/* Brand Column (Col 1) */
.ref-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ref-brand-header {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.ref-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.ref-brand-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0;
}

.ref-play-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 11px;
    border-radius: 999px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 11.5px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.ref-play-badge:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ref-play-badge i {
    font-size: 13px;
    color: #4ade80; /* Google Play green */
}

/* App Badges group — inline badges row */
.ref-app-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0 2px 0;
}

/* Windows Store badge */
.ref-play-badge--windows i {
    color: #60a5fa; /* Windows blue */
}

.ref-play-badge--windows:hover {
    border-color: rgba(96, 165, 250, 0.55);
}

/* Chrome Extension badge */
.ref-play-badge--chrome i {
    color: #fbbf24; /* Chrome yellow */
}

.ref-play-badge--chrome:hover {
    border-color: rgba(251, 191, 36, 0.55);
}

/* Social Buttons */
.ref-social-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.ref-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ref-social-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8 !important;
    transform: translateY(-2px);
}

/* Headers */
.ref-header {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ref-header i {
    font-size: 13px;
    color: #38bdf8;
}

/* Month Grid (Col 2) */
.month-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.ref-month-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-decoration: none !important;
    color: #cbd5e1 !important;
    font-size: 13px;
    transition: all 0.2s ease;
}

.ref-month-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8 !important;
    transform: translateX(3px);
}

.ref-month-bn {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.ref-month-pill:hover .ref-month-bn {
    color: #7dd3fc;
}

/* List Columns (Cols 3 & 4) */
.fest-list,
.ref-tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 3px 0;
    width: fit-content;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ref-link:hover {
    color: #38bdf8 !important;
    transform: translateX(4px);
}

.ref-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ref-link:hover .ref-dot {
    background: #38bdf8;
    transform: scale(1.3);
}

.ref-icon-tag {
    font-size: 12px;
    color: #94a3b8;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.ref-link:hover .ref-icon-tag {
    color: #38bdf8;
}

/* Lower Tier: Sub-Footer */
.footer {
    background: var(--footer-bg-end);
    color: #94a3b8;
    padding: 22px 0;
    margin-top: 0 !important;
    width: 100%;
    border-top: 1px solid var(--footer-border);
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-sizing: border-box;
}

.footer-copy {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.footer-copy a {
    color: #38bdf8 !important;
    text-decoration: none !important;
}

.footer-copy a:hover {
    text-decoration: underline !important;
}

.footer-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-pill {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    letter-spacing: 0.2px;
}

/* Floating Back To Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, border-color 0.2s, color 0.2s;
}

.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.45);
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.96);
}

/* Light Theme Back to Top */
html:not([data-theme="dark"]) .back-to-top-btn {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(203, 213, 225, 0.9);
    color: #0284c7;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.06);
}

html:not([data-theme="dark"]) .back-to-top-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.4);
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 992px) {
    .ref-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .reference-section {
        padding: 36px 0 24px;
        margin-top: 24px;
    }

    .ref-container {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 0 16px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 0 16px;
    }

    .footer-pills {
        justify-content: center;
    }

    .back-to-top-btn {
        bottom: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
    }
}

.page-title-modern {
    color: #333;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: none !important;
}

.page-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #0056b3;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .page-title-modern {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

.android-download-btn {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    font-weight: 700;
    text-decoration: none;
    padding: 2px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #7dd3fc;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
}

.android-download-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: #0284c7;
}

.date-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.date-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.date-modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.date-modal-overlay.active .date-modal-content {
    transform: translateY(0) scale(1);
}

.modal-header-bg {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 20px 14px;
    text-align: center;
    position: relative;
    border-radius: 18px 18px 0 0;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.modal-bengali-date {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.modal-english-date {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.16);
    padding: 2px 10px;
    border-radius: 12px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.modal-info-row:last-child {
    border-bottom: none;
}

.modal-label {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-value {
    font-weight: bold;
    color: #333;
    font-size: 15px;
    text-align: right;
}

.modal-value.hijri {
    color: #2e7d32;
}

.modal-events-box {
    margin-top: 15px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px;
    border-radius: 0 8px 8px 0;
    display: none;
}

.modal-events-title {
    color: #e65100;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-events-list {
    color: #d84315;
    font-size: 14px;
    font-weight: 500;
}

/* Date Details Modal Dark Mode */
[data-theme="dark"] .date-modal-content {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .modal-header-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] .modal-info-row {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .modal-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .modal-value {
    color: #f8fafc !important;
}

[data-theme="dark"] .modal-value.hijri {
    color: #34d399 !important;
}

[data-theme="dark"] .modal-events-box {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left-color: #f59e0b !important;
}

[data-theme="dark"] .modal-events-title {
    color: #fbbf24 !important;
}

[data-theme="dark"] .modal-events-list {
    color: #fde68a !important;
}

@media (max-width: 768px) {
    .date-modal-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        box-sizing: border-box;
    }

    .date-modal-content {
        max-width: 380px;
        width: 100%;
        max-height: 86vh;
        border-radius: 18px;
        margin: auto;
        position: relative;
        bottom: auto;
        left: auto;
        transform: scale(0.94) translateY(8px);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
    }

    .date-modal-overlay.active .date-modal-content {
        transform: scale(1) translateY(0);
    }
}

/* Dark Mode Date Details Modal */
[data-theme="dark"] .date-modal-content {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] .modal-header-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] .modal-info-row {
    border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .modal-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .modal-value {
    color: #f8fafc !important;
}

[data-theme="dark"] .modal-value.hijri {
    color: #4ade80 !important;
}

[data-theme="dark"] .modal-events-box {
    background: #451a03 !important;
    border-left-color: #f59e0b !important;
}

[data-theme="dark"] .modal-events-title {
    color: #fbbf24 !important;
}

[data-theme="dark"] .modal-events-list {
    color: #fef08a !important;
}

[data-theme="dark"] #modal-tithi-name {
    color: #f87171 !important;
}

[data-theme="dark"] #modal-tithi-time,
[data-theme="dark"] #modal-nakshatra-time {
    color: #94a3b8 !important;
}

[data-theme="dark"] #modal-paksha {
    color: #c084fc !important;
}

[data-theme="dark"] #modal-nakshatra-name {
    color: #2dd4bf !important;
}

[data-theme="dark"] #modal-season {
    color: #fb923c !important;
}

[data-theme="dark"] #modal-sunrise,
[data-theme="dark"] #modal-sunset {
    color: #f8fafc !important;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-details {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-details[open] {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #1a73e8;
}

.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    background: #f1f3f4;
}

.faq-icon {
    color: #1a73e8;
    transition: transform 0.3s ease;
}

.faq-details[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 15px 15px 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.faq-content p {
    margin: 0;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.logo-subtext-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-subtext-ext {
    font-size: 0.8em;
}

.logo-accent-line {
    width: 40px;
    height: 3px;
    background-color: #ff9800;
    border-radius: 2px;
}

/* ==========================================================================
   Modern Ambient Atmosphere & Dark Mode Theming
   ========================================================================== */

/* Modern Card Glow & Elevation */
.container.main-content,
.container {
    background-color: #ffffff;
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.card {
    background-color: #ffffff;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Dark Mode Overrides */
[data-theme="dark"] .container.main-content,
[data-theme="dark"] .container,
[data-theme="dark"] .card {
    background-color: #151e2e !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .right-sidebar {
    background: #151e2e !important;
    color: #f1f5f9 !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .site-header-wrapper {
    background: rgba(15, 23, 42, 0.94) !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .cal-table {
    background-color: #151e2e !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .cal-table th,
[data-theme="dark"] .calendar-header {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .cal-cell {
    background-color: #151e2e !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .cal-cell:hover {
    background-color: #1e293b !important;
}

[data-theme="dark"] .bengali-num {
    color: #f8fafc !important;
}

[data-theme="dark"] .gregorian-num {
    color: #38bdf8 !important;
}

[data-theme="dark"] .footer {
    background: #0b0f19 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer a {
    color: #38bdf8 !important;
}

[data-theme="dark"] .faq-details {
    background: #151e2e !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .faq-summary {
    color: #f8fafc !important;
}

[data-theme="dark"] .faq-summary:hover {
    background: #1e293b !important;
}

[data-theme="dark"] .faq-content {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .faq-content p {
    border-color: #334155 !important;
}

[data-theme="dark"] .custom-modal-overlay {
    background: rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .custom-modal {
    background: #151e2e !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .custom-modal h3,
[data-theme="dark"] .custom-modal h4 {
    color: #f8fafc !important;
}

[data-theme="dark"] .modal-close {
    color: #94a3b8 !important;
}

[data-theme="dark"] .modal-close:hover {
    color: #f8fafc !important;
}

/* ==========================================================================
   COMPREHENSIVE WEBSITE-WIDE DARK MODE SUITE
   Ensures 100% of calendar, cards, sidebars, tables & footer look stunning in dark mode
   ========================================================================== */

[data-theme="dark"] body {
    background: #0b0f19 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .site-header-wrapper {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .container,
[data-theme="dark"] .main-wrapper {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] .main-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

[data-theme="dark"] .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    color: #f1f5f9 !important;
}

/* Sidebars (Left & Right) */
[data-theme="dark"] .sidebar,
[data-theme="dark"] .right-sidebar {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .sidebar-header {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid #0284c7 !important;
}

/* Today's Bangla Date Box in Sidebar */
[data-theme="dark"] .current-date-box {
    background: #151e2e !important;
    border: 1px solid #334155 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .current-date-box div[style*="color: #2e7d32"] {
    color: #4ade80 !important;
}

[data-theme="dark"] .day-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .season-name {
    color: #f87171 !important;
}

[data-theme="dark"] .big-date {
    color: #38bdf8 !important;
}

/* Islamic Date Box */
[data-theme="dark"] .sidebar div[style*="background: linear-gradient(135deg, #e8f5e9"] {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%) !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .sidebar div[style*="color: #2e7d32"] {
    color: #a7f3d0 !important;
}

[data-theme="dark"] .sidebar div[style*="color: #1b5e20"] {
    color: #ecfdf5 !important;
}

/* Panjika Box */
[data-theme="dark"] .panjika-box {
    background: #151e2e !important;
    border: 1px solid #334155 !important;
}

[data-theme="dark"] .panjika-title {
    color: #38bdf8 !important;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] .panjika-item {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Calendar Header & Table Grid — Dark Mode */
[data-theme="dark"] .calendar-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    border-radius: 12px 12px 0 0 !important;
}

[data-theme="dark"] .cal-hdr-left {
    color: #f8fafc !important;
}

[data-theme="dark"] .cal-hdr-grange {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .calendar-grid {
    background: #111827 !important;
    border: 1px solid #334155 !important;
    border-radius: 0 0 12px 12px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .day-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #334155 !important;
    border-right: 1px solid #334155 !important;
}

[data-theme="dark"] .day-header.day-sunday,
[data-theme="dark"] .day-header:nth-child(1),
[data-theme="dark"] .day-header[style*="color: blue"] {
    color: #fb7185 !important;
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.16) 0%, rgba(225, 29, 72, 0.06) 100%) !important;
}

[data-theme="dark"] .day-cell {
    background: #151e2e !important;
    border-right: 1px solid #334155 !important;
    border-bottom: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .day-cell:hover {
    background-color: #1e293b !important;
}

[data-theme="dark"] .day-cell.empty {
    background: #0b0f19 !important;
    border-right: 1px solid #1e293b !important;
    border-bottom: 1px solid #1e293b !important;
}

[data-theme="dark"] .day-cell .bengali-date {
    color: #f8fafc !important;
}

[data-theme="dark"] .day-cell .english-date {
    color: #38bdf8 !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .day-cell.holiday .bengali-date {
    color: #f87171 !important;
}

[data-theme="dark"] .day-cell.today {
    background: radial-gradient(circle, #0e3b5e 20%, #0891b2 100%) !important;
    border: 2px solid #38bdf8 !important;
}

[data-theme="dark"] .day-cell.today .bengali-date {
    color: #ffffff !important;
}

[data-theme="dark"] .day-cell.highlight-date {
    background: radial-gradient(circle, #451a03 15%, #78350f 100%) !important;
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4) !important;
}

[data-theme="dark"] .day-cell.highlight-date .bengali-date {
    color: #fef08a !important;
}

[data-theme="dark"] .tithi-text {
    color: #34d399 !important;
}

[data-theme="dark"] .tithi-name {
    color: #6ee7b7 !important;
}

[data-theme="dark"] .tithi-time {
    color: #94a3b8 !important;
}

/* Embed Box (Right Sidebar) */
[data-theme="dark"] .embed-box {
    background: #151e2e !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .embed-box p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .embed-box p a {
    color: #38bdf8 !important;
}

[data-theme="dark"] .embed-textarea {
    background: #0b0f19 !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}

/* Bottom Month Navigation */
html[data-theme="dark"] .bottom-nav,
[data-theme="dark"] .bottom-nav {
    background: #151e2e !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .nav-btn-round {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] span.nav-btn-round {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #64748b !important;
}

[data-theme="dark"] .nav-btn-round:hover {
    background: #334155 !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .today-btn {
    background: #059669 !important;
    color: #ffffff !important;
    border: 1px solid #10b981 !important;
}

[data-theme="dark"] .today-btn:hover {
    background: #047857 !important;
}

/* Android Download Button */
[data-theme="dark"] .android-download-btn {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #334155 !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .android-download-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* Mobile Info Strip */
html[data-theme="dark"] .mobile-info-strip {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .mobile-info-strip .mobile-info-left {
    border-right: 1px dashed #334155 !important;
}

html[data-theme="dark"] .mobile-info-strip .mobile-date-line {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .mobile-info-strip .mobile-day-line {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .mobile-info-strip .mobile-panjika-line {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .mobile-info-strip .mobile-panjika-line[style*="font-weight: bold"] {
    color: #4ade80 !important;
}

/* Section Plain Headers & Icons in Dark Theme */
html[data-theme="dark"] .section-plain-header {
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .section-title-text {
    color: #f8fafc !important;
}

html[data-theme="dark"] .section-title-icon--festivals {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .section-title-icon--shuvodinr {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .section-title-icon--converter {
    background: rgba(5, 150, 105, 0.2) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .section-subtitle {
    color: #94a3b8 !important;
}

/* Festivals & Holidays Section (Homepage) */
html[data-theme="dark"] .festivals-section {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .festivals-left,
html[data-theme="dark"] .festivals-list {
    background: transparent !important;
    border: none !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .festival-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    border-radius: 4px !important;
}

html[data-theme="dark"] .festival-item:hover {
    background: rgba(56, 189, 248, 0.08) !important;
}

html[data-theme="dark"] .festival-name {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .festival-date-box {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .festival-legend {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .festival-legend div {
    color: #94a3b8 !important;
}

/* Shuvodinr Nirghonto Section */
html[data-theme="dark"] .shuvodinr-section {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .shuvodinr-table {
    background: transparent !important;
    color: #f1f5f9 !important;
    border: none !important;
}

html[data-theme="dark"] .shuvodinr-table th {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: none !important;
    border-bottom: 2px solid #334155 !important;
}

html[data-theme="dark"] .shuvodinr-table td {
    background: transparent !important;
    color: #cbd5e1 !important;
    border: none !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
}

html[data-theme="dark"] .shuvodinr-table td:first-child {
    color: #34d399 !important;
    font-weight: 600;
    background: transparent !important;
}

html[data-theme="dark"] .shuvodinr-table tbody tr:hover td {
    background-color: rgba(56, 189, 248, 0.08) !important;
}

/* Date Converter Section */
html[data-theme="dark"] .converter-section {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .converter-card {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .converter-card-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .converter-field label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .converter-select {
    background: #1e293b !important;
    border: 1px solid #475569 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .converter-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: 1px solid #0284c7 !important;
}

html[data-theme="dark"] .converter-result {
    background: #151e2e !important;
    border: 1px dashed #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .converter-result-primary {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .converter-result-secondary {
    color: #94a3b8 !important;
}

/* FAQ Section */
html[data-theme="dark"] .faq-container {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .faq-title {
    color: #38bdf8 !important;
    border-left-color: #38bdf8 !important;
}

html[data-theme="dark"] .faq-details {
    border-color: #334155 !important;
}

html[data-theme="dark"] .faq-summary {
    background: #151e2e !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .faq-summary:hover {
    background: #243248 !important;
}

html[data-theme="dark"] .faq-content {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
    border-top: none !important;
}

html[data-theme="dark"] .faq-content p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .faq-icon {
    color: #38bdf8 !important;
}

/* SEO & About Sections */
html[data-theme="dark"] .seo-section {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .seo-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .seo-text,
html[data-theme="dark"] .seo-text p {
    color: #cbd5e1 !important;
}

/* Reference Section & Master Footer (Dark Mode Suite) */
html[data-theme="dark"] .reference-section {
    background: linear-gradient(180deg, #090d16 0%, #050810 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .ref-header {
    color: #f8fafc !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .ref-link {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .ref-link:hover {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .ref-month-pill {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .ref-month-pill:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
}

html[data-theme="dark"] .footer {
    background: #050810 !important;
    color: #64748b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .footer a {
    color: #38bdf8 !important;
}

/* Home Page Blog Cards */
html[data-theme="dark"] .blog-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .blog-thumb {
    background: #0f172a !important;
}

html[data-theme="dark"] .blog-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .blog-date {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .blog-link {
    color: #38bdf8 !important;
}

/* Blog Single Post & Listing */
html[data-theme="dark"] .blog-container {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .single-header {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .single-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .single-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .single-content,
html[data-theme="dark"] .single-content p,
html[data-theme="dark"] .single-content div {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .single-thumb {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .nav-link {
    background: #151e2e !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .nav-link:hover {
    background: #243248 !important;
    border-color: #38bdf8 !important;
}

html[data-theme="dark"] .nav-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .nav-title {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .related-header {
    color: #f8fafc !important;
    border-bottom-color: #38bdf8 !important;
}

/* Static Custom Pages */
html[data-theme="dark"] .page-content {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .page-content h1,
html[data-theme="dark"] .page-content h2,
html[data-theme="dark"] .page-content h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .page-content p,
html[data-theme="dark"] .page-content li {
    color: #cbd5e1 !important;
}

/* Download Page Cards */
html[data-theme="dark"] .download-card,
html[data-theme="dark"] .image-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .download-card h3,
html[data-theme="dark"] .image-card h3 {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .download-card p,
html[data-theme="dark"] .image-card p {
    color: #94a3b8 !important;
}

/* Greeting Cards Maker */
html[data-theme="dark"] .controls {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .control-group label {
    color: #f8fafc !important;
}

html[data-theme="dark"] .control-group input[type="text"],
html[data-theme="dark"] .control-group input[type="file"],
html[data-theme="dark"] .control-group select {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

/* Contact Page Dark Mode */
html[data-theme="dark"] .contact-pill {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #60a5fa !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

html[data-theme="dark"] .contact-hero-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .contact-hero-desc {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .contact-form-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .contact-info-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .contact-info-text {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .contact-info-link {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .contact-info-icon--email {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .contact-info-icon--panjika {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .contact-info-icon--time {
    background: rgba(5, 150, 105, 0.2) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .modern-form-label {
    color: #f8fafc !important;
}

html[data-theme="dark"] .modern-form-input,
html[data-theme="dark"] .modern-form-textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .modern-form-input:focus,
html[data-theme="dark"] .modern-form-textarea:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

html[data-theme="dark"] .contact-back-link {
    color: #38bdf8 !important;
}

/* Blog Page Extended Dark Mode */
html[data-theme="dark"] .related-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .related-title a {
    color: #f8fafc !important;
}

html[data-theme="dark"] .related-title a:hover {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .card-excerpt {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .share-header {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .share-section {
    border-top-color: #334155 !important;
}

/* Footer Social Icons Hover Enhancement */
.social-icons a,
.social-icons button {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover,
.social-icons button:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
}