/* ============================================
   SANGAM - Elegant Corporate Theme
   Light, professional, refined styling
   ============================================ */

:root {
  /* Premium Corporate Color Palette */
  --sangam-primary: #1e3a8a;       /* Deep blue, highly corporate */
  --sangam-primary-light: #eff6ff; /* Very soft blue for backgrounds */
  --sangam-bg: #f8fafc;            /* Crisp off-white main background */
  --sangam-bg-alt: #f1f5f9;
  
  --sangam-text: #0f172a;          /* Rich slate for deep contrast */
  --sangam-text-muted: #64748b;
  --sangam-accent: #2563eb;
  --sangam-accent-hover: #1d4ed8;
  
  --sangam-border: #e2e8f0;
  --sangam-border-soft: #f1f5f9;
  
  /* Glassmorphism Variables */
  --surface: rgba(255, 255, 255, 0.85);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  
  /* Shadows */
  --sangam-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --sangam-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  --sangam-shadow-md: 0 10px 24px rgba(0, 0, 0, 0.06);
  --sangam-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  
  /* Radii */
  --sangam-radius-sm: 8px;
  --sangam-radius: 12px;
  --sangam-radius-md: 16px;
  --sangam-radius-lg: 24px;
  
  /* Typography - Using modern fonts from Google */
  --sangam-font: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Carousel Variables */
  --carousel-duration: 0.8s;
  --carousel-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--sangam-font);
  background: var(--sangam-bg);
  background-image: radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.03), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.02), transparent 25%);
  color: var(--sangam-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Glass Container Utility */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  box-shadow: var(--sangam-shadow-md);
  border-radius: var(--sangam-radius-md);
  transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =====================
   NAVBAR (from reference: light blue-grey bar, orange logo block, dark blue text)
===================== */
/* =====================
   STICKY TOP WRAP
===================== */
.sticky-top-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* =====================
   MASTHEAD (single navy bar — loops Tamil <-> English)
===================== */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.7rem 1.75rem;
  background: linear-gradient(135deg, #0a1628, #162a4a);
  border-bottom: 2px solid #b08d4a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: padding 0.3s ease;
}

.masthead-logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  transition: height 0.3s ease;
}

.masthead-titles {
  display: grid;
  place-items: center;
  height: 58px;
  transition: height 0.3s ease;
}

