/**
 * NAHOR Assamese Calendar - Modern Premium Design System
 * Aesthetic: Royal Crimson & Muga Gold with Warm Ivory / Deep Obsidian theme
 * Typography: Outfit / Inter & Noto Serif Bengali
 */

/* Typography fonts preconnected & loaded asynchronously in HTML <head> for zero render-blocking */

:root {
  /* Brand Palette */
  --crimson-900: #4A0000;
  --crimson-800: #6B0005;
  --crimson-700: #8B0000;
  --crimson-600: #A81216;
  --crimson-500: #C2181B;
  --crimson-100: #FDE8E8;
  --crimson-50:  #FFF5F5;

  --gold-700: #B8860B;
  --gold-600: #C99700;
  --gold-500: #E6A817;
  --gold-400: #FFC107;
  --gold-300: #FFE082;
  --gold-100: #FFF9DB;

  /* Neutrals (Light Mode Default) */
  --bg-primary: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F4F2EC;
  --border-color: #E6E2D8;
  --border-focus: #8B0000;

  --text-primary: #1A1F2C;
  --text-secondary: #4A5568;
  --text-muted: #475569;
  --text-light: #FFFFFF;

  /* Status Colors */
  --color-gazetted: #047857;
  --color-gazetted-bg: #ECFDF5;
  --color-restricted: #92400E;
  --color-restricted-bg: #FFFBEB;
  --color-festival: #8B0000;
  --color-festival-bg: #FFF1F2;
  --color-today: #E6A817;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Noto Serif Bengali', sans-serif;
  --font-as: 'Noto Serif Bengali', serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(139, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(139, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -8px rgba(139, 0, 0, 0.18);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Support */
[data-theme="dark"] {
  --bg-primary: #0F1219;
  --bg-surface: #181D28;
  --bg-surface-elevated: #222836;
  --bg-subtle: #141822;
  --border-color: #293042;
  --border-focus: #FFC107;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --color-gazetted-bg: rgba(13, 148, 136, 0.15);
  --color-restricted-bg: rgba(217, 119, 6, 0.15);
  --color-festival-bg: rgba(139, 0, 0, 0.25);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.as-font {
  font-family: var(--font-as);
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, var(--crimson-900), var(--crimson-700), var(--crimson-900));
  color: #FFF3B0;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.top-bar-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.live-pulse::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.6);
  animation: pulseGpu 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes pulseGpu {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.lang-theme-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
  background: var(--gold-400);
  color: #1A0000;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.header-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-titles h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--crimson-700);
  line-height: 1.1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-titles p {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
}

.nav-link {
  font-family: var(--font-heading);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--crimson-700);
  background: var(--crimson-50);
}

/* Navigation Item Dropdowns (Monthly Calendar, Tools, Download App) */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-chevron-icon {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-item-dropdown:hover .nav-chevron-icon,
.nav-item-dropdown.is-active .nav-chevron-icon {
  transform: rotate(180deg);
  color: var(--crimson-700);
}

.download-chevron-icon {
  color: #FFFFFF;
  margin-left: 2px;
  transition: transform 0.25s ease;
}

.download-dropdown-wrapper:hover .download-chevron-icon,
.download-dropdown-wrapper.is-active .download-chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 12px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}

.nav-item-dropdown:hover .nav-dropdown-card,
.nav-item-dropdown.is-active .nav-dropdown-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-header {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.nav-dropdown-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
  padding-top: 8px;
  text-align: right;
}

.nav-footer-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--crimson-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-footer-link:hover {
  background: var(--crimson-50);
}

/* Tools Dropdown Card */
.tools-dropdown-card {
  width: 340px;
}

.tools-sub-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-sub-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.tool-sub-item:hover {
  background: var(--bg-subtle);
  color: var(--crimson-700);
}

.tool-item-icon {
  font-size: 1.25rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(160, 26, 46, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
}

.tool-item-body {
  display: flex;
  flex-direction: column;
}

.tool-item-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.tool-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.25;
}

/* Calendar Dropdown Card */
.calendar-dropdown-card {
  width: 320px;
}

.calendar-months-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.month-menu-item {
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

.month-menu-item:hover {
  background: var(--crimson-700);
  color: #FFFFFF;
  border-color: var(--crimson-700);
  transform: translateY(-1px);
}

/* Download App Dropdown Card */
.download-dropdown-wrapper {
  position: relative;
}

.download-dropdown-card {
  width: 290px;
  right: 0;
  left: auto;
}

.btn-app-download {
  background: linear-gradient(135deg, var(--crimson-700), var(--crimson-600));
  color: #FFFFFF !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-app-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 0, 0, 0.35);
}

/* Header Action Group */
.header-action-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Profile Dropdown Component */
.profile-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

.profile-trigger-btn:hover, .profile-trigger-btn.active {
  background: var(--bg-surface);
  border-color: var(--crimson-700);
  box-shadow: 0 2px 8px rgba(160, 26, 46, 0.12);
}

.profile-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.admin-avatar-circle {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.user-avatar-circle {
  background: linear-gradient(135deg, var(--crimson-700), #4f46e5);
  color: #FFFFFF;
  font-size: 0.9rem;
}

.profile-avatar-circle-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--crimson-700);
}

.profile-meta-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.profile-user-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-badge {
  color: #d97706;
}

.user-badge {
  color: var(--crimson-700);
}

.dropdown-chevron-icon {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.profile-trigger-btn.active .dropdown-chevron-icon {
  transform: rotate(180deg);
  color: var(--crimson-700);
}

/* Guest Sign-in Button in Header */
.btn-signin-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(160, 26, 46, 0.08);
  border: 1px solid rgba(160, 26, 46, 0.25);
  border-radius: var(--radius-full);
  color: var(--crimson-700);
  font-weight: 800;
  font-size: 0.88rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-signin-nav:hover {
  background: var(--crimson-700);
  color: #FFFFFF;
  border-color: var(--crimson-700);
  box-shadow: 0 4px 12px rgba(160, 26, 46, 0.25);
}

/* Profile Dropdown Menu Card */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 14px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

.profile-dropdown-wrapper:hover .profile-dropdown-menu,
.profile-dropdown-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-dropdown-wrapper:hover .dropdown-chevron-icon {
  transform: rotate(180deg);
  color: var(--crimson-700);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.profile-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.admin-card-avatar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
}

.user-card-avatar {
  background: linear-gradient(135deg, var(--crimson-700), #4f46e5);
  color: #FFFFFF;
  font-weight: 800;
}

.profile-card-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--crimson-700);
}

.profile-card-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-card-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.profile-pill-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.admin-pill {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

[data-theme="dark"] .admin-pill {
  color: #fbbf24;
}

.member-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.rashi-pill {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.profile-card-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.profile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.profile-menu-link:hover {
  background: var(--bg-subtle);
  color: var(--crimson-700);
}

.profile-menu-link .menu-icon {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
}

.profile-menu-link.logout-link {
  color: #dc2626;
}

.profile-menu-link.logout-link:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

/* 2-Line Minimalist Mobile Toggle Button */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle-btn:hover,
.mobile-toggle-btn:focus-visible,
.mobile-toggle-btn:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

[data-theme="dark"] .mobile-toggle-btn .toggle-bar {
  background: var(--text-primary);
}

.mobile-toggle-btn .toggle-bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background: var(--crimson-700);
  border-radius: 4px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.mobile-toggle-btn .bar-1 {
  width: 22px;
  margin-bottom: 5.5px;
}

.mobile-toggle-btn .bar-2 {
  width: 22px;
  margin-top: 0;
  margin-left: auto;
  align-self: center;
}

/* 2-Line Active State (Transforms smoothly into symmetrical ✕) */
.mobile-toggle-btn.is-active .bar-1 {
  width: 20px;
  transform: translateY(3.85px) rotate(45deg);
  margin-bottom: 0;
}

.mobile-toggle-btn.is-active .bar-2 {
  width: 20px;
  margin-left: auto;
  align-self: center;
  transform: translateY(-3.85px) rotate(-45deg);
  margin-top: 0;
}

/* Mobile Sidebar Drawer (Off-Canvas) */
body.drawer-open {
  overflow: hidden !important;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-sidebar-drawer.is-active {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.drawer-logo {
  border-radius: 8px;
}

.drawer-titles h3,
.drawer-titles .drawer-title-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--crimson-700);
  line-height: 1.1;
  margin: 0;
}

.drawer-titles span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

/* Drawer Profile Card */
.drawer-profile-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-surface) 100%);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.drawer-user-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--crimson-700);
}

.drawer-user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-user-meta strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-email {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.drawer-role-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.drawer-admin-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 8px;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}

[data-theme="dark"] .drawer-admin-action-btn {
  color: #fbbf24;
}

.drawer-admin-action-btn:hover {
  background: rgba(217, 119, 6, 0.25);
}

.drawer-guest-card {
  text-align: left;
}

.drawer-guest-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.drawer-guest-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.35;
}

.drawer-guest-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-guest-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--crimson-700);
  color: #FFFFFF !important;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.drawer-guest-btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary) !important;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

/* Drawer Navigation List */
.drawer-nav-list {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-section-heading {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.drawer-nav-link:hover, .drawer-nav-link.active {
  color: var(--crimson-700);
  background: var(--crimson-50);
  font-weight: 700;
}

.drawer-nav-icon {
  font-size: 1.15rem;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 8px;
}

.drawer-admin-link {
  color: #b45309;
}

[data-theme="dark"] .drawer-admin-link {
  color: #fbbf24;
}

/* Drawer Footer Controls */
.drawer-footer-controls {
  padding: 16px 18px 22px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-lang-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.drawer-lang-btn {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.drawer-lang-btn.active {
  background: var(--gold-400);
  color: #1A0000;
}

.drawer-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-download-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--crimson-700), var(--crimson-600));
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(160, 26, 46, 0.25);
}

.drawer-logout-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626 !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

/* ========================================================
   PREMIUM SPOTLIGHT HERO SECTION (Assamese Cinema & Culture Banner)
   ======================================================== */
.spotlight-hero-section {
  padding: 24px 20px 16px;
  background: var(--bg-primary);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.spotlight-hero-card {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #FFFFFF;
  background-image: 
    linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 38%, rgba(255, 255, 255, 0.90) 58%, rgba(255, 255, 255, 0.22) 100%),
    var(--hero-bg-art, url('../images/panjika-bg.webp'));
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .spotlight-hero-card {
  background-color: #0E131F;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  background-image: 
    linear-gradient(90deg, #0E131F 0%, #0E131F 38%, rgba(14, 19, 31, 0.92) 58%, rgba(14, 19, 31, 0.35) 100%),
    var(--hero-bg-art, url('../images/panjika-bg.webp'));
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 36px;
  align-items: center;
  padding: 34px 40px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Left Column */
.spotlight-left-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.spotlight-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  line-height: 1;
}

.sp-badge.badge-amber {
  border: 1.5px solid #F59E0B;
  background: #FFFBEB;
  color: #B45309;
}
[data-theme="dark"] .sp-badge.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.4);
}

.sp-badge.badge-green {
  border: 1.5px solid #10B981;
  background: #ECFDF5;
  color: #047857;
}
[data-theme="dark"] .sp-badge.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.4);
}
.sp-badge .green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.sp-badge.badge-indigo {
  border: 1.5px solid #A5B4FC;
  background: #EEF2FF;
  color: #4338CA;
}
[data-theme="dark"] .sp-badge.badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.4);
}

