/* Wat Trapeang Chum - Traditional & Modern Buddhist Design System */
@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@300;400;700;900&family=Kantumruy+Pro:ital,wght@0,300..700;1,300..700&family=Moul&family=Moulpali&family=Preahvihear&family=Siemreap&family=Bayon&display=swap');


:root {
  --primary-gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #996515;
  --gold-gradient: linear-gradient(135deg, #f7d070 0%, #d4af37 50%, #996515 100%);
  --saffron-orange: #e67e22;
  --saffron-dark: #b75302;
  
  --burgundy-main: #58111A;
  --burgundy-dark: #38070D;
  --burgundy-light: #7A1D2A;
  
  --bg-dark: #12090B;
  --bg-card: rgba(45, 18, 24, 0.7);
  --bg-card-hover: rgba(70, 25, 34, 0.85);
  
  --text-primary: #FAF3E0;
  --text-secondary: #D1C2A5;
  --text-muted: #A39377;
  --text-gold: #F7D070;
  
  --font-moul: 'Moul', 'AKbalthom Moul 5', 'AKbalthom Moul', 'Kh Ang Moul NeaVea', 'Khmer OS Muol Light', 'Moulpali', cursive, serif;
  --font-body: 'Kantumruy Pro', sans-serif;
  --font-heading: 'Battambang', cursive, sans-serif;

  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.25);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-dark: #FDFBF7;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 250, 240, 1);
  --text-primary: #2C1810;
  --text-secondary: #5C4033;
  --text-muted: #7F6A5B;
  --shadow-gold: 0 8px 30px rgba(183, 83, 2, 0.15);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography Utility */
.font-moul {
  font-family: var(--font-moul);
  letter-spacing: 0.5px;
  line-height: 1.8;
}

.font-heading {
  font-family: var(--font-heading);
}

.text-gold {
  color: var(--text-gold);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Golden Kanok Pattern Overlay */
.kanok-bg {
  background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

/* Section Common Styling */
section {
  padding: 85px 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-subtitle {
  color: var(--saffron-orange);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title {
  font-family: var(--font-moul);
  font-size: 2.2rem;
  color: var(--text-gold);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
}

.section-divider .line {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.section-divider i {
  color: var(--primary-gold);
  font-size: 1.2rem;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(45, 11, 17, 0.88);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(25, 6, 10, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 4px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nav-brand:hover .brand-logo {
  transform: rotate(360deg);
}

.brand-text h1 {
  font-family: var(--font-moul);
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.4;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-gold);
  background: rgba(212, 175, 55, 0.12);
}

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

.icon-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: var(--primary-gold);
  color: var(--burgundy-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-gold);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(20, 6, 9, 0.55) 0%, rgba(20, 6, 9, 0.92) 100%), url('../assets/hero_banner1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, rgba(18, 9, 11, 0.85) 90%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 126, 34, 0.2);
  border: 1px solid rgba(230, 126, 34, 0.5);
  color: #FFA502;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-family: var(--font-moul);
  font-size: 3.1rem;
  line-height: 1.85;
  color: #fff;
  margin-bottom: 24px;
  perspective: 1000px;
}

.hero-title-white {
  display: inline-block;
  color: #FFFFFF;
  text-shadow: 
    0 1px 0 #E0E0E0,
    0 2px 0 #C0C0C0,
    0 3px 0 #A0A0A0,
    0 4px 0 #808080,
    0 5px 2px rgba(0, 0, 0, 0.6),
    0 8px 16px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease;
}

.yellow-3d-text,
.gold-3d-text {
  display: inline-block;
  position: relative;
  font-family: 'Moul', 'AKbalthom Moul 5', 'AKbalthom Moul', 'Kh Ang Moul NeaVea', 'Khmer OS Muol Light', cursive, serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFF66 22%, #FFEA00 50%, #FFD000 78%, #E6B800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: 
    drop-shadow(0px 1px 0px #C7A700)
    drop-shadow(0px 2px 0px #998000)
    drop-shadow(0px 3px 0px #6B5900)
    drop-shadow(0px 4px 0px #3D3300)
    drop-shadow(0px 6px 14px rgba(0, 0, 0, 0.95))
    drop-shadow(0px 0px 30px rgba(255, 234, 0, 0.85));
  transform: translateZ(10px);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.yellow-3d-text:hover,
.gold-3d-text:hover {
  transform: translateZ(20px) scale(1.05);
  filter: 
    drop-shadow(0px 1px 0px #FFF066)
    drop-shadow(0px 2px 0px #FFEA00)
    drop-shadow(0px 3px 0px #C7A700)
    drop-shadow(0px 4px 0px #998000)
    drop-shadow(0px 5px 0px #524300)
    drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.98))
    drop-shadow(0px 0px 40px rgba(255, 234, 0, 0.98));
}




.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 620px;
  line-height: 1.9;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gold);
  font-size: 0.95rem;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #ffe08b 0%, #e5c158 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--text-gold);
  border-color: var(--primary-gold);
}

/* Daily Quote Card in Hero */
.quote-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: var(--font-moul);
  font-size: 9rem;
  color: rgba(212, 175, 55, 0.08);
  pointer-events: none;
}

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quote-tag {
  color: var(--saffron-orange);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-body {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 20px;
}

.quote-author {
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: right;
  font-size: 0.95rem;
}

/* Sabbath Calendar Widget Section */
.sabbath-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(45, 11, 17, 0.6) 100%);
}

.sabbath-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calendar-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-dark);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.calendar-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.today-lunar {
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid var(--saffron-orange);
  color: #FFB300;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
}

.sabbath-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sabbath-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-gold);
  transition: var(--transition);
}

.sabbath-item:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(5px);
}

.sabbath-item.is-today {
  border-left-color: #2ECC71;
  background: rgba(46, 204, 113, 0.12);
}

.sabbath-date {
  display: flex;
  flex-direction: column;
}

.sabbath-day-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.sabbath-lunar-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sabbath-badge {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  color: var(--text-gold);
}

/* Festival Event Cards */
.festival-card {
  background: linear-gradient(135deg, rgba(88, 17, 26, 0.8) 0%, rgba(35, 7, 11, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.festival-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-gold);
}

.festival-title {
  font-family: var(--font-moul);
  font-size: 1.4rem;
  color: var(--text-gold);
  margin-bottom: 12px;
}

.festival-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.countdown-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-gold);
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dhamma Articles Section (#articles) */
.articles-section {
  background: var(--bg-dark);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.2);
}

.article-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

.article-card:hover .article-thumb img {
  transform: scale(1.08);
}

.article-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(88, 17, 26, 0.85);
  color: var(--text-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.article-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.6;
}

.article-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Photo Gallery Section (#gallery) */
.gallery-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(45, 11, 17, 0.7) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-dark);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 6, 9, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-gold);
  margin-bottom: 4px;
}

.gallery-cat {
  font-size: 0.8rem;
  color: var(--saffron-orange);
}

/* Contact Us Section (#contact) */
.contact-section {
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text-gold);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Sermon Grid */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.sermon-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
}

.sermon-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.2);
}

.sermon-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

.sermon-card:hover .sermon-thumb img {
  transform: scale(1.08);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sermon-card:hover .play-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.sermon-card:hover .play-btn-circle {
  transform: scale(1);
}

.sermon-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(88, 17, 26, 0.85);
  color: var(--text-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.4);
  backdrop-filter: blur(4px);
}

.sermon-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.sermon-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.sermon-speaker {
  color: var(--saffron-orange);
  font-size: 0.88rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sermon-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sermon-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.listen-action-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.listen-action-btn:hover {
  background: var(--primary-gold);
  color: var(--burgundy-dark);
  font-weight: 600;
}

/* Books & Dhamma Articles Section */
.books-section {
  background: linear-gradient(180deg, rgba(45, 11, 17, 0.4) 0%, var(--bg-dark) 100%);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  background: var(--bg-card-hover);
}

.book-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 10px;
}

.book-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-book-btn {
  color: var(--saffron-orange);
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.read-book-btn:hover {
  color: var(--text-gold);
  transform: translateX(4px);
}

/* Interactive Dhamma Quiz Section */
.quiz-section {
  background: radial-gradient(circle at center, rgba(88, 17, 26, 0.6) 0%, var(--bg-dark) 80%);
}

.quiz-container {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(15px);
}

.quiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-family: var(--font-heading);
  color: var(--text-gold);
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 25px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  width: 20%;
  transition: width 0.4s ease;
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.6;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-option-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--primary-gold);
  color: var(--text-gold);
}