.masthead-frame {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.masthead-frame.active {
  opacity: 1;
  transform: translateY(0);
}

.masthead-tamil {
  font-family: 'Noto Sans Tamil', 'Latha', 'Tamil MN', Arial, sans-serif;
  font-size: clamp(0.8rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  /* Solid bright metallic gold (matches English title) */
  color: #ffd24a;
  text-shadow: 0 1px 0 #a9781a, 0 2px 3px rgba(0, 0, 0, 0.45), 0 0 9px rgba(255, 209, 74, 0.5);
}

.masthead-sub {
  font-family: 'Noto Sans Tamil', 'Latha', 'Tamil MN', Arial, sans-serif;
  font-size: clamp(0.5rem, 1.15vw, 0.75rem);
  color: rgba(231, 212, 168, 0.85);
  font-style: italic;
  line-height: 1.2;
}

.masthead-english {
  font-family: 'Cinzel', 'Times New Roman', Times, serif;
  font-size: clamp(0.95rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  /* Solid bright metallic gold */
  color: #ffd24a;
  text-shadow: 0 1px 0 #a9781a, 0 2px 3px rgba(0, 0, 0, 0.45), 0 0 9px rgba(255, 209, 74, 0.5);
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.masthead-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

/* On scroll: keep looping, just shrink the bar */
.sticky-top-wrap.scrolled .masthead {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}
.sticky-top-wrap.scrolled .masthead-logo {
  height: 40px;
}
.sticky-top-wrap.scrolled .masthead-titles {
  height: 42px;
}
.sticky-top-wrap.scrolled .masthead-tamil {
  font-size: clamp(0.72rem, 2vw, 1.2rem);
}
.sticky-top-wrap.scrolled .masthead-english {
  font-size: clamp(0.9rem, 2.6vw, 1.6rem);
}

@media (prefers-reduced-motion: reduce) {
  .masthead-frame {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* Hide navbar clock when the centered menu would collide with it
   (.navbar prefix keeps it specific enough to beat the base .navbar-datetime rule) */
@media (max-width: 1100px) {
  .navbar .navbar-datetime {
    display: none;
  }
}

@media (max-width: 768px) {
  .masthead {
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
  }
  .masthead-logo {
    height: 38px;
  }
  /* Allow long Tamil/English titles to wrap instead of overflowing */
  .masthead-tamil,
  .masthead-english {
    white-space: normal;
  }
  .masthead-tamil {
    font-size: clamp(0.74rem, 3vw, 1rem);
    line-height: 1.2;
  }
  .masthead-english {
    font-size: clamp(0.95rem, 4vw, 1.3rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
  }
  .masthead-sub {
    font-size: clamp(0.5rem, 1.8vw, 0.62rem);
  }
  /* Height grows to fit the (now wrapping) title; both frames share the cell */
  .masthead-titles {
    height: auto;
    min-height: 42px;
  }
  .navbar-datetime {
    display: none;
  }
  .sticky-top-wrap.scrolled .masthead-logo {
    height: 30px;
  }
  .sticky-top-wrap.scrolled .masthead-titles {
    height: auto;
  }
}

@media (max-width: 430px) {
  .masthead {
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
  }
  .masthead-logo {
    height: 32px;
  }
  .masthead-tamil {
    font-size: 0.78rem;
  }
  .masthead-english {
    font-size: 1.02rem;
  }
}

/* =====================
   BREADCRUMB BAR
===================== */
.breadcrumb-bar {
  height: clamp(30px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  background: linear-gradient(135deg, #0a1628, #162a4a);
  border-bottom: 1px solid #1e3a5f;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.breadcrumb-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-logo {
  height: clamp(20px, 4vw, 44px);
  width: auto;
  object-fit: contain;
}

.breadcrumb-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(0.7rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 6px rgba(176, 141, 74, 0.25);
}

.breadcrumb-datetime {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  right: 2rem;
}

.bc-date,
.bc-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.bc-date::before {
  content: "\1F4C5";
  font-size: 0.7rem;
}

.bc-time {
  font-variant-numeric: tabular-nums;
  color: #e7d4a8;
}

.bc-time::before {
  content: "\1F552";
  font-size: 0.7rem;
}

/* =====================
   HEADER BRANDING
===================== */
.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #0a1628, #162a4a);
  border-bottom: 1px solid rgba(176, 141, 74, 0.5);
  position: relative;
  min-height: 0;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease, border-width 0.3s ease;
}

/* On scroll: collapse the Tamil header, keep English bar + navbar fixed */
.sticky-top-wrap.scrolled .header-brand {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-width: 0;
}

.header-brand-deco {
  display: none; /* Hidden — set to 'flex' to re-enable decorative power-sector images */
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.header-brand-deco-left {
  justify-content: flex-end;
  margin-right: 1.5rem;
  padding-left: 1rem;
}

.header-brand-deco-right {
  justify-content: flex-start;
  margin-left: 1.5rem;
  padding-right: 1rem;
}

.header-deco-img {
  height: 45px;
  width: auto;
  opacity: 0.3;
  pointer-events: none;
  object-fit: contain;
}

.header-deco-img[src*="towerline"] {
  filter: invert(1) grayscale(1) brightness(0.5);
  opacity: 1;
}

.header-deco-img[src*="hydro_dam"] {
  filter: invert(1) grayscale(1) brightness(0.5);
  opacity: 1;
}

.header-brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  padding: 0 0.5rem;
  border-left: 2px solid transparent;
  border-image: linear-gradient(to bottom, transparent, #c8b48a, transparent) 1;
}

.header-brand-text + .header-brand-logo {
  border-left: none;
  border-right: 2px solid transparent;
  border-image: linear-gradient(to bottom, transparent, #c8b48a, transparent) 1;
}

.header-brand-text {
  text-align: center;
  min-width: 0;
}

.header-brand-tamil {
  font-family: 'Noto Sans Tamil', 'Latha', 'Tamil MN', Arial, sans-serif;
  font-size: clamp(0.65rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 6px rgba(176, 141, 74, 0.25);
}

.header-brand-sub {
  font-family: 'Noto Sans Tamil', 'Latha', 'Tamil MN', Arial, sans-serif;
  font-size: clamp(0.45rem, 1.1vw, 0.72rem);
  color: rgba(231, 212, 168, 0.85);
  margin: 0.15rem 0 0 0;
  font-style: italic;
  line-height: 1.2;
}

/* =====================
   NAVBAR (White Pill)
===================== */
.navbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: #ffffff;
}

/* Date/time pinned to navbar right corner (absolute = does not shift centered links) */
.navbar-datetime {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  line-height: 1.25;
  z-index: 2;
}
.navbar-datetime .bc-date {
  color: #3a4358;
  font-size: 0.62rem;
}
.navbar-datetime .bc-time {
  color: #0c1f5e;
  font-weight: 700;
  font-size: 0.7rem;
}

body {
  padding-top: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0.5rem 1rem 0;
  margin: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #e5e7eb;
  border-bottom: 2px solid #b08d4a;
  transition: padding 0.25s ease;
}

/* Shrink behavior when page is scrolled */
.sticky-top-wrap.scrolled .nav-links {
  padding: 0.25rem 1rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 2px solid #c8b48a;
  box-shadow:
    0 6px 14px rgba(12, 31, 94, 0.15),
    0 2px 4px rgba(176, 141, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 6px rgba(176, 141, 74, 0.08);
}
.sticky-top-wrap.scrolled .nav-links > li > a {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}
/* Decorative gold underline accent that fades in/out across the bar */
.sticky-top-wrap.scrolled::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  background: linear-gradient(90deg, transparent 0%, rgba(176, 141, 74, 0.25) 50%, transparent 100%);
  pointer-events: none;
  filter: blur(3px);
}
.sticky-top-wrap.scrolled .breadcrumb-bar {
  height: clamp(28px, 5vw, 56px);
  padding: 0 1.5rem;
}
.sticky-top-wrap.scrolled .breadcrumb-title {
  font-size: clamp(0.65rem, 2.6vw, 1.4rem);
}
.sticky-top-wrap.scrolled .breadcrumb-logo {
  height: clamp(18px, 3.5vw, 32px);
}

.nav-links li {
  position: relative;
  display: flex;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: #3a4358;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
  white-space: nowrap;
}

.nav-links > li > a::after {
  display: none;
}

.nav-links > li > a:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.nav-links > li > a.active {
  background: transparent;
  color: #0c1f5e;
  border-bottom-color: #b08d4a;
  font-weight: 700;
  box-shadow: none;
}

/* Nav Glow - NEW tag */
.nav-links a.nav-glow {
  position: relative;
}

.nav-links a.nav-glow::after {
  content: 'NEW';
  display: inline-block;
  position: absolute;
  top: 2px;
  right: 0;
  font-size: 0.5rem;
  font-weight: 700;
  color: #0c1f5e;
  background: #b08d4a;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
}

/* Mega Menu */
.has-mega {
  position: relative;
}

.mega-trigger {
  cursor: pointer;
}

.mega-arrow {
  font-size: 0.6em;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.has-mega:hover .mega-arrow {
  transform: rotate(180deg);
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 520px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  z-index: 1001;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.has-mega:hover .mega-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.mega-menu-inner {
  display: block;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem 1.25rem;
}

.mega-col ul li a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.mega-col ul li a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-bottom-color: #d4af37;
}

.mega-trigger::after,
.mega-col ul li a::after {
  display: none !important;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #374151;
  transition: 0.3s ease;
}

.burger.active {
  position: relative;
  z-index: 1001;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}


/* =====================
   NEWS TICKER (Vertical Stepper) — Glassmorphism Theme
===================== */
.news-ticker {
  background: #eef2f9;
  color: #1e293b;
  height: 2.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Subtle gold top accent line */
.news-ticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(176, 141, 74, 0.55) 20%,
    rgba(212, 175, 55, 0.85) 50%,
    rgba(176, 141, 74, 0.55) 80%,
    transparent 100%
  );
  z-index: 3;
}

.news-ticker:hover {
  background: #e4eaf5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Frosted glass ribbon label */
.news-ticker-ribbon {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  padding: 0 1.4rem 0 1.05rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

/* Soft pulsing dot — navy on gold */
.news-ticker-ribbon::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  animation: newsTickerPulse 2s ease-in-out infinite;
}

.news-ticker-items {
  position: relative;
  height: 100%;
  flex: 1;
  overflow: hidden;
  z-index: 1;
}

.news-ticker-items::before,
.news-ticker-items::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.6rem;
  pointer-events: none;
  z-index: 2;
}

.news-ticker-items::before {
  left: 0;
  background: linear-gradient(90deg, #eef2f9, transparent);
}

.news-ticker-items::after {
  right: 0;
  background: linear-gradient(270deg, #eef2f9, transparent);
}

/* Seamless scrolling marquee track (two identical item-sets, animated -50%) */
.news-ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  flex-wrap: nowrap;
  will-change: transform;
  animation: newsTickerScroll 40s linear infinite;
}

/* Pause when the user hovers, so they can read an item */
.news-ticker:hover .news-ticker-track {
  animation-play-state: paused;
}

@keyframes newsTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker-track { animation: none; }
}

.news-ticker-item {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1e293b;
  text-shadow: none;
  opacity: 1;
  white-space: nowrap;
  pointer-events: auto;
}

.news-ticker-item-text {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* Frosted glass badge */
.news-ticker-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border: 1px solid #b08d4a;
  border-radius: 999px;
  background: rgba(176, 141, 74, 0.14);
  color: #0c1f5e;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

/* .active / .out fade states removed — ticker now scrolls as one continuous track */

/* Indigo dot pulse animation */
@keyframes newsTickerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
  }
}

/* =====================
   CAROUSEL SECTION - Swipe-Peek Carousel (Google Pay / Instagram style)
   JS sets: --carousel-slide-w, --carousel-gap. JS adds: .carousel-resetting during reset.
===================== */
.carousel-section {
  width: 100%;
  max-width: 100%;
  height: 400px;
  margin: 1.1rem 0 1.1rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f9 100%);
  border: none;
  border-top: 3px solid #b08d4a;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(12, 31, 94, 0.12);
}

@media (min-width: 1025px) {
  .carousel-section { height: 490px; }
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: calc(100% - 34px);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  height: 100%;
  gap: var(--carousel-gap, 10px);
  transition: transform var(--carousel-duration) var(--carousel-ease);
  will-change: transform;
  cursor: grab;
}

.carousel-track.carousel-dragging {
  transition: none !important;
  cursor: grabbing;
}

/* Disable transitions during infinite-loop reset */
.carousel-resetting .carousel-track {
  transition: none !important;
}

.carousel-slide {
  flex: 0 0 var(--carousel-slide-w, 85%);
  min-width: var(--carousel-slide-w, 85%);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.5;
  transform: scale(0.82) translateY(10px);
  filter: brightness(0.72);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  will-change: opacity, transform;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1) translateY(-4px);
  filter: none;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(12, 31, 94, 0.35);
}

.carousel-slide .carousel-bg {
  position: absolute;
  inset: 0;
  background-color: var(--sangam-bg-alt);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.1);
}

.carousel-slide .carousel-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* Caption */
.carousel-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  max-width: min(85%, 760px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1f5e;
  color: #ffffff;
  border: 1px solid #b08d4a;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 12px rgba(12, 31, 94, 0.25);
}

.carousel-btn:hover {
  background: #16307a;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(176, 141, 74, 0.4);
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

/* Pagination dots / counter — sits in the strip below the image */
.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  z-index: 11;
  pointer-events: none;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(12, 31, 94, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.carousel-dot.active {
  width: 20px;
  border-radius: 999px;
  background: #b08d4a;
  border-color: #b08d4a;
}

/* Compact counter (used when there are too many slides for dots) */
.carousel-counter {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0c1f5e;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #b08d4a;
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(12, 31, 94, 0.18);
}

/* --- Dual-track carousel (desktop) --- */
.carousel-dual { display: none; }
.carousel-caption-frame { display: none; }
.carousel-captions-bar { display: none; }

@media (min-width: 1025px) {
  /* Single-track peek carousel now used on desktop too */
  .carousel-container { display: block; }

  /* Carousel fills the full section height (no dead frame bands top/bottom) */
  .carousel-wrapper {
    padding: 0;
  }

  /* Dual-track retired */
  .carousel-dual {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    gap: 16px;
    padding: 14px 50px;
    padding-bottom: 44px;
    z-index: 1;
  }

  .carousel-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 0 4px rgba(10, 18, 30, 0.95),
      0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(10, 18, 30, 0.6);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
  }

  .carousel-panel:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 0 4px rgba(10, 18, 30, 0.95),
      0 12px 40px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(100, 160, 255, 0.08);
  }

  .carousel-panel-track {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Individual slide inside a panel */
  .carousel-panel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(0) scale(0.92);
    transition:
      transform 1s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .carousel-panel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
  }

  .carousel-panel-slide.exiting {
    opacity: 0;
    z-index: 1;
    transition:
      transform 1s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.6s cubic-bezier(0.4, 0, 1, 1);
  }

  /* Left panel: new slides enter from left */
  .carousel-panel-left .carousel-panel-slide.entering {
    transform: translateX(-100%) scale(0.92);
    opacity: 0;
  }
  .carousel-panel-left .carousel-panel-slide.exiting {
    transform: translateX(100%) scale(0.92);
  }

  /* Right panel: new slides enter from right */
  .carousel-panel-right .carousel-panel-slide.entering {
    transform: translateX(100%) scale(0.92);
    opacity: 0;
  }
  .carousel-panel-right .carousel-panel-slide.exiting {
    transform: translateX(-100%) scale(0.92);
  }

  .carousel-panel-slide .carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.1);
    transition: transform 6s ease-out;
  }

  /* Gentle Ken Burns drift on active bg */
  .carousel-panel-slide.active .carousel-bg {
    transform: scale(1.15);
  }

  .carousel-panel-slide .carousel-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Subtle hover zoom on image */
  .carousel-panel:hover .carousel-panel-slide.active .carousel-img {
    transform: scale(1.03);
  }

  /* Caption bar — below panels (dual-track retired) */
  .carousel-captions-bar {
    display: none;
    position: absolute;
    bottom: 4px;
    left: 50px;
    right: 50px;
    z-index: 5;
    gap: 16px;
  }

  .carousel-captions-bar .carousel-caption-frame {
    display: block;
    flex: 1;
    text-align: center;
    padding: 0.3rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 999px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .carousel-caption-frame.fading {
    opacity: 0;
    transform: translateY(4px);
  }

  /* Single caption shown on desktop (single peek carousel) */
  .carousel-caption-single {
    display: block;
  }

  /* Dark edge masks removed — they were for the retired dual-track and
     were the source of the dark frame (top 14px + bottom 44px bars). */

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    z-index: 12;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-caption {
    font-size: 0.84rem;
    padding: 0.55rem 1.1rem;
    bottom: 0.6rem;
    z-index: 12;
  }
}

/* Hide old indicators */
.carousel-indicators { display: none; }

/* Mobile: single slide only, full width */
@media (max-width: 1024px) {
  .header-gradient-bg {
    height: 90px;
  }

  .header-text-wrap {
    width: calc(100% - 240px);
  }

  /* Breadcrumb bar: slightly smaller on tablet */
  .breadcrumb-bar {
    height: 32px;
    padding: 0 1rem;
    font-size: 0.75rem;
  }

  .breadcrumb-datetime {
    display: none;
  }

  /* Header branding: smaller on tablet */
  .header-brand {
    padding: 0.35rem 1rem;
    gap: 0.5rem;
  }

  .header-brand-logo {
    height: 40px;
  }

  /* News ticker: smaller on tablet */
  .news-ticker {
    height: 2.35rem;
  }

  .news-ticker-ribbon {
    font-size: 0.6rem;
    padding: 0 1rem 0 0.75rem;
    gap: 0.4rem;
  }

  .news-ticker-item {
    font-size: 0.76rem;
    padding: 0 0.9rem;
  }

  .news-ticker-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.5rem;
  }

  /* Show the whole photo on small screens (blurred bg fills the sides)
     instead of cropping it with object-fit: cover */
  .carousel-slide .carousel-img {
    object-fit: contain;
  }

  /* Mobile carousel caption — wrap fully instead of being cut off */
  .carousel-caption {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    max-width: 92%;
    bottom: 0.5rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
  }

  /* Navbar: slightly smaller on tablet */
  .nav-links a {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* =====================
   VISITOR COUNTER
===================== */
.visitor-counter-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.4rem 2rem 2.2rem;
  background: linear-gradient(135deg, var(--sangam-bg-alt) 0%, var(--sangam-bg) 100%);
}

.visitor-counter-heading {
  text-align: center;
  font-size: 1.75rem;
  color: var(--sangam-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--sangam-accent);
  display: inline-block;
}

.visitor-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  background: var(--sangam-card);
  border-radius: var(--sangam-radius-lg);
  box-shadow: var(--sangam-shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 220px;
}

.visitor-counter:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.visitor-counter .count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sangam-accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.visitor-counter .label {
  font-size: 0.9rem;
  color: var(--sangam-text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}


/* =====================
   NEWS CARDS
===================== */
/* =====================
   NEWS CARDS (Detailed List Style)
 ===================== */
.news-section {
  padding: 1.5rem 0 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--sangam-text);
  padding: 0 2rem;
}

/* Horizontal scrollable card row */
.news-cards-wrapper {
  position: relative;
  overflow: hidden;
}

.news-cards {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 2rem 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.news-cards::-webkit-scrollbar {
  display: none;
}

/* Scroll buttons */
.news-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sangam-card);
  border: 1px solid var(--sangam-border);
  box-shadow: var(--sangam-shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--sangam-text);
  z-index: 2;
  transition: all 0.2s ease;
}

.news-scroll-btn:hover {
  background: var(--sangam-accent);
  color: white;
  border-color: var(--sangam-accent);
}

.news-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.news-scroll-prev { left: 0.5rem; }
.news-scroll-next { right: 0.5rem; }

.news-card {
  background: linear-gradient(145deg, var(--sangam-card) 0%, var(--sangam-card) 80%, rgba(0,0,0,0.02) 100%);
  border-radius: var(--sangam-radius-lg);
  border: 1px solid var(--sangam-border);
  border-left: 4px solid var(--sangam-accent-teal);
  box-shadow:
    0 6px 16px rgba(100,149,237,0.18),
    0 2px 4px rgba(100,149,237,0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99), box-shadow 0.4s ease, border-left-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-width: 340px;
  max-width: 380px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transform-style: preserve-3d;
  perspective: 800px;
  position: relative;
  transform: perspective(800px) rotateX(2deg) rotateY(-1deg);
}

/* Top highlight edge */
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100,149,237,0.4), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Shine overlay */
.news-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(100,149,237,0.08) 0%, transparent 40%, transparent 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.news-card:hover {
  box-shadow:
    0 20px 40px rgba(100,149,237,0.22),
    0 8px 16px rgba(100,149,237,0.14),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border-left-color: var(--sangam-accent);
}

.news-card:hover::after {
  opacity: 0;
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--sangam-border);
}

.news-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--sangam-accent-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sangam-primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-description {
  font-size: 0.9rem;
  color: var(--sangam-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sangam-accent-teal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-card:hover .read-more {
  text-decoration: underline;
}

/* =====================
   GB BANNER (below latest news)
===================== */
.gb-banner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gb-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  color: #fff;
  border-radius: var(--sangam-radius-lg);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.gb-banner-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.gb-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.gb-banner-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gb-banner-text small {
  font-size: 0.78rem;
  opacity: 0.85;
}

.gb-banner-arrow {
  font-size: 1.3rem;
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.gb-banner-inner:hover .gb-banner-arrow {
  transform: translateX(4px);
  opacity: 1;
}

@media (max-width: 600px) {
  .gb-banner {
    padding: 0 1rem;
  }
  .gb-banner-icon {
    display: none;
  }
}

/* =====================
   GB MEETING SCHEDULE
===================== */
.gb-section {
  padding: 1.5rem 0 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gb-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--sangam-text);
  padding: 0 2rem;
}

.gb-cards-wrapper {
  position: relative;
  overflow: hidden;
}

.gb-cards {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 2rem 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gb-cards::-webkit-scrollbar { display: none; }

.gb-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sangam-card);
  border: 1px solid var(--sangam-border);
  box-shadow: var(--sangam-shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--sangam-text);
  z-index: 2;
  transition: all 0.2s ease;
}

.gb-scroll-btn:hover {
  background: var(--sangam-accent);
  color: white;
  border-color: var(--sangam-accent);
}

.gb-scroll-btn.hidden { opacity: 0; pointer-events: none; }
.gb-scroll-prev { left: 0.5rem; }
.gb-scroll-next { right: 0.5rem; }

.gb-card {
  background: linear-gradient(145deg, var(--sangam-card) 0%, var(--sangam-card) 80%, rgba(0,0,0,0.02) 100%);
  border-radius: var(--sangam-radius-lg);
  border: 1px solid var(--sangam-border);
  border-left: 4px solid var(--sangam-accent-teal);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.1),
    0 2px 4px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.4s cubic-bezier(.03,.98,.52,.99), box-shadow 0.4s ease, border-left-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transform-style: preserve-3d;
  perspective: 800px;
  position: relative;
  transform: perspective(800px) rotateX(2deg) rotateY(-1deg);
}

.gb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: 2;
  pointer-events: none;
}

.gb-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 40%, transparent 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.gb-card:hover {
  box-shadow:
    0 20px 40px rgba(0,0,0,0.15),
    0 8px 16px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border-left-color: var(--sangam-accent);
}

.gb-card:hover::after { opacity: 0; }

.gb-card-date {
  background: linear-gradient(135deg, var(--sangam-primary) 0%, #2563eb 100%);
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gb-date-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gb-day-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 0.06em;
}

.gb-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gb-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sangam-primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.gb-venue {
  font-size: 0.85rem;
  color: var(--sangam-text-muted);
  margin-bottom: 0.75rem;
}

.gb-invitees-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sangam-accent-teal);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--sangam-border);
}

