/* Welcome page custom styles */
:root {
  --gold: #C49A3C;
  --gold-light: #E8C878;
  --gold-pale: #F9F4E3;

  --maroon: #8A2E2E;
  --maroon-deep: #5A1A1A;

  --saffron: #D4722A;
  --saffron-light: #F4A261;

  --cream: #FFFFFF;
  --light-bg: #F9F6F1;
  --light-surface: #FFFFFF;
  --light-card: #FFFDF8;

  --dark-bg: #0E0A06;
  --dark-surface: #120D09;
  --dark-card: #18120F;
  --text-light: #F6F1E8;

  --text-dark: #2B2B2B;
  --text-muted: #7A6F5A;

  --lotus-pink: #E8A0A0;

  --body-font: 'Raleway', sans-serif;
  --sinhala-font: 'Noto Serif Sinhala', serif;
  --display-font: 'Cinzel Decorative', cursive;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sinhala-font);
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
}

/* ===== MANDALA BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(196,154,60,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background: rgba(14,10,6,0.95);
  border-bottom: 1px solid rgba(196,154,60,0.2);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  background: rgba(14,10,6,0.98);
}

.navbar-brand-custom {
  font-family: var(--display-font);
  font-size: 1.1rem;
  color: var(--gold) !important;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.navbar-brand-custom span {
  display: block;
  font-family: var(--sinhala-font);
  font-size: 0.7rem;
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.nav-link-custom {
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  font-family: var(--body-font);
}

.nav-link-custom:hover { color: var(--gold-light) !important; }

.navbar-toggler-custom {
  border: 1px solid rgba(196,154,60,0.4);
  padding: 0.4rem 0.6rem;
  background: none;
  cursor: pointer;
}

.navbar-toggler-custom span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107,26,26,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(196,154,60,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(212,114,42,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0E0A06 0%, #1A0E08 100%);
}

.lotus-circles {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.07;
}

.lotus-circles circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.5;
  animation: rotateLotus 60s linear infinite;
  transform-origin: 300px 300px;
}

@keyframes rotateLotus {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(196,154,60,0.4);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.8rem;
  font-family: var(--body-font);
}

.hero-title-en {
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-title-si {
  font-family: var(--sinhala-font);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: #fff;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero-quote {
  font-family: var(--sinhala-font);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: var(--text-light);
  line-height: 1.9;
  max-width: 560px;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
  margin-bottom: 2.5rem;
  font-weight: 400;
  opacity: 0.9;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 100%);
  color: var(--dark-bg);
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(196,154,60,0.5);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196,154,60,0.06);
}

.hero-slider {
  position: relative;
  min-height: 260px;
  padding: 1rem;
}

.hero-slider .slide-quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease, border-color 0.3s ease, background 0.3s ease;
}

.hero-slider .slide-quote.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-slider .slide-quote:hover {
  border-color: rgba(196,154,60,0.35);
  background: rgba(255,255,255,0.12);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.85s forwards ease;
}

.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.55s; }
.delay-4 { animation-delay: 0.75s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slider .slide-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(196,154,60,0.45);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-slider .slide-quote.active .slide-dot {
  background: var(--gold);
  transform: scale(1.15);
}

.hero-slider .slide-quote p {
  margin: 0;
  text-align: center;
  font-family: var(--sinhala-font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-light);
}

.footer-nav-highlight {
  color: var(--gold) !important;
  font-weight: 700;
}

.news-events-section {
  padding: 100px 0 120px;
  background: var(--dark-surface);
}

.calendar-panel {
  background: var(--dark-card);
  border: 1px solid rgba(196,154,60,0.12);
  border-radius: 24px;
  padding: 2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.calendar-panel-title {
  font-family: var(--display-font);
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.calendar-panel-subtitle {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.7;
}

.badge-gold {
  background: var(--gold);
  color: var(--dark-bg);
}

.badge-pill {
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-calendar {
  border: 1px solid rgba(196,154,60,0.3);
  background: transparent;
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  transition: all 0.25s ease;
}

.btn-calendar:hover {
  background: rgba(196,154,60,0.1);
  color: var(--gold);
}

.calendar-month-name {
  font-weight: 700;
  color: var(--text-light);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
}

.calendar-cell {
  min-height: 100px;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
  position: relative;
}

.calendar-cell.head {
  background: rgba(196,154,60,0.08);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.day-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.day-badge.event-breakfast,
.day-badge.event-lunch {
  background: rgba(220,38,38,0.15);
  color: #ffdddd;
  border: 1px solid rgba(220,38,38,0.4);
}

.day-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.day-event {
  cursor: pointer;
  border-color: rgba(196,154,60,0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.day-event:hover {
  transform: translateY(-2px);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.85rem;
}

.legend-item span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.legend-item.breakfast span,
.legend-item.lunch span {
  background: rgba(220,38,38,0.8);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: grid;
  place-items: center;
  z-index: 2000;
}

.event-popup {
  width: min(520px, 95%);
  background: var(--dark-card);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(196,154,60,0.15);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.event-popup h3 {
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.popup-date {
  color: #fff;
  margin-bottom: 1.5rem;
}

.popup-event-item {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.popup-event-item:first-child {
  border-top: none;
}

.popup-event-item strong {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.popup-event-time {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.popup-event-type {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.popup-event-type.breakfast,
.popup-event-type.lunch {
  background: rgba(220,38,38,0.9);
}

.event-cards {
  margin-top: 1rem;
}

.event-card {
  background: var(--dark-card);
  border: 1px solid rgba(196,154,60,0.1);
  border-radius: 24px;
  padding: 1.8rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card-header {
  margin-bottom: 1rem;
}

.event-card-tag {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.event-card-tag.breakfast,
.event-card-tag.lunch {
  background: rgba(220,38,38,0.15);
  color: #ffdddd;
  border: 1px solid rgba(220,38,38,0.3);
}

.event-card h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.event-card p {
  color: #fff;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.event-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-card,
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-card {
  background: var(--gold);
  color: var(--dark-bg);
}

.btn-card:hover {
  background: var(--gold-light);
}

.btn-download {
  border: 1px solid rgba(196,154,60,0.3);
  color: var(--text-light);
  background: transparent;
}

.btn-download:hover {
  background: rgba(196,154,60,0.1);
  color: var(--gold);
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slide-quote {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(196,154,60,0.12);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0.4;
  transform: translateX(30px);
}

.slide-quote.active {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(196,154,60,0.4);
  background: rgba(196,154,60,0.05);
}

.slide-quote p {
  font-family: var(--sinhala-font);
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.8;
  margin: 0;
}

.slide-quote.active p { color: var(--text-light); }

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(196,154,60,0.2);
  display: inline-block;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.slide-quote.active .slide-dot {
  background: var(--gold);
  width: 18px;
  border-radius: 3px;
}

/* ===== DIVIDER ===== */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.gold-divider::before, .gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,154,60,0.4), transparent);
}

