/* ==========================================================================
   BHAI JI MUSEUM | DIGITAL ARCHIVES HOMEPAGE
   Color Palette: Terracotta / Burnt Sienna (#B25E34) & Parchment Cream (#FCF9F2)
   ========================================================================== */

:root {
  /* Exact Terracotta Swatches from Chat Reference */
  --terracotta-primary: #B25E34;
  --terracotta-hover:   #9C4C24;
  --terracotta-dark:    #823A17;
  --terracotta-deep:    #63290D;
  --terracotta-light:   #C46F46;
  --terracotta-wash:    #F8EDE6;
  --terracotta-border:  #E2C7B7;

  /* Cream / Parchment Swatches */
  --parchment-bg:       #FCF9F2;
  --parchment-card:     #FFFFFF;
  --parchment-subtle:   #F7F1E6;
  --parchment-border:   #E8DAC8;
  --parchment-border-subtle: #EFE6DA;

  /* Typography Colors */
  --text-heading:       #381E15;
  --text-body:          #685246;
  --text-muted:         #948074;
  --text-light:         #FBF7F2;

  /* Accent Tones */
  --gold-accent:        #C88A45;
  --gold-wash:          #FBF2E6;

  /* Typography Font Families */
  --font-serif-en:      'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif-quote:   'Cormorant Garamond', Georgia, serif;
  --font-serif-hi:      'Noto Serif Devanagari', 'Rozha One', serif;
  --font-sans:          'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Transitions & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 6px rgba(56, 30, 21, 0.05);
  --shadow-md: 0 6px 18px rgba(56, 30, 21, 0.08);
  --shadow-lg: 0 14px 34px rgba(56, 30, 21, 0.12);
  --shadow-card-hover: 0 10px 24px rgba(178, 94, 52, 0.16);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--parchment-bg);
  color: var(--text-body);
}

body {
  font-family: var(--font-sans);
  background-color: var(--parchment-bg);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Language Switch Support */
body.lang-hi .brand-english,
body.lang-hi .vatika-title {
  letter-spacing: 0.08em;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.utility-bar {
  background-color: var(--terracotta-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heritage-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #E2B278;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(226, 178, 120, 0.3);
  animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.utility-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.view-switch-group {
  display: flex;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-pill);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-pill);
}

.view-btn.active {
  background: #FFFFFF;
  color: var(--terracotta-deep);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.lang-switch-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.lang-btn {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  padding: 2px 4px;
}

.lang-btn.active {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-sep {
  opacity: 0.4;
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: rgba(252, 249, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--parchment-border);
  box-shadow: 0 2px 12px rgba(56, 30, 21, 0.03);
}

.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta-primary);
  padding: 1px;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(178, 94, 52, 0.15);
}

.nav-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-hindi {
  font-family: var(--font-serif-hi);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--terracotta-primary);
  line-height: 1.2;
}

.brand-english {
  font-family: var(--font-serif-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-heading);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--terracotta-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--terracotta-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  border: 1px solid var(--parchment-border);
  background: #FFFFFF;
}

.search-trigger:hover {
  color: var(--terracotta-primary);
  border-color: var(--terracotta-primary);
  background: var(--terracotta-wash);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(178, 94, 52, 0.22);
}

.nav-cta-btn:hover {
  background-color: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(178, 94, 52, 0.3);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   SIGNATURE HERO SECTION: Interactive Split-Screen Slider
   ========================================================================== */
.archive-launch-hero {
  padding: 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  background-color: #1A0E08;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background-color: #1A0E08;
  overflow: hidden;
}

/* Autoplay Progress Bar at Top */
.slider-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(0, 0, 0, 0.15);
  z-index: 25;
}

.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-accent), var(--terracotta-primary));
  transition: width 0.1s linear;
}

/* Slider Track & Image Slides */
.hero-slides-track {
  position: relative;
  width: 100%;
  background-color: #1A0E08;
}

.hero-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.hero-slide.active {
  display: block;
  opacity: 1;
}

.slide-image-wrapper {
  width: 100%;
  height: clamp(500px, 72vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1A0E08;
  overflow: hidden;
  position: relative;
}

.slider-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Slide Caption Overlay */
.slide-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(20, 10, 6, 0.90) 0%, rgba(20, 10, 6, 0.45) 60%, transparent 100%);
  padding: 40px 60px 68px 60px;
  color: #FFFFFF;
  z-index: 5;
  pointer-events: none;
}