.quiz-option-btn.selected-correct {
  background: rgba(46, 204, 113, 0.25);
  border-color: #2ECC71;
  color: #2ECC71;
}

.quiz-option-btn.selected-wrong {
  background: rgba(231, 76, 60, 0.25);
  border-color: #E74C3C;
  color: #E74C3C;
}

.option-prefix {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-gold);
  flex-shrink: 0;
}

/* Virtual Candle & Merit Section */
.merit-section {
  background: var(--bg-dark);
}

.merit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.candle-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.candle-illustration {
  position: relative;
  width: 120px;
  height: 180px;
  margin: 0 auto 30px auto;
}

.candle-body {
  width: 45px;
  height: 120px;
  background: linear-gradient(90deg, #F3E5AB 0%, #D4AF37 60%, #996515 100%);
  border-radius: 8px 8px 0 0;
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.flame {
  width: 24px;
  height: 40px;
  background: linear-gradient(180deg, #FFF 0%, #FFD700 40%, #FF4500 100%);
  border-radius: 50% 50% 35% 35%;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 25px #FFD700, 0 0 50px #FF4500;
  animation: flicker 1.5s infinite alternate;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.flame.lit {
  opacity: 1;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-1deg); }
  50% { transform: translateX(-50%) scale(1.1) rotate(1deg); }
  100% { transform: translateX(-50%) scale(0.95) rotate(-2deg); }
}

.candle-wish-input {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 20px;
  outline: none;
  resize: vertical;
  min-height: 90px;
}

.donation-card {
  background: linear-gradient(135deg, rgba(88, 17, 26, 0.7) 0%, rgba(20, 6, 9, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-dark);
}

.bank-info-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
}

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

/* Location & Facebook Info Section */
.location-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(35, 7, 11, 0.8) 100%);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-dark);
}