.gold-divider .lotus-icon {
  color: var(--gold);
  font-size: 1rem;
}

/* ===== SECTION STYLES ===== */
section { position: relative; z-index: 1; }

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--body-font);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--sinhala-font);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.section-subtitle {
  font-family: var(--sinhala-font);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.8;
  font-weight: 300;
}

/* Compact calendar and section heading styles for offering page */
#calendar {
  font-family: var(--body-font);
  color: var(--text-light);
  font-size: 14px;
}
.fc .fc-toolbar-title {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--gold);
}
.fc .fc-button {
  font-family: var(--body-font);
  font-size: 0.85rem;
  padding: 0.32rem 0.5rem;
}
.fc .fc-daygrid-day-frame {
  min-height: 64px;
  padding: 0.45rem;
}
.fc .fc-daygrid-day-top {
  font-size: 0.82rem;
  color: var(--text-light);
}
.fc .fc-daygrid-event {
  font-size: 0.75rem;
  padding: 0.18rem 0.35rem;
}

.section-title {
  font-family: var(--display-font);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  text-align: left;
}
.calendar-heading, .gallery-heading {
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}

/* ===== DHAMMA CATEGORIES ===== */
.dhamma-section {
  padding: 100px 0;
  background: var(--dark-bg);
}

/* Ensure Dhamma section headings use the site's display font, gold color and centered sizing */
.dhamma-section .section-label { text-align: center; }
.dhamma-section .section-title {
  font-family: var(--display-font);
  color: var(--gold);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.8rem;
  text-align: center;
}
.dhamma-section .section-subtitle { text-align: center; font-size: 1rem; }