.gb-invitees {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gb-invitee {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sangam-text);
  padding: 0.3rem 0.6rem;
  background: var(--sangam-primary-light);
  border-radius: var(--sangam-radius-sm);
  border-left: 3px solid var(--sangam-accent-teal);
}

@media (max-width: 600px) {
  .gb-card { min-width: 280px; max-width: 300px; }
  .gb-scroll-btn { display: none; }
  .gb-cards { padding: 0.5rem 1rem 1.5rem; }
  .gb-section h2 { font-size: 1.4rem; }
}

/* =====================
   OFFICE BEARER CARDS
===================== */
.bearer-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .bearer-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bearer-cards {
    grid-template-columns: 1fr;
  }
}

.bearer-card {
  position: relative;
  background: var(--sangam-card, #ffffff);
  border-radius: var(--sangam-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sangam-border);
  box-shadow: var(--sangam-shadow-md);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

/* Gold sheen accent along the very top of each card */
.bearer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
  z-index: 3;
}

.bearer-card:hover {
  box-shadow: var(--sangam-shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
}

.bearer-card-header {
  background: linear-gradient(135deg, var(--sangam-primary) 0%, var(--sangam-accent) 100%);
  color: #fff;
  padding: 1rem 1rem 2.9rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  /* Fixed height so 1-line and 2-line titles reserve the same space,
     keeping every avatar aligned across a row (no zig-zag) */
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bearer-card-body {
  padding: 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bearer-card-photo {
  width: 128px;
  height: 128px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: -2.55rem auto 0.9rem;
  border-radius: 50%;
  border: 4px solid var(--sangam-card, #ffffff);
  box-shadow: 0 0 0 3px #d4af37, var(--sangam-shadow-md);
  background: var(--sangam-bg-alt);
  position: relative;
  z-index: 2;
}

/* Only real photos (an <img>) are zoomable — placeholders are plain divs */
img.bearer-card-photo {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

img.bearer-card-photo:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px #d4af37, var(--sangam-shadow-lg);
}

/* ---- Bearer photo lightbox ---- */
.bearer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bearer-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.bearer-lightbox-inner {
  position: relative;
  max-width: min(90vw, 520px);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.bearer-lightbox.active .bearer-lightbox-inner {
  transform: scale(1);
}

.bearer-lightbox-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--sangam-radius-md);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px #d4af37, 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.bearer-lightbox-caption {
  margin-top: 1rem;
  color: #fff;
}

.bearer-lightbox-caption .bl-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.bearer-lightbox-caption .bl-role {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f4d03f;
  margin-top: 0.25rem;
}

.bearer-lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--sangam-primary);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sangam-shadow-md);
  transition: background 0.2s, transform 0.2s;
}

.bearer-lightbox-close:hover {
  background: #f4d03f;
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .bearer-lightbox-close { top: -0.5rem; right: -0.5rem; }
}

.bearer-card-photo-placeholder {
  background: var(--sangam-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sangam-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.bearer-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sangam-text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  text-align: center;
  /* Reserve up to 2 lines so the designation pill starts at the
     same height on every card, regardless of name length */
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bearer-card-meta {
  font-size: 0.875rem;
  color: var(--sangam-text-muted);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.bearer-card-meta p {
  margin: 0.3rem 0;
}

/* Designation → soft accent pill */
.bearer-card-meta p:first-child {
  display: inline-block;
  background: var(--sangam-primary-light);
  color: var(--sangam-accent-hover);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.bearer-branch-title {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--sangam-text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sangam-accent);
}

/* Office Bearers combined page - tabs, back button */
.office-bearers-page {
  padding: 2rem;
}

.bearer-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--sangam-card);
  border: 2px solid var(--sangam-accent-teal);
  border-radius: var(--sangam-radius);
  color: var(--sangam-accent-teal);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bearer-back-home:hover {
  background: var(--sangam-accent-teal);
  color: white;
}

.bearer-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-radius: var(--sangam-radius);
  overflow: hidden;
  border: 1px solid var(--sangam-accent);
  background: var(--sangam-card);
}

.bearer-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.bearer-tab:first-child {
  border-right: 1px solid var(--sangam-accent);
}

.bearer-tab.active {
  background: var(--sangam-accent);
  color: white;
}

.bearer-tab:not(.active) {
  background: var(--sangam-card);
  color: var(--sangam-accent);
}

.bearer-tab:not(.active):hover {
  background: var(--sangam-bg-alt);
}

.bearer-tab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bearer-tab.active .bearer-tab-icon {
  fill: white;
}

.bearer-tab:not(.active) .bearer-tab-icon {
  fill: var(--sangam-accent);
}

.bearer-filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.bearer-current-label {
  width: 100%;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sangam-accent);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 2px solid var(--sangam-accent);
  border-bottom: 2px solid var(--sangam-accent);
}

.bearer-current-label .bearer-current-year {
  color: var(--sangam-accent-teal);
}

@media (max-width: 640px) {
  .bearer-current-label {
    font-size: 1.3rem;
  }
}

.bearer-select-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--sangam-text-muted);
  font-weight: 500;
}

