/* Page hero styles for festivals */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  min-height: 60vh; /* large visible hero */
  padding: 4rem 1rem;
  margin-top: 70px; /* ensure hero sits below fixed navbar, matching index.html.php */
  /* background image + gentle gradient overlay for better contrast */
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)),
    url("public/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  additional subtle overlay to ensure text readability
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25));
  pointer-events: none;
} */

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 2rem 1rem;
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
}

.page-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Festival-specific hero */
.festivals-hero {
  background-image: url("public/paro-tshechu-mask-dance-festival.jpg");
}

/* Festivals Introduction */
.festivals-intro {
  padding: var(--spacing-xl) 0;
  background-color: var(--neutral-200);
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.intro-content .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.intro-content p {
  font-size: 1.1rem;
  color: var(--neutral-700);
  line-height: 1.8;
}

/* Festival Calendar */
.festival-calendar {
  padding: var(--spacing-xl) 0;
}

.festival-calendar h2 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.section-intro {
  text-align: center;
  color: var(--neutral-700);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.calendar-month {
  background-color: var(--neutral-100);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calendar-month h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--accent);
}

.month-festivals {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.calendar-item {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xs);
  background-color: var(--neutral-200);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
}

.calendar-item:hover {
  background-color: var(--primary);
  transform: translateX(5px);
}

.calendar-item strong {
  color: var(--neutral-900);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.calendar-item:hover strong {
  color: var(--neutral-100);
}

.calendar-item span {
  color: var(--neutral-700);
  font-size: 0.9rem;
}

.calendar-item:hover span {
  color: var(--neutral-200);
}

/* Featured Festivals */
.featured-festivals {
  padding: var(--spacing-xl) 0;
  background-color: var(--neutral-200);
}

.featured-festivals h2 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* Festival card: fixed-width left image with content on the right */
.festivals-grid-detailed {
  display: grid;
  gap: 32px; /* slightly larger gap between cards */
}

.festival-card-detailed {
  display: flex;
  gap: 24px;
  align-items: stretch; /* ensure left image and content both stretch to card height */
  background: var(--card-bg, #fff);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  height: 455px; /* fixed uniform height for all cards on desktop */
}

.festival-image {
  flex: 0 0 300px; /* fixed left column width */
  height: auto; /* allow flex stretch to control height */
  align-self: stretch; /* stretch to match card height */
  position: relative;
  overflow: hidden;
}

.festival-image img {
  width: 100%;
  min-height: 100%; /* ensure image always fills the container height */
  object-fit: cover;
  object-position: center center;
  display: block;
}

.festival-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background:  rgba(200, 90, 62, 0.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.festival-content {
  flex: 1 1 auto;
  padding: 22px 24px; /* a bit more breathing room */
  overflow: auto; /* allow scrolling when content exceeds fixed height */
  max-height: 100%;
  box-sizing: border-box;
  ;
}

/* Consistent vertical rhythm inside content */
.festival-content > * {
  margin-bottom: 12px;
}
.festival-content > *:last-child {
  margin-bottom: 0;
}

.festival-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.15;
}

.festival-meta {
  margin-bottom: 10px;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.festival-content p {
  margin-bottom: 12px;
  line-height: 1.75; /* improve readability */
}

.festival-content ul,
.festival-highlights ul {
  margin: 0 0 12px 1.25rem;
  padding: 0;
}

.festival-highlights h4 {
  margin: 0 0 8px 0;
}

/* Slightly smaller cards on medium screens */
@media (max-width: 1100px) {
  .festival-card-detailed {
    height: 300px;
  }
}

/* On small screens stack cards and let height be automatic */
@media (max-width: 800px) {
  .festival-card-detailed {
    flex-direction: column;
    height: auto;
  }
  .festival-image {
    width: 100%;
    height: 250px;
  }
  .festival-content {
    max-height: none;
    overflow: visible;
    padding: 16px;
  }
}

/* Read more toggle styling */
.readmore-toggle {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.readmore-toggle:hover {
  text-decoration: underline;
}

/* Expanded card state */
.festival-card-detailed.expanded {
  height: 640px; /* double the default height when expanded */
}

.festival-card-detailed.expanded .festival-content {
  overflow: auto;
  max-height: 100%;
}

@media (max-width: 800px) {
  .festival-card-detailed.expanded {
    height: auto; /* on mobile expanded just shows full content */
  }
}

/* Festival Tours CTA */
.festival-tours-cta {
  padding: var(--spacing-xl) 0;
  background-color: #1f653b;
  color: var(--neutral-100);
  text-align: center;
}

.festival-tours-cta .cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-100);
}

.festival-tours-cta .cta-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Festival Tips */
.festival-tips {
  padding: var(--spacing-xl) 0;
}

.festival-tips h2 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.tip-card {
  background-color: var(--neutral-200);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.tip-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.tip-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.tip-card p {
  color: var(--neutral-700);
  line-height: 1.6;
}

/* Contact CTA */
.contact-cta {
  padding: var(--spacing-xl) 0;
  background-color: var(--neutral-200);
}

.cta-box {
  background-color: #1f653b;
  color: var(--neutral-100);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-100);
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

/* admin festival */
.festival-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.festival-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.festival-image img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .festival-card-detailed {
    grid-template-columns: 1fr;
  }

  .festival-image {
    min-height: 250px;
  }
}


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

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

  .intro-content h2,
  .festival-calendar h2,
  .featured-festivals h2,
  .festival-tips h2 {
    font-size: 2rem;
  }

  .cta-box h2 {
    font-size: 2rem;
  }

  .page-hero {
    min-height: 50vh;
    padding: 3rem 1rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 576px) {
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .page-hero {
    min-height: 40vh;
    padding: 2rem 1rem;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .page-hero .hero-subtitle {
    font-size: 1rem;
  }
}