.slide-caption-tag {
  display: inline-block;
  font-family: var(--font-serif-en);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 138, 69, 0.4);
}

.slide-caption-title {
  font-family: var(--font-serif-quote);
  font-size: 1.9rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.25;
}

.slide-caption-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.90);
  max-width: 680px;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(380px, 42%) 1fr;
  min-height: 560px;
  background-color: #FFFFFF;
}

/* Navigation Arrows */
.slider-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--parchment-border);
  color: var(--terracotta-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(56, 30, 21, 0.14);
  transition: all var(--transition-fast);
}

.slider-nav-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-nav-arrow.arrow-prev {
  left: 24px;
}

.slider-nav-arrow.arrow-next {
  right: 24px;
}

.slider-nav-arrow:hover {
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  border-color: var(--terracotta-primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(178, 94, 52, 0.3);
}

/* Simple Minimalist Navigation Dots */
.slider-simple-dots,
.slider-dots-group {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(18, 10, 6, 0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.slider-dot:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  transform: scale(1.25);
}

.slider-dot.active {
  width: 28px;
  border-radius: 6px;
  background-color: var(--terracotta-primary);
  border-color: var(--terracotta-primary);
  box-shadow: 0 0 12px rgba(178, 94, 52, 0.85), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Special Slide Badges */
.slide-emblem-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #FAF1E4 0%, #E8D3B8 100%);
  color: var(--terracotta-deep);
  border-radius: 50%;
  padding: 8px;
}

.emblem-century-num {
  font-family: var(--font-serif-quote);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--terracotta-primary);
}

.emblem-century-sub {
  font-family: var(--font-serif-en);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pub-ring-accent {
  border: 3px solid var(--gold-accent) !important;
}

/* LEFT PANEL: Terracotta Identity Column */
.hero-left-col {
  background-color: var(--terracotta-primary);
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(180deg, rgba(178, 94, 52, 0.95) 0%, rgba(130, 58, 23, 0.98) 100%);
  color: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 32px 24px 32px;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Architectural background watermark */
.hero-left-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
}

/* Corner Botanical Leaf Art */
.botanical-bg-left {
  position: absolute;
  top: 10px;
  right: -20px;
  width: 140px;
  height: 180px;
  pointer-events: none;
  opacity: 0.55;
}

.identity-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-emblem-container {
  margin-bottom: 22px;
}

.portrait-emblem-ring {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.portrait-emblem-ring:hover {
  transform: scale(1.03);
}

.portrait-emblem-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.identity-headings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.identity-hindi-title {
  font-family: var(--font-serif-hi);
  font-size: 1.85rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.identity-english-title {
  font-family: var(--font-serif-en);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Building sketch at bottom */
.building-sketch-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  text-align: center;
}

.building-sketch-img {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  opacity: 0.88;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  border-radius: var(--radius-sm);
}

.building-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.vatika-rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.45);
}

.vatika-title {
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

/* RIGHT PANEL: Digital Archives Parchment Hero */
.hero-right-col {
  background-color: var(--parchment-bg);
  position: relative;
  padding: 44px 44px 32px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.botanical-watermark-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 200px;
  pointer-events: none;
}

.archive-main-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Eyebrow Tag */
.digital-archives-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tag-text {
  font-family: var(--font-serif-en);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--terracotta-primary);
  text-transform: uppercase;
}

.tag-line {
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background-color: var(--terracotta-primary);
  opacity: 0.65;
}

/* Hero Headline */
.hero-headline {
  font-family: var(--font-serif-quote);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero-headline .line-1 {
  display: block;
}

.hero-headline .line-2 {
  display: block;
}

/* Narrative Paragraph */
.hero-description {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 26px;
}

/* 4 Archive Category Cards Grid */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.cat-card {
  background-color: #FFFFFF;
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--terracotta-primary);
  background-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--terracotta-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta-primary);
  transition: all var(--transition-fast);
}

.cat-card:hover .cat-icon-wrap {
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
}

.cat-icon {
  width: 22px;
  height: 22px;
}

.cat-title {
  font-family: var(--font-serif-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-heading);
  line-height: 1.35;
  text-transform: uppercase;
}

/* Hero CTA Banner */
.hero-cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--terracotta-border);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.cta-journey-heading {
  font-family: var(--font-serif-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--terracotta-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cta-subtext {
  font-size: 0.82rem;
  color: var(--text-body);
}

.btn-terracotta-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  font-family: var(--font-serif-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(178, 94, 52, 0.28);
  white-space: nowrap;
}

.btn-terracotta-cta:hover {
  background-color: var(--terracotta-hover);
  box-shadow: 0 6px 20px rgba(178, 94, 52, 0.38);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.btn-terracotta-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* Bottom Inscription */
.hero-bottom-footer {
  text-align: right;
  border-top: 1px solid var(--parchment-border-subtle);
  padding-top: 14px;
}

.legacy-text {
  font-family: var(--font-serif-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   INTERACTIVE ARCHIVE EXPANSION / CATEGORY SHOWCASE
   ========================================================================== */
.archive-showcase-section {
  padding: 70px 24px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--parchment-border);
  border-bottom: 1px solid var(--parchment-border);
}

.section-container {
  max-width: 1380px;
  margin: 0 auto;
}

.section-header-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.badge-line {
  width: 32px;
  height: 1px;
  background-color: var(--terracotta-primary);
  opacity: 0.6;
}

.badge-text {
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--terracotta-primary);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif-quote);
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
}

.archive-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  border: 1px solid var(--parchment-border);
  background-color: var(--parchment-bg);
}

.filter-tab:hover {
  border-color: var(--terracotta-primary);
  color: var(--terracotta-primary);
}

.filter-tab.active {
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  border-color: var(--terracotta-primary);
  box-shadow: 0 4px 12px rgba(178, 94, 52, 0.2);
}

/* Archive Cards Grid */
.archive-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.archive-card {
  background-color: var(--parchment-bg);
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta-border);
  box-shadow: var(--shadow-card-hover);
}

