/* ==========================================================================
   Maps of India — On This Day in History
   Authentic Portal Layout & Modern Responsive Stylesheet
   Reference: https://www.mapsofindia.com/on-this-day/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Maps of India Signature Color Palette */
  --moi-blue-dark: #004b7a;
  --moi-blue: #006699;
  --moi-blue-light: #3D79BF;
  --moi-blue-subtle: #ebf3f9;
  --moi-navy: #0e3153;
  --moi-saffron: #f26522;
  --moi-orange: #ff7700;
  --moi-green: #89bd05;
  --moi-green-hover: #75a204;
  --moi-red: #cf2e2e;
  
  --bg-page: #f8f9fa;
  --bg-panel: #ffffff;
  --bg-light-gray: #f2f4f7;
  --bg-dark: #0f172a;
  
  --text-primary: #222222;
  --text-secondary: #475569;
  --text-muted: #6b7280;
  --text-link: #005696;
  --text-link-hover: #e65100;
  
  --border-color: #dbe2ea;
  --border-subtle: #e5e7eb;
  --border-accent: #006699;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 9999px;
  
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.05);
  
  --transition: all 0.2s ease-in-out;
}

/* ──────────────────────────────────────────────────────────
   BASE STYLES & TYPOGRAPHY
────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', Arial, sans-serif;
  color: var(--moi-navy);
  font-weight: 700;
  margin-top: 0;
}

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

a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

.font-mono {
  font-family: 'JetBrains Mono', Consolas, monospace;
}

/* ──────────────────────────────────────────────────────────
   HEADER & NAVBAR (MAPS OF INDIA SIGNATURE)
────────────────────────────────────────────────────────── */
.moi-top-header-strip {
  background: #ffffff;
  padding: 8px 0;
}

.moi-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.moi-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.moi-logo-text {
  display: flex;
  flex-direction: column;
}

.moi-site-title {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--moi-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.moi-site-title span {
  color: var(--moi-saffron);
}

.moi-site-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Header Search Form */
.moi-header-search {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.moi-search-input {
  width: 100%;
  padding: 7px 40px 7px 14px;
  font-size: 0.86rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: #ffffff;
  outline: none;
  transition: var(--transition);
}

.moi-search-input:focus {
  border-color: var(--moi-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.15);
}

.moi-search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--moi-blue);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

/* Breadcrumbs Bar */
.moi-breadcrumb-strip {
  padding: 6px 0;
  font-size: 0.82rem;
}

.moi-breadcrumb-strip a {
  color: var(--moi-blue);
  font-weight: 500;
}

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

/* ──────────────────────────────────────────────────────────
   3-COLUMN PORTAL CONTAINER
────────────────────────────────────────────────────────── */
.moi-portal-container {
  max-width: 1000px;
  margin: 18px auto 40px auto;
  padding: 0 15px;
}

.moi-3col-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ──────────────────────────────────────────────────────────
   LEFT PANEL NAVIGATION (MAPS OF INDIA PORTAL TREE)
────────────────────────────────────────────────────────── */
.moi-left-panel {
  flex: 0 0 195px;
  width: 195px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.left_blue_bg {
  background: linear-gradient(180deg, #1c689d 0%, #004b7a 100%);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left_blue_bg .nav_head a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
}

.nav_head1 {
  background: #ebf3f9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5px 10px;
  font-size: 0.80rem;
  font-weight: 700;
}

.nav_head1 a {
  color: var(--moi-blue-dark) !important;
  text-decoration: none;
  display: block;
}

.left_links {
  padding: 6px 8px;
}

.left_links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left_links ul li {
  position: relative;
  padding: 3px 0 3px 12px;
  font-size: 0.78rem;
  line-height: 1.35;
  border-bottom: 1px dotted #e5e7eb;
}

.left_links ul li:last-child {
  border-bottom: none;
}

.left_links ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--moi-blue-light);
  font-size: 0.75rem;
}

.left_links ul li a {
  color: #333333;
  text-decoration: none;
  display: inline-block;
}

.left_links ul li a:hover {
  color: var(--moi-orange);
  text-decoration: underline;
}

.left_links .more {
  text-align: right;
  padding: 2px 4px 4px 0;
  font-size: 0.74rem;
}

.left_links .more a {
  color: var(--moi-orange);
  font-weight: 600;
  text-decoration: none;
}

/* ──────────────────────────────────────────────────────────
   MAIN CENTER CONTENT COLUMN
────────────────────────────────────────────────────────── */
.moi-content-main {
  flex: 1;
  min-width: 0; /* Prevents flex blowout */
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0;
  box-shadow: var(--shadow-xs);
}

/* Tabbed Header Banner */
.content-panel {
  background: #35546E;
  padding: 8px 18px;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.content-panel h1, .header-base h1 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.content-panel-body {
  padding: 20px;
}

/* Date Navigator Stepper (Home & Archives) */
.moi-date-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: #f4f8fb;
  border: 1px solid #d5e4f0;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.moi-stepper-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--moi-blue);
  text-decoration: none;
}

.moi-stepper-link:hover {
  background: var(--moi-blue);
  color: #ffffff;
  border-color: var(--moi-blue);
  text-decoration: none;
}

.moi-stepper-link.active {
  background: var(--moi-blue);
  color: #ffffff;
  border-color: var(--moi-blue);
}

.moi-target-date-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--moi-navy);
  margin: 0;
}