.fb-banner-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid rgba(24, 119, 242, 0.4);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.fb-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1877F2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* Audio Player Bottom Floating Bar */
.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(25, 6, 10, 0.95);
  border-top: 2px solid var(--primary-gold);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.audio-player-bar.active {
  transform: translateY(0);
}

.player-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 250px;
}

.player-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--primary-gold);
}

.player-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-gold);
}

.player-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.player-btn:hover {
  color: var(--text-gold);
}

.play-pause-main {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

.player-progress-wrap {
  flex-grow: 1;
  max-width: 450px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.player-progress-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-progress-current {
  height: 100%;
  background: var(--gold-gradient);
  width: 0%;
}

.close-player-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-dark);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px;
  box-shadow: var(--shadow-dark);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #E74C3C;
  color: #fff;
}

/* Footer */
footer {
  background: #100507;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 60px 0 30px 0;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-family: var(--font-moul);
  font-size: 1.3rem;
  color: var(--text-gold);
  margin-bottom: 12px;
}

.footer-links h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid, .sabbath-grid, .merit-grid, .location-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(20, 6, 9, 0.98);
    flex-direction: column;
    justify-content: center;
    transition: left 0.4s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .sermon-grid, .articles-grid, .gallery-grid, .download-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================
   Wat Trapeang Chum History Section (#history)
==================================================== */
.history-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(56, 7, 13, 0.7) 100%);
}

.history-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 35px;
  align-items: start;
}

.history-text-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-dark);
}

.history-badge-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.history-card-title {
  font-family: var(--font-moul);
  font-size: 1.5rem;
  color: var(--text-gold);
  margin-bottom: 15px;
}

.history-lead-summary {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 25px;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-gold);
}

.history-details-body h3 {
  font-family: var(--font-heading);
  color: var(--saffron-orange);
  font-size: 1.15rem;
  margin: 20px 0 10px 0;
}

.history-details-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

.history-details-body ul {
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.history-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.history-timeline-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-dark);
}

.timeline-title {
  font-family: var(--font-heading);
  color: var(--text-gold);
  font-size: 1.15rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 6px;
  width: 2px;
  height: 90%;
  background: rgba(212, 175, 55, 0.3);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-gold);
  box-shadow: 0 0 10px var(--primary-gold);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--saffron-orange);
}

.timeline-event {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.history-photo-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
}

.history-photo-preview img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.history-photo-caption {
  background: rgba(20, 6, 9, 0.9);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-gold);
  text-align: center;
}

/* ====================================================
   Media & Download Resource Hub (#resources)
==================================================== */
.resources-section {
  background: var(--bg-dark);
}

/* QComboBox Filter Card */
.qcombobox-filter-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.qcombobox-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
}

.qcombobox-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-gold);
  white-space: nowrap;
}

.qcombobox-select {
  flex-grow: 1;
  max-width: 480px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--primary-gold);
  border-radius: var(--radius-md);
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.qcombobox-select:focus, .qcombobox-select:hover {
  background: rgba(45, 18, 24, 0.9);
  border-color: #ffe08b;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.qcombobox-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Resource Tabs Bar */
.resource-tabs-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 35px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) transparent;
}

.resource-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-tab-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--primary-gold);
  color: var(--text-gold);
}

.resource-tab-btn.active {
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  font-weight: 700;
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.download-card-item {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.download-card-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.25);
}

.resource-thumb-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.resource-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.download-card-item:hover .resource-thumb-wrap img {
  transform: scale(1.08);
}

.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(230, 126, 34, 0.9);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.smot-badge {
  background: rgba(88, 17, 26, 0.9);
  border: 1px solid var(--primary-gold);
  color: var(--text-gold);
}

.resource-content-wrap {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.resource-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-gold);
  margin-bottom: 8px;
  line-height: 1.5;
}