.dhamma-card {
  background: var(--dark-card);
  border: 1px solid rgba(196,154,60,0.1);
  padding: 2rem 1.8rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  height: 100%;
}

.dhamma-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--saffron));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.dhamma-card:hover {
  border-color: rgba(196,154,60,0.3);
  background: rgba(33,24,16,0.9);
  transform: translateY(-4px);
}

.dhamma-card:hover::before { transform: scaleX(1); }

.dhamma-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.dhamma-card-title {
  font-family: var(--sinhala-font);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.dhamma-card-desc {
  font-family: var(--sinhala-font);
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.85;
  font-weight: 300;
}

.dhamma-card-link {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--body-font);
  font-weight: 600;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  padding: 100px 0;
  background: var(--dark-surface);
}

.video-card {
  background: var(--dark-card);
  border: 1px solid rgba(196,154,60,0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.video-card:hover {
  border-color: rgba(196,154,60,0.3);
  transform: translateY(-4px);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1A0E08 0%, #2D1A0E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(196,154,60,0.15) 0%, transparent 70%);
}

.play-btn {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(196,154,60,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.play-btn i { color: var(--gold-light); font-size: 1.3rem; }

.video-card:hover .play-btn {
  border-color: var(--gold);
  background: rgba(196,154,60,0.1);
  transform: scale(1.1);
}

.video-info {
  padding: 1.2rem 1.5rem;
}

.video-title {
  font-family: var(--sinhala-font);
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.video-meta {
  font-size: 0.72rem;
  color: #fff;
  font-family: var(--body-font);
}

/* ===== LATEST ARTICLES ===== */
.articles-section {
  padding: 20px 0 100px;
  background: var(--dark-bg);
}

.article-card {
  border-bottom: 1px solid rgba(196,154,60,0.1);
  padding: 2rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-card:last-child { border-bottom: none; }

.article-card:hover .article-title { color: var(--gold-light); }

.article-num {
  font-family: var(--display-font);
  font-size: 2.5rem;
  color: rgba(196,154,60,0.15);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  text-align: right;
  transition: color 0.3s ease;
}

.article-card:hover .article-num { color: rgba(196,154,60,0.4); }

.article-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron-light);
  font-family: var(--body-font);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-title {
  font-family: var(--sinhala-font);
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.article-excerpt {
  font-family: var(--sinhala-font);
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.8;
  font-weight: 300;
}

/* ===== EVENTS SECTION ===== */
.events-section {
  padding: 100px 0;
  background: var(--dark-surface);
}

.event-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(196,154,60,0.08);
  align-items: flex-start;
  text-decoration: none;
  transition: all 0.3s ease;
}

.event-item:hover .event-title { color: var(--gold-light); }

.event-date-box {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(196,154,60,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(196,154,60,0.05);
}

.event-date-day {
  font-family: var(--display-font);
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1;
}

.event-date-month {
  font-size: 0.6rem;
  color: #fff;
  font-family: var(--body-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-type {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron-light);
  font-family: var(--body-font);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.event-title {
  font-family: var(--sinhala-font);
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.event-excerpt {
  font-family: var(--sinhala-font);
  font-size: 0.78rem;
  color: #fff;
  font-weight: 300;
}

/* ===== QUOTE BANNER ===== */
.quote-banner {
  padding: 60px 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(107,26,26,0.3) 0%, transparent 70%),
    var(--dark-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: '❋';
  position: absolute;
  font-size: 30rem;
  color: rgba(196,154,60,0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.quote-banner blockquote {
  font-family: var(--sinhala-font);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-light);
  line-height: 2;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(107,26,26,0.4) 0%, rgba(14,10,6,0.9) 50%, rgba(196,154,60,0.1) 100%);
  border-top: 1px solid rgba(196,154,60,0.15);
  border-bottom: 1px solid rgba(196,154,60,0.15);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  background: var(--dark-surface);
  border-top: 1px solid rgba(196,154,60,0.1);
}

.footer-brand {
  font-family: var(--display-font);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: var(--sinhala-font);
  font-size: 0.8rem;
  color: #fff;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.footer-nav-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--body-font);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav-link {
  display: block;
  font-family: var(--sinhala-font);
  font-size: 0.82rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-nav-link:hover { color: var(--gold-light); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(247, 247, 247, 0.863);
  font-family: var(--body-font);
  border-top: 1px solid rgba(196,154,60,0.06);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

/* ===== SOCIAL ICONS ===== */
.social-links { display: flex; gap: 0.8rem; }

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(196,154,60,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196,154,60,0.08);
}

/* ===== ANIMATIONS ===== */
.fade-up {

  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Load-more reveal animation */
.gallery-item.reveal {
  animation: fadeInUp 0.45s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Gallery: ensure images cover their tiles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.28s ease;
  height: 220px; /* fixed tile height on desktop */
}
.gallery-item img,
.gallery-item .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover { transform: translateY(-6px); }

/* Respect Bootstrap d-none for hidden items */
.gallery-item.d-none { display: none !important; }

@media (max-width: 991px) {
  .gallery-item { height: 180px; }
}
@media (max-width: 767px) {
  .gallery-item { height: 140px; }
}
@media (max-width: 479px) {
  .gallery-item { height: 220px; }
}

.delay-5 { transition-delay: 0.5s; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--dark-surface);
  border-left: 1px solid rgba(196,154,60,0.2);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
  overflow-y: auto;
}

.mobile-menu.open { right: 0; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  display: block;
  font-family: var(--sinhala-font);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(196,154,60,0.08);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover { color: var(--gold-light); }

.close-menu {
  background: none;
  border: 1px solid rgba(196,154,60,0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 2rem;
  margin-left: auto;
}

/* ===== OfferingS CAROUSEL ===== */


.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(196,154,60,0.1);
}

.read-more:hover {
  color: var(--gold-light);
  gap: 0.8rem;
}
/* ===== EVENTS CAROUSEL ===== */
.events-carousel {
  margin-top: 2rem;
}

.news-event-card {
  background: var(--dark-card);
  border: 1px solid rgba(196,154,60,0.12);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196,154,60,0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* IMAGE */
.news-event-image {
  position: relative;
  overflow: hidden;
}

.news-event-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-event-card:hover img {
  transform: scale(1.08);
}

/* DATE BADGE */
.event-date-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
}
/* ===== FINAL CONTACT-SECTION THEME (site fonts/colors/sizes) ===== */
.contact-section {
  padding: 80px 0;
  background: var(--dark-surface);
  color: var(--text-light);
  font-family: var(--body-font);
}
.contact-section .section-label {
  color: var(--gold);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.contact-section .section-title {
  font-family: var(--sinhala-font);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.contact-section .contact-panel {
  background: var(--dark-card);
  border: 1px solid rgba(196,154,60,0.08);

  padding: 1.25rem;
  color: var(--text-light);
}
.contact-section .h-100 { min-height: 400px; }
.contact-section iframe { width: 100%; height: 100%; min-height: 360px; border: 0;   display: block; }
.contact-section .form-label { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.95rem; font-family: var(--body-font); }
.contact-section .form-control { background: transparent; border: 1px solid rgba(254, 254, 254, 0.998); color: #fff; padding: 0.65rem 0.9rem; border-radius: 8px; font-family: var(--body-font); font-size: 0.95rem; }
.contact-section textarea.form-control { min-height: 140px; resize: vertical; }
.contact-section .btn-send { background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 100%); border: none; color: var(--dark-bg); font-weight: 700; padding: 0.85rem 1rem; border-radius: 10px; }
.contact-section .btn-send:hover { filter: brightness(0.95); }

@media (max-width: 991px) {
  .contact-section .h-100 { min-height: 300px; }
  .contact-section iframe { min-height: 240px; }
}
  /* background: rgba(14,10,6,0.85);
  border: 1px solid rgba(196,154,60,0.5);
  padding: 6px 10px;
  text-align: center;
  border-radius: 10px;
  backdrop-filter: blur(6px);
} */

.date-day {
  display: block;
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--gold);
  line-height: 1;
}

.date-month {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* CONTENT */
.news-event-content {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* EVENT TYPE */
.event-type {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* TITLE */
.news-event-content h4 {
  font-family: var(--sinhala-font);
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-event-card:hover h4 {
  color: var(--gold-light);
}

/* DESCRIPTION */
.news-event-content p {
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.8;
  flex-grow: 1;
}

/* LINK */
.news-event-content a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.news-event-content a:hover {
  color: var(--gold-light);
  gap: 10px;
}

/* ===== OWL NAV STYLE ===== */
.events-carousel .owl-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.events-carousel .owl-nav button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(196,154,60,0.3) !important;
  background: transparent !important;
  color: var(--gold) !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.events-carousel .owl-nav button:hover {
  background: rgba(196,154,60,0.15) !important;
  border-color: var(--gold) !important;
}

/* DOTS */
.events-carousel .owl-dots {
  margin-top: 10px;
  text-align: center;
}

.events-carousel .owl-dot span {
  width: 8px;
  height: 8px;
  background: rgba(196,154,60,0.3);
  display: block;
  border-radius: 50%;
  margin: 5px;
  transition: all 0.3s ease;
}

.events-carousel .owl-dot.active span {
  background: var(--gold);
  transform: scale(1.3);
}
/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border: none;
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover { background: var(--gold-light); }

/* ===== OFFERING SECTION ===== */
.offering-section {
  background: var(--dark-surface);
  position: relative;
}

/* subtle background glow */
.offering-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196,154,60,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* CARD */
.offering-card {
  background: var(--dark-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(196,154,60,0.1);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.offering-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196,154,60,0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* IMAGE */
.offering-image {
  overflow: hidden;
}

.offering-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offering-card:hover img {
  transform: scale(1.08);
}

/* CONTENT */
.offering-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* TITLE */
.offering-content h4 {
  font-family: var(--sinhala-font);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

/* DESCRIPTION */
.offering-content p {
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* PROGRESS */
.progress-section {
  margin-top: auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
  color: var(--text-light);
}

.progress {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  height: 100%;
}

/* DONATE BOX */
.donate-box {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.donate-box input {
  border-radius: 10px;
  border: 1px solid rgba(196,154,60,0.2);
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.donate-box input::placeholder {
  color: rgba(215, 215, 215, 0.833);
}

/* BUTTON */
.btn-donate {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--dark-bg);
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.btn-donate:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
}


.gallery-img {
    cursor: pointer;
    transition: 0.3s;
}
.gallery-img:hover {
    transform: scale(1.05);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .events-carousel .owl-item {
    width: calc(33.333% - 1rem) !important;
  }
}

@media (max-width: 768px) {
  .hero-section { padding-top: 100px; }
  .dhamma-section, .video-section, .articles-section,
  .events-section, .quote-banner, .cta-section { padding: 70px 0; }
  .hero-slider { display: none; }
  .lotus-circles { display: none; }

  .events-carousel .owl-item {
    width: calc(50% - 0.75rem) !important;
  }

  .news-event-content {
    padding: 1rem;
  }

  .news-event-title {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .hero-title-en { font-size: 1.8rem; }
  .article-num { display: none; }
  .event-date-box { width: 48px; height: 48px; }

  .events-carousel .owl-item {
    width: 100% !important;
  }

  .news-event-card {
    flex-direction: row;
  }

  .news-event-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }

  .news-event-content {
    padding: 1rem;
  }
}

/* ===== Dana page specific styling ===== */
.dana-page {
  background: linear-gradient(180deg, rgba(14,10,6,0.98) 0%, rgba(18,13,9,0.98) 100%);
  padding-bottom: 4rem;
}

.dana-page .card {
  border-radius: 14px;
  overflow: hidden;
  border: none;
  max-width: 980px;
  margin: 0 auto;
}

.dana-page .card-header {
  background: linear-gradient(90deg, rgba(196,154,60,0.06), rgba(212,114,42,0.04));
  border-bottom: 1px solid rgba(196,154,60,0.06);
}

.dana-page h5, .dana-page h6 { font-family: var(--sinhala-font); color: var(--gold); }

.dana-page .form-label { color: var(--text-light); font-weight:700; }
.dana-page .form-control, .dana-page .form-select, .dana-page textarea.form-control {
  background: rgba(255,255,255,0.98);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.783);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.dana-page .btn-outline-primary { border-color: rgba(196,154,60,0.18); color: var(--gold); }
.dana-page .btn-outline-primary:hover { background: rgba(196,154,60,0.06); }

.dana-page .btn-success { background: linear-gradient(135deg, var(--saffron), var(--gold)); border: none; }

.dana-page .badge.bg-secondary { background: var(--gold); color: var(--dark-bg); font-weight:700; }

.dana-page .removeSlot { min-height: 40px; }

.dana-page .invalid-feedback { color: #dc3545; font-size: 0.9rem; margin-top: 0.35rem; }
.dana-page .is-invalid { border-color: #dc3545 !important; box-shadow: 0 0 0 4px rgba(220,53,69,0.06); }

@media (max-width: 768px) {
  .dana-page .card { margin: 0 0.5rem; }
  .dana-page .form-control, .dana-page .form-select { font-size: 0.95rem; }
}

/* Additional refinements for Dana page visuals */
.dana-page .card {
  box-shadow: 0 18px 40px rgba(2,2,2,0.6);
}

.dana-page .card-header {
  padding: 0.85rem 1rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dana-page .card-header span {
  display:inline-block;
  width:36px;
  height:36px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--dark-bg);
  display:flex;align-items:center;justify-content:center;font-weight:700;
}

.dana-page .card-body { padding: 1.4rem 1.4rem 1.6rem; }

.dana-page .text-primary { color: #1E88E5 !important; }

.dana-page .form-control:focus, .dana-page .form-select:focus, .dana-page textarea.form-control:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 6px rgba(212,114,42,0.08);
}

.dana-page input::placeholder, .dana-page textarea::placeholder {
  color: rgba(43,43,43,0.42);
}

.dana-page .removeSlot {
  border: 1px solid rgba(220,53,69,0.18);
  background: #fff;
  color: #b02a37;
  border-radius: 8px;
}

.dana-page .removeSlot:hover { background: rgba(220,53,69,0.04); }

.dana-page #slotCount {
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:6px;background:#6c757d;color:#fff;font-weight:700;font-size:0.85rem;
}

.dana-page .btn-outline-primary {
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.dana-page .btn-outline-danger {
  border-radius: 8px;
}

.dana-page .form-label { font-size:0.95rem; color:  var(--gold); }

/* ensure the card sits above dark background */
.dana-page .card { position: relative; z-index: 5; }