.archive-thumb-wrap {
  position: relative;
  height: 180px;
  background-color: #EFE8DC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.archive-card:hover .archive-thumb-img {
  transform: scale(1.05);
}

.archive-tag-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(56, 30, 21, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Mock Graphics for Document / Story thumbs */
.doc-thumb-bg {
  background: radial-gradient(circle, #F8F1E5 0%, #E8DCBE 100%);
}

.doc-preview-mock {
  width: 110px;
  height: 140px;
  background: #FFFDF9;
  border: 1px solid #D8C8B0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border-radius: 3px;
  padding: 14px 10px;
  position: relative;
}

.doc-seal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--terracotta-primary);
  opacity: 0.7;
}

.doc-line {
  height: 4px;
  background-color: #E5D6C4;
  border-radius: 2px;
  margin-bottom: 8px;
}

.doc-line.line-header {
  width: 60%;
  background-color: var(--terracotta-border);
  height: 6px;
  margin-bottom: 14px;
}

.doc-line.short {
  width: 45%;
}

.story-thumb-bg, .people-thumb-bg {
  background: linear-gradient(135deg, #F3EAE0 0%, #E2D3C4 100%);
}

.story-preview-mock, .people-preview-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--terracotta-primary);
}

.story-year {
  font-family: var(--font-serif-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-heading);
}

.archive-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.archive-ref-no {
  font-family: var(--font-serif-en);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--terracotta-primary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.archive-item-title {
  font-family: var(--font-serif-quote);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 8px;
}

.archive-item-desc {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.archive-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--parchment-border);
  padding-top: 12px;
  font-size: 0.74rem;
}

.archive-source {
  color: var(--text-muted);
}

.archive-view-link {
  font-weight: 600;
  color: var(--terracotta-primary);
}

.archive-view-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SHARE YOUR STORY SECTION: Exact 3-Column Layout from Bottom-Right Mockup
   Placed Directly Under the About Us Section
   ========================================================================== */
.share-story-section {
  padding: 80px 24px;
  background-color: var(--parchment-bg);
  position: relative;
}