/* Event Post Entries */
.moi-event-post {
  padding: 16px 0;
  border-bottom: 1px solid #eef2f6;
  margin-top: 5px;
}

.moi-event-post:first-child {
  padding-top: 0;
}

.moi-event-post:last-child {
  border-bottom: none;
}

.postdate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--moi-blue-light);
  margin-bottom: 6px;
}

.postdate img, .postdate i {
  color: var(--moi-saffron);
}

.moi-event-post .title {
  margin-bottom: 8px;
}

.moi-event-post .title a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--moi-blue-dark);
  line-height: 1.4;
  display: inline;
}

.moi-event-post .title a:hover {
  color: var(--moi-orange);
  text-decoration: underline;
}

.moi-event-post .entry {
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.6;
  text-align: justify;
}

.moi-event-post .entry .read-more {
  display: inline-block;
  color: var(--moi-blue-light);
  font-weight: 700;
  margin-left: 6px;
  text-decoration: none;
}

.moi-event-post .entry .read-more:hover {
  color: var(--moi-orange);
  text-decoration: underline;
}

/* Event Year Pill */
.moi-year-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #212529;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  margin-right: 6px;
}

/* ──────────────────────────────────────────────────────────
   RIGHT PANEL ("BROWSE BY MONTH" & DATE SEARCH)
────────────────────────────────────────────────────────── */
.moi-right-panel {
  flex: 0 0 195px;
  width: 195px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-xs);
}

.browseby {
  width: 100%;
}

.browse-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 4px;
}

.browse-heading {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--moi-blue);
  border-bottom: 2px solid var(--moi-blue);
  padding-bottom: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Collapsing Month Accordion */
.collapsing-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.month-item {
  border-bottom: 1px solid #edf2f7;
}

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

.month-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #333333;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.month-toggle:hover {
  color: var(--moi-blue);
}

.month-item.selected .month-toggle {
  color: var(--moi-blue);
  background: var(--moi-blue-subtle);
  padding-left: 6px;
  border-radius: var(--radius-xs);
}

.month-toggle i.accordion-arrow::after {
  content: "▾";
  font-size: 0.8rem;
  color: var(--text-muted);
}

.month-item.selected .month-toggle i.accordion-arrow::after {
  content: "▴";
  color: var(--moi-blue);
}

.days-sublist {
  list-style: none;
  margin: 0;
  padding: 4px 6px 8px 10px;
  background: #fbfcfd;
  max-height: 240px;
  overflow-y: auto;
  border-left: 2px solid var(--moi-blue-light);
}

.days-sublist li {
  padding: 2px 0;
  font-size: 0.78rem;
}

.days-sublist li a {
  color: #4b5563;
  text-decoration: none;
  display: block;
}

.days-sublist li a:hover {
  color: var(--moi-orange);
  text-decoration: underline;
}

.days-sublist li.active-day a {
  color: var(--moi-saffron);
  font-weight: 700;
}

