/* ============================================
   Tridhara — Odissi Dance Studio
   Theme inspired by Debadhara (debadhara.org)
   Clean, institutional, classical
   ============================================ */

:root {
  /* Debadhara-style: clean light bg, dark text, single accent */
  --color-bg: #fdfcfa;
  --color-bg-alt: #f5f3ef;
  --color-bg-dark: #2d2524;
  --color-text: #2d2524;
  --color-text-muted: #5c5352;
  --color-accent: #8b3a4a;
  --color-accent-hover: #6e2e3b;
  --color-accent-light: rgba(139, 58, 74, 0.08);
  --color-border: #e5e0db;
  --color-white: #ffffff;
  --color-gold: #b8860b;

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --container: min(92vw, 1140px);
  --header-height: 4.5rem;
  --team-photo-size: 220px;
}

@media (max-width: 380px) {
  :root { --team-photo-size: 180px; }
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ----- Header (Debadhara-style: simple, light) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo img {
  max-height: 2.75rem;
  height: auto;
  max-width: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo:hover { color: var(--color-accent); }
.logo:hover img { opacity: 0.9; }

@media (max-width: 480px) {
  .logo img {
    max-height: 2.25rem;
    max-width: 110px;
  }
  .logo span {
    font-size: 1.35rem;
  }
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.nav-current { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* ----- Hero with background carousel ----- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-xl);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.45s forwards;
}

.hero .btn {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ----- Sections ----- */
.section {
  padding: var(--space-2xl) var(--space-lg);
}
.section--tight-bottom {
  padding-bottom: var(--space-sm);
}
.section--tight-top {
  padding-top: var(--space-sm);
}

.container { max-width: var(--container); margin: 0 auto; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  max-width: 640px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.prose { max-width: 720px; }
.prose p { margin: 0 0 var(--space-md); }
.prose p:last-child { margin-bottom: 0; }
.section-subtitle { font-size: 1.05rem; color: var(--color-text-muted); margin: 0 0 var(--space-lg); max-width: 640px; }
.section-cta-link { margin-top: var(--space-lg); }
.subsection-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-text); margin: var(--space-lg) 0 var(--space-sm); }
.subsubsection-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--color-text); margin: var(--space-md) 0 var(--space-xs); }
.content-list--timeline { list-style: none; padding-left: 0; }
.content-list--timeline li { margin-bottom: var(--space-xs); padding-left: 1.25rem; position: relative; }
.content-list--timeline li::before { content: "·"; position: absolute; left: 0; font-weight: 700; color: var(--color-accent, #8b6914); }
.content-list--timeline strong { font-weight: 600; margin-right: 0.25rem; }
.content-list--achievements { margin-bottom: var(--space-lg); }
.content-list--achievements li { margin-bottom: 0.35em; }
.prose--compact { margin-bottom: var(--space-sm); }
.prose--compact p { margin-bottom: var(--space-xs); }

/* ----- Block: Intro ----- */
.block-intro { background: var(--color-bg); }
.block-about-alt { background: var(--color-bg-alt); }

/* ----- Block: Our Gurus (3 cards, 2 with photos) ----- */
.block-gurus { background: var(--color-bg); }
.gurus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 800px) {
  .gurus-grid { grid-template-columns: 1fr; }
}
.guru-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s;
}
.guru-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.guru-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.guru-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guru-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-light), #eee);
}
.guru-info { padding: var(--space-md); }
.guru-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 var(--space-xs);
}
.guru-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}
.guru-bio { font-size: 0.95rem; line-height: 1.6; color: var(--color-text-muted); margin: 0 0 var(--space-sm); }
.guru-link { font-size: 0.9rem; font-weight: 500; color: var(--color-accent); text-decoration: none; }
.guru-link:hover { text-decoration: underline; }