.bearer-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--sangam-border);
  border-radius: var(--sangam-radius);
  font-size: 0.95rem;
  min-width: 140px;
  background: var(--sangam-card);
  cursor: pointer;
}

@media (max-width: 768px) {
  .bearer-tabs {
    flex-direction: column;
  }

  .bearer-tab:first-child {
    border-right: none;
    border-bottom: 1px solid var(--sangam-accent);
  }
}

/* =====================
   ORDERS TABLE
===================== */
.orders-section {
  padding: 1.35rem 2rem 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--sangam-border);
  position: relative;
}

/* Decorative accent line at top of orders section */
.orders-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #b08d4a;
  border-radius: 2px;
}

/* Section header row */
.orders-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.orders-section-header h2 {
  font-size: 1.75rem;
  color: var(--sangam-text);
  margin-bottom: 0.25rem;
}

.orders-section-sub {
  font-size: 0.85rem;
  color: var(--sangam-text-muted);
}

.orders-view-all {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sangam-accent-teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--sangam-accent-teal);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.orders-view-all:hover {
  background: var(--sangam-accent-teal);
  color: white;
}

/* Index page — Browse All footer CTA */
.orders-preview-footer {
  text-align: center;
  padding: 0.8rem 0 0.1rem;
}

.orders-browse-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.75rem;
  background: var(--sangam-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(26,51,83,0.18);
}

.orders-browse-all:hover {
  background: var(--sangam-accent);
  box-shadow: 0 4px 14px rgba(26,51,83,0.28);
}

/* orders.php page wrapper */
.orders-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.orders-page-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.orders-page-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sangam-primary);
  margin-bottom: 0.4rem;
}

.orders-page-hero p {
  font-size: 0.92rem;
  color: var(--sangam-text-muted);
}

/* orders.php toolbar */
.orders-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  align-items: center;
}

.orders-page-toolbar .orders-search-wrap {
  flex: 1;
  min-width: 200px;
}

.orders-page-toolbar select {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--sangam-border);
  border-radius: 999px;
  font-size: 0.875rem;
  background: var(--sangam-card);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.orders-page-toolbar select:focus {
  outline: none;
  border-color: var(--sangam-accent-teal);
}

/* Year pills */
.year-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--sangam-bg-alt);
  border-radius: var(--sangam-radius-lg);
  border: 1px solid var(--sangam-border);
}

.year-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--sangam-border);
  background: var(--sangam-card);
  color: var(--sangam-text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.year-pill:hover {
  border-color: var(--sangam-primary);
  color: var(--sangam-primary);
  background: #eef2f8;
}

.year-pill.active {
  background: var(--sangam-primary);
  color: #fff;
  border-color: var(--sangam-primary);
  font-weight: 700;
}

/* orders.php pagination — larger, clearer */
.orders-page-controls button#ordersPrev,
.orders-page-controls button#ordersNext,
.orders-page-controls button#repsPrev,
.orders-page-controls button#repsNext,
.orders-page-controls button#panelsPrev,
.orders-page-controls button#panelsNext {
  width: auto;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.3rem;
}

/* Toolbar */
.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  align-items: center;
}

.orders-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.orders-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
  color: var(--sangam-text-muted);
}

.orders-search-wrap input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.2rem;
  border: 1px solid var(--sangam-border);
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--sangam-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orders-search-wrap input:focus {
  outline: none;
  border-color: var(--sangam-accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.orders-toolbar select {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--sangam-border);
  border-radius: 999px;
  font-size: 0.875rem;
  background: var(--sangam-card);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.orders-toolbar select:focus {
  outline: none;
  border-color: var(--sangam-accent-teal);
}

.orders-clear-btn {
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--sangam-text-muted);
  border: 1px solid var(--sangam-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.orders-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Table */
.orders-table-wrapper {
  overflow-x: auto;
  border-radius: var(--sangam-radius-lg);
  border: 1px solid var(--sangam-border);
  box-shadow: var(--sangam-shadow);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sangam-card);
}

.orders-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: var(--sangam-accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.orders-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sangam-border-soft);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  color: #1e293b;
  vertical-align: middle;
}

.orders-table tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.orders-table tbody tr:nth-child(even) {
  background: var(--sangam-bg-alt);
}

.orders-table tbody tr:hover {
  background: #e4edf8;
  box-shadow: inset 4px 0 0 var(--sangam-primary, #1a3353);
  cursor: pointer;
}

.orders-table tbody tr:hover td {
  color: #0f172a;
}

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

/* Date badge */
.orders-table .col-date {
  width: 155px;
  min-width: 155px;
  max-width: 155px;
}

.orders-table td.date-cell {
  vertical-align: middle;
  text-align: left;
  padding: 0.4rem 0.5rem;
}

/* Date badge — wall calendar style */
.order-date-cal {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: 70px;
  border-radius: 0 0 6px 6px;
  overflow: visible;
  background: #f5f5f5;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12);
  position: relative;
  text-align: center;
}

/* Calendar binding pins */
.cal-pin {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d0d0d0, #888);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.5);
  z-index: 2;
}

.cal-pin:first-child {
  left: 12px;
}

.cal-pin:nth-child(2) {
  right: 12px;
}

.cal-month {
  display: block;
  padding: 6px 4px 4px;
  background: linear-gradient(180deg, #c0392b 0%, #a93226 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: 'Inter', 'Arial', sans-serif;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.cal-day {
  display: block;
  padding: 4px 4px 2px;
  background: #fff;
  color: #2c2c2c;
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.1;
}

.cal-year {
  display: block;
  padding: 3px 4px 5px;
  background: #eaeaea;
  color: #555;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Inter', 'Arial', sans-serif;
  letter-spacing: 0.08em;
  line-height: 1;
  border-radius: 0 0 6px 6px;
  border-top: 1px solid #ddd;
}

/* Fallback plain badge (used if date is unparseable) */
.order-date-badge {
  display: inline-block;
  background: var(--sangam-bg-alt);
  border: 1px solid var(--sangam-border);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sangam-primary);
  letter-spacing: 0.01em;
}

/* Order link */
.order-link {
  color: var(--sangam-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  text-underline-offset: 3px;
}

.order-link:hover {
  color: var(--sangam-accent-teal);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

/* NEW badge */
.orders-table .badge-new {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  margin-left: 0.5rem;
  border: 1px solid #bbf7d0;
  animation: pulse-new 2s ease-in-out infinite;
}

@keyframes pulse-new {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Skeleton loading rows */
.skeleton-row td { border-bottom: 1px solid var(--sangam-border-soft); padding: 0.85rem 1rem; }
.skeleton {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  width: 100%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pagination */
.orders-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.75rem;
}

.orders-summary {
  font-size: 0.85rem;
  color: var(--sangam-text-muted);
}

.orders-page-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.orders-page-controls button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sangam-border);
  background: var(--sangam-card);
  border-radius: var(--sangam-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  color: var(--sangam-text);
}

.orders-page-controls button:hover:not(:disabled) {
  background: var(--sangam-accent);
  color: white;
  border-color: var(--sangam-accent);
}

.orders-page-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.orders-page-controls #ordersPageNums,
.orders-page-controls #repsPageNums,
.orders-page-controls #panelsPageNums {
  display: inline-flex;
  gap: 0.2rem;
}

.orders-page-controls button.page-num {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.orders-page-controls button.page-num.active {
  background: var(--sangam-accent);
  color: white;
  border-color: var(--sangam-accent);
  font-weight: 700;
}

/* =====================
   ARCHIVES & MINALAI
===================== */
.archives-minalai {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  padding: 1.75rem 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.archives-card,
.minalai-card {
  background: var(--sangam-card);
  border-radius: var(--sangam-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--sangam-border);
  /* 3D depth: layered shadows simulate a lifted card with a coloured floor shadow */
  box-shadow:
    0 1px 0 #c8d3e8,          /* hard bottom edge — gives the "thickness" */
    0 2px 0 #b8c6dc,          /* second layer of thickness */
    0 3px 0 #a8b8d0,          /* third layer */
    0 4px 8px rgba(0,0,0,0.08),
    0 8px 20px rgba(37,99,235,0.07);
  transform: translateY(-2px); /* slight lift so the stacked layers show */
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
  position: relative;
}

.archives-card:hover,
.minalai-card:hover {
  box-shadow:
    0 1px 0 #b0c0d8,
    0 2px 0 #a0b0cc,
    0 3px 0 #90a2be,
    0 6px 16px rgba(37, 99, 235, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28);
}

.archives-card h3,
.minalai-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--sangam-text);
}

.archives-card p,
.minalai-card p {
  color: var(--sangam-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Plain text links inside cards (e.g. "All Editions →") */
.archives-card a:not(.btn),
.minalai-card a:not(.btn) {
  color: var(--sangam-accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.archives-card a:not(.btn):hover,
.minalai-card a:not(.btn):hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Primary button inside archive/minalai cards */
.archives-card .btn,
.minalai-card .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  letter-spacing: 0.01em;
}

.archives-card .btn:hover,
.minalai-card .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  color: #ffffff !important;
  text-decoration: none;
}

/* Secondary button (Download) */
.minalai-card .btn-secondary {
  background: transparent;
  color: #2563eb !important;
  border: 1.5px solid #2563eb;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.minalai-card .btn-secondary:hover {
  background: #2563eb;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  text-decoration: none;
}

.minalai-thumbnail {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--sangam-radius);
  margin-bottom: 1rem;
  border: 1px solid var(--sangam-border);
}

.minalai-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.minalai-actions .btn {
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* =====================
   FOOTER
===================== */
footer {
  background: linear-gradient(180deg, #0c1a33 0%, #0a1628 100%);
  color: #cbd5e1;
  padding: 0;
  margin-top: 3rem;
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 2.5rem;
  padding: 3rem 2rem 2rem;
}

.footer-col-visitor .footer-bottom-visitor {
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #f472b6;
}

.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 1rem;
}

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

.footer-contact-list li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
}

.footer-icon {
  color: #f472b6;
  margin-right: 0.4rem;
  font-size: 0.85em;
}

.footer-contact-list a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: #f472b6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

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

.footer-links-grid ul li {
  padding: 0.3rem 0;
}

.footer-links-grid a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links-grid a:hover {
  color: #f472b6;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  position: relative;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-bottom-visitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a1628 0%, #162a4a 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.footer-bottom-center {
  text-align: center;
  flex: 1;
}

.footer-slogan {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.visitor-dial-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bd7ff;
}

.visitor-dial {
  display: flex;
  gap: 3px;
}

.dial-digit {
  width: 22px;
  height: 30px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 1px 2px rgba(0,191,255,0.1);
}

.dial-digit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  z-index: 2;
}

.dial-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.dial-strip span {
  width: 22px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #00bfff;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', monospace;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
}

/* =====================
   MODAL - WhatsApp Theme
===================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Header bar */
.modal-wa-header {
  background: #075E54;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  flex-shrink: 0;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.modal-wa-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.modal-wa-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-wa-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

/* Chat body with WhatsApp wallpaper */
.modal-wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  background-color: #E5DDD5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4b5a5' fill-opacity='0.25'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Message bubble */
.modal-wa-bubble {
  background: #DCF8C6;
  border-radius: 8px 8px 2px 8px;
  padding: 0.65rem 0.85rem 0.45rem;
  max-width: 92%;
  margin-left: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  position: relative;
}

.modal-wa-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent #DCF8C6 transparent;
}

.modal-wa-bubble-text {
  font-size: 0.93rem;
  color: #111;
  line-height: 1.55;
  word-break: break-word;
}

.modal-wa-time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: #667781;
  margin-top: 0.3rem;
}

/* Image preview in modal bubble */
.modal-wa-media {
  display: block;
  margin-bottom: 0.5rem;
}
.modal-wa-media img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* PDF attachment bar (WhatsApp-style) */
.modal-wa-pdf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #d4edc9;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: #111;
}
.modal-wa-pdf-icon { font-size: 1.6rem; flex-shrink: 0; }
.modal-wa-pdf-info { display: flex; flex-direction: column; min-width: 0; }
.modal-wa-pdf-name { font-size: 0.82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-wa-pdf-label { font-size: 0.7rem; color: #667781; }

/* =====================
   UTILITIES
===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--sangam-accent);
  color: white;
  border-radius: var(--sangam-radius);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--sangam-accent-hover);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--sangam-text);
}

/* Bearer page main heading - large, with icon, red underline */
.bearer-page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sangam-accent);
  margin: 2rem 0 0.75rem;
  text-align: center;
}

.bearer-page-title .bearer-icon {
  width: 32px;
  height: 32px;
  fill: var(--sangam-accent);
  flex-shrink: 0;
}

.bearer-page-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.bearer-page-title-underline {
  width: 120px;
  height: 3px;
  background: #DC2626;
  margin: 0.5rem auto 0;
}

/* =====================
   SHARED PAGE STYLES
===================== */
.page-section {
  padding: 2rem 0 3rem;
}

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================
   KBF PAGE
===================== */
.kbf-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.kbf-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sangam-primary);
  margin-bottom: 0.5rem;
}