/* Outer Enclosing 2-Column Card Frame */
.story-portal-card-frame {
  display: grid;
  grid-template-columns: 280px 1fr;
  background-color: #FFFFFF;
  border: 1px solid rgba(178, 94, 52, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(44, 24, 16, 0.08);
  overflow: hidden;
  align-items: stretch;
}

/* ==========================================================================
   COLUMN 1: Embedded Terracotta Navigation Sidebar (Left Column)
   ========================================================================== */
.portal-sidebar-col {
  background: linear-gradient(180deg, #B55F34 0%, #944621 100%);
  color: #FFFFFF;
  padding: 36px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.ps-header {
  text-align: center;
  position: relative;
  z-index: 2;
}

.ps-emblem-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #FFFFFF;
  margin: 0 auto 14px auto;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-emblem-img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: contain;
}

.ps-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-hi-title {
  font-family: var(--font-serif-hi);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.ps-en-title {
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
}

.ps-nav {
  margin-top: 32px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.ps-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.ps-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  flex-shrink: 0;
  opacity: 0.85;
}

.ps-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: translateX(4px);
}

/* Active Highlight: Solid pure white capsule with terracotta text */
.ps-link.active {
  background-color: #FFFFFF;
  color: var(--terracotta-primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.ps-link.active .ps-icon {
  stroke: var(--terracotta-primary);
  opacity: 1;
}

.ps-footer {
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.ps-vatika-rule {
  height: 1px;
  width: 26px;
  background-color: rgba(255, 255, 255, 0.35);
}

.ps-vatika-label {
  font-family: var(--font-serif-en);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.ps-botanical-branch {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 80px;
  height: 110px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   COLUMN 2: Main Story Form & Categories Area (Middle Column)
   ========================================================================== */
.portal-main-col {
  padding: 40px 42px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.portal-header {
  margin-bottom: 24px;
}

.portal-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.portal-tag {
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--terracotta-primary);
  text-transform: uppercase;
}

.portal-tag-line {
  width: 40px;
  height: 1px;
  background-color: var(--terracotta-primary);
  opacity: 0.45;
}

.portal-title {
  font-family: var(--font-serif-quote);
  font-size: 2.45rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 4px;
}

.portal-hindi-sub {
  font-family: var(--font-serif-hi);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--terracotta-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.portal-intro {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 680px;
}

/* 4 Contribution Type Selectors */
.type-selectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.type-btn {
  background-color: var(--parchment-bg);
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.type-btn:hover {
  border-color: var(--terracotta-primary);
  background-color: var(--terracotta-wash);
  transform: translateY(-2px);
}

.type-btn.active {
  background-color: var(--terracotta-wash);
  border-color: var(--terracotta-primary);
  box-shadow: 0 0 0 1px var(--terracotta-primary);
}

.type-icon-box {
  width: 32px;
  height: 32px;
  color: var(--terracotta-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-icon-box svg {
  width: 20px;
  height: 20px;
}

.type-title {
  font-family: var(--font-serif-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-heading);
  text-transform: uppercase;
}

.type-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* TELL US MORE Form */
.form-container-card {
  border-top: 1px solid var(--parchment-border);
  padding-top: 22px;
}

.form-sec-header {
  margin-bottom: 16px;
}

.form-sec-title {
  font-family: var(--font-serif-en);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-heading);
  text-transform: uppercase;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-heading);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--text-heading);
  background-color: var(--parchment-bg);
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--terracotta-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(178, 94, 52, 0.12);
}

.form-textarea {
  resize: vertical;
}

/* Dropzone */
.upload-dropzone {
  border: 1.5px dashed var(--terracotta-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--parchment-bg);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 16px;
}

.upload-dropzone:hover {
  background-color: var(--terracotta-wash);
  border-color: var(--terracotta-primary);
}

.hidden-file-input {
  display: none;
}

.upload-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--terracotta-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta-primary);
  flex-shrink: 0;
}

.upload-icon-circle svg {
  width: 18px;
  height: 18px;
}

.upload-text-wrap {
  display: flex;
  flex-direction: column;
}

.upload-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

.upload-sub {
  font-size: 0.70rem;
  color: var(--text-muted);
}

.selected-files-list {
  font-size: 0.76rem;
  color: var(--terracotta-primary);
  margin-bottom: 12px;
}

.form-submit-row {
  margin-top: 6px;
}

.btn-submit-story {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  font-family: var(--font-serif-en);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(178, 94, 52, 0.25);
  transition: all var(--transition-fast);
}

.btn-submit-story:hover {
  background-color: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(178, 94, 52, 0.35);
}

.submission-success {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background-color: #F1F8F3;
  border: 1px solid #C4E2CB;
  border-radius: var(--radius-sm);
  color: #2D633B;
  gap: 12px;
  align-items: center;
}

.submission-success.visible {
  display: flex;
}

.success-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #2D633B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}



/* ==========================================================================
   HERITAGE & GITA VATIKA CONTEXT SECTION
   ========================================================================== */
.heritage-about-section {
  padding: 70px 24px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--parchment-border);
  border-bottom: 1px solid var(--parchment-border);
}

.heritage-card-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.heritage-small-tag {
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--terracotta-primary);
  display: inline-block;
  margin-bottom: 8px;
}

.heritage-main-title {
  font-family: var(--font-serif-quote);
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 16px;
}

.heritage-text-box p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 14px;
}

.heritage-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--parchment-border);
}

.hl-item {
  display: flex;
  flex-direction: column;
}

.hl-number {
  font-family: var(--font-serif-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta-primary);
}

.hl-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.heritage-building-card {
  position: relative;
  background-color: var(--terracotta-wash);
  border: 1px solid var(--terracotta-border);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.heritage-bldg-full {
  width: 100%;
  border-radius: var(--radius-sm);
  background-color: var(--terracotta-primary);
}

.heritage-overlay-badge {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.bldg-badge-name {
  font-family: var(--font-serif-hi);
  font-size: 1rem;
  font-weight: 700;
  color: var(--terracotta-primary);
}

.bldg-badge-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.museum-footer {
  background-color: #2A140B;
  color: #ECE3DC;
  padding: 60px 24px 30px 24px;
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
}

.footer-hi-title {
  font-family: var(--font-serif-hi);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-en-title {
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
}

.footer-sub {
  font-size: 0.72rem;
  color: #BCAAA0;
}

.footer-mission {
  font-size: 0.84rem;
  color: #CFC2B9;
  line-height: 1.6;
  max-width: 420px;
}

.footer-col-title {
  font-family: var(--font-serif-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link-list a {
  font-size: 0.82rem;
  color: #C0B0A4;
}

.footer-link-list a:hover {
  color: #FFFFFF;
  padding-left: 3px;
}

.vatika-address {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #C0B0A4;
}

.visiting-hrs {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--gold-accent);
}

.footer-bottom-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #A38F84;
}

.footer-legacy-sign {
  font-family: var(--font-serif-en);
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   MOBILE PREVIEW SIMULATOR MODAL (Toggled via Desktop/Mobile Switcher)
   ========================================================================== */
.mobile-simulator-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(30, 16, 10, 0.82);
  backdrop-filter: blur(10px);
  padding: 24px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.mobile-simulator-overlay.active {
  display: flex;
}

.mobile-simulator-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  width: 100%;
}

.simulator-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.sim-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FAF4EB;
}

.sim-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-screen-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.sim-tab {
  font-size: 0.72rem;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.sim-tab.active {
  background-color: var(--terracotta-primary);
  font-weight: 700;
}

.sim-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sim-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Smartphone Hardware Frame */
.phone-frame {
  width: 360px;
  height: 720px;
  background-color: #1A1A1A;
  border: 10px solid #2D2D2D;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px #444444;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background-color: #1A1A1A;
  border-radius: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-speaker {
  width: 40px;
  height: 3px;
  background: #333333;
  border-radius: 2px;
}

.phone-camera {
  width: 7px;
  height: 7px;
  background: #111111;
  border: 1px solid #333;
  border-radius: 50%;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--parchment-bg);
  overflow-y: auto;
  position: relative;
  padding-top: 26px;
}

.phone-screen::-webkit-scrollbar {
  width: 3px;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
}

.screen-view {
  display: none;
}

.screen-view.active {
  display: block;
}

/* Mobile App Bar */
.mobile-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--parchment-bg);
  border-bottom: 1px solid var(--parchment-border);
}

.appbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appbar-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--terracotta-primary);
  background: #FFFFFF;
}

