@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Myanmar:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
  /* Fonts */
  --font-en: 'Outfit', sans-serif;
  --font-my: 'Noto Sans Myanmar', sans-serif;

  /* Saffron Color Palette (Light Mode) */
  --bg-base: #fdfbf7;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f7f4ed;
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  
  --primary: #c27d38;       /* Warm Saffron */
  --primary-hover: #a36120;
  --primary-light: #f5ece2;
  --secondary: #6e7e65;     /* Sage Leaf Green */
  --accent: #d4af37;        /* Gold */
  
  --text-primary: #2d2620;  /* Warm Dark Brown/Charcoal */
  --text-secondary: #605246;
  --text-muted: #8c7d71;
  --text-light: #ffffff;
  
  --border-color: #ede7dc;
  --border-focus: #c27d38;
  
  --shadow-sm: 0 2px 8px rgba(45, 38, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(45, 38, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(45, 38, 32, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(194, 125, 56, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-size-adjust: 1em; /* Dynamic multiplier for Reader Mode */
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-base: #12100e;
  --bg-surface: #1c1815;
  --bg-surface-hover: #26211d;
  --bg-surface-glass: rgba(28, 24, 21, 0.75);
  
  --primary: #d9934e;
  --primary-hover: #f0ab65;
  --primary-light: #2c221a;
  --secondary: #8aa07f;
  --accent: #ffd859;
  
  --text-primary: #f5ebe0;
  --text-secondary: #c2b4a6;
  --text-muted: #8f8174;
  
  --border-color: #2e2620;
  --border-focus: #d9934e;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling caused by off-screen drawer */
}

body {
  font-family: var(--font-my), var(--font-en);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Force scroll lock on mobile when drawer is active */
html.menu-open, body.menu-open {
  overflow: hidden !important;
  height: 100vh !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  flex: 1;
  padding: 40px 0;
  animation: fadeIn 0.4s ease-out;
}

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

/* ==========================================
   HEADER & NAVBAR
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header.menu-open {
  z-index: 1060; /* Raise stacking context above backdrop overlay */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

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

.drawer-header {
  display: none;
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 16, 14, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1035;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

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

/* Theme Toggle Button */
.btn-toggle {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.btn-toggle:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-toggle .sun-icon { display: none; }
.btn-toggle .moon-icon { display: block; }
[data-theme="dark"] .btn-toggle .sun-icon { display: block; }
[data-theme="dark"] .btn-toggle .moon-icon { display: none; }

/* Mobile Menu Button */
.btn-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ==========================================
   HERO / FEATURED SECTION
   ========================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-surface) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 48px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag-featured {
  display: inline-flex;
  align-self: flex-start;
  background-color: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   FILTERS & SEARCH
   ========================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-tag {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-tag:hover, .filter-tag.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   VIDEO GRID & CARDS
   ========================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 38, 32, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.play-btn-circle {
  width: 54px;
  height: 54px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transform: scale(0.9);
  transition: var(--transition);
}

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

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.card-speaker {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================
   POSTS / BLOG LAYOUT
   ========================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.post-card {
  height: 100%;
}

.post-card .card-content {
  gap: 14px;
}

.post-card .card-title {
  font-size: 1.15rem;
}

/* ==========================================
   READER MODE / SINGLE POST VIEW
   ========================================== */
.post-reader-container {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.4s ease-out;
}

.reader-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 20px;
  cursor: pointer;
}

.reader-back:hover {
  transform: translateX(-4px);
}

.reader-meta-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.reader-category {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: var(--radius-full);
}

.reader-title {
  font-size: 2.2rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.reader-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.reader-author-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Reader Toolbar */
.reader-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  align-self: flex-start;
  width: fit-content;
}

.toolbar-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-font-adjust {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-font-adjust:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Reader Content Typography */
.reader-content {
  font-size: calc(1.05rem * var(--font-size-adjust));
  line-height: 1.8;
  color: var(--text-primary);
  transition: font-size 0.2s ease;
}

.reader-content p {
  margin-bottom: 24px;
}

.reader-content h3 {
  font-size: calc(1.4rem * var(--font-size-adjust));
  margin: 36px 0 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.reader-content ul, .reader-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.reader-content li {
  margin-bottom: 12px;
}

.reader-content blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--bg-base);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.reader-content blockquote cite {
  display: block;
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-top: 10px;
  font-style: normal;
  font-weight: 500;
}

.reader-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-contact-box {
  background-color: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.contact-item i {
  color: var(--primary);
  width: 20px;
}

/* ==========================================
   MODAL / VIDEO PLAYER POPUP
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 16, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  width: 100%;
  max-width: 900px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background-color: black;
}

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

.modal-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.btn-close-modal {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  padding-right: 40px;
}

.modal-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-weight: 700;
  color: var(--primary);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-link:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-light);
}

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

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .navbar {
    position: relative;
  }
  
  .btn-menu {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; /* Kept display flex, controlled by transform */
    gap: 16px;
    align-items: flex-start;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-link {
    width: 100%;
    text-align: left;
    font-size: 1.05rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
  }

  .drawer-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
  }

  .btn-close-drawer {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
  }

  .btn-close-drawer:hover {
    color: var(--primary);
  }
  
  .post-reader-container {
    padding: 24px;
  }
  
  .reader-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 576px) {
  .video-grid, .post-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 20px;
  }
  
  .hero-title {
    font-size: 1.4rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   SERMONS LIST & TRACKS
   ========================================== */
.sermon-list-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.sermon-header-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-surface) 100%);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.sermon-header-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.sermon-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sermon-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sermon-header-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sermon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sermon-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: var(--transition);
}

.sermon-row:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-color);
}

.sermon-row.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.sermon-number {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--text-muted);
  width: 32px;
  text-align: center;
  font-weight: 600;
}

.sermon-row.active .sermon-number {
  color: var(--primary);
}

.sermon-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* Crucial for child flex truncation */
}

.sermon-row-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sermon-row.active .sermon-row-title {
  color: var(--primary);
}

.sermon-row-speaker {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-play-sermon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sermon-row:hover .btn-play-sermon, .sermon-row.active .btn-play-sermon {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

/* Pagination / Load More button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn-load-more {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-load-more:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================
   STICKY BOTTOM GLOBAL AUDIO PLAYER
   ========================================== */
body.has-audio-player {
  padding-bottom: 96px; /* Shift content up so it's not hidden behind sticky player */
}

.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 84px;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 950;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 -8px 32px rgba(45, 38, 32, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.player-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 24px;
}

/* 1. Track Info (Left) */
.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--primary-light);
}

.player-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* 2. Controls & Seek Bar (Center) */
.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.player-btn-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.player-btn-play:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.player-progress-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

.player-progress-slider {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: height 0.1s ease;
}

.player-progress-slider:hover {
  height: 6px;
}

.player-progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease;
}

.player-progress-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

/* 3. Volume & Extras (Right) */
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.player-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 130px;
}

.volume-slider {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--primary);
}

/* Media Queries for Sticky Player */
@media (max-width: 768px) {
  body.has-audio-player {
    padding-bottom: 150px;
  }
  
  .audio-player-bar {
    height: auto;
    padding: 16px;
  }
  
  .player-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .player-right {
    justify-content: center;
  }
  
  .player-volume-container {
    width: 200px;
  }
}