.resource-item-author {
  color: var(--saffron-orange);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.resource-item-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.resource-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-read-online {
  flex: 1;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-gold);
  padding: 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-read-online:hover {
  background: var(--primary-gold);
  color: var(--burgundy-dark);
  font-weight: 700;
}

.btn-download-action {
  background: var(--gold-gradient);
  border: none;
  color: var(--burgundy-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-download-action:hover {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

/* Audio Download List & Ven. Kong Bunny Smot Styling */
.audio-download-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audio-item-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
}

.audio-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-gold);
  transform: translateX(6px);
}

.audio-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
}

.audio-card-thumb {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--primary-gold);
}

.audio-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.audio-card-speaker {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.audio-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 4px 0;
}

.audio-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-play-track {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-gold);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play-track:hover {
  background: var(--primary-gold);
  color: var(--burgundy-dark);
  font-weight: 700;
}

/* Bhikkhu Kong Bunny Specialized Banner & Cards */
.kong-bunny-header-banner {
  background: linear-gradient(135deg, rgba(88, 17, 26, 0.9) 0%, rgba(35, 7, 11, 0.95) 100%);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 25px 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-gold);
}

.kong-bunny-badge-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.monk-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  flex-shrink: 0;
}

.kong-bunny-title {
  font-family: var(--font-moul);
  font-size: 1.4rem;
  color: var(--text-gold);
  margin-bottom: 4px;
}

.kong-bunny-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.kong-bunny-card {
  border-left: 4px solid var(--primary-gold);
  background: linear-gradient(90deg, rgba(88, 17, 26, 0.4) 0%, var(--bg-card) 100%);
}

.kong-bunny-tag {
  display: inline-block;
  background: rgba(230, 126, 34, 0.2);
  color: #FFA502;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
  font-weight: 600;
}

.btn-play-gold {
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  font-weight: 700;
}

/* Video Card Styling */
.video-thumb-wrap {
  cursor: pointer;
  position: relative;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  transition: transform 0.3s ease;
}

.video-thumb-wrap:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}


.video-badge {
  background: rgba(231, 76, 60, 0.9);
}

/* ==========================================
   WAT TRAPEANG CHUM HISTORY & SCANNED PAGES
   ========================================== */

.historical-book-content {
  background: rgba(25, 8, 12, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.history-book-hero {
  text-align: center;
  border-bottom: 2px dashed rgba(212, 175, 55, 0.3);
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.history-book-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.history-book-main-title {
  font-family: var(--font-moul);
  font-size: 2.2rem;
  color: var(--text-gold);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.history-book-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.history-book-section {
  margin-bottom: 32px;
}

.history-subhead {
  font-family: var(--font-moul);
  font-size: 1.3rem;
  color: var(--text-gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary-gold);
  padding-left: 12px;
}

.history-intro-p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: justify;
}

/* Land Boundaries Box */
.land-bounds-box {
  background: rgba(88, 17, 26, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.land-bounds-box h4 {
  font-family: var(--font-moul);
  font-size: 1.05rem;
  color: var(--text-gold);
  margin-bottom: 12px;
}

.bounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.bound-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--saffron-orange);
  font-size: 0.92rem;
}

.bound-item strong {
  color: var(--text-gold);
}

/* Abbot History List */
.abbot-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.abbot-card {
  display: flex;
  gap: 16px;
  background: rgba(45, 18, 24, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}

.abbot-card:hover {
  background: rgba(70, 25, 34, 0.8);
  border-color: var(--primary-gold);
  transform: translateX(4px);
}

.abbot-card.highlight-abbot {
  background: linear-gradient(135deg, rgba(88, 17, 26, 0.7) 0%, rgba(153, 101, 21, 0.3) 100%);
  border: 1px solid var(--primary-gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.abbot-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--burgundy-dark);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.abbot-details {
  flex: 1;
}

.abbot-name {
  font-family: var(--font-moul);
  font-size: 1.15rem;
  color: var(--text-gold);
  margin-bottom: 4px;
}

.abbot-years {
  font-size: 0.88rem;
  color: var(--saffron-orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.abbot-achievements {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Research Credit Box */
.research-credit-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.credit-title {
  font-family: var(--font-moul);
  font-size: 1.1rem;
  color: var(--text-gold);
  margin-bottom: 10px;
}

/* Book Scanned Pages Gallery */
.history-book-gallery-card {
  margin-top: 40px;
  background: rgba(20, 6, 9, 0.85);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-gold);
}

.history-book-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.book-page-thumb-card {
  background: rgba(45, 18, 24, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book-page-thumb-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-gold);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  background: rgba(70, 25, 34, 0.9);
}

.page-thumb-wrap {
  width: 100%;
  height: 230px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  margin-bottom: 10px;
}

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

.book-page-thumb-card:hover .page-thumb-wrap img {
  transform: scale(1.08);
}

.page-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-page-thumb-card:hover .page-hover-overlay {
  opacity: 1;
}

.page-num-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gold);
}