.kbf-hero p {
  font-size: 1.15rem;
  color: var(--sangam-text-muted);
  font-weight: 300;
}

.kbf-quote {
  background: var(--sangam-bg-alt);
  border-left: 4px solid var(--sangam-accent);
  border-radius: 0 var(--sangam-radius-md) var(--sangam-radius-md) 0;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.kbf-quote p {
  font-style: italic;
  color: var(--sangam-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.kbf-quote h2 {
  color: var(--sangam-primary);
  font-size: 1.6rem;
  margin: 0;
}

.kbf-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kbf-card {
  background: white;
  border-radius: var(--sangam-radius-md);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--sangam-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kbf-card:nth-child(2n) {
  border-top-color: var(--sangam-primary);
}

.kbf-card:nth-child(3n) {
  border-top-color: #2563eb;
}

.kbf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.kbf-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sangam-primary);
  margin-bottom: 0.75rem;
}

.kbf-card p {
  line-height: 1.8;
  color: var(--sangam-text);
  margin-bottom: 0.5rem;
}

.kbf-card p:last-child {
  margin-bottom: 0;
}

.kbf-amount {
  display: inline-block;
  background: var(--sangam-accent);
  color: white;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9em;
}

.kbf-cta,
.kbf-cert,
.minalai-cta {
  text-align: center;
  background: var(--sangam-bg-alt);
  border-radius: var(--sangam-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.kbf-cta h2,
.kbf-cert h2,
.minalai-cta h2 {
  color: var(--sangam-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.kbf-cta p,
.kbf-cert p,
.minalai-cta p {
  color: var(--sangam-text-muted);
  margin-bottom: 1rem;
}

.kbf-cert-btn {
  display: inline-block;
  background: var(--sangam-primary);
  color: white;
  padding: 0.7rem 2rem;
  border-radius: var(--sangam-radius-md);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kbf-cert-btn:hover {
  background: #0f2a4a;
  transform: translateY(-2px);
  color: white;
}

/* =====================
   MINALAI PAGE
===================== */
.minalai-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.minalai-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sangam-primary);
}

.minalai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.minalai-content-card {
  background: #e3eff8;
  border-radius: var(--sangam-radius-md);
  padding: 1.5rem 1.75rem;
}

.minalai-content-card p {
  line-height: 1.8;
  color: var(--sangam-text);
  margin-bottom: 0.75rem;
}

.minalai-content-card p:last-child {
  margin-bottom: 0;
}

.minalai-dropcap {
  float: left;
  font-size: 3.2rem;
  line-height: 0.85;
  font-weight: 800;
  margin-right: 0.4rem;
  color: var(--sangam-primary);
  font-family: Georgia, 'Times New Roman', serif;
}

.minalai-info-box {
  background: var(--sangam-bg-alt);
  border-left: 4px solid var(--sangam-primary);
  border-radius: 0 var(--sangam-radius-md) var(--sangam-radius-md) 0;
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
}

.minalai-info-box p {
  line-height: 1.7;
  color: var(--sangam-text);
  margin-bottom: 0.5rem;
}

.minalai-info-box p:last-child {
  margin-bottom: 0;
}

.minalai-info-box a {
  color: var(--sangam-primary);
  font-weight: 600;
}

.minalai-highlight {
  color: var(--sangam-primary);
  background: rgba(26, 59, 96, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.minalai-phone {
  display: inline-block;
  background: var(--sangam-primary);
  color: white !important;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9em;
}

.minalai-phone:hover {
  background: #0f2a4a;
}

.minalai-editorial {
  margin-bottom: 2rem;
}

.minalai-editorial h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sangam-primary);
  margin-bottom: 1.25rem;
}

.minalai-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.minalai-member {
  background: #d4f0ec;
  padding: 0.75rem 1rem;
  border-radius: var(--sangam-radius-md);
  font-weight: 700;
  color: var(--sangam-text);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.minalai-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.minalai-message {
  background: var(--sangam-bg-alt);
  border-left: 4px solid var(--sangam-primary);
  border-radius: 0 var(--sangam-radius-lg) var(--sangam-radius-lg) 0;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.minalai-message h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sangam-primary);
  margin-bottom: 0.75rem;
}

.minalai-message p {
  line-height: 1.8;
  color: var(--sangam-text);
  margin-bottom: 0.5rem;
}

.minalai-signature {
  color: var(--sangam-primary);
  font-style: italic;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .page-container {
    padding: 0 1rem;
  }

  .kbf-hero h1,
  .minalai-hero h1 {
    font-size: 1.6rem;
  }

  .minalai-grid {
    grid-template-columns: 1fr;
  }

  .minalai-editorial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kbf-quote,
  .kbf-card,
  .minalai-content-card,
  .minalai-info-box,
  .minalai-message {
    padding: 1.25rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .minalai-editorial-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .header-brand-deco {
    display: none;
  }

  /* Breadcrumb bar: compact on mobile */
  .breadcrumb-bar {
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.7rem;
  }

  .breadcrumb-logo {
    height: 28px;
  }

  .breadcrumb-datetime {
    display: none;
  }

  /* Header branding: compact row on mobile */
  .header-brand {
    padding: 0.3rem 0.5rem;
    gap: 0.4rem;
  }

  .header-brand-logo {
    height: 32px;
  }


  /* News ticker: compact on mobile */
  .news-ticker {
    height: 2rem;
  }

  .news-ticker-ribbon {
    font-size: 0.52rem;
    padding: 0 0.85rem 0 0.6rem;
    gap: 0.35rem;
    letter-spacing: 0.08em;
  }

  .news-ticker-ribbon::before {
    width: 0.35rem;
    height: 0.35rem;
  }

  .news-ticker-item {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0 0.7rem;
    gap: 0.4rem;
  }

  .news-ticker-badge {
    padding: 0.18rem 0.42rem;
    font-size: 0.45rem;
    letter-spacing: 0.1em;
  }

  .news-ticker-items::before,
  .news-ticker-items::after {
    width: 1.2rem;
  }

  /* 2 & 4. Carousel: normal style (no peek), reduced height */
  .carousel-section {
    width: 100%;
    height: 330px;
    margin: 0.7rem 0 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .navbar {
    height: 36px;
    min-height: 36px;
  }

  .news-section,
  .orders-section,
  .archives-minalai {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .footer-col-visitor .footer-bottom-visitor {
    margin-top: 0.5rem;
  }

  .dial-digit {
    width: 22px;
    height: 28px;
  }

  .dial-strip span {
    width: 22px;
    height: 28px;
    font-size: 0.9rem;
  }

  .news-cards {
    padding: 0.5rem 1rem 1.5rem;
  }

  .news-card {
    min-width: 280px;
    max-width: 300px;
  }

  .news-scroll-btn {
    display: none;
  }

  .nav-links {
    display: none;
    border-radius: 0;
    background: none;
    padding: 0;
  }

  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 90vw);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    z-index: 999;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    gap: 0.25rem;
    justify-content: flex-start;
    align-items: stretch;
  }

  /* Mobile drawer: stack trigger + submenu vertically (override desktop tab flex) */
  .nav-links.mobile-active li {
    display: block;
    width: 100%;
  }
  .nav-links.mobile-active > li > a {
    margin-bottom: 0;
    border-bottom: none;
  }

  .nav-links.mobile-active a {
    color: #374151;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }

  .nav-links.mobile-active a:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
  }

  .nav-links.mobile-active a.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border-left: 3px solid #b08d4a;
  }

  .burger {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
  }

  .archives-minalai {
    grid-template-columns: 1fr;
  }

  /* Mega menu: mobile - inline expandable */
  .has-mega {
    position: static;
  }

  .mega-menu {
    position: static;
    transform: none;
    min-width: unset;
    width: 100%;
    border-radius: 8px;
    border-top: none;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    margin-top: 0.4rem;
    background: #f9fafb;
    opacity: 1;
    transition: none;
  }

  .has-mega:hover .mega-menu {
    display: none;
  }

  .has-mega.mega-open .mega-menu {
    display: block !important;
    opacity: 1;
    transform: none;
  }

  .mega-arrow {
    float: right;
    font-size: 0.75em;
  }

  .has-mega.mega-open .mega-arrow {
    transform: rotate(180deg);
  }

  .mega-col ul {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .mega-col ul li a {
    white-space: normal;
    color: #374151;
  }

  .mega-col ul li a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-bottom-color: #d4af37;
  }
}

@media (max-width: 480px) {
  .breadcrumb-bar {
    height: 30px;
    padding: 0 0.5rem;
  }

  .breadcrumb-logo {
    height: 20px;
  }

  /* Header branding: compact on small mobile */
  .header-brand-logo {
    height: 22px;
  }

  .header-brand {
    gap: 0.25rem;
    padding: 0.25rem 0.35rem;
  }

  .header-brand-tamil {
    font-size: clamp(0.42rem, 2.6vw, 0.7rem);
  }

  .header-brand-sub {
    font-size: clamp(0.32rem, 1.8vw, 0.5rem);
  }

  .visitor-counter-section {
    padding: 1rem 0.75rem;
  }

  .visitor-counter {
    padding: 1rem 1.5rem;
    min-width: 160px;
  }

  .visitor-counter .count {
    font-size: 1.6rem;
  }

  .visitor-counter-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .dial-digit {
    width: 18px;
    height: 24px;
  }

  .dial-strip span {
    width: 18px;
    height: 24px;
    font-size: 0.75rem;
  }

  .orders-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-search-wrap {
    min-width: unset;
  }

  .orders-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Archives and Minalai Section - responsive overrides */
@media (max-width: 900px) {
  .archives-minalai {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .archives-minalai {
    grid-template-columns: 1fr;
  }
}

.archives-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.archives-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D9488 0%, #1E3A5F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.3rem;
}

.panels-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.archives-card h3 {
  color: var(--sangam-accent, #1E3A5F);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.archives-desc {
  color: var(--sangam-text-muted, #6B7280);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  max-width: 260px;
}

.archives-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0.3rem 0;
}

.archives-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0D9488;
  font-family: 'Tahoma', sans-serif;
}

.archives-stat-label {
  font-size: 0.75rem;
  color: var(--sangam-text-muted, #6B7280);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.minalai-card h3 {
  color: var(--sangam-primary);
  margin-bottom: 1.5rem;
}

.minalai-thumb-placeholder {
  width: 150px;
  aspect-ratio: 3/4;
  background: #1e293b;
  /* Dark theme for e-book */
  margin: 0 auto 1.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 0.8rem;
  padding: 1rem;
}

.minalai-thumb-placeholder span {
  z-index: 1;
  text-align: center;
}

.minalai-thumb-placeholder canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.minalai-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0;
}

/* Minalai Archive Bookshelf */
.bookshelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.book-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--sangam-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sangam-shadow-md);
}

.book-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: #1e293b;
  margin-bottom: 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: white;
}

.book-label {
  z-index: 1;
  font-size: 0.9rem;
  padding: 1rem;
}

.book-thumbnail-placeholder canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-edition {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.book-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.book-actions .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* =====================
   FLASH BANNERS
===================== */
.flash-banners-section {
  display: flex;
  flex-direction: column;
}

.flash-banner {
  color: white;
  padding: 0;
  overflow: hidden;
}

.flash-banner+.flash-banner {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.flash-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  position: relative;
}

.flash-banner-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.flash-banner-image {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.flash-banner-text-wrap {
  flex: 1;
  min-width: 0;
}

.flash-banner-text {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-banner-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}

.flash-banner-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .flash-banner-content {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .flash-banner-image {
    height: 30px;
    max-width: 80px;
  }

  .flash-banner-text,
  .flash-banner-link {
    font-size: 0.8rem;
  }
}

/* Orders stream redesign */
.orders-section {
  --orders-glow: rgba(13, 148, 136, 0.18);
  --orders-ink: #0f2747;
}

.orders-section-header h2 {
  letter-spacing: -0.03em;
}

.orders-section-sub {
  font-size: 0.95rem;
  color: #56708d;
  max-width: 42rem;
}

.orders-command-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(30, 58, 95, 0.12);
  background:
    radial-gradient(circle at top right, rgba(176, 141, 74, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(30, 58, 95, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(242,247,251,0.95));
  box-shadow:
    0 18px 45px rgba(15, 39, 71, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.orders-command-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 92%);
  pointer-events: none;
}

.orders-shell-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.09);
}

.orders-shell-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orders-ink);
}

.orders-shell-kicker::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #b08d4a);
  box-shadow: 0 0 0 6px rgba(176, 141, 74, 0.18);
}

.orders-shell-note {
  color: var(--sangam-text-muted);
  font-size: 0.86rem;
}

/* Column headings — matches order-card grid (84px | 1fr) */
.orders-col-headings {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.55rem 0.8rem 0.45rem;
  border-bottom: 2px solid #b08d4a;
  background: linear-gradient(135deg, #0c1f5e 0%, #16307a 100%);
}

.orders-col-date,
.orders-col-desc {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.orders-col-date {
  text-align: center;
}

.orders-col-desc {
  text-align: center;
}

@media (max-width: 600px) {
  .orders-col-headings {
    display: none;
  }
}

.orders-stream {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.62rem;
  padding: 0.8rem;
}

.order-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}

.order-card-date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 4px 10px rgba(15, 39, 71, 0.05);
}

.order-card-content {
  min-width: 0;
}

.order-card-link {
  display: block;
  min-height: 100%;
  padding: 0.62rem 0.78rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--orders-ink);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 6px 14px rgba(15, 39, 71, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.order-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(176, 141, 74, 0.4);
  box-shadow: 0 16px 30px rgba(15, 39, 71, 0.1);
}

.order-card-link-static {
  cursor: default;
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  margin-bottom: 0.2rem;
}

.order-chip,
.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-chip {
  background: rgba(16, 40, 73, 0.08);
  color: #183c68;
}

.order-card .badge-new {
  position: relative;
  min-height: 20px;
  vertical-align: middle;
  padding: 0.1rem 0.55rem 0.1rem 0.62rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid rgba(21, 128, 61, 0.45);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.28);
}

