/* ==========================================================================
   DEV DOLI - style.css (cleaned)
   ========================================================================== */

/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
  --primary-color: #8b0000;
  --secondary-color: #d97706;
  --dark-color: #1a1a1a;
  --light-bg: #fdfbf7;
  --text-color: #333333;
  --card-bg: #ffffff;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keeps anchor targets below the sticky nav */
}

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: clip; /* hides sideways overflow WITHOUT breaking sticky nav */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
header {
  width: 100%;
  padding: 10px 20px;
}

.header-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex start;

}




.logo1-link {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.logo1-img {
  height: 130px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-right: 5px;
}

.logo1-text {
  display: flex;
  flex-direction: column;
}

.logo1-text h1,
.logo1-text .logo-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #8b0000;
  line-height: 1.1;
  margin: 0;
  margin-left: 15px;
}

.logo1-text span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d97706;
  letter-spacing: 0.5px;
  margin-left: 15px;
}

@media (max-width: 600px) {
  header {
    padding: 8px 12px;
  }

  .logo1-link {
    gap: 0.7rem;               /* desktop has 1.9rem */
  }

  .logo1-img {
    height: 100px;
    margin-right: 0;           /* reset desktop 5px */
    flex-shrink: 0;            /* logo is never squeezed by the text */
  }

  .logo1-text {
    min-width: 0;              /* text can shrink instead of overflowing */
  }

  .logo1-text h1,
  .logo1-text .logo-title {
    font-size: 1.6rem;
    margin-left: 0;            /* reset desktop 15px */
  }

  .logo1-text span {
    font-size: 0.8rem;
    margin-left: 0;            /* reset desktop 15px */
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .logo1-img {
    height: 80px;
  }

  .logo1-text h1,
  .logo1-text .logo-title {
    font-size: 1.35rem;
  }

  .logo1-text span {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   3. NAVIGATION BAR (single definition)
   ========================================================================== */
nav {
  background-color: var(--dark-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  overflow: visible;               /* dropdown must not be clipped */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 1rem 1.2rem;
  color: #e5e5e5;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

nav ul li a:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Dropdown */
nav ul li.dropdown .dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  z-index: 999;
  border-top: 2px solid #d97706;
}

nav ul li.dropdown:hover .dropdown-menu {
  display: block;
}

nav ul li.dropdown .dropdown-menu li {
  width: 100%;
}

nav ul li.dropdown .dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  border-bottom: 1px solid #333333;
  background-color: #1a1a1a;
}

nav ul li.dropdown .dropdown-menu li a:hover {
  background-color: #8b0000;
}

@media (max-width: 1200px) {
  nav ul li a { padding: 1rem 0.8rem; font-size: 0.95rem; }
}

/* ==========================================================================
   4. MOBILE SIDEBAR / HAMBURGER
   ========================================================================== */
.hamburger-btn,
.mobile-sidebar,
.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  /* hide desktop links */
  .desktop-menu {
    display: none !important;
  }

  /* fallback for pages whose menu has no .desktop-menu class */
  .nav-container > ul:not(.desktop-menu) {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .nav-container > ul:not(.desktop-menu)::-webkit-scrollbar {
    display: none;
  }

  nav {
    padding: 12px 0;
  }

  .hamburger-btn {
    display: block;
    background-color: #d97706;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 auto;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1002;
    box-shadow: none;
    transition: left 0.3s ease, box-shadow 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    visibility: hidden;
  }

  .mobile-sidebar.active {
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    visibility: visible;
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: #8b0000;
    color: #ffffff;
    border-bottom: 2px solid #d97706;
  }

  .sidebar-header h3,
  .sidebar-header .sidebar-title {
    margin: 0;
    font-size: 1.2rem;
  }

  .sidebar-header .close-btn {
    position: static;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
  }

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

  .sidebar-links li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    border-bottom: 1px solid #2a2a2a;
    font-size: 1rem;
  }

  .sidebar-links li a:hover {
    background-color: #8b0000;
    color: #ffdf9e;
  }

  .sidebar-links li.sidebar-sub-item a {
    padding-left: 35px;
    background-color: #121212;
    color: #d97706;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
 .hero {
 /* background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)),
          
                url('images/hero-badrinath.jpg'); */
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 8rem 1.5rem;

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 380px;
    padding: 4.5rem 1rem;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color:#ffffff;

  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #f3f4f6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  font-weight: 600;
}

.hero-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}


/* ===== HERO ENTRANCE ANIMATION ===== */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1,
.hero-content p,
.hero-button {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered timing: Heading -> Location -> Button */
.hero-content h1 {
  animation-delay: 0.15s;
}

.hero-content p {
  animation-delay: 0.35s;
}

.hero-button {
  animation-delay: 0.55s;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-content p,
  .hero-button {
    opacity: 1;
    animation: none;
    transform: none;
  }
}





/* ==========================================================================
   6. SECTIONS, TITLES & ABOUT CARDS
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h1,
.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h1::after,
.section-title h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 20%;
  border-radius: 2px;
}

.section-title p {
  color: #666666;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.section-heading {
  text-align: center;
  font-size: 2.2rem;
  color: #8b0000;
  margin-bottom: 0.5rem;
}

.section-subheading {
  text-align: center;
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
}

/* About photo */
.about-image-container {
  text-align: center;
  margin-bottom: 2rem;
}

.about-img {
  width: 100%;
  max-width: 2000px;
  height: 700px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 3px solid #ffffff;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  border-top: 4px solid #d97706;
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: #ffffff;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
  z-index: -1;
  transition: background 0.3s ease;
}

.card h3 {
  font-size: 1.4rem;
  color: #ffca28;
  margin-bottom: 0.8rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.card p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7));
}

.card-1 { background-image: url('images/card1-.png'); }
.card-2 { background-image: url('images/card2-.png'); }
.card-3 { background-image: url('images/card3-.png'); }

/* ==========================================================================
   7. TYPES OF DEV DOLI (ARTICLE LAYOUT)
   ========================================================================== */
.types-section-clean {
  padding: 3rem 0;
  background-color: #ffffff;
}

.type-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.type-block:last-of-type {
  border-bottom: none;
}

.type-block-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.type-num {
  font-size: 1.4rem;
  font-weight: bold;
  color: #d97706;
}

.type-block-header h3 {
  font-size: 1.5rem;
  color: #8b0000;
  margin: 0;
}

.type-block-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.type-block-img {
  flex: 0 0 280px;
}

.type-block-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.type-block-text {
  flex: 1;
  min-width: 0;
}

.type-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.8rem;
}

.type-block-text p {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

/* Examples tags (devi doli block) */
.examples-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.examples-box .tag {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid #fde68a;
}

.type-list {
  padding-left: 1.2rem;
  color: #4b5563;
  line-height: 1.8;
}

/* Dev Aagman Banner */
.aagman-banner {
  background-color: #faf7f2;
  border-left: 4px solid #8b0000;
  padding: 1.8rem 2rem;
  margin: 3rem 0;
  border-radius: 0 8px 8px 0;
}

.aagman-banner h3 {
  color: #8b0000;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.aagman-banner p {
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Timing list */
.timing-section-clean h3 {
  color: #8b0000;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timing-rows {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.timing-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: #fcfbf7;
  border-radius: 6px;
}

.timing-item h4 {
  color: #d97706;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timing-item p {
  color: #4b5563;
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   8. ARDH KUMBH SECTION
   ========================================================================== */
.kumbh-section {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
  background-color: #fffdf9;
  border-top: 2px solid #f3e8d3;
  
}

.kumbh-article {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0e6d2;

}

.kumbh-article.reverse-layout {
  flex-direction: row-reverse;
}

.kumbh-media {
  flex: 0 0 42%;
  min-width: 0;
 
}

.kumbh-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2d2b4;
  transition: transform 0.3s ease;
}

.kumbh-article:hover .kumbh-img {
  transform: translateY(-3px);
}

.kumbh-content {
  flex: 1;
  min-width: 0; /* stops wide children (table) from stretching the page */

}

.kumbh-content h3 {
  color: #8b0000;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.kumbh-content p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Tourist place tags */
.attractions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.place-tag {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #fde68a;
}

/* Snan dates table */
.dates-table-container {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.dates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dates-table th {
  background-color: #8b0000;
  color: #ffffff;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

.dates-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.92rem;
}

.dates-table tr:nth-child(even) {
  background-color: #fcfbf7;
}

.dates-table tr.shahi-snan {
  background-color: #fefce8;
}

.dates-table tr.shahi-snan td {
  color: #b45309;
}

/* Dev Doli in Ardh Kumbh block */
.dev-doli-kumbh-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
  background-color: #fffdf9;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #f0e6d2;
  margin-bottom: 3rem;
}

.dev-doli-kumbh-block .kumbh-content h3 {
  color: #8b0000;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #f3e8d3;
  padding-bottom: 0.5rem;
}

.dev-doli-kumbh-block .kumbh-content p {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Kumbh gallery carousel (horizontal scroll) */
.kumbh-carousel {
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: visible;
  margin-top: 1.5rem;
  background: #faf6f0;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e2d2b4;
  box-sizing: border-box;
}

.kumbh-carousel h4 {
  color: #8b0000;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.kumbh-carousel-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d97706 #f1f1f1;
}

.kumbh-carousel-wrapper::-webkit-scrollbar {
  height: 8px;
}

.kumbh-carousel-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.kumbh-carousel-wrapper::-webkit-scrollbar-thumb {
  background: #d97706;
  border-radius: 10px;
}

.kumbh-carousel-wrapper::-webkit-scrollbar-thumb:hover {
  background: #b45309;
}

.kumbh-carousel-slide {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.kumbh-carousel-card {
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease;
}

.kumbh-carousel-card:hover {
  transform: translateY(-5px);
}

.kumbh-carousel-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.kumbh-carousel-card .caption {
  padding: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #92400e;
  text-align: center;
  background-color: #fffdf9;
  margin: 0;
}

/* ==========================================================================
   9. GARHWAL & KUMAON SECTIONS
   ========================================================================== */
.regions-intro-section {
  padding: 1.5rem 1rem 3rem 1rem;
  background-color: #fffdf9;
}

.regions-main-box {
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  font-size: 1.12rem;
  color: #374151;
  line-height: 1.8;
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid #e2d2b4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.regions-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.big-region-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
  border: 2px solid #e2d2b4;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.big-region-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(139, 0, 0, 0.12);
  border-color: #8b0000;
}

.big-region-card h3 {
  font-size: 1.8rem;
  color: #8b0000;
  margin-bottom: 1rem;
}

.big-region-card p {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link-btn {
  color: #8b0000;
  font-weight: 700;
  font-size: 1rem;
}

.region-detail-section {
  padding: 4rem 1rem;
  background-color: #ffffff;
  border-top: 1px solid #f3e8dc;
}

.region-detail-section.alt-bg {
  background-color: #faf6ef;
}

.region-detail-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

.region-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.region-content-grid.reverse {
  direction: rtl; /* carousel on left, text on right */
}

.region-content-grid.reverse > * {
  direction: ltr;
}

.region-text p {
  font-size: 1.08rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Region slider (fade) */
.region-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 2px solid #e2d2b4;
  background-color: #000;
}

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

.carousel-slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slides img.active {
  opacity: 1;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.prev-btn:hover,
.next-btn:hover {
  background-color: #8b0000;
}

/* ==========================================================================
   10. OTHER PAGES (VIDEO, CONTACT, GALLERY, COMMITTEE, ETC.)
   ========================================================================== */

/* ---- Video page ---- */
.video-section {
  padding: 3rem 1rem;
  background-color: #fffdf9;
  min-height: 85vh;
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2d2b4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 1.2rem;
}

.video-info h3 {
  color: #8b0000;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.video-info p {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

/* ---- Contact page ---- */
.contact-section {
  padding: 3rem 1rem;
  background-color: #fffdf9;
  min-height: 85vh;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-card,
.contact-form-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2d2b4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3,
.contact-form-card h3 {
  color: #8b0000;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.contact-info-card p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem;
}

.contact-info-card a {
  color: #8b0000;
  font-weight: 600;
}

.contact-info-card h2 {
  color: #8b0000;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.contact-form-card h2 {
  color: #8b0000;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  background-color: #fafaf9;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #8b0000;
}

.submit-btn {
  background-color: #8b0000;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #660000;
}

/* ---- Gallery page + lightbox ---- */
.gallery-section {
  padding: 3rem 1rem;
  background-color: #fffdf9;
  min-height: 85vh;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2d2b4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.gallery-item .overlay span {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.gallery-item .overlay p {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(5px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease-in-out;
}

.lightbox-img {
  max-width: 90%;
  max-height: 78vh;
  border-radius: 8px;
  border: 2px solid #e2d2b4;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #fef3c7;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

/* Lightbox close button (scoped so it does not clash with the sidebar one) */
.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  background: none;
  border: none;
}

.lightbox .close-btn:hover {
  color: #f59e0b;
}

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

/* ---- Committee / About us ---- */
.committee-section {
  padding: 3rem 1rem;
  background-color: #fffdf9;
  min-height: 80vh;
}

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

.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.member-card {
  background: #ffffff;
  border: 1px solid #e2d2b4;
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.member-photo {
  flex: 0 0 110px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
}

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

.member-info h3 {
  font-size: 1.3rem;
  color: #8b0000;
  margin-bottom: 0.4rem;
}

.member-info p {
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
}

/* ---- Regions (older layout, kept for other pages) ---- */
.regions {
  background-color: #f3eee7;
  padding: 4rem 0;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
}

.region-card {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.region-card h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.region-card p {
  color: #555555;
}

/* ---- Clean page content ---- */
.clean-page-content {
  max-width: 950px;
  margin: 0 auto;
  padding: 1rem 0;
}

.content-heading {
  font-size: 1.8rem;
  color: #8b0000;
  margin-bottom: 1.2rem;
  margin-top: 1.8rem;
  text-align: center;
}

.clean-page-content p {
  font-size: 1.08rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 1.2rem;
  text-align: justify;
}

/* ---- Members list ---- */
.members-list-wrapper {
  max-width: 900px;
  margin: 2rem auto 0;
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  border: 1px solid #e2d2b4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.members-list {
  padding-left: 1.2rem;
}

.members-list li {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3e8dc;
  line-height: 1.6;
}

.members-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.members-list strong {
  color: #8b0000;
  font-size: 1.15rem;
}

.members-list .designation {
  color: #d97706;
  font-weight: 700;
}

.members-list .duty {
  margin-top: 0.2rem;
  font-size: 0.98rem;
  color: #4b5563;
}

/* ---- Map page ---- */
.map-card {
  text-align: center;
}

.map-image-wrapper {
  margin-top: 1rem;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2d2b4;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ---- Bilingual boxes ---- */
.bilingual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.lang-box {
  position: relative;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e2d2b4;
  background: #faf8f5;
  line-height: 1.7;
}

.regional-box {
  border-left: 4px solid #d97706;
}

.hindi-box {
  border-left: 4px solid #8b0000;
  background: #ffffff;
}

.lang-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #d97706;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.hindi-badge {
  background-color: #8b0000;
}

/* ---- Author credits ---- */
.author-credits-box {
  margin: 3rem auto 1rem;
  padding: 1.5rem 2rem;
  background: #fffdfa;
  border: 2px dashed #d97706;
  border-radius: 10px;
  text-align: center;
  max-width: 750px;
}

.author-title {
  font-size: 1.25rem;
  color: #8b0000;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.author-name {
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 0.4rem;
}

.author-desc {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.5;
}

/* ---- Biography image ---- */
.content-image-wrapper {
  text-align: center;
  margin: 2.5rem auto;
}

.page-content-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #e2d2b4;
}

/* ---- Deity cards ---- */
.deity-card {
  background: #faf8f5;
  border: 1px solid #e2d2b4;
  border-left: 5px solid #8b0000;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.deity-title,
h2.deity-title {
  font-size: 1.2rem;
  color: #8b0000;
  margin-bottom: 0.8rem;
  font-weight: 700;
  border-bottom: 1px dashed #d97706;
  padding-bottom: 0.4rem;
}

.deity-details p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.6;
}

.deity-history {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid #eee;
  color: #4b5563;
}

/* ==========================================================================
   11. PHOTO GALLERY SECTION (alternate gallery) + LIGHTBOX
   ========================================================================== */
.photo-gallery-section {
  padding: 60px 20px 70px;
  background: #faf7f2;
  text-align: center;
}

.photo-gallery-section .section-title {
  font-size: 32px;
  color: #8b0000;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.photo-gallery-section .section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #d4a017, #8b0000);
  margin: 12px auto 0;
  border-radius: 2px;
}

.photo-gallery-section .section-subtitle {
  color: #555;
  font-size: 15px;
  margin-bottom: 40px;
}

.photo-gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
  outline: 1px solid #eadfca;
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.photo-gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139, 0, 0, 0.85) 0%, rgba(139, 0, 0, 0) 55%);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.photo-gallery-item .overlay span {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px;
  text-align: left;
}

.photo-gallery-item .zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #8b0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.35s ease;
}

.photo-gallery-item:hover img {
  transform: scale(1.12);
}

.photo-gallery-item:hover .overlay,
.photo-gallery-item:hover .zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.pg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.pg-lightbox.active {
  display: flex;
}

.pg-lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.35);
}

.pg-lightbox .pg-caption {
  color: #f2e6c9;
  margin-top: 16px;
  font-size: 16px;
}

.pg-lightbox .pg-close,
.pg-lightbox .pg-prev,
.pg-lightbox .pg-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.pg-lightbox .pg-close:hover,
.pg-lightbox .pg-prev:hover,
.pg-lightbox .pg-next:hover {
  background: #8b0000;
}

.pg-lightbox .pg-close { top: 22px; right: 22px; }
.pg-lightbox .pg-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.pg-lightbox .pg-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
footer {
  background-color: var(--dark-color);
  color: #a3a3a3;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 4px solid var(--secondary-color);
  width: 100%;
  clear: both;
}

footer p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

footer p:last-child {
  font-size: 0.9rem;
}

/* ==========================================================================
   13. RESPONSIVE - TABLET & MOBILE (all in one place)
   ========================================================================== */
@media (max-width: 900px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hero & titles */
  .hero {
    padding: 4rem 1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h1,
  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-heading {
    font-size: 1.7rem;
  }

  .container {
    padding: 3rem 1rem;
  }

  .about-img {
    height: 240px;
  }

  /* Types of Dev Doli */
  .type-block-body {
    flex-direction: column;
  }

  .type-block-img {
    flex: none;
    width: 100%;
  }

  .type-block-img img {
    height: 220px;
  }

  /* Ardh Kumbh articles */
  .kumbh-article,
  .kumbh-article.reverse-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    text-align: center;
  }

  .kumbh-media {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .kumbh-content {
    max-width: 100%;
  }

  .kumbh-img {
    height: auto;
    max-height: 280px;
  }

  .dev-doli-kumbh-block {
    padding: 1rem;
  }

  .dev-doli-kumbh-block .kumbh-content h3 {
    font-size: 1.4rem;
  }

  .dev-doli-kumbh-block .kumbh-content p {
    text-align: left;
  }

  .dates-table {
    min-width: 420px; /* scrolls inside .dates-table-container */
  }

  /* Kumbh carousel */
  .kumbh-carousel {
    padding: 1rem;
  }

  .kumbh-carousel-card {
    flex: 0 0 220px;
  }

  .kumbh-carousel-card img {
    height: 160px;
  }

  /* Garhwal / Kumaon */
  .regions-cards-grid,
  .region-content-grid,
  .region-content-grid.reverse {
    grid-template-columns: minmax(0, 1fr);
    direction: ltr;
    gap: 1.5rem;
  }

  .carousel-container {
    height: 240px;
  }

  /* Other pages */
  .contact-grid,
  .committee-grid,
  .bilingual-grid {
    grid-template-columns: 1fr;
  }

  .members-list-wrapper {
    padding: 1.5rem 1.2rem;
  }
}

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

  .gallery-item {
    height: 200px;
  }
}

@media (max-width: 560px) {
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery-section .section-title {
    font-size: 26px;
  }

  .pg-lightbox .pg-prev,
  .pg-lightbox .pg-next {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}


/* ==========================================================================
   14. SEAMLESS TEXT SCROLLER
   ========================================================================== */
.text-scroller-container {
  width: 100%;
  overflow: hidden;
  background-color: #faf6f0;
  border-top: 1px solid #e2d2b4;
  border-bottom: 1px solid #e2d2b4;
  padding: 0.8rem 0;
  box-sizing: border-box;
}

.text-scroller-track {
  display: flex;
  width: max-content;
  will-change: transform;
  /* 30s: smaller = faster, bigger = slower */
  animation: text-scroll 30s linear infinite;
}

.text-scroller-group {
  display: flex;
  flex-shrink: 0;
}

.text-scroller-group span {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #8b0000;
}

@keyframes text-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Pause on hover only on devices that have a mouse */
@media (hover: hover) {
  .text-scroller-container:hover .text-scroller-track {
    animation-play-state: paused;
  }
}

/* Mobile: slightly smaller text */
@media (max-width: 768px) {
  .text-scroller-group span {
    font-size: 0.95rem;
    padding-right: 2rem;
  }
}

/* Respect users who turn off animations */
@media (prefers-reduced-motion: reduce) {
  .text-scroller-track {
    animation: none;
  }
}



.image-caption {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #6b7280;
  font-style: italic;
}







/*news*/
.news-section {
        max-width: 1200px;
        margin: 2.5rem auto;
        padding: 0 1.5rem;
    }
    .news-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    .news-header h1 {
        color: #8b0000;
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    .news-header p {
        color: #555;
        font-size: 1.05rem;
    }
    .news-divider {
        width: 80px;
        height: 4px;
        background-color: #d97706;
        margin: 0.8rem auto 0;
        border-radius: 2px;
    }
    .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 2rem;
    }
    .news-card {
        background: #ffffff;
        border: 1px solid #e2d2b4;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(139, 0, 0, 0.12);
    }
    .news-img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        border-bottom: 3px solid #d97706;
    }
    .news-body {
        padding: 1.5rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    .news-badge {
        display: inline-block;
        background-color: #faf6f0;
        color: #d97706;
        border: 1px solid #d97706;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 0.25rem 0.7rem;
        border-radius: 4px;
        margin-bottom: 0.8rem;
        align-self: flex-start;
    }
    .news-title {
        color: #8b0000;
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        font-weight: 700;
    }
    .news-text {
        color: #333333;
        font-size: 0.98rem;
        line-height: 1.7;
        margin-bottom: 0;
    }
    @media (max-width: 768px) {
        .news-header h1 {
            font-size: 1.8rem;
        }
        .news-grid {
            grid-template-columns: 1fr;
        }
    }







.section-heading {
  position: relative;
  text-align: center;
  color: #8b0000;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
  height: 4px;
  background-color: #d97706;
  border-radius: 2px;
}




/* ===== EDITORIAL FEATURE NEWS LAYOUT (NON-CARD) ===== */
    .featured-news-wrapper {
        margin-bottom: 3.5rem;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .editorial-row {
        display: flex;
        align-items: stretch;
        background-color: #ffffff;
        border-left: 5px solid #8b0000;
        border-top: 1px solid #e2d2b4;
        border-right: 1px solid #e2d2b4;
        border-bottom: 1px solid #e2d2b4;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    /* दूसरी खबर के लिए दिशा पलटना (Zig-Zag Layout) */
    .editorial-row.reverse-row {
        flex-direction: row-reverse;
        border-left: 1px solid #e2d2b4;
        border-right: 5px solid #d97706;
    }

    .editorial-media {
        flex: 0 0 46%;
        background-color: #faf6f0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
        gap: 0.8rem;
    }

    /* पहली खबर में 2 तस्वीरों के लिए डबल ग्रिड */
    .dual-photo-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.8rem;
        height: 100%;
    }

    .dual-photo-stack img,
    .single-photo-box img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #d97706;
        display: block;
    }

    .single-photo-box img {
        height: 100%;
        min-height: 320px;
    }

    .editorial-content {
        flex: 1;
        padding: 2rem 2.2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .editorial-meta {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 0.8rem;
        flex-wrap: wrap;
    }

    .editorial-tag {
        background-color: #8b0000;
        color: #ffffff;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 0.25rem 0.75rem;
        border-radius: 3px;
        letter-spacing: 0.3px;
    }

    .editorial-location {
        color: #d97706;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .editorial-title {
        color: #8b0000;
        font-size: 1.45rem;
        line-height: 1.45;
        margin-bottom: 1rem;
        font-weight: 700;
        border-bottom: 2px solid #faf6f0;
        padding-bottom: 0.6rem;
    }

    .editorial-content p {
        color: #2c2c2c;
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 0.9rem;
        text-align: justify;
    }

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

    /* मोबाइल और टैबलेट के लिए पूरी तरह रिस्पॉन्सिव */
    @media (max-width: 900px) {
        .editorial-row,
        .editorial-row.reverse-row {
            flex-direction: column;
            border-left: 1px solid #e2d2b4;
            border-right: 1px solid #e2d2b4;
            border-top: 4px solid #8b0000;
        }

        .editorial-media {
            flex: none;
            width: 100%;
            padding: 1rem 1rem 0 1rem;
            background-color: #ffffff;
        }

        .dual-photo-stack {
            grid-template-columns: 1fr 1fr;
        }

        .dual-photo-stack img {
            height: 180px;
        }

        .single-photo-box img {
            min-height: 240px;
            max-height: 300px;
        }

        .editorial-content {
            padding: 1.5rem;
        }

        .editorial-title {
            font-size: 1.25rem;
        }
    }

    @media (max-width: 540px) {
        .dual-photo-stack {
            grid-template-columns: 1fr;
        }
        .dual-photo-stack img {
            height: 210px;
        }
    }



 /* ===== UNIQUE NEWS PHOTO GALLERY & LIGHTBOX (No Conflicts) ===== */

    .news-gallery-wrap {

        margin-top: 4rem;

        padding-top: 2.5rem;

        border-top: 2px solid #e2d2b4;
       
        padding: 3rem;
    }



    .news-gallery-heading {

        text-align: center;

        margin-bottom: 2rem;

    }



    .news-gallery-heading h2 {

        position: relative;

        display: inline-block;

        color: #8b0000;

        font-size: 1.9rem;

        padding-bottom: 12px;

        margin-bottom: 0.5rem;

    }



    .news-gallery-heading h2::after {

        content: "";

        position: absolute;

        bottom: 0;

        left: 50%;

        transform: translateX(-50%);

        width: 80px;

        height: 4px;

        background-color: #d97706;

        border-radius: 2px;

    }



    .news-gallery-heading p {

        color: #555;

        font-size: 1rem;

    }



    .news-custom-grid {

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 1.25rem;

    }



    .news-gallery-card {

        position: relative;

        overflow: hidden;

        border-radius: 8px;

        border: 2px solid #e2d2b4;

        background-color: #faf6f0;

        cursor: pointer;

        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);

        transition: transform 0.3s ease, border-color 0.3s ease;

    }



    .news-gallery-card:hover {

        transform: translateY(-4px);

        border-color: #d97706;

    }



    .news-gallery-card img {

        width: 100%;

        height: 240px;

        object-fit: cover;

        display: block;

        transition: transform 0.4s ease;

    }



    .news-gallery-card:hover img {

        transform: scale(1.06);

    }



    .news-gallery-caption {

        position: absolute;

        bottom: 0;

        left: 0;

        right: 0;

        background: linear-gradient(transparent, rgba(139, 0, 0, 0.92));

        color: #ffffff;

        padding: 1.2rem 0.9rem 0.7rem;

        font-size: 0.9rem;

        font-weight: 500;

        opacity: 0;

        transition: opacity 0.3s ease;

    }



    .news-gallery-card:hover .news-gallery-caption {

        opacity: 1;

    }



    /* Unique Lightbox Modal */

    .news-modal-overlay {

        display: none;

        position: fixed;

        z-index: 9999;

        inset: 0;

        background-color: rgba(0, 0, 0, 0.88);

        align-items: center;

        justify-content: center;

        padding: 1.5rem;

    }



    .news-modal-overlay.active {

        display: flex;

    }



    .news-modal-img {

        max-width: 90%;

        max-height: 85vh;

        border: 3px solid #d97706;

        border-radius: 6px;

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

        object-fit: contain;

    }



    .news-modal-close {

        position: absolute;

        top: 20px;

        right: 30px;

        color: #ffffff;

        font-size: 2.5rem;

        font-weight: bold;

        cursor: pointer;

        line-height: 1;

        background: none;

        border: none;

    }



    .news-modal-close:hover {

        color: #d97706;

    }



    /* Responsive */

    @media (max-width: 900px) {

        .news-custom-grid {

            grid-template-columns: repeat(2, 1fr);

        }

    }



    @media (max-width: 540px) {

        .news-custom-grid {

            grid-template-columns: 1fr;

        }

        .news-gallery-card img {

            height: 220px;

        }

        .news-gallery-caption {

            opacity: 1;

        }

    }












/* ==========================================================================
   16. HERO SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  height: clamp(520px, 88vh, 820px);
  overflow: hidden;
  background: #1a1a1a;          /* shown while the first image loads */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;      /* per image: style="object-position: center 30%" */
  display: block;
  transform: scale(1);
  transition: transform 7s ease-out;
}

.hero-slide.active img {
  transform: scale(1.07);       /* slow zoom */
}

/* Dark layer so the white text stays readable */
.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  z-index: 2;
}

.hero-slider .hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-slider .hero-content h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: #8b0000;
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dots button.active {
  width: 30px;
  background: #d97706;
  border-color: #d97706;
}

/* Phones: swipe and dots only, smaller height */
@media (max-width: 768px) {
  .hero-slider {
    height: clamp(480px, 75vh, 640px);
  }
}

@media (max-width: 600px) {
  .hero-arrow {
    display: none;
  }
}

/* Respect people who turn off animations */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide img {
    transition: none;
    transform: none !important;
  }
}










/* Biography portrait */
.bio-portrait {
  max-width: 380px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.bio-portrait img {
width: 100%;
  height: 500px;            /* choose the height you want */
  object-fit: cover;        /* crops the image instead of stretching it */
  object-position: center top;  /* keeps the face and top of the photo */
  display: block;
  border-radius: 10px;
  border: 3px solid #e2d2b4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-portrait figcaption {
  margin-top: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: #8b0000;
}


width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 3px solid #e2d2b4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);




/* ==========================================================================
   17. PROFILE PAGE  (paste this at the END of style.css)
   Used by mohan-singh-rawat.php
   ========================================================================== */

.profile-page {
  background-color: #fffdf9;
}

.profile-page .container {
  max-width: 1050px;
}

/* ---- Photo + personal details ---- */
.profile-top {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.profile-photo {
  margin: 0;
  text-align: center;
}

.profile-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 3px solid #e2d2b4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.profile-photo figcaption {
  margin-top: 0.7rem;
  font-weight: 700;
  color: #8b0000;
}

.profile-details {
  background: #ffffff;
  border: 1px solid #e2d2b4;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-details h2,
.profile-block h2,
.profile-links h2 {
  color: #8b0000;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.profile-details h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3e8d3;
}

.profile-dl .row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f3e8dc;
}

.profile-dl .row:last-child {
  border-bottom: none;
}

.profile-dl dt {
  color: #d97706;
  font-weight: 700;
}

.profile-dl dd {
  color: #1f2937;
  margin: 0;
}

/* ---- Highlights ---- */
.profile-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdf6e9 100%);
  border: 1px solid #e2d2b4;
  border-top: 4px solid #d97706;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.hl-year {
  display: block;
  color: #8b0000;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.highlight-card p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- Life story blocks ---- */
.profile-block {
  background: #ffffff;
  border: 1px solid #e2d2b4;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.profile-block h2 {
  padding-left: 0.8rem;
  border-left: 4px solid #d97706;
}

.profile-block p {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.profile-block p:last-child {
  margin-bottom: 0;
}

.plain-list {
  margin: 0 0 0.5rem 1.4rem;
  color: #374151;
  line-height: 1.9;
}

/* ---- Timeline ---- */
.timeline {
  list-style: none;
  margin: 0.4rem 0 1rem 0.5rem;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid #e2d2b4;
}

.timeline li {
  position: relative;
  padding: 0.55rem 0 0.9rem;
  color: #374151;
  font-size: 1.03rem;
  line-height: 1.7;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 9px);
  top: 0.95rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d97706;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #e2d2b4;
}

.tl-year {
  display: block;
  width: max-content;
  max-width: 100%;
  background: #8b0000;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.1rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.3rem;
}

/* ---- Related links ---- */
.profile-links {
  background: #faf6f0;
  border: 1px solid #e2d2b4;
  border-radius: 12px;
  padding: 1.3rem 1.8rem;
  margin-top: 1.8rem;
}

.profile-links ul {
  list-style: none;
}

.profile-links li {
  padding: 0.4rem 0;
}

.profile-links a {
  color: #8b0000;
  font-weight: 600;
}

.profile-links a:hover {
  color: #d97706;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .profile-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .profile-details,
  .profile-block {
    padding: 1.2rem;
  }

  .profile-dl .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .profile-block p {
    font-size: 1rem;
  }
}







/* ==========================================================================
   18. DEV DOLI PRAMUKH TITHIYAN PAGE  (paste at the END of style.css)
   All class names start with "tithi-" so they cannot clash with other pages.
   ========================================================================== */

.tithi-page {
  background-color: #fffdf9;
}

.tithi-page .container {
  max-width: 1000px;
}

/* ---- Quick summary table ---- */
.tithi-summary-wrap {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2d2b4;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tithi-summary {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tithi-summary th {
  background: #8b0000;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.tithi-summary td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f0e6d2;
  color: #374151;
  font-size: 0.95rem;
}

.tithi-summary tbody tr:last-child td {
  border-bottom: none;
}

.tithi-summary tbody tr:nth-child(even) {
  background: #fcfbf7;
}

.tithi-summary td:last-child {
  color: #8b0000;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Event cards ---- */
.tithi-list {
  display: grid;
  gap: 2rem;
}

.tithi-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid #e2d2b4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* every second card has the picture on the right */
.tithi-card--reverse .tithi-media {
  order: 2;
}

.tithi-media {
  margin: 0;
  background: #f3e8d3;
}

.tithi-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;      /* every picture gets the same shape */
  object-fit: cover;
  object-position: center;
}

.tithi-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.8rem;
}

.tithi-step {
  color: #d97706;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tithi-title {
  color: #8b0000;
  font-size: 1.6rem;
  line-height: 1.35;
}

.tithi-dates {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.tithi-dates li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
  padding: 0.7rem 1rem;
  background: #fdf6e9;
  border-left: 4px solid #d97706;
  border-radius: 8px;
}

.tithi-place {
  color: #374151;
  font-weight: 600;
}

.tithi-date {
  color: #8b0000;
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ---- Note + links ---- */
.tithi-note {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  text-align: center;
  color: #4b5563;
  background: #faf6f0;
  border: 1px solid #e2d2b4;
  border-radius: 12px;
}

.tithi-note p + p {
  margin-top: 0.5rem;
}

.tithi-note a {
  color: #8b0000;
  font-weight: 600;
}

.tithi-note a:hover {
  color: #d97706;
}

/* ---- Phones and small tablets: picture on top, text below ---- */
@media (max-width: 768px) {
  .tithi-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .tithi-card--reverse .tithi-media {
    order: 0;
  }

  .tithi-media img {
    height: auto;
  }

  .tithi-body {
    padding: 1.2rem;
  }

  .tithi-title {
    font-size: 1.35rem;
  }

  .tithi-summary th,
  .tithi-summary td {
    padding: 0.6rem 0.7rem;
    font-size: 0.88rem;
  }
}








/* Kumbh 2027 poster */
.kflex-poster {
  max-width: 1200px;      /* same width as the rest of the home page */
  margin: 2rem auto;
  padding: 0 1rem;
}

.kflex-poster img {
  display: block;
  width: 100%;
  height: auto;           /* keeps the poster's shape, so the height is automatic */
  border: 3px solid #e2d2b4;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


.kflex-hint {
  display: none;            /* hint is shown only on phones */
}

@media (max-width: 768px) {
  .kflex-poster {
    margin: 1.2rem auto;
    padding: 0 0.6rem;
  }

  .kflex-hint {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
  }
}