.appbar-titles {
  display: flex;
  flex-direction: column;
}

.appbar-hi {
  font-family: var(--font-serif-hi);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--terracotta-primary);
  line-height: 1.1;
}

.appbar-en {
  font-family: var(--font-serif-en);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-heading);
}

.appbar-icon-btn {
  color: var(--text-heading);
  display: flex;
  align-items: center;
}

/* Mobile Terracotta Hero Card */
.mobile-hero-card {
  margin: 12px;
  background-color: var(--terracotta-primary);
  border-radius: 12px;
  padding: 18px 14px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 105px;
  gap: 8px;
  align-items: center;
}

.m-leaf {
  position: absolute;
  bottom: -15px;
  right: -10px;
  width: 80px;
  height: 100px;
  pointer-events: none;
}

.m-hero-content {
  position: relative;
  z-index: 2;
}

.m-hero-heading {
  font-family: var(--font-serif-quote);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}

.m-hero-text {
  font-size: 0.7rem;
  line-height: 1.45;
  opacity: 0.92;
  margin-bottom: 12px;
}

.m-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FFFFFF;
  color: var(--terracotta-deep);
  font-family: var(--font-serif-en);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.m-hero-photo-wrap {
  position: relative;
  z-index: 2;
  text-align: right;
}

.m-bhaiji-photo {
  width: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

/* Mobile Categories List */
.mobile-cats-container {
  padding: 10px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-cat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--parchment-border);
  border-radius: 8px;
}