.order-card .badge-new::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
  animation: orderNewPulse 1.6s ease-in-out infinite;
}

.order-chip-soft {
  background: rgba(13, 148, 136, 0.08);
  color: #0d776e;
}

.order-card-title {
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 700;
  color: #12345c;
}

.order-card .order-date-cal {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 62px;
  min-width: 62px;
  border-radius: 8px;
  overflow: visible;
  background: #f5f5f5;
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  position: relative;
  text-align: center;
}

.order-card .order-date-cal .cal-month {
  display: block !important;
  padding: 5px 3px 3px;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #16307a 0%, #0c1f5e 100%);
  font-family: 'Inter', 'Arial', sans-serif;
  border-radius: 8px 8px 0 0;
}

.order-card .order-date-cal .cal-day {
  display: block !important;
  padding: 4px 3px 2px;
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 900;
  color: #2c2c2c;
  background: #fff;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.order-card .order-date-cal .cal-year {
  display: block !important;
  padding: 3px 3px 4px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #0c1f5e;
  background: linear-gradient(180deg, #fbf3da 0%, #f0e2b8 100%);
  font-family: 'Inter', 'Arial', sans-serif;
  letter-spacing: 0.08em;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(176, 141, 74, 0.3);
}

.orders-empty-state {
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 20px;
  background: rgba(255,255,255,0.74);
  color: var(--sangam-text-muted);
}

@keyframes orderNewPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(176, 141, 74, 0.18);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(176, 141, 74, 0.1);
  }
}

.orders-empty-icon {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.08);
  color: #0d776e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orders-empty-error {
  color: #b91c1c;
}

.order-card-skeleton {
  height: 138px;
  border-radius: 22px;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.65) 8%, rgba(232,239,245,0.96) 18%, rgba(255,255,255,0.65) 33%);
  background-size: 200% 100%;
  animation: ordersShimmer 1.35s linear infinite;
}

@keyframes ordersShimmer {
  to { background-position-x: -200%; }
}

.orders-page-shell {
  margin-bottom: 1.4rem;
}

.orders-preview-shell {
  margin-top: 1.2rem;
}

/* =====================
   DIAMOND JUBILEE — commemorative video section
===================== */
.jubilee-section {
  max-width: 1200px;
  margin: 1.4rem auto;
  padding: 1.6rem 1.4rem 1.8rem;
  border-radius: 16px;
  border-top: 3px solid #b08d4a;
  background: linear-gradient(160deg, #0a1628 0%, #16307a 100%);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(12, 31, 94, 0.2);
}
.jubilee-head {
  text-align: center;
  margin-bottom: 1.3rem;
}
.jubilee-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e7d4a8;
}
.jubilee-title {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: #ffffff;
  margin: 0.4rem 0 0.2rem;
}
.jubilee-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.jubilee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.jubilee-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(176, 141, 74, 0.45);
  border-radius: 12px;
  overflow: hidden;
}
.jubilee-video {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1f2d3f, #0c1f5e);
  cursor: pointer;
  overflow: hidden;
}
.jubilee-vid {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0a1628;
}
.jubilee-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(176, 141, 74, 0.92);
  color: #0c1f5e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}