.sp-badge.badge-crimson {
  border: 1.5px solid #FDA4AF;
  background: #FFF1F2;
  color: #BE123C;
}
[data-theme="dark"] .sp-badge.badge-crimson {
  background: rgba(225, 29, 72, 0.15);
  color: #FDA4AF;
  border-color: rgba(225, 29, 72, 0.4);
}

.spotlight-title {
  font-family: var(--font-as);
  font-size: 2.3rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .spotlight-title {
  color: #F8FAFC;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.spotlight-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .spotlight-subtitle {
  color: #CBD5E1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.spotlight-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 16px;
}
[data-theme="dark"] .spotlight-meta-line {
  color: #CBD5E1;
}

.meta-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #D97706;
  font-weight: 800;
}
.meta-bullet {
  color: #94A3B8;
  font-size: 0.8rem;
}
.meta-duration-pill {
  background: #F1F5F9;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}
[data-theme="dark"] .meta-duration-pill {
  background: #1E293B;
  color: #E2E8F0;
}

.meta-channel-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
}
[data-theme="dark"] .meta-channel-box {
  color: #94A3B8;
}

.spotlight-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748B;
  margin-bottom: 22px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] .spotlight-description {
  color: #94A3B8;
}

/* Action Buttons */
.spotlight-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-watch-movie {
  background: linear-gradient(135deg, #FF1464 0%, #D80056 100%);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(235, 16, 92, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-watch-movie:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(235, 16, 92, 0.55);
}

.btn-watchlist-pill {
  background: #FFFFFF;
  color: #0F172A;
  border: 1.5px solid #E2E8F0;
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
[data-theme="dark"] .btn-watchlist-pill {
  background: #181D28;
  color: #F8FAFC;
  border-color: #293042;
}
.btn-watchlist-pill:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}
[data-theme="dark"] .btn-watchlist-pill:hover {
  background: #222938;
}
.btn-watchlist-pill.active {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #B45309;
}
[data-theme="dark"] .btn-watchlist-pill.active {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border-color: #F59E0B;
}

.btn-get-app-pill {
  background: #ECFDF5;
  color: #047857;
  border: 1.5px solid #A7F3D0;
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
[data-theme="dark"] .btn-get-app-pill {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}
.btn-get-app-pill:hover {
  background: #D1FAE5;
  transform: translateY(-2px);
}

/* Right Column */
.spotlight-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Featured Video Preview Card */
.featured-video-preview-card {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.85);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
[data-theme="dark"] .featured-video-preview-card {
  background: #161B26;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.featured-video-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  height: 165px;
  background: #000000;
  overflow: hidden;
}
.video-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-video-preview-card:hover .video-thumb-container img {
  transform: scale(1.05);
}
.video-thumb-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.55) 100%);
}