.m-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--terracotta-wash);
  color: var(--terracotta-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-cat-name {
  font-family: var(--font-serif-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-heading);
  line-height: 1.3;
}

/* Mobile Screen 2 (Form) */
.mobile-form-header {
  margin: 12px;
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 16px;
}

.m-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.85;
}

.m-form-title {
  font-family: var(--font-serif-quote);
  font-size: 1.4rem;
  line-height: 1.2;
}

.m-form-hi {
  font-family: var(--font-serif-hi);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.m-form-desc {
  font-size: 0.7rem;
  opacity: 0.9;
  line-height: 1.4;
}

.m-type-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0 12px;
  margin-bottom: 12px;
}

.m-t-card {
  font-size: 0.66rem;
  font-weight: 700;
  font-family: var(--font-serif-en);
  text-align: center;
  padding: 8px 4px;
  background: #FFFFFF;
  border: 1px solid var(--parchment-border);
  border-radius: 6px;
}

.m-t-card.active {
  background: var(--terracotta-wash);
  border-color: var(--terracotta-primary);
  color: var(--terracotta-primary);
}

.m-form-body {
  padding: 0 12px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.m-field input, .m-field textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.78rem;
  border: 1px solid var(--parchment-border);
  border-radius: 6px;
  background: #FFFFFF;
}

.m-submit-btn {
  background: var(--terracotta-primary);
  color: #FFFFFF;
  font-family: var(--font-serif-en);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px;
  border-radius: 6px;
  margin-top: 6px;
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal-backdrop,
.detail-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: rgba(30, 16, 10, 0.75);
  backdrop-filter: blur(8px);
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.search-modal-backdrop.active,
.detail-modal-backdrop.active {
  display: flex;
}

.search-modal-box {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--parchment-border);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--terracotta-primary);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.search-modal-icon {
  color: var(--terracotta-primary);
}

.search-input-wrapper input {
  flex-grow: 1;
  border: none;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  color: var(--text-heading);
  outline: none;
}

.search-close-btn {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.search-close-btn:hover {
  color: var(--text-heading);
}

.search-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.search-res-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--parchment-border-subtle);
}

.search-res-item:hover {
  background-color: var(--parchment-bg);
}