.jubilee-video:hover .jubilee-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #d4af37;
}
.jubilee-video.playing .jubilee-play {
  display: none;
}
.jubilee-card-label {
  padding: 0.7rem 0.8rem;
  text-align: center;
}
.jubilee-card-label strong {
  display: block;
  color: #e7d4a8;
  font-size: 0.92rem;
  font-weight: 600;
}
.jubilee-card-label span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}
@media (max-width: 768px) {
  .jubilee-section {
    margin: 1rem 0;
    border-radius: 0;
    padding: 1.2rem 1rem 1.4rem;
  }
  .jubilee-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* =====================
   EC / AREA MEETINGS PAGE — full-page grid of meeting cards
===================== */
.meetings-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.6rem 2rem 2.6rem;
}
.meetings-page-hero {
  text-align: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #b08d4a;
}
.meetings-page-hero h1 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #0c1f5e;
  margin: 0;
}
.meetings-page-hero p {
  margin: 0.4rem 0 0;
  color: #56708d;
  font-size: 0.95rem;
}
.meetings-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  overflow: visible !important;
  padding: 0 !important;
}
.meetings-grid .meeting-card {
  min-width: 0;
  max-width: none;
  width: auto;
}
.meetings-empty {
  text-align: center;
  color: #56708d;
  padding: 3rem 1rem;
}
@media (max-width: 768px) {
  .meetings-page-wrap {
    padding: 1.2rem 1rem 2rem;
  }
  .meetings-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   ORDERS — Split dashboard (homepage): navy info rail + scrolling list
===================== */
.orders-split {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.orders-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  border-radius: 16px;
  border-bottom: 3px solid #b08d4a;
  background: linear-gradient(160deg, #0a1628 0%, #16307a 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(12, 31, 94, 0.18);
  overflow: hidden;
}
.orders-rail-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e7d4a8;
}
.orders-rail-title {
  margin: 0.55rem 0 0;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
}
.orders-rail-stat {
  display: flex;
  flex-direction: column;
  margin: 1.4rem 0;
}
.orders-rail-num {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: #e7d4a8;
}
.orders-rail-label {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}
.orders-rail-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #b08d4a;
  color: #e7d4a8;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.orders-rail-btn:hover {
  background: #b08d4a;
  color: #0c1f5e;
}

.orders-list-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(30, 58, 95, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(12, 31, 94, 0.08);
  overflow: hidden;
}
.orders-list-head {
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid #b08d4a;
  background: linear-gradient(135deg, rgba(12, 31, 94, 0.05), transparent);
}

/* =====================
   ORDERS — Grouped by month (homepage): 3 recency columns
===================== */
.orders-grouped-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}
.orders-grouped-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b08d4a;
}
.orders-grouped-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.2;
  font-weight: 700;
  color: #0c1f5e;
}
.orders-grouped-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.orders-grouped-count {
  font-size: 1.9rem;
  font-weight: 800;
  color: #b08d4a;
  line-height: 1;
}
.orders-grouped-count-label {
  font-size: 0.72rem;
  line-height: 1.15;
  color: var(--text-muted, #64748b);
}
.orders-grouped-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #16307a;
  color: #e7d4a8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.orders-grouped-btn:hover { background: #0a1628; }

.orders-grouped-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.orders-col {
  background: #f6f8fc;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 14px;
  padding: 0.9rem;
}
/* Brighten the newest (green-accented) column so it stands out */
.orders-col[style*="16a34a"] {
  background: #f1fcf5;
  border-color: rgba(22, 163, 74, 0.18);
}
/* Matching warm tint for the second (gold-accented, June) column */
.orders-col[style*="b08d4a"] {
  background: #fdf9ef;
  border-color: rgba(176, 141, 74, 0.2);
}
.orders-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: #0c1f5e;
  border-bottom: 2px solid var(--orders-col-accent, #b08d4a);
  padding-bottom: 9px;
  margin-bottom: 12px;
}
.orders-col-head > span:first-child {
  position: relative;
  padding-left: 13px;
}
.orders-col-head > span:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.05rem;
  border-radius: 3px;
  background: var(--orders-col-accent, #b08d4a);
}
.orders-col-count {
  flex: 0 0 auto;
  background: var(--orders-col-accent, #b08d4a);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 2px 10px;
  border-radius: 999px;
}
.orders-col-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #ffffff;
  border: 0.5px solid rgba(30, 58, 95, 0.1);
  border-radius: 9px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 7px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
a.orders-col-item:hover {
  box-shadow: 0 5px 14px rgba(12, 31, 94, 0.1);
  transform: translateY(-1px);
  border-color: var(--orders-col-accent, #b08d4a);
}
.orders-col-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 30px;
  padding-top: 1px;
}
.orders-col-day {
  font-size: 1.2rem;
  font-weight: 800;
  color: #16307a;
  line-height: 1;
}
.orders-col-mon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b08d4a;
  margin-top: 2px;
}
.orders-col-text {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.orders-col-new {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #166534;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}
.orders-col-more {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #16307a;
  text-decoration: none;
  padding: 6px;
  margin-top: 2px;
}
.orders-col-more:hover { text-decoration: underline; }
.orders-grouped-empty {
  text-align: center;
  color: var(--text-muted, #64748b);
  padding: 2rem 1rem;
}

/* =====================
   PRESS CLIPPINGS — seamless looping newspaper-cutting strip
===================== */
.press-section {
  max-width: 1160px;
  margin: 1.4rem auto;
  padding: 1.6rem 1.8rem 2rem;
  background: #f6f1e7;
  background-image:
    repeating-linear-gradient(0deg, rgba(120,105,70,0.04) 0, rgba(120,105,70,0.04) 1px, transparent 1px, transparent 4px);
  border: 1px solid #d9cfb8;
  border-radius: 8px;
}
.press-masthead-wrap {
  text-align: center;
  border-bottom: 3px double #1a1a1a;
  padding-bottom: 10px;
  margin-bottom: 1.4rem;
}
.press-masthead {
  font-family: Georgia, 'Times New Roman', 'Noto Serif', serif;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  line-height: 1.05;
}
.press-mast-sub {
  display: inline-block;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #1a1a1a;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a4438;
}

.press-strip {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.press-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 1rem 0.4rem 0.8rem;
  will-change: transform;
  animation: pressScroll 70s linear infinite;
}
.press-strip:hover .press-track { animation-play-state: paused; }
@keyframes pressScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .press-track { animation: none; }
}

.press-card {
  position: relative;
  flex: 0 0 auto;
  width: 234px;
  background: #fffdf6;
  border: 1px solid #ddd3bd;
  border-radius: 2px;
  padding: 10px 10px 12px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(60, 50, 20, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Little tape strip pinning each cutting */
.press-card::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 60px;
  height: 18px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(176, 141, 74, 0.26);
  border: 1px solid rgba(176, 141, 74, 0.22);
}
.press-track .press-card:nth-child(odd) { transform: rotate(-1.3deg); }
.press-track .press-card:nth-child(even) { transform: rotate(1.1deg); }
.press-card:nth-child(even)::before { transform: translateX(-50%) rotate(3deg); }
.press-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 14px 28px rgba(60, 50, 20, 0.24);
  z-index: 2;
}
.press-card-imgwrap {
  height: 150px;
  overflow: hidden;
  background: #eae5d7;
  border: 1px solid #e5dcc6;
}
.press-card-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.35) contrast(1.03) sepia(0.08);
  transition: filter 0.3s ease;
}
.press-card:hover .press-card-imgwrap img { filter: none; }
.press-card-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 3px 0;
  border-top: 1px solid #e5dcc6;
  margin-top: 8px;
}
.press-card-title {
  font-family: Georgia, 'Times New Roman', 'Noto Serif', serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.32;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-card-meta {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: #6b5f45;
}
@media (max-width: 768px) {
  .press-section { padding: 1.4rem 1rem 1.8rem; }
  .press-card { width: 180px; }
  .press-card-imgwrap { height: 120px; }
}

/* Newspaper-themed press clipping lightbox */
.press-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(24, 18, 8, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.press-modal-overlay.active { opacity: 1; visibility: visible; }
.press-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #f6f1e7;
  background-image: repeating-linear-gradient(0deg, rgba(120,105,70,0.045) 0, rgba(120,105,70,0.045) 1px, transparent 1px, transparent 4px);
  border: 1px solid #cdbf9e;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 1.4rem 1.5rem 1.6rem;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.press-modal-overlay.active .press-modal { transform: translateY(0) scale(1); }
.press-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.press-modal-close:hover { background: rgba(26, 26, 26, 0.08); }
.press-modal-head {
  text-align: center;
  border-bottom: 3px double #1a1a1a;
  padding: 0 1.5rem 10px;
  margin-bottom: 14px;
}
.press-modal-source {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5f45;
}
.press-modal-title {
  font-family: Georgia, 'Times New Roman', 'Noto Serif', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 4px 0 0;
}
.press-modal-imgwrap {
  position: relative;
  display: block;
  background: #eae5d7;
  border: 1px solid #ddd3bd;
  padding: 6px;
  cursor: zoom-in;
}
.press-modal-imgwrap img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
}
.press-modal-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(26, 22, 12, 0.72);
  color: #f6f1e7;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.press-modal-imgwrap:hover .press-modal-zoom { opacity: 1; }
.press-modal-caption {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
  color: #3a342a;
  margin: 12px 2px 0;
}
.press-modal-closebtn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 0.6rem 1rem;
  background: #1a1a1a;
  color: #f6f1e7;
  border: none;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.press-modal-closebtn:hover { background: #3a342a; }

@media (max-width: 768px) {
  /* Mobile: swipe the month columns horizontally instead of stacking */
  .orders-grouped-cols {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 6px;
    scroll-padding-left: 2px;
  }
  .orders-grouped-cols::-webkit-scrollbar { display: none; }
  .orders-col {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .orders-grouped-count { font-size: 1.6rem; }
}

/* Compact rows inside the list panel (restyle the shared .order-card markup) */
.orders-split .orders-stream {
  display: block;
  padding: 0.45rem;
}
.orders-split .order-card:nth-child(even) {
  background: #fafbfe;
}
.orders-split .order-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border-bottom: 0.5px solid rgba(30, 58, 95, 0.08);
  transition: background 0.18s ease;
}
.orders-split .order-card:last-child {
  border-bottom: none;
}
.orders-split .order-card:hover {
  background: #f6f8fc;
}
.orders-split .order-card-date-wrap {
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.orders-split .order-card .order-date-cal {
  width: 44px !important;
  min-width: 44px !important;
}
.orders-split .order-card .order-date-cal .cal-month {
  font-size: 0.44rem;
  padding: 3px 2px 2px;
}
.orders-split .order-card .order-date-cal .cal-day {
  font-size: 1rem;
  padding: 2px 2px 1px;
}
.orders-split .order-card .order-date-cal .cal-year {
  font-size: 0.5rem;
  padding: 2px 2px 3px;
}
.orders-split .order-card-content {
  flex: 1;
  min-width: 0;
}
.orders-split .order-card-link {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.orders-split .order-card-link:hover {
  transform: none;
  box-shadow: none;
  border: none;
}
.orders-split .order-card-meta {
  margin-bottom: 0.1rem;
}
.orders-split .order-card-title {
  font-size: 0.82rem;
  line-height: 1.32;
}
.orders-split .order-card-skeleton {
  height: 46px;
  border-radius: 10px;
  margin-bottom: 0.45rem;
}

@media (max-width: 768px) {
  .orders-split {
    grid-template-columns: 1fr;
  }
  .orders-rail {
    padding: 1.1rem 1.2rem;
  }
  .orders-rail-stat {
    margin: 0.9rem 0;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }
  .orders-rail-num {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .orders-section {
    padding: 1.4rem 1rem 2.2rem;
  }

  .orders-section-header,
  .orders-shell-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.4rem;
  }

  .order-card-date-wrap {
    justify-content: center;
    padding: 0.1rem;
    border-radius: 8px;
  }

  .order-card .order-date-cal {
    width: 48px;
    min-width: 48px;
    border-radius: 6px;
  }

  .order-card .order-date-cal .cal-month {
    padding: 3px 2px 2px;
    font-size: 0.44rem;
    letter-spacing: 0.08em;
    border-radius: 6px 6px 0 0;
  }

  .order-card .order-date-cal .cal-day {
    padding: 2px 2px 1px;
    font-size: 1rem;
  }

  .order-card .order-date-cal .cal-year {
    padding: 2px 2px 3px;
    font-size: 0.46rem;
    border-radius: 0 0 6px 6px;
  }

  .order-card-link {
    padding: 0.45rem 0.6rem;
  }

  .order-card-title {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .order-card .badge-new {
    min-height: 20px;
    padding: 0.1rem 0.4rem 0.1rem 0.5rem;
    font-size: 0.55rem;
  }

}

/* ============================================================
   Branch Meeting Bulletins — bulletin-board style
   ============================================================ */
.bulletin-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.bulletin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.bulletin-heading-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bulletin-pin {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

.bulletin-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: 0.01em;
}

.bulletin-view-all {
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #1e3a5f, #2a4a7f);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(30, 58, 95, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bulletin-view-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(30, 58, 95, 0.35);
}

/* Bulletin board grid — paper note cards */
.bulletin-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  padding: 2rem 1.5rem;
  background:
    repeating-linear-gradient(45deg, rgba(180, 140, 90, 0.03) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #f6efe2, #efe6d3);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(120, 90, 50, 0.08),
    0 10px 30px rgba(60, 40, 20, 0.08);
  border: 1px solid rgba(160, 130, 80, 0.18);
}

.bulletin-note {
  --note-accent: #2e7d32;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  border-radius: 10px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 18px rgba(60, 40, 20, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.03);
  transform: rotate(-0.4deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 220px;
  border-top: 4px solid var(--note-accent);
}

.bulletin-note:nth-child(even) {
  transform: rotate(0.5deg);
}

.bulletin-note:nth-child(3n) {
  transform: rotate(-0.7deg);
}

.bulletin-note:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 16px 36px rgba(60, 40, 20, 0.18);
}

/* Push pin at top */
.bulletin-note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #c0392b);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.3),
    inset 0 -2px 2px rgba(0, 0, 0, 0.2),
    inset 1px 1px 1px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.bulletin-note-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(30, 58, 95, 0.18);
}

.bulletin-branch {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--note-accent);
}

.bulletin-date-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
  color: #1e3a5f;
  white-space: nowrap;
}

.bulletin-note-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #6b5d42;
  margin-bottom: 0.6rem;
}

.bulletin-note-body {
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2d2418;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.bulletin-more {
  color: var(--note-accent);
  font-weight: 700;
}

.bulletin-note-gallery {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  position: relative;
}

.bulletin-note-gallery img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bulletin-note-gallery img:hover {
  transform: scale(1.05);
}

.bulletin-gallery-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 6px;
  background: rgba(30, 58, 95, 0.1);
  color: #1e3a5f;
  font-size: 0.85rem;
  font-weight: 700;
}

.bulletin-note-signature {
  margin-top: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(30, 58, 95, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-style: italic;
}

.bulletin-sig-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--note-accent);
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  letter-spacing: 0.01em;
}