/* Quick Date & Month Form */
.date-picker-widget select {
  font-size: 0.80rem;
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  background-color: #ffffff;
  color: #333333;
}

.date-picker-widget select:focus {
  border-color: var(--moi-blue);
  outline: none;
}

.btn-moi-search {
  background-color: var(--moi-green) !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: var(--radius-xs) !important;
  padding: 5px 12px !important;
  cursor: pointer;
  transition: var(--transition) !important;
}

.btn-moi-search:hover {
  background-color: var(--moi-green-hover) !important;
  box-shadow: 0 2px 6px rgba(137, 189, 5, 0.4);
}

/* Side Highlight Card */
.side-highlights-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.side-card-header {
  background: #f4f8fb;
  padding: 6px 10px;
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--moi-navy);
  border-bottom: 1px solid var(--border-color);
}

.side-card-body {
  padding: 10px;
}

/* ──────────────────────────────────────────────────────────
   FAQS & ANSWERS SECTION (BOTTOM OF CONTENT)
────────────────────────────────────────────────────────── */
.ans_cont_section {
  width: 100%;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 2px solid #eef2f6;
}

.list_hd_ans {
  margin-bottom: 12px;
}

.list_hd_ans a {
  color: var(--moi-blue-light);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.list_hd_ans a:hover {
  color: var(--moi-orange);
  text-decoration: underline;
}

.post-scroll {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 10px;
  height: 100%;
  display: flex;
  gap: 10px;
}

.img-pst {
  flex: 0 0 85px;
  height: 85px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #e2e8f0;
}

.img-pst img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pst-cnt {
  flex: 1;
  min-width: 0;
}

.pst-cnt span {
  color: var(--moi-blue-light);
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  line-height: 1.3;
  margin-bottom: 4px;
}

.pst-cnt span:hover {
  color: var(--moi-orange);
}

.pst-cnt .more {
  color: #01B0C4;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.pst-cnt .more:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────
   ARTICLE DETAIL PAGE SPECIFIC STYLES
────────────────────────────────────────────────────────── */
.article-detail-body {
  font-size: 0.95rem;
  color: #222222;
  line-height: 1.8;
}

.article-detail-body p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.article-detail-body h2 {
  font-size: 1.3rem;
  color: var(--moi-navy);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.article-featured-media {
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.article-featured-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ──────────────────────────────────────────────────────────
   FOOTER (MAPS OF INDIA PORTAL FOOTER)
────────────────────────────────────────────────────────── */
.moi-portal-footer {
  background: #111827;
  color: #94a3b8;
  font-size: 0.84rem;
  padding: 35px 0 20px 0;
  border-top: 3px solid var(--moi-blue);
  margin-top: 40px;
}

.moi-portal-footer h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 6px;
}

.moi-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.moi-footer-links li {
  margin-bottom: 6px;
}

.moi-footer-links li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.80rem;
}

.moi-footer-links li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.moi-footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 15px;
  margin-top: 25px;
  font-size: 0.78rem;
  color: #64748b;
}

.moi-footer-bottom a {
  color: #94a3b8;
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE DESIGN (< 992px & < 768px)
────────────────────────────────────────────────────────── */
@media screen and (max-width: 991px) {
  .moi-3col-layout {
    flex-direction: column;
  }
  
  .moi-left-panel, .moi-right-panel {
    flex: none;
    width: 100%;
  }

  .collapsing-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
}

@media screen and (max-width: 768px) {
  .moi-top-header-strip .container {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .moi-header-search {
    max-width: 100%;
    margin-top: 8px;
  }

  .moi-event-post .title a {
    font-size: 0.98rem;
  }

  .moi-event-post .entry {
    font-size: 0.84rem;
    text-align: left;
  }

  .post-scroll {
    flex-direction: column;
  }

  .img-pst {
    width: 100%;
    height: 140px;
  }
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1001px;
    }
}
/* ──────────────────────────────────────────────────────────
   BROWSE INDIAN HISTORY BY DATE (INTERACTIVE CALENDAR CARD)
────────────────────────────────────────────────────────── */
.moi-browse-date-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.moi-browse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.moi-browse-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moi-browse-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.moi-browse-heading {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0e3153;
  margin: 0;
  line-height: 1.25;
}

.moi-browse-subheading {
  font-size: 0.84rem;
  color: #64748b;
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.moi-browse-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.moi-browse-select {
  padding: 6px 32px 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px 9px;
  border: 1px solid #dbe2ea;
  border-radius: 9999px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.moi-browse-select:hover, 
.moi-browse-select:focus {
  border-color: var(--moi-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 153, 0.1);
}

.moi-browse-go-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #0e3153;
  border: 1px solid #0e3153;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.moi-browse-go-btn:hover {
  background-color: #1a4975;
  border-color: #1a4975;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(14, 49, 83, 0.25);
}

/* Month Pills */
.moi-month-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.moi-month-pill {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  outline: none;
  user-select: none;
  line-height: 1.35;
}

.moi-month-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.moi-month-pill.active {
  background: #0e3153;
  color: #ffffff;
  font-weight: 600;
  border-color: #0e3153;
  box-shadow: 0 2px 6px rgba(14, 49, 83, 0.2);
}

/* Day Buttons Grid */
.moi-days-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.moi-day-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  outline: none;
  user-select: none;
}

.moi-day-btn:hover {
  background: #fff7ed;
  border-color: #f26522;
  color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(242, 101, 34, 0.15);
}

.moi-day-btn.active {
  background: #f26522;
  background: linear-gradient(135deg, #f26522 0%, #ea580c 100%);
  border-color: #f26522;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .moi-browse-date-card {
    padding: 16px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
  }
  .moi-browse-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .moi-browse-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .moi-month-pill {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  .moi-day-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}




/* Custom */
/* ===== Footer (all rules scoped under .footer so they don't touch the rest of the page) ===== */

.footer,
.footer *,
.footer *::before,
.footer *::after { box-sizing: border-box; }

.footer { max-width: 1010px; margin: 0 auto; padding: 0 10px 20px; font-family: Arial, Helvetica, sans-serif; color: #333; float: none; width: auto; background: none; }
.footer a { text-decoration: none; }
.footer a:focus-visible { outline: 2px solid #ffd54a; outline-offset: 2px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { background: none; }

/* Blue panels */
.footer .panel { background: #0066b3; color: #fff; border-radius: 6px; padding: 12px 6px; margin: 12px 0 0; }
.footer .panel a { color: #fff; }
.footer .panel a:hover { text-decoration: underline; }

/* 1. Link columns */
.footer .cols {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 16px 14px;
  justify-content: space-between;
  padding: 12px 10px;
}
.footer .col h3 { margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.footer .col li { margin: 0 0 4px; font-size: 13px; line-height: 1.35; }
.footer .col li a { display: inline-block; padding: 1px 0; }

/* 2. Utilities */
.footer .utils h4 { margin: 0 0 6px 4px; padding: 0; font-size: 13px; font-weight: 700; color: #fff; }
.footer .utils ul { display: flex; flex-wrap: wrap; }
.footer .utils li { font-size: 13px; padding: 6px 0; margin: 0; }
.footer .utils li a { padding: 0 10px; display: inline-block; }
.footer .utils li + li a { border-left: 1px solid #8cc3ea; }

/* 3. Search bar + ad */
.footer .search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 4px; }
.footer .search label { font-weight: 700; font-size: 14px; color: #fff; margin: 0; }
.footer .search form { display: flex; flex: 1 1 260px; max-width: 460px; margin: 0; padding: 0; }
.footer .search input[type="search"] {
  flex: 1; min-width: 0; height: 24px; border: 0; margin: 0; padding: 0 6px;
  font-size: 13px; border-radius: 3px 0 0 3px; background: #fff; color: #000; box-shadow: none;
}
.footer .search button {
  height: 24px; border: 0; margin: 0; background: #fff; color: #000; font-weight: 700;
  font-size: 11px; padding: 0 22px; cursor: pointer; border-radius: 0 3px 3px 0; box-shadow: none;
}
.footer .search .ad { background: #fff; border-radius: 4px; padding: 2px 4px; font-size: 12px; font-weight: 700; line-height: 1.2; margin-left: auto; }
.footer .search .ad a { color: #000; text-decoration: underline; display: block; }

/* 4. Bottom links */
.footer .bottom { text-align: center; margin-top: 14px; font-size: 12px; }
.footer .bottom ul { margin: 0 0 6px; display: flex; flex-wrap: wrap; justify-content: center; }
.footer .bottom li { padding: 3px 0; margin: 0; }
.footer .bottom li a { color: #0066b3; padding: 0 8px; display: inline-block; }
.footer .bottom li:not(:last-child) a { border-right: 1px solid #999; }
.footer .bottom a:hover { text-decoration: underline; }
.footer .bottom .copy { color: #0066b3; font-size: 11px; margin: 10px 0 0; }
.footer .bottom .copy a { color: #0066b3; }

/* Tablet */
@media (max-width: 960px) {
  .footer .cols { grid-template-columns: repeat(4, 1fr); }
}

/* Large phone */
@media (max-width: 640px) {
  .footer .cols { grid-template-columns: repeat(2, 1fr); }
  .footer .search .ad { margin-left: 0; }
  .footer .search form { max-width: none; flex-basis: 100%; }
  .footer .utils li a { padding: 0 8px; }
}

/* Small phone */
@media (max-width: 380px) {
  .footer .cols { grid-template-columns: 1fr; }
  .footer .bottom li a { padding: 0 6px; }
}

.sidebar { display: none; }
 
/* Desktop only (1025px and up) */
@media (min-width: 1025px) {
  .sidebar,
  .sidebar *,
  .sidebar *::before,
  .sidebar *::after { box-sizing: border-box; }
 
  .sidebar {
    display: block;
    width: 180px;
    flex: 0 0 180px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #222;
    background: #fff;
    border: 1px solid #d5d5d5;
  }
 
  .sidebar .box { margin: 0; padding: 0; border-bottom: 3px solid #0066b3; }
  .sidebar .box:last-child { border-bottom: 0; }
 
  /* Blue heading bar */
  .sidebar .box h3 {
    margin: 0;
    padding: 5px 7px;
    background: #0066b3;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
  }
  .sidebar .box h3 a { color: #fff; text-decoration: none; display: block; }
 
  /* Link list with alternating rows */
  .sidebar .box ul { list-style: none; margin: 0; padding: 0; }
  .sidebar .box li { margin: 0; padding: 0; background: #fff; border-bottom: 1px solid #e3e3e3; }
  .sidebar .box li:nth-child(even) { background: #efefef; }
  .sidebar .box li a {
    display: block;
    padding: 4px 7px 4px 16px;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    position: relative;
  }
  /* small arrow bullet */
  .sidebar .box li a::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    margin-top: -3px;
    border-left: 4px solid #444;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
  }
  .sidebar .box li a:hover { background: #dbe9f6; color: #0066b3; }
  .sidebar .box a:focus-visible { outline: 2px solid #0066b3; outline-offset: -2px; }
 
  /* "more..." link */
  .sidebar .box .more { margin: 0; padding: 2px 6px 3px; text-align: right; background: #fff; }
  .sidebar .box .more a { color: #c00; font-size: 9px; font-weight: 700; font-style: italic; text-decoration: none; }
  .sidebar .box .more a:hover { text-decoration: underline; }
}

.buymaps { --per-view: 4; max-width: 1010px; margin: 0 auto; padding: 0 10px; font-family: Calibri, Arial, Helvetica, sans-serif; color: #000; }
 
.buymaps h2.title { margin: 14px 0 12px; padding: 0; font-size: 13px; font-weight: 700; color: #3a9ad9; text-transform: uppercase; font-family: Arial, Helvetica, sans-serif; }
 
/* Grey slider panel */
.buymaps .slider { position: relative; background: #dcdcdc; padding: 13px 38px 36px; }
 
.buymaps .viewport { overflow: hidden; }
.buymaps .track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .4s ease; will-change: transform; }
 
/* Card */
.buymaps .item { flex: 0 0 calc(100% / var(--per-view)); padding: 0 10px; margin: 0; }
.buymaps .card { background: #77777a; display: block; }
.buymaps .thumb { display: block; background: #fff; aspect-ratio: 214 / 148; }
.buymaps .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; }
.buymaps .name { margin: 0; padding: 6px 6px 0; text-align: center; color: #fff; font: 700 16px/1.3 Arial, Helvetica, sans-serif; }
.buymaps .name a { color: #fff; text-decoration: none; }
.buymaps .name a:hover { text-decoration: underline; }
.buymaps .buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px 7px; }
.buymaps .price { color: #fff; font: 700 14px Arial, Helvetica, sans-serif; white-space: nowrap; }
.buymaps .btn {
  background: #f0484e; color: #fff; text-decoration: none; text-align: center;
  font: 700 15px/1 Arial, Helvetica, sans-serif; padding: 6px 12px; border-radius: 14px; white-space: nowrap;
}
.buymaps .btn:hover { background: #d93a40; }
 
/* Arrows */
.buymaps .arrow {
  position: absolute; top: 50%; margin-top: -11px; width: 23px; height: 23px; padding: 0;
  border: 0; border-radius: 50%; background: #2d6a9f; cursor: pointer; z-index: 2;
}
.buymaps .arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.buymaps .arrow.prev { left: 2px; }
.buymaps .arrow.next { right: 2px; }
.buymaps .arrow.prev::before { margin: -5px 0 0 -5px; border-right: 7px solid #fff; }
.buymaps .arrow.next::before { margin: -5px 0 0 -2px; border-left: 7px solid #fff; }
.buymaps .arrow:hover { background: #1f5280; }
.buymaps .arrow:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.buymaps .arrow[disabled] { opacity: .35; cursor: default; }
 
/* Notes under the slider */
.buymaps .gdpr { margin: 14px 0 0; font-size: 13px; line-height: 1.35; }
.buymaps .gdpr strong { display: block; }
.buymaps .gdpr a { color: #0645ad; text-decoration: underline; }
.buymaps .follow { margin: 24px 0 10px; text-align: center; font-size: 13px; color: #1a8a99; }
.buymaps .follow a { color: #1a8a99; text-decoration: underline; }
 
/* Responsive: cards per view */
@media (max-width: 1023px) { .buymaps { --per-view: 3; } }
@media (max-width: 767px)  { .buymaps { --per-view: 2; } .buymaps .slider { padding: 12px 32px 24px; } .buymaps .item { padding: 0 6px; } .buymaps .name { font-size: 14px; } .buymaps .btn { font-size: 13px; padding: 5px 9px; } }
@media (max-width: 479px)  { .buymaps { --per-view: 1; } }

.navmenu { position: relative; max-width: 1010px; margin: 0 auto; background: #0066b3; font-family: Arial, Helvetica, sans-serif; border-radius: 6px 6px 0 0; z-index: 100; }
.navmenu ul { list-style: none; margin: 0; padding: 0; }
.navmenu a { text-decoration: none; color: #fff; }
.navmenu a:focus-visible,
.navmenu button:focus-visible { outline: 2px solid #ffd54a; outline-offset: -2px; }
 
/* ---------- Mobile + tablet (default): hamburger ---------- */
.navmenu .bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; }
.navmenu .brand { color: #fff; font-weight: 700; font-size: 16px; }
.navmenu .toggle { width: 40px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.navmenu .toggle span { position: absolute; left: 8px; right: 8px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.navmenu .toggle span:nth-child(1) { top: 9px; }
.navmenu .toggle span:nth-child(2) { top: 16px; }
.navmenu .toggle span:nth-child(3) { top: 23px; }
.navmenu.open .toggle span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.navmenu.open .toggle span:nth-child(2) { opacity: 0; }
.navmenu.open .toggle span:nth-child(3) { top: 16px; transform: rotate(-45deg); }
 
.navmenu .menu { display: none; border-top: 1px solid rgba(255,255,255,.3); }
.navmenu.open .menu { display: block; }
 
.navmenu .menu > li > a {
  display: block; position: relative; padding: 12px 16px;
  font-size: 15px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.2);
}
.navmenu .menu > li > a:hover { background: #0a5aa0; }
 
/* chevron on items with a submenu */
.navmenu .has-sub > a { padding-right: 40px; }
.navmenu .has-sub > a::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .2s;
}
.navmenu .has-sub.open > a::after { transform: rotate(-135deg); margin-top: -2px; }
 
/* accordion submenu */
.navmenu .sub { display: none; background: #004f8c; }
.navmenu .has-sub.open > .sub { display: block; }
.navmenu .sub a { display: block; padding: 10px 16px 10px 32px; font-size: 14px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.12); }
.navmenu .sub a:hover { background: #0a5aa0; }
 
/* search */
.navmenu .search { padding: 12px 16px; }
.navmenu .search form { display: flex; margin: 0; }
.navmenu .search input[type="search"] {
  flex: 1; min-width: 0; height: 26px; margin: 0; padding: 0 6px; border: 2px solid #555;
  background: #fff; color: #000; font-size: 12px; box-shadow: none; border-radius: 0; margin-right: 5px;
}
.navmenu .search button {
  height: 26px; margin: 0; padding: 0 18px; border: 0; background: #fff; color: #000;
  font-weight: 700; font-size: 11px; cursor: pointer; border-radius: 0;
}
 
/* ---------- Desktop (1025px and up): horizontal bar + hover dropdowns ---------- */
@media (min-width: 1025px) {
  .navmenu .bar { display: none; }
 
  .navmenu .menu { display: flex; align-items: stretch; border-top: 0; padding: 4px 4px; }
  .navmenu .menu > li { position: relative; display: flex; align-items: center; }
  .navmenu .menu > li + li:not(.search)::before {
    content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 1px; background: rgba(255,255,255,.55);
  }
  .navmenu .menu > li > a { padding: 8px 8px; font-size: 14px; border-bottom: 0; white-space: nowrap; }
  .navmenu .menu > li > a:hover { background: transparent; text-decoration: underline; }
  .navmenu .has-sub > a { padding-right: 8px; }
  .navmenu .has-sub > a::after { display: none; }
 
  /* dropdown opens on hover or keyboard focus */
  .navmenu .sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 150px;
    background: #0066b3; padding: 4px 0 6px; box-shadow: 0 4px 8px rgba(0,0,0,.25);
  }
  .navmenu .has-sub:hover > .sub,
  .navmenu .has-sub:focus-within > .sub { display: block; }
  .navmenu .has-sub.open > .sub { display: none; }
  .navmenu .has-sub.open:hover > .sub,
  .navmenu .has-sub.open:focus-within > .sub { display: block; }
  .navmenu .sub a { padding: 6px 10px; border-bottom: 0; white-space: nowrap; }
  .navmenu .sub a:hover { background: #0a5aa0; }
 
  .navmenu .search { margin-left: auto; padding: 0 4px 0 10px; }
  .navmenu .search input[type="search"] { flex: none; width: 125px; }
}



@media (min-width:1025px) and (max-width:1249px) {
.desktop-leftG {display: none !important;}
.desktop-rightG {display: none !important;}
  }

/* Hamburger button - sirf mobile/tablet par dikhega */
.sidebar-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-right: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.sidebar-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;      /* black color */
  border-radius: 2px;
}

.navmenu .bar { display: flex; align-items: center; }

@media (max-width: 1024px) {
  .sidebar-toggle { display: flex; }

  /* Sidebar off-canvas (left se slide) */
  .sidebar {
    display: block !important;      /* purana hidden override */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    max-width: 85%;
    background: #fff;
    overflow-y: auto;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,.25);
    padding: 10px;
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
  }
  .sidebar-overlay.show { display: block; }
}

/* Desktop par overlay kabhi na dikhe */
@media (min-width: 1025px) {
  .sidebar-overlay { display: none !important; }
}
/* Close button: desktop par hidden */
.sidebar-close {
  display: none;
}

@media (max-width: 1024px) {
  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;      /* scroll karne par bhi upar dikhega */
    top: 0;
    margin: 0 0 8px auto;  /* right side me */
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    border: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }
  .sidebar-close:hover {
    background: #333;
  }
}
/* Desktop: Menu bar (brand + hamburger) hide */
@media (min-width: 1025px) {
  .navmenu .bar {
    display: none !important;
  }
}