/* ----- Block: Festivals preview ----- */
.block-festivals-preview { background: var(--color-bg-alt); }
.festivals-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}
@media (max-width: 600px) { .festivals-preview-grid { grid-template-columns: 1fr; } }
.festival-preview-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.festival-preview-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin: 0 0 var(--space-sm); color: var(--color-text); }
.festival-preview-card p { margin: 0; font-size: 0.98rem; color: var(--color-text-muted); line-height: 1.6; }

/* ----- Block: Upcoming events ----- */
.block-upcoming { background: var(--color-bg); }
.block-upcoming .section-title { margin-bottom: var(--space-lg); }
.event-banner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 0;
  align-items: stretch;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(45, 37, 36, 0.06);
  min-height: 320px;
}
.event-banner-image {
  height: 100%;
  min-height: 280px;
  background: var(--color-bg-alt);
}
.event-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.event-banner-content {
  padding: var(--space-xl) var(--space-lg);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-banner-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}
.event-banner-dates {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}
.event-banner-desc,
.event-banner-invite {
  margin: 0 0 var(--space-sm);
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.event-banner-schedule {
  list-style: none;
  padding-left: 0;
  margin: 0 0 var(--space-md);
}
.event-banner-schedule li {
  margin-bottom: var(--space-xs);
  font-size: 0.98rem;
  color: var(--color-text-muted);
}
.event-banner-actions {
  margin: var(--space-lg) 0 var(--space-md);
}
.event-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}
.event-banner-contact {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.event-banner-contact a {
  color: var(--color-accent);
  text-decoration: none;
}
.event-banner-contact a:hover { text-decoration: underline; }

.event-banner-note {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.event-banner-note strong { color: var(--color-text); font-style: normal; }

@media (max-width: 720px) {
  .event-banner {
    grid-template-columns: 1fr;
  }
  .event-banner-image {
    min-height: 280px;
    padding: var(--space-sm);
  }
  .event-banner-image img {
    object-fit: contain;
  }
  .event-banner-content { padding: var(--space-md); }
}

/* ----- Block: Contact (home) ----- */
.block-contact { background: var(--color-bg); }
.contact-block { font-size: 1.05rem; }
.contact-block p { margin: 0 0 var(--space-sm); }
.contact-block a { color: var(--color-accent); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* ----- Tabs (Guru Gajendra page) ----- */
.block-tabs { padding-top: var(--space-lg); }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel-title { font-family: var(--font-heading); font-size: 1.5rem; margin: 0 0 var(--space-md); color: var(--color-text); }
.tab-panel-profile-header { display: flex; align-items: center; gap: var(--space-lg); margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.tab-panel-profile-photo { flex-shrink: 0; width: 160px; height: 160px; border-radius: 8px; overflow: hidden; }
.tab-panel-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tab-panel-profile-meta { min-width: 0; }
.tab-panel-profile-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin: 0 0 var(--space-xs); color: var(--color-text); }
.tab-panel-profile-designation { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }
@media (max-width: 560px) { .tab-panel-profile-header { flex-direction: column; text-align: center; } }
.content-list { margin: var(--space-sm) 0; padding-left: 1.5rem; }
.content-list li { margin-bottom: var(--space-xs); color: var(--color-text-muted); }

/* ----- Festivals page ----- */
.block-festivals-page .festival-article { margin-bottom: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-border); }
.block-festivals-page .festival-article:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.festival-article-title { font-family: var(--font-heading); font-size: 1.75rem; margin: 0 0 var(--space-xs); color: var(--color-text); }
.festival-dates { font-size: 1rem; color: var(--color-accent); font-weight: 600; margin: 0 0 var(--space-md); }

/* ----- About full + Gurus full ----- */
.block-about-full { background: var(--color-bg); }
.block-gurus-full { background: var(--color-bg-alt); }
.about-us-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-light), #eee);
}

/* ----- Branches page ----- */
.branches-page { background: var(--color-bg); }
.container--narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