.search-res-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.search-res-tag {
  font-size: 0.72rem;
  color: var(--terracotta-primary);
  background-color: var(--terracotta-wash);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Detail Modal Box */
.detail-modal-box {
  background-color: #FFFFFF;
  max-width: 600px;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--parchment-border);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-split-grid {
    grid-template-columns: 310px 1fr;
  }
  .archive-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-portal-card-frame {
    grid-template-columns: 240px 1fr;
  }
  .footer-top-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
  }
  .hero-left-col {
    padding: 30px 20px;
  }
  .hero-right-col {
    padding: 30px 20px;
  }
  .story-portal-card-frame {
    grid-template-columns: 1fr;
  }
  .portal-sidebar-col {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .portal-main-col {
    padding: 28px 20px;
  }
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .type-selectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row-two {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .heritage-card-split {
    grid-template-columns: 1fr;
  }
  .slide-image-wrapper {
    height: clamp(340px, 55vh, 460px);
  }
  .slide-caption-overlay {
    padding: 20px 18px 42px 18px;
  }
  .slide-caption-title {
    font-size: 1.25rem;
  }
  .slide-caption-desc {
    display: none;
  }
}

/* ==========================================================================
   TERRACOTTA SIDEBAR DRAWER (1:1 Match of Bottom-Right Mockup Sidebar)
   ========================================================================== */
.sidebar-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--parchment-border);
  background-color: var(--parchment-subtle);
  color: var(--text-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-portal-btn:hover {
  background-color: var(--terracotta-wash);
  border-color: var(--terracotta-primary);
  color: var(--terracotta-primary);
}

.sidebar-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background-color: rgba(30, 16, 10, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.terracotta-sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background-color: var(--terracotta-primary);
  background-image: linear-gradient(180deg, #B55F34 0%, #8A3D18 100%);
  color: #FFFFFF;
  z-index: 1250;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 20px 24px 20px;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.sidebar-drawer-backdrop.active .terracotta-sidebar-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 18px;
}

.drawer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-emblem-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

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

.drawer-titles {
  display: flex;
  flex-direction: column;
}

.drawer-hi-title {
  font-family: var(--font-serif-hi);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.drawer-en-title {
  font-family: var(--font-serif-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}

.drawer-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.drawer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.drawer-link .d-icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.drawer-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* Matching the Active 'Share Your Story' pill in bottom-right mockup */
.drawer-link.active {
  background-color: #FFFFFF;
  color: var(--terracotta-deep);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.drawer-link.active .d-icon {
  color: var(--terracotta-primary);
  opacity: 1;
}

.drawer-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 24px;
}

.d-vatika-rule {
  width: 24px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

.d-vatika-label {
  font-family: var(--font-serif-en);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.d-botanical-branch {
  position: absolute;
  bottom: -15px;
  right: -10px;
  width: 75px;
  height: 95px;
  pointer-events: none;
}

/* ==========================================================================
   PUBLICATIONS & LEGACY SECTION (Kalyan Heritage)
   ========================================================================== */
.publications-legacy-section {
  padding: 70px 24px;
  background-color: var(--parchment-bg);
  border-top: 1px solid var(--parchment-border);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.publication-card {
  background-color: #FFFFFF;
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--terracotta-border);
}

.pub-cover-mockup {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  padding: 20px;
  overflow: hidden;
}

.pub-bg-gold {
  background: linear-gradient(135deg, #7A4B1A 0%, #C88A45 100%);
}

.pub-bg-terracotta {
  background: linear-gradient(135deg, #8B3A18 0%, #B25E34 100%);
}

.pub-bg-crimson {
  background: linear-gradient(135deg, #681919 0%, #A83333 100%);
}

.pub-bg-forest {
  background: linear-gradient(135deg, #1C402B 0%, #356E4D 100%);
}

.pub-cover-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.pub-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pub-cover-content {
  text-align: center;
}

.pub-om {
  font-family: var(--font-serif-hi);
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
  color: #FFE6BA;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pub-cover-title {
  font-family: var(--font-serif-hi);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.pub-cover-sub {
  font-family: var(--font-serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.9;
  text-transform: uppercase;
}

.pub-cover-seal {
  font-size: 0.65rem;
  margin-top: 14px;
  opacity: 0.8;
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 6px;
  display: inline-block;
}

.pub-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-vol {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--terracotta-primary);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.pub-name {
  font-family: var(--font-serif-quote);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.pub-desc {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pub-read-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta-primary);
  text-align: left;
  padding: 4px 0;
}

.pub-read-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   AUDIO ARCHIVES & ORAL HISTORY SECTION
   ========================================================================== */
.audio-archives-section {
  padding: 50px 24px;
  background-color: #FFFFFF;
}

.audio-banner-box {
  background: linear-gradient(135deg, #FAF3E8 0%, #F5E8D6 100%);
  border: 1px solid var(--parchment-border);
  border-left: 5px solid var(--terracotta-primary);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.audio-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--terracotta-primary);
  margin-bottom: 10px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--terracotta-primary);
  border-radius: 50%;
  animation: pulseGlow 2s infinite ease-in-out;
}

.audio-heading {
  font-family: var(--font-serif-quote);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 10px;
}

.audio-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
}

.audio-track-info {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-accent);
}

.track-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-heading);
}

.track-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Audio Player Widget */
.player-widget-card {
  background-color: #FFFFFF;
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.player-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.player-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(178, 94, 52, 0.3);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.player-play-btn:hover {
  background-color: var(--terracotta-hover);
  transform: scale(1.05);
}

.player-soundwave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  flex-grow: 1;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background-color: var(--terracotta-border);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.player-soundwave.playing .wave-bar {
  animation: waveAnim 1.2s infinite ease-in-out alternate;
}

.player-soundwave.playing .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.player-soundwave.playing .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.player-soundwave.playing .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.player-soundwave.playing .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.player-soundwave.playing .wave-bar:nth-child(6) { animation-delay: 0.5s; }
.player-soundwave.playing .wave-bar:nth-child(7) { animation-delay: 0.6s; }
.player-soundwave.playing .wave-bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes waveAnim {
  0% { height: 6px; background-color: var(--terracotta-border); }
  50% { height: 26px; background-color: var(--terracotta-primary); }
  100% { height: 10px; background-color: var(--terracotta-hover); }
}

.player-time {
  font-family: var(--font-serif-en);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.player-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--parchment-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  background-color: var(--terracotta-primary);
  border-radius: 3px;
}

.player-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.player-status {
  color: var(--terracotta-primary);
  font-weight: 600;
}

/* ==========================================================================
   COMMUNITY LIVING MEMORIES WALL
   ========================================================================== */
.community-wall-section {
  padding: 70px 24px;
  background-color: var(--parchment-bg);
  border-top: 1px solid var(--parchment-border);
}

.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.comm-card {
  background-color: #FFFFFF;
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.comm-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta-border);
  box-shadow: var(--shadow-card-hover);
}

.comm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.comm-cat-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--terracotta-primary);
  background-color: var(--terracotta-wash);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.comm-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.comm-title {
  font-family: var(--font-serif-quote);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 10px;
}

.comm-text {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.comm-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--parchment-border-subtle);
  padding-top: 12px;
}

.comm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comm-author-info {
  display: flex;
  flex-direction: column;
}

.comm-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
}

.comm-location {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COMMEMORATIVE CERTIFICATE MODAL
   ========================================================================== */
.certificate-modal-box {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.cert-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.certificate-frame {
  background: #FFFDF9;
  padding: 12px;
}

.cert-outer-border {
  border: 4px double var(--terracotta-primary);
  padding: 6px;
}

.cert-inner-border {
  border: 1px solid var(--gold-accent);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #FFFEFB 0%, #F9F3EA 100%);
}

.cert-header {
  margin-bottom: 16px;
}

.cert-emblem-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--terracotta-primary);
  margin: 0 auto 10px auto;
  overflow: hidden;
  background: #FFFFFF;
}

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

.cert-heading-hi {
  font-family: var(--font-serif-hi);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--terracotta-primary);
}

.cert-heading-en {
  font-family: var(--font-serif-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-heading);
}

.cert-sub-rule {
  width: 80px;
  height: 1px;
  background-color: var(--gold-accent);
  margin: 8px auto 0 auto;
}

.cert-title-block {
  margin-bottom: 18px;
}

.cert-main-title {
  font-family: var(--font-serif-quote);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.cert-main-hi {
  font-family: var(--font-serif-hi);
  font-size: 1.05rem;
  color: var(--gold-accent);
}

.cert-body-text {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 22px auto;
}

.cert-recipient-name {
  font-family: var(--font-serif-quote);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  border-bottom: 1.5px solid var(--terracotta-primary);
  display: inline-block;
  padding: 0 16px;
  margin: 6px 0;
}

.cert-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--parchment-border);
  border-bottom: 1px solid var(--parchment-border);
  padding: 10px 0;
  margin-bottom: 22px;
  font-size: 0.78rem;
}

.cert-label {
  display: block;
  color: var(--text-muted);
}

.cert-value {
  font-weight: 600;
  color: var(--terracotta-primary);
}

.cert-sign-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 16px;
}

.cert-gold-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--gold-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-accent);
  background: var(--gold-wash);
}

.cert-signatures {
  text-align: right;
}

.sign-handwritten {
  font-family: var(--font-serif-quote);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--terracotta-deep);
  display: block;
}

.sign-title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cert-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cert-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--terracotta-primary);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-cert-download:hover {
  background-color: var(--terracotta-hover);
}

.btn-cert-close {
  padding: 10px 18px;
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-body);
}

/* Responsive updates for new sections */
@media (max-width: 1100px) {
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audio-banner-box {
    grid-template-columns: 1fr;
  }
  .community-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .publications-grid {
    grid-template-columns: 1fr;
  }
  .community-cards-grid {
    grid-template-columns: 1fr;
  }
  .cert-meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .portal-btn-label {
    display: none;
  }
}