.badge-top-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  z-index: 3;
}
.live-red-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
  animation: liveRedPulse 1.8s infinite;
}
@keyframes liveRedPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.badge-top-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.center-play-button-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.big-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FF0066;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(255, 0, 102, 0.6);
  animation: heroPlayAura 2.2s infinite;
}
@keyframes heroPlayAura {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.08); opacity: 1; }
}
.click-to-play-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.video-card-footer-info {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.video-card-text {
  min-width: 0;
}
.video-card-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
[data-theme="dark"] .video-card-name {
  color: #F8FAFC;
}
.video-card-submeta {
  font-size: 0.78rem;
  color: #64748B;
}
[data-theme="dark"] .video-card-submeta {
  color: #94A3B8;
}
.mini-play-btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF1F2;
  color: #FF0066;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.featured-video-preview-card:hover .mini-play-btn-circle {
  transform: scale(1.1);
  background: #FF0066;
  color: #FFF;
}

/* Bottom Spotlights Carousel Card */
.spotlights-nav-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.85);
}
[data-theme="dark"] .spotlights-nav-card {
  background: #161B26;
  border-color: rgba(255, 255, 255, 0.1);
}
.spotlights-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.spotlights-heading-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .spotlights-heading-title {
  color: #F8FAFC;
}
.spotlights-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.spotlights-nav-arrow {
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme="dark"] .spotlights-nav-arrow {
  border-color: #334155;
  color: #94A3B8;
}
.spotlights-nav-arrow:hover {
  background: #F1F5F9;
  color: #0F172A;
}
.spotlights-counter-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  min-width: 30px;
  text-align: center;
}