.branch-entry {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.branch-entry:last-child { margin-bottom: 0; }

.branch-entry-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.branch-entry-photo {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.branch-entry-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.branch-entry-photo--large {
  width: 140px;
  height: 140px;
  min-width: 140px;
}
.branch-entry-title-wrap { min-width: 0; }
.branch-entry-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}
.branch-entry-location {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0;
}
.branch-entry-body { min-width: 0; }
.branch-entry-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* Long text branches: readable prose layout */
.branch-entry-body--prose {
  max-width: 65ch;
}
.branch-entry-body--prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
}
.branch-entry-body--prose p:last-child { margin-bottom: 0; }

.branch-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-light), #eee);
  text-align: center;
  padding: 0.5rem;
}
.branch-entry-photo img + .branch-photo-placeholder { display: none; }

/* Legacy branch-card (if still used elsewhere) */
.branch-coordinator-photo {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.branch-coordinator-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.branch-coordinator-photo img + .branch-photo-placeholder { display: none; }

/* ----- Gallery page ----- */
.block-gallery-page .gallery-categories { margin-bottom: var(--space-sm); }

/* ----- Block: Tridhara intro (like "Debadhara" on reference) ----- */
.block-org {
  background: var(--color-bg);
}

.block-org .section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.block-org .org-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 820px;
}

/* ----- Block: Upcoming Events (reference: event banner + performer cards) ----- */
.block-events {
  background: var(--color-bg-alt);
}

.events-banner {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 8px;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.events-banner .events-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  letter-spacing: 0.03em;
}

.events-banner .events-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.events-banner .events-venue {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

.events-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.event-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.event-card .event-artist {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}

.event-card .event-form {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0 0 var(--space-xs);
}

.event-card .event-day {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----- Block: Our Story ----- */
.block-story {
  background: var(--color-bg);
}

.block-story .section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.block-story .story-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 720px;
}

/* ----- Block: Workshops (reference: list style) ----- */
.block-workshops {
  background: var(--color-bg-alt);
}

.workshops-intro {
  margin-bottom: var(--space-lg);
}

.workshops-intro .section-subtitle {
  margin-bottom: var(--space-sm);
}

.workshops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
}

.workshops-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  color: var(--color-text);
}

.workshops-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* ----- Block: Our Lineage (reference: equal cards, photo + name + role) ----- */
.block-lineage {
  background: var(--color-bg);
}

.lineage-tagline {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
}

.lineage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .lineage-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.lineage-card {
  text-align: center;
}

.lineage-card .lineage-photo {
  width: var(--team-photo-size);
  height: var(--team-photo-size);
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 3px solid var(--color-border);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.lineage-card .lineage-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.lineage-card .lineage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lineage-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-light), #eee);
}

.lineage-card .lineage-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}

.lineage-card .lineage-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.lineage-card .lineage-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  text-align: left;
}

/* ----- Block: CTA (reference: "What are you waiting for?" + Contact) ----- */
.block-cta {
  background: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.block-cta .cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 var(--space-md);
}

.block-cta .cta-text {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.block-cta .btn-primary {
  background: var(--color-white);
  color: var(--color-bg-dark);
}

.block-cta .btn-primary:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* ----- Block: Festivals (reference: paragraph + badge names) ----- */
.block-festivals {
  background: var(--color-bg-alt);
}

.festivals-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
  max-width: 800px;
}

.festivals-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.festival-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  text-transform: capitalize;
  transition: background 0.2s, color 0.2s;
}

.festival-badge:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ----- Block: Blog & news ----- */
.block-blog {
  background: var(--color-bg);
}