.bulletin-sig-role {
  font-size: 0.72rem;
  color: #6b5d42;
  font-style: normal;
}

.bulletin-read-more {
  margin-top: 0.75rem;
  align-self: flex-start;
  background: transparent;
  color: var(--note-accent);
  border: 1px solid var(--note-accent);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bulletin-read-more:hover {
  background: var(--note-accent);
  color: #fff;
}

/* Modal */
.bulletin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: bulletinFadeIn 0.25s ease;
}

.bulletin-modal-overlay.active {
  display: flex;
}

@keyframes bulletinFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bulletin-modal {
  --note-accent: #2e7d32;
  position: relative;
  background: #fffdf7;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  border-top: 6px solid var(--note-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: bulletinSlideUp 0.3s ease;
}

@keyframes bulletinSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bulletin-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #6b5d42;
  transition: color 0.2s ease;
}

.bulletin-modal-close:hover {
  color: #c0392b;
}

.bulletin-modal-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(30, 58, 95, 0.2);
}

.bulletin-modal-branch {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--note-accent);
}

.bulletin-modal-date {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
  color: #1e3a5f;
}

.bulletin-modal-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #6b5d42;
  margin-bottom: 0.85rem;
}

.bulletin-modal-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #2d2418;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bulletin-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.bulletin-modal-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
}

.bulletin-modal-signature {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(30, 58, 95, 0.2);
  font-style: italic;
}

.bulletin-modal-signature .bulletin-sig-name {
  font-size: 1.05rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .bulletin-board {
    grid-template-columns: 1fr;
    padding: 1.25rem 0.9rem;
    gap: 1.25rem;
  }

  .bulletin-note {
    transform: none !important;
  }

  .bulletin-heading h2 {
    font-size: 1.3rem;
  }
}

/* ============================================================
   Branch Meeting Cards — news-card carousel style (current)
   ============================================================ */
.meetings-section {
  /* Inherits from .news-section */
}

.meetings-cards .meeting-card {
  border-left-color: var(--meeting-accent, #2e7d32);
  cursor: pointer;
}

.meetings-cards .meeting-card:hover {
  border-left-color: var(--meeting-accent, #2e7d32);
}

.meeting-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--sangam-border);
}

.meeting-card-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--sangam-border);
}

.meeting-card-placeholder-icon {
  font-size: 3rem;
  opacity: 0.55;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.meeting-card-branch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.meeting-card-branch-pill {
  background: var(--meeting-accent, #2e7d32);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.meeting-card-photo-badge {
  font-size: 0.72rem;
  color: var(--sangam-text-muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.meeting-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--sangam-text-muted);
  margin-bottom: 0.75rem;
}

.meeting-card-venue {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-card .news-card-date {
  color: var(--meeting-accent, #2e7d32);
}

/* On mobile, same behavior as news-cards (single column scroll) */
@media (max-width: 600px) {
  .meetings-cards .meeting-card {
    min-width: 85vw;
    max-width: 85vw;
  }
}

/* ============================================================
   Greetings Spotlight — festive popup modal
   ============================================================ */
.greeting-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.85) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.greeting-overlay.active {
  display: flex;
  opacity: 1;
  animation: greetingFadeIn 0.5s ease;
}

@keyframes greetingFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.greeting-card {
  --g-bg: #fef3c7;
  --g-text: #1e3a5f;
  --g-accent: #dc2626;
  position: relative;
  background: var(--g-bg);
  color: var(--g-text);
  border-radius: 22px;
  max-width: 560px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 60px rgba(255, 255, 255, 0.3);
  border: 4px solid var(--g-accent);
  overflow: hidden;
  animation: greetingPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes greetingPop {
  0% { transform: scale(0.6) rotate(-3deg); opacity: 0; }
  60% { transform: scale(1.04) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Decorative corner sparkles */
.greeting-deco {
  position: absolute;
  width: 80px;
  height: 80px;
  background:
    radial-gradient(circle at 50% 50%, var(--g-accent) 0%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
  border-radius: 50%;
  animation: greetingPulse 3s ease-in-out infinite;
}
.greeting-deco-tl { top: -30px; left: -30px; }
.greeting-deco-tr { top: -30px; right: -30px; animation-delay: 0.5s; }
.greeting-deco-bl { bottom: -30px; left: -30px; animation-delay: 1s; }
.greeting-deco-br { bottom: -30px; right: -30px; animation-delay: 1.5s; }

@keyframes greetingPulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(1.3); opacity: 0.35; }
}

.greeting-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--g-text);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.greeting-close:hover {
  background: var(--g-accent);
  color: #fff;
  transform: rotate(90deg);
}

.greeting-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--g-accent);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  font-family: 'Georgia', 'Trebuchet MS', serif;
}

.greeting-title::before,
.greeting-title::after {
  content: '✦';
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--g-accent);
  opacity: 0.6;
  animation: greetingSparkle 2s ease-in-out infinite;
  font-size: 0.8em;
  vertical-align: middle;
}

.greeting-title::after {
  animation-delay: 1s;
}

@keyframes greetingSparkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 0.6; }
  50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

.greeting-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 1.25rem;
  color: var(--g-text);
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.greeting-image {
  display: block;
  max-width: 100%;
  max-height: 280px;
  margin: 0.5rem auto 1.25rem;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.greeting-message {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--g-text);
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  padding: 0 0.5rem;
}

.greeting-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.greeting-cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--g-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.greeting-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.greeting-dismiss-day {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--g-text);
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.greeting-dismiss-day:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

/* Confetti canvas */
.greeting-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  width: 100vw;
  height: 100vh;
}

/* Theme accents */
.greeting-theme-may_day {
  background-image:
    repeating-linear-gradient(45deg, rgba(220, 38, 38, 0.04) 0 12px, transparent 12px 24px),
    var(--g-bg, #fef2f2);
}

.greeting-theme-new_year .greeting-title {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
}

.greeting-theme-independence {
  background: linear-gradient(180deg, #fef3c7 0%, #ffffff 50%, #d1fae5 100%);
}

.greeting-theme-pongal {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 50%, #d9f99d 100%);
}

.greeting-theme-diwali {
  background:
    radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.4), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(192, 132, 252, 0.3), transparent 40%),
    var(--g-bg, #fff7ed);
}

.greeting-theme-festival {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.25), transparent 50%),
    var(--g-bg, #fef3c7);
}

.greeting-theme-birthday {
  background:
    radial-gradient(circle at 30% 70%, rgba(244, 114, 182, 0.2), transparent 50%),
    var(--g-bg, #fdf2f8);
}

@media (max-width: 600px) {
  .greeting-card {
    padding: 2rem 1.25rem 1.5rem;
    border-width: 3px;
  }
  .greeting-title { font-size: 1.5rem; }
  .greeting-subtitle { font-size: 0.95rem; }
  .greeting-message { font-size: 0.92rem; }
  .greeting-image { max-height: 200px; }
}