.spotlights-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.spotlight-thumb-box {
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s;
}
.spotlight-thumb-box:hover {
  transform: translateY(-2px);
}
.spotlight-thumb-pic {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #F1F5F9;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.spotlight-thumb-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight-thumb-box.active .spotlight-thumb-pic {
  border-color: #FF0066;
  box-shadow: 0 0 10px rgba(255, 0, 102, 0.4);
}
.spotlight-thumb-caption {
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
[data-theme="dark"] .spotlight-thumb-caption {
  color: #CBD5E1;
}
.spotlight-thumb-time {
  font-size: 0.65rem;
  color: #475569;
  font-weight: 700;
}

/* Video Modal */
.spotlight-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.spotlight-modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.spotlight-modal-dialog {
  background: #0E131F;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.spotlight-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.spotlight-modal-close:hover {
  background: #FF0066;
}
.spotlight-modal-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000000;
}
.spotlight-modal-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.spotlight-modal-meta {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #141A28;
}
.spotlight-modal-meta h3 {
  font-size: 1.1rem;
  color: #FFFFFF;
  font-family: var(--font-as);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Panchang Strip Below Hero */
.quick-panchang-strip {
  max-width: 1240px;
  margin: 18px auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.qp-date-col {
  border-right: 1px solid var(--border-color);
  padding-right: 18px;
}
.qp-assamese-date {
  font-family: var(--font-as);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--crimson-700);
  line-height: 1.2;
}
[data-theme="dark"] .qp-assamese-date {
  color: #FFC107;
}
.qp-gregorian-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
}
.qp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.qp-metric-item {
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.qp-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.qp-metric-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qp-actions-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.qp-link-btn {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--crimson-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
[data-theme="dark"] .qp-link-btn {
  color: #FFC107;
}
.qp-link-btn:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .spotlight-left-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .spotlight-right-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .quick-panchang-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .qp-date-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
  }
  .qp-actions-col {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .spotlight-hero-section {
    padding: 12px 8px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .spotlight-hero-card {
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .spotlight-title {
    font-size: 1.45rem;
    line-height: 1.25;
    word-break: break-word;
  }
  .spotlight-subtitle {
    font-size: 0.88rem;
    margin-bottom: 12px;
  }
  .spotlight-description {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .spotlight-badges-row {
    gap: 6px;
    margin-bottom: 12px;
    max-width: 100%;
  }
  .sp-badge {
    padding: 4px 8px;
    font-size: 0.68rem;
  }
  .spotlight-meta-line {
    font-size: 0.78rem;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .spotlight-grid {
    padding: 16px 12px;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    box-sizing: border-box;
  }
  .spotlight-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .btn-watch-movie {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  .btn-watchlist-pill,
  .btn-get-app-pill {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 9px 4px;
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
    gap: 4px;
    box-sizing: border-box;
  }
  .spotlights-nav-card {
    padding: 12px;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .spotlights-items-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .spotlights-items-grid::-webkit-scrollbar {
    display: none;
  }
  .spotlight-thumb-box {
    flex: 0 0 88px;
    min-width: 88px;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
  .quick-panchang-strip {
    padding: 14px 12px;
    margin-top: 12px;
    border-radius: 14px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .qp-assamese-date {
    font-size: 1.15rem;
  }
  .qp-metrics-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .qp-metric-item {
    padding: 6px 6px;
    text-align: center;
    min-width: 0;
    overflow: hidden;
  }
  .qp-metric-item:last-child {
    grid-column: 1 / -1;
  }
  .qp-metric-label {
    font-size: 0.65rem;
  }
  .qp-metric-value {
    font-size: 0.76rem;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson-700), var(--crimson-600));
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(139, 0, 0, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(139, 0, 0, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--crimson-700);
  border: 1.5px solid var(--border-color);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--crimson-700);
  background: var(--crimson-50);
}

/* Today's Panchang Highlight Card */
.panchang-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition);
}

.panchang-card-header {
  background: linear-gradient(135deg, var(--crimson-800), var(--crimson-700));
  color: #FFFFFF;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panchang-card-header h3 {
  font-family: var(--font-as);
  font-size: 1.25rem;
  font-weight: 800;
}

.today-chip {
  background: var(--gold-400);
  color: #1A0000;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.panchang-main-date {
  padding: 24px;
  text-align: center;
  border-bottom: 1px dashed var(--border-color);
}

.assamese-big-date {
  font-family: var(--font-as);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--crimson-700);
  line-height: 1.15;
}

.gregorian-sub-date {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.panchang-grid-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 20px;
  gap: 16px;
  background: var(--bg-subtle);
}

.metric-box {
  background: var(--bg-surface);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.metric-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-val {
  font-family: var(--font-as);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.panchang-card-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Container & Sections - Consistent Left & Right Margin/Gap Across All Pages */
.main-container,
.page-container {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(20px, 4vw, 44px) !important;
  padding-right: clamp(20px, 4vw, 44px) !important;
  padding-top: 32px;
  padding-bottom: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--crimson-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--crimson-900);
  text-decoration: underline;
}

.breadcrumb .sep {
  opacity: 0.45;
}

.breadcrumb .current {
  color: var(--text-secondary);
  font-weight: 700;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.section-badge {
  display: inline-block;
  background: var(--crimson-100);
  color: var(--crimson-800);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--crimson-900);
  letter-spacing: -0.5px;
}

[data-theme="dark"] .section-h2 {
  color: #FFFFFF;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 6px auto 0;
}

/* Calendar Month Grid */
.calendar-view-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 40px;
}

.calendar-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.month-year-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.month-heading {
  font-family: var(--font-as);
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--crimson-800);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

[data-theme="dark"] .month-heading {
  color: var(--gold-400);
}

.year-sub {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
}

.as-month-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF1F2;
  border: 1px solid #FFE4E6;
  color: var(--crimson-800);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-as);
  margin-top: 6px;
}

[data-theme="dark"] .as-month-badge {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.25);
  color: #FDA4AF;
}

.calendar-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-nav-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.cal-nav-btn:hover {
  background: var(--crimson-700);
  color: #FFFFFF;
  border-color: var(--crimson-700);
}

.year-tabs {
  display: flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.year-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.year-tab.active {
  background: var(--crimson-700);
  color: #FFFFFF;
}

/* Horizontal Month Selector Strip */
.cal-months-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 14px 2px;
  margin-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.cal-months-strip::-webkit-scrollbar {
  display: none;
}

.month-pill-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.month-pill-btn:hover {
  background: var(--crimson-50);
  color: var(--crimson-700);
  border-color: var(--crimson-200);
  transform: translateY(-1px);
}

.month-pill-btn.active {
  background: linear-gradient(135deg, var(--crimson-700) 0%, var(--crimson-900) 100%);
  color: #FFFFFF !important;
  border-color: var(--crimson-700);
  box-shadow: 0 4px 12px rgba(136, 19, 55, 0.28);
}

[data-theme="dark"] .month-pill-btn.active {
  background: linear-gradient(135deg, var(--crimson-600) 0%, var(--crimson-800) 100%);
}

/* Weekday header */
.cal-weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: 8px;
}

.weekday-col {
  padding: 10px 4px;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weekday-col.sunday {
  color: #E11D48;
}

/* Day cells grid */
.cal-month-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-day-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 108px;
  max-height: 122px;
  height: 116px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.cal-day-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--gold-500);
  z-index: 2;
}

.cal-day-cell.empty {
  background: transparent;
  border: none;
  cursor: default;
  min-height: 0;
  height: auto;
}

.cal-day-cell.is-today {
  border: 2px solid var(--gold-500);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-surface) 100%);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.cal-day-cell.has-gazetted {
  border-left: 3.5px solid var(--color-gazetted);
}