.blog-list {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .blog-list { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.blog-card .blog-image {
  aspect-ratio: 16/10;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.blog-card .blog-body {
  padding: var(--space-md);
}

.blog-card .blog-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.blog-card .blog-title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card .blog-title a:hover { color: var(--color-accent); }

.blog-card .blog-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.blog-card .blog-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
  line-height: 1.6;
}

.blog-card .blog-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.blog-card .blog-link:hover { text-decoration: underline; }

.blog-cta {
  margin-top: var(--space-lg);
}

/* ----- Block: Contact (reference: list style) ----- */
.block-contact {
  background: var(--color-bg-alt);
}

.contact-intro {
  margin-bottom: var(--space-lg);
}

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

.contact-list li {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.contact-list a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; }

.contact-form-wrap {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.65rem 1rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ----- About Us page (Debadhara about-us style) ----- */
.about-us-page {
  padding-top: var(--space-xl);
}

.about-us-person {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.about-us-person:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.about-us-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 var(--space-xs);
}

.about-us-name {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.about-us-body {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 700px) {
  .about-us-body {
    grid-template-columns: 200px 1fr;
  }
}

.about-us-photo {
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
}

.about-us-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-us-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-light), #eee);
}

.about-us-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.about-us-content p {
  margin: 0 0 var(--space-md);
}

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

/* ----- Page header (inner pages) ----- */
.page-header {
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-xl);
  background: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.page-subtitle {
  margin: 0;
  font-size: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.35s forwards;
}

/* ----- Gallery page ----- */
.gallery-page .section-title { text-align: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.gallery-item--clickable {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item--clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item--clickable img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Gallery carousel (horizontal scroll, click to lightbox) */
.gallery-carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}
.gallery-carousel .gallery-item {
  flex: 0 0 min(280px, 75vw);
  scroll-snap-align: start;
  aspect-ratio: 4/5;
}

/* Cylinder carousel: 5 photos (1 on mobile), center big, sides dim & slanted */
.cylinder-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.cylinder-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  border-radius: 12px;
}
.cylinder-track {
  display: flex;
  width: 160vw;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  transform-style: preserve-3d;
}
.cylinder-slide {
  flex: 0 0 20vw;
  width: 20vw;
  min-width: 0;
  padding: 0 0.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}
.cylinder-slide-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.45s ease, box-shadow 0.35s ease, opacity 0.45s ease;
  transform-origin: center center;
  backface-visibility: hidden;
}
.cylinder-slide-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.cylinder-slide-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
/* Arrows outside */
.cylinder-arrow {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cylinder-arrow:hover {
  background: var(--color-white);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.cylinder-arrow:active {
  transform: scale(0.98);
}
/* Mobile: 1 photo */
@media (max-width: 640px) {
  .cylinder-gallery {
    gap: var(--space-xs);
    padding: 0;
  }
  .cylinder-track {
    width: 800vw;
  }
  .cylinder-slide {
    flex: 0 0 100vw;
    width: 100vw;
    padding: 0 0.5rem;
  }
  .cylinder-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
}

/* Chisato profile: photo + content side by side */
.chisato-profile-layout {
  overflow: auto;
}

.chisato-photo {
  float: left;
  width: min(320px, 45%);
  margin: 0 var(--space-xl) var(--space-md) 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.chisato-photo img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.chisato-content {
  min-width: 0;
}

.chisato-content .subsection-title:first-of-type {
  margin-top: 0;
}

@media (max-width: 700px) {
  .chisato-photo {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto var(--space-lg);
  }
}

/* Gallery lightbox modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-prev { left: 1.5rem; }
.gallery-lightbox-next { right: 1.5rem; }

.gallery-note {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ----- Announcements page ----- */
.announcements-section .section-title {
  margin-top: var(--space-xl);
}

.announcements-section .section-title:first-of-type { margin-top: 0; }

.announcements-list,
.programmes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.announcement-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  border: 1px solid var(--color-border);
}

.announcement-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.announcement-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}

.announcement-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.programme-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.programme-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.programme-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}

.programme-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.programme-card p:last-of-type {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.announcements-note {
  margin-top: var(--space-lg);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.announcements-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.footer-logo a {
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo a span {
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-white);
  padding: 0.35rem;
  flex-shrink: 0;
}

.footer-logo img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 480px) {
  .footer-logo-circle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.25rem;
  }
}

.footer-logo a:hover { opacity: 0.9; }

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0 0 var(--space-md);
}

.footer-copy {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.7;
}

/* ----- Mobile nav ----- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }
}