.cal-day-cell.has-festival {
  border-left: 3.5px solid var(--crimson-700);
}

.cal-day-cell.sunday-cell {
  background: rgba(225, 29, 72, 0.02);
}

.cal-day-cell.sunday-cell .gregorian-num {
  color: #E11D48;
  font-weight: 800;
}

.day-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  line-height: 1;
}

.gregorian-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.assamese-num-badge {
  font-family: var(--font-as);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--crimson-800);
  line-height: 1;
}

[data-theme="dark"] .assamese-num-badge {
  color: var(--gold-400);
}

.day-event-tags {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  overflow: hidden;
}

.event-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.event-tag.gazetted {
  background: var(--color-gazetted-bg);
  color: var(--color-gazetted);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.event-tag.restricted {
  background: var(--color-restricted-bg);
  color: var(--color-restricted);
  border: 1px solid rgba(147, 51, 234, 0.2);
}

.event-tag.festival {
  background: var(--color-festival-bg);
  color: var(--color-festival);
  border: 1px solid rgba(190, 18, 60, 0.2);
}

.event-tag.more-tag {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  font-weight: 700;
  font-size: 0.65rem;
  cursor: pointer;
  text-align: center;
}

.event-tag.more-tag:hover {
  background: var(--crimson-50);
  color: var(--crimson-700);
  border-color: var(--crimson-300);
}

.day-tithi-indicator {
  font-family: var(--font-as);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Day Detail Modal Event Pills */
.modal-event-pill {
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

.modal-event-pill.gazetted {
  background: var(--color-gazetted-bg);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.modal-event-pill.gazetted .modal-pill-title {
  color: var(--color-gazetted);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}

.modal-event-pill.gazetted .modal-pill-badge {
  background: rgba(13, 148, 136, 0.15);
  color: var(--color-gazetted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.modal-event-pill.restricted {
  background: var(--color-restricted-bg);
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.modal-event-pill.restricted .modal-pill-title {
  color: var(--color-restricted);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}

.modal-event-pill.restricted .modal-pill-badge {
  background: rgba(147, 51, 234, 0.15);
  color: var(--color-restricted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.modal-event-pill.festival {
  background: var(--color-festival-bg);
  border: 1px solid rgba(190, 18, 60, 0.25);
}

.modal-event-pill.festival .modal-pill-title {
  color: var(--crimson-700);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}

.modal-event-pill.festival .modal-pill-badge {
  background: rgba(190, 18, 60, 0.15);
  color: var(--crimson-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .cal-months-strip {
    justify-content: space-between;
  }
  .month-pill-btn {
    flex: 1 1 0;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.85rem;
  }
}

/* Festival & Holiday Card Grids */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--crimson-600);
}

.event-date-block {
  background: var(--crimson-50);
  border: 1px solid var(--crimson-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  min-width: 72px;
}

[data-theme="dark"] .event-date-block {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.4);
}

.event-day-big {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--crimson-800);
  line-height: 1;
}

.event-month-small {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--crimson-600);
  margin-top: 3px;
}

.event-info h3,
.event-info h4 {
  font-family: var(--font-as);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-info .event-en-name {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gazetted { background: var(--color-gazetted-bg); color: var(--color-gazetted); }
.badge-restricted { background: var(--color-restricted-bg); color: var(--color-restricted); }
.badge-cultural { background: #EEF2FF; color: #4338CA; }

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  background: var(--bg-surface);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--crimson-700);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Download App Section */
.app-cta-banner {
  background: linear-gradient(135deg, #4A0000 0%, #8B0000 50%, #2A0004 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  margin: 60px 0 20px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.app-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold-300);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.app-cta-title {
  font-family: var(--font-as);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.app-cta-desc {
  font-size: 1.05rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-store-btn {
  display: inline-block;
  max-width: 200px;
  transition: var(--transition);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.app-mockup-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 240px;
  background: #111827;
  border: 8px solid #374151;
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* ==========================================================================
   GLOBAL HERITAGE FOOTER (High Reverence Assamese Aesthetic)
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #0E121B 0%, #080A0F 100%);
  color: #94A3B8;
  margin-top: 36px;
  border-top: none;
  position: relative;
  font-size: 0.92rem;
  overflow: visible;
}

.footer-ad-container {
  margin: 20px auto 28px;
  max-width: 1240px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Ornamental Multi-Color Top Divider & Heritage Header */
.footer-heritage-bar {
  position: relative;
  padding: 14px 20px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-heritage-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #DC2626, #F59E0B, #DC2626, #F59E0B);
}

.heritage-badge-center {
  position: static;
  background: #1E2330;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  color: #FCD34D;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-as);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 24px;
  }
  .footer-heritage-bar {
    padding: 10px 12px;
  }
  .heritage-badge-center {
    font-size: 0.72rem;
    padding: 3px 12px;
    gap: 6px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

/* 4-Pill Feature Trust Ribbon */
.footer-trust-ribbon {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 20px;
}

.trust-ribbon-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .trust-ribbon-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .trust-ribbon-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.trust-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.trust-pill-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.trust-pill-item strong {
  display: block;
  font-size: 0.92rem;
  color: #F8FAFC;
  font-family: var(--font-as);
}

.trust-pill-item small {
  display: block;
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 2px;
}

/* Footer Top Grid */
.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1.05fr 1.15fr 0.95fr;
  gap: 36px;
}

/* Brand Column */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-logo {
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-as);
  font-size: 1.45rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: 0.76rem;
  color: #FCD34D;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.footer-brand-desc {
  color: #8B949E;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-app-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.footer-play-btn img {
  display: block;
  max-width: 160px;
  height: auto;
  transition: transform 0.2s ease;
}

.footer-play-btn:hover img {
  transform: scale(1.02);
}

.footer-app-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94A3B8;
  margin-top: 10px;
  flex-wrap: wrap;
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
}

.footer-contact-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.contact-lbl {
  color: #64748B;
  font-weight: 700;
}

.contact-mail-link {
  color: #FCD34D;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-mail-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Footer Links List */
.footer-col h4 {
  color: #F8FAFC;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 18px 0;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8B949E;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-links-list li a:hover {
  color: #FCD34D;
  transform: translateX(3px);
}

.fl-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.85;
}

.footer-highlight-link {
  color: #FDE047 !important;
  font-weight: 700;
}

.footer-new-tag {
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.5px;
}

/* 12 Months 2-Column Grid */
.footer-months-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.footer-month-pill-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-month-pill-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}

.fm-num {
  font-size: 0.72rem;
  color: #FCD34D;
  font-weight: 800;
  min-width: 14px;
}

.fm-name {
  display: block;
  font-size: 0.85rem;
  color: #E2E8F0;
  font-family: var(--font-as);
}

.fm-sign {
  display: block;
  font-size: 0.68rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

/* Footer Language Switcher Box */
.footer-lang-box {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-box-title {
  display: block;
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-lang-pill-row {
  display: flex;
  gap: 8px;
}

.footer-lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-lang-btn:hover {
  color: #FFFFFF;
  border-color: #FCD34D;
}

.footer-lang-btn.is-active {
  background: var(--crimson-800);
  border-color: #FCD34D;
  color: #FFFFFF;
}

/* Bottom Sub-Footer Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  padding: 22px 20px;
}

.footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-text p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.5;
}

.heritage-love-line {
  margin-top: 4px !important;
  color: #475569 !important;
  font-size: 0.76rem !important;
}

.btn-scroll-top {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FCD34D;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-scroll-top:hover {
  background: #FCD34D;
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(252, 211, 77, 0.25);
}

/* Print Styles */
@media print {
  .top-bar, .site-header, .site-footer, .hero-actions, .filter-bar, .app-cta-banner, .cal-nav-btn, .year-tabs {
    display: none !important;
  }
  body, .main-container {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  .cal-day-cell {
    border: 1px solid #000000 !important;
    min-height: 90px !important;
  }
  .calendar-view-container {
    box-shadow: none !important;
    border: none !important;
  }
}

/* Panjika Page Layout */
.panjika-picker-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.panjika-picker-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.panjika-quick-nav {
  display: flex;
  gap: 8px;
}

.panjika-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 40px;
}

.panjika-card-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.panjika-card-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panjika-timings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Base calendar cell min-width guarantee to prevent horizontal blowing */
.cal-month-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.cal-weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.cal-day-cell {
  min-width: 0;
  overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First Polish)
   ========================================================================== */

/* Compact Laptops & Medium Desktops (1081px to 1320px) */
@media (min-width: 1081px) and (max-width: 1320px) {
  .header-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-titles p {
    display: none; /* Hide long tagline to preserve single-line navigation */
  }
  .brand-titles h1 {
    font-size: 1.18rem;
  }
  .site-nav {
    gap: 1px;
  }
  .nav-link {
    padding: 6px 7px;
    font-size: 0.83rem;
    gap: 3px;
    white-space: nowrap;
  }
  .profile-meta-text {
    display: none; /* Compact avatar only */
  }
  .profile-trigger-btn {
    padding: 4px 6px;
    gap: 4px;
  }
}

/* Tablet & Smaller Devices (<= 1080px) */
@media (max-width: 1080px) {
  .site-nav {
    display: none !important;
  }
  .profile-dropdown-wrapper {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex !important;
  }
  .header-download-btn {
    display: none !important;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .app-cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-store-btn {
    margin: 0 auto;
  }
  .phone-frame {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .panjika-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Medium Tablets & Mobile (<= 768px) */
@media (max-width: 768px) {
  .profile-user-name {
    max-width: 80px;
  }
  .profile-dropdown-menu {
    right: 0;
    width: 270px;
    max-width: calc(100vw - 24px);
  }

  .hero-section {
    padding: 24px 16px 36px;
  }

  .hero-bg-jaapi {
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-bg-jaapi-img {
    width: 280px;
    opacity: 0.13;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.22;
  }

  .hero-lead {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  .panjika-picker-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .panjika-picker-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .panjika-picker-form .search-input {
    width: 100% !important;
  }

  .panjika-picker-form .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .panjika-quick-nav {
    width: 100%;
    justify-content: space-between;
  }

  .panjika-quick-nav .cal-nav-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .search-input-wrap {
    max-width: 100%;
    width: 100%;
  }

  .events-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 16px 24px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Smartphone Portrait Screens (<= 640px) - Flawless Calendar Fit */
@media (max-width: 640px) {
  .top-bar {
    padding: 5px 12px;
  }

  .top-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    text-align: left;
  }

  .live-clock-badge {
    font-size: 0.74rem;
    padding: 3px 8px;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lang-theme-toggles {
    justify-content: flex-end;
    width: auto;
    gap: 4px;
    flex-shrink: 0;
  }

  .lang-btn {
    padding: 2.5px 7px;
    font-size: 0.74rem;
    border-radius: 5px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-titles h1 {
    font-size: 1.15rem;
  }

  .brand-titles p {
    font-size: 0.7rem;
  }

  .hero-bg-jaapi-img {
    width: 240px;
    opacity: 0.12;
  }

  .main-container,
  .page-container {
    padding: 24px 16px !important;
  }

  .section-h2 {
    font-size: 1.6rem;
  }

  .section-sub {
    font-size: 0.9rem;
  }

  /* Compact 7-Column Mobile Calendar */
  .calendar-view-container {
    padding: 14px 8px;
    border-radius: 14px;
    margin-bottom: 28px;
  }

  .calendar-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .month-year-title {
    width: 100%;
    justify-content: space-between;
    align-items: baseline;
  }

  .month-heading {
    font-size: 1.45rem;
  }

  .calendar-nav-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .year-tabs {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }

  .year-tab {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.82rem;
  }

  .cal-nav-action-btns {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cal-nav-action-btns .cal-nav-btn {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .cal-months-strip {
    gap: 6px;
    padding: 2px 0 10px;
    margin-bottom: 14px;
  }

  .month-pill-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .cal-weekday-grid {
    gap: 3px;
    margin-bottom: 4px;
  }

  .weekday-col {
    padding: 6px 1px;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .cal-month-days-grid {
    gap: 3px;
  }

  .cal-day-cell {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 4px 2px;
    border-radius: 6px;
    justify-content: flex-start;
    overflow: hidden;
  }

  .day-header-row {
    width: 100%;
    padding: 0 2px;
    align-items: center;
  }

  .gregorian-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
  }

  .assamese-num-badge {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  /* Hide raw text tags & tithi string on small cells */
  .day-tithi-indicator {
    display: none !important;
  }

  /* Transform event tags into elegant, colorful indicator dots on mobile */
  .day-event-tags {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    width: 100%;
  }

  .day-event-tags .event-tag {
    display: inline-block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    min-height: 6px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
    border: none;
  }

  .day-event-tags .event-tag.gazetted {
    background: var(--color-gazetted);
  }

  .day-event-tags .event-tag.restricted {
    background: var(--color-restricted);
  }

  .day-event-tags .event-tag.festival {
    background: var(--crimson-700);
  }

  .day-event-tags .event-tag.more-tag {
    background: var(--gold-500);
    border: none;
  }

  /* Today highlight on mobile */
  .cal-day-cell.is-today {
    border-width: 1.5px;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
  }

  .panchang-grid-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .assamese-big-date {
    font-size: 1.65rem;
  }

  .panchang-card-main,
  .panchang-timings-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .event-card {
    padding: 14px 12px;
    gap: 12px;
  }

  .event-date-block {
    min-width: 60px;
    padding: 8px 6px;
  }

  .event-day-big {
    font-size: 1.35rem;
  }

  .app-cta-banner {
    padding: 28px 16px;
    border-radius: 16px;
    margin: 36px 0 16px;
  }

  .app-cta-title {
    font-size: 1.7rem;
  }

  .app-cta-desc {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  /* Day Detail Modal Responsive */
  .day-modal-dialog {
    max-width: 94% !important;
    margin: 16px auto;
  }
}

/* Extra Small Devices (<= 380px) */
@media (max-width: 380px) {
  .spotlight-actions-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .btn-watchlist-pill,
  .btn-get-app-pill {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .main-container,
  .page-container {
    padding: 16px 12px !important;
  }

  .calendar-view-container {
    padding: 10px 4px;
  }

  .cal-day-cell {
    min-height: 46px;
    padding: 2px 1px;
  }

  .assamese-num-badge {
    font-size: 0.92rem;
  }

  .gregorian-num {
    font-size: 0.62rem;
  }

  .weekday-col {
    font-size: 0.62rem;
    padding: 4px 0;
  }
}

/* Smartphone Top Bar Compactness (< 460px) */
@media (max-width: 460px) {
  .top-bar {
    padding: 4px 8px;
  }

  .top-bar-inner {
    gap: 4px;
  }

  .live-clock-badge {
    padding: 2.5px 6px;
    font-size: 0.68rem;
    gap: 4px;
  }

  /* Hide city name on ultra narrow viewports to guarantee 100% single horizontal row */
  .clock-sep,
  .clock-city {
    display: none;
  }

  .lang-theme-toggles {
    gap: 3px;
  }

  .lang-btn {
    padding: 2px 6px;
    font-size: 0.68rem;
  }

  .brand-titles h1 {
    font-size: 1.05rem;
  }

  .brand-titles p {
    font-size: 0.65rem;
  }
}

/* FAQ Accordion Component */
.faq-accordion-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border-left: 4.5px solid transparent;
}

.faq-item:hover {
  border-color: var(--crimson-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 0, 0, 0.06);
}

.faq-item[open] {
  border-color: var(--crimson-700);
  border-left-color: var(--crimson-700);
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.02), var(--bg-surface));
}

[data-theme="dark"] .faq-item[open] {
  border-color: var(--gold-500);
  border-left-color: var(--gold-500);
}

.faq-summary {
  font-family: var(--font-as);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--crimson-900);
  outline: none;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '▼';
  font-size: 0.72rem;
  color: var(--crimson-700);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(180deg);
}

[data-theme="dark"] .faq-summary {
  color: var(--gold-400);
}

[data-theme="dark"] .faq-summary::after {
  color: var(--gold-400);
}

.faq-answer {
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.94rem;
  font-family: var(--font-as);
}

@media (max-width: 640px) {
  .faq-item {
    padding: 12px 14px;
  }
  .faq-summary {
    font-size: 0.95rem;
  }
  .faq-answer {
    font-size: 0.88rem;
  }
}


