@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --gold:        #c9922a;
  --gold-bright: #e8b84b;
  --gold-glow:   rgba(201,146,42,0.18);
  --gold-line:   rgba(201,146,42,0.35);
  --bg:          #07091a;
  --bg2:         #0d1028;
  --glass:       rgba(255,255,255,0.035);
  --glass-hover: rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.07);
  --text:        #dde0f0;
  --text-dim:    #7880a0;
  --white:       #ffffff;
  --green-wa:    #25D366;
  --menu-bg:     #0d1130;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   BACKGROUND MESH
═══════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 30%, rgba(180,110,30,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(20,40,120,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 10%, rgba(10,20,60,0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════
   STICKY HEADER
═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7,9,26,0.78);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* PDFs button in header */
.btn-header-pdfs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.22s ease;
  cursor: pointer;
}
.btn-header-pdfs svg { width: 13px; height: 13px; opacity: 0.7; flex-shrink: 0; }
.btn-header-pdfs:hover,
.btn-header-pdfs.active-pdfs {
  border-color: var(--gold-line);
  color: var(--gold-bright);
  background: var(--gold-glow);
}
.btn-header-pdfs-label { display: inline; }

/* ═══════════════════════════════════════
   LANGUAGE PICKER DROPDOWN
═══════════════════════════════════════ */
.lang-picker {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.22s ease;
}

.lang-current:hover,
.lang-current.open {
  border-color: var(--gold-line);
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.lang-current svg { opacity: 0.7; flex-shrink: 0; }
.lang-code-label  { text-transform: uppercase; }

.lang-chevron {
  transition: transform 0.22s ease;
}
.lang-current.open .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--menu-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,146,42,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 300;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.lang-opt:hover {
  background: var(--glass-hover);
}

.lang-opt.active {
  background: var(--gold-glow);
  border: 1px solid var(--gold-line);
}

.lang-opt-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  min-width: 28px;
  text-transform: uppercase;
}

.lang-opt-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-opt:hover .lang-opt-name,
.lang-opt.active .lang-opt-name {
  color: var(--text);
}

/* ═══════════════════════════════════════
   HERO — full-viewport quote section
═══════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.date-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.date-label::before,
.date-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold-line);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.quote-container {
  position: relative;
  max-width: 760px;
  margin: 0 auto 48px;
}

.quote-open {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  line-height: 0;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -16px;
  left: -20px;
}

[dir="rtl"] .quote-open { left: auto; right: -20px; }

.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 300;
  color: var(--gold-bright);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.quote-ref {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  color: rgba(232,184,75,0.6);
  letter-spacing: 0.03em;
  margin-top: 12px;
  padding-left: 2px;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-hint svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════
   CONTENT SECTION
═══════════════════════════════════════ */
.content-section {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Glass card */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s;
}

.glass-card:hover { border-color: var(--gold-line); }

.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.card-inner { padding: 40px 44px 44px; }

/* Reflection body text */
.reflection-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 2.0;
  color: var(--text);
  letter-spacing: 0.012em;
  text-align: justify;
  hyphens: auto;
}

[dir="rtl"] .reflection-body { text-align: right; }

.reflection-body p { margin-bottom: 1.2em; }
.reflection-body p + p { text-indent: 1.8em; margin-top: 0; }
[dir="rtl"] .reflection-body p + p { text-indent: 0; }

/* IN THIS MOMENT closing block */
.moment-block { margin-top: 40px; text-align: center; }

.moment-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.moment-divider::before,
.moment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), var(--gold), var(--gold-line), transparent);
}

.moment-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
  flex-shrink: 0;
}

.moment-ornament {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 14px;
  letter-spacing: 0.3em;
}

.moment-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--gold-bright);
  max-width: 560px;
  margin: 0 auto;
  padding: 0 8px;
}

/* ═══════════════════════════════════════
   ACTIONS
═══════════════════════════════════════ */
.actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-wa);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all 0.25s ease;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.btn-wa svg { flex-shrink: 0; }

/* PDF download button (reflection pages) */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--gold-bright);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 50px;
  border: 1px solid var(--gold-line);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-pdf:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,146,42,0.2);
}
.btn-pdf svg { flex-shrink: 0; opacity: 0.85; }
.btn-pdf-text { font-weight: 500; }
.btn-pdf-size {
  font-size: 0.72rem;
  font-weight: 300;
  opacity: 0.6;
  margin-left: 2px;
}

/* ═══════════════════════════════════════
   PDF MODAL VIEWER
═══════════════════════════════════════ */
.pdf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,5,16,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.pdf-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
body.modal-open { overflow: hidden; }

.pdf-modal-box {
  background: var(--bg2);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,146,42,0.1);
  transform: scale(0.97) translateY(8px);
  transition: transform 0.28s ease;
}
.pdf-modal-overlay.open .pdf-modal-box {
  transform: scale(1) translateY(0);
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 16px;
}
.pdf-modal-info { min-width: 0; }
.pdf-modal-title {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.pdf-modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-dl-modal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(201,146,42,0.35);
}
.btn-dl-modal:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,146,42,0.5);
}
.btn-close-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-close-modal:hover { border-color: var(--gold-line); color: var(--text); background: var(--glass-hover); }

.pdf-embed-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}
.pdf-embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: none;
  display: block;
  background: #fff;
}

/* Mobile fallback inside modal */
.pdf-mobile-msg {
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 24px;
  text-align: center;
}
.pdf-mobile-msg svg { opacity: 0.4; color: var(--gold); width: 48px; height: 48px; }
.pdf-mobile-msg p { color: var(--text-dim); font-size: 0.9rem; }
.btn-open-pdf-mobile, .btn-dl-pdf-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-open-pdf-mobile {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(201,146,42,0.35);
}
.btn-dl-pdf-mobile {
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--gold-line);
}
.btn-open-pdf-mobile:hover, .btn-dl-pdf-mobile:hover { transform: translateY(-2px); }

/* ═══════════════════════════════════════
   DOWNLOAD STRIP (index page)
═══════════════════════════════════════ */
.download-strip {
  margin: 0 auto 48px;
  max-width: 760px;
  padding: 0 8px;
}
.dl-strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(201,146,42,0.06);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dl-strip-inner:hover { background: rgba(201,146,42,0.1); border-color: var(--gold); }

.dl-book-icon { flex-shrink: 0; color: var(--gold); opacity: 0.8; }
.dl-book-icon svg { width: 28px; height: 28px; }

.dl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dl-book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-book-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-preview-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 50px;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--gold-bright);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-preview-strip svg { width: 14px; height: 14px; }
.btn-preview-strip:hover { background: var(--gold-glow); border-color: var(--gold); }

.btn-download-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  background: var(--gold);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(201,146,42,0.35);
}
.btn-download-strip:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,146,42,0.5);
}

@media (max-width: 640px) {
  .download-strip { padding: 0 4px; }
  .dl-strip-inner { flex-wrap: wrap; gap: 12px; }
  .dl-book-icon { display: none; }
  .dl-actions { width: 100%; justify-content: stretch; }
  .btn-preview-strip, .btn-download-strip { flex: 1; justify-content: center; }
  .pdf-modal-box { max-height: 95vh; border-radius: 16px; }
  .pdf-modal-header { padding: 14px 16px; }
  .pdf-modal-title { font-size: 0.92rem; }
}

/* ═══════════════════════════════════════
   DOWNLOADS PAGE  /downloads
═══════════════════════════════════════ */
.dl-page-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 20px 40px;
}

.dl-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}

.dl-page-subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

/* Search bar */
.dl-search-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto 12px;
}

.dl-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

#dl-search {
  width: 100%;
  padding: 13px 44px 13px 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#dl-search:focus {
  border-color: var(--gold-line);
  background: rgba(255,255,255,0.07);
}

#dl-search::placeholder { color: var(--text-dim); }

.dl-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.dl-search-clear:hover { color: var(--text); }
.dl-search-clear svg { width: 14px; height: 14px; }

.dl-results-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cards grid */
.dl-grid-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
  overflow: hidden;
}

.dl-grid {
  display: grid;
  /* auto-fill: fills columns automatically — no media queries needed.
     Each card is at least 240px; the grid decides how many fit. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
}

/* Each PDF card */
.dl-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease,
              box-shadow 0.25s ease, background 0.25s ease;
}

.dl-card:hover {
  border-color: var(--gold-line);
  background: var(--glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,146,42,0.12);
}

.dl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dl-card-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  padding: 3px 7px;
}

.dl-card-size {
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.dl-card-body {
  flex: 1;
  margin-bottom: 14px;
  min-width: 0;
}

.dl-card-lang {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.dl-card-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 5px;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dl-card-meta {
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0.6;
  letter-spacing: 0.03em;
}

.dl-card-actions {
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

/* Shared card button base */
.btn-preview-card,
.btn-dl-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.btn-preview-card span,
.btn-dl-card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-preview-card svg,
.btn-dl-card svg { flex-shrink: 0; }

.btn-preview-card {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.btn-preview-card:hover {
  border-color: var(--gold-line);
  color: var(--gold-bright);
  background: var(--gold-glow);
}

.btn-dl-card {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 3px 10px rgba(201,146,42,0.3);
}
.btn-dl-card:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(201,146,42,0.45);
}

.dl-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 60px 20px;
}

/* ── Responsive downloads ──
   Grid columns are handled automatically by auto-fill/minmax.
   These rules only adjust spacing, typography and button layout. */

@media (max-width: 600px) {
  .dl-grid-wrap { padding: 0 14px 60px; }
  .dl-grid { gap: 10px; }
  .dl-page-hero { padding: 100px 16px 24px; }
  .dl-card { padding: 14px 12px 12px; border-radius: 14px; }
  .dl-card-lang { font-size: 1.05rem; }
  /* Stack buttons vertically on narrow cards */
  .dl-card-actions { flex-direction: column; gap: 6px; }
  .btn-preview-card,
  .btn-dl-card { padding: 9px 10px; font-size: 0.76rem; }
  .btn-header-pdfs-label { display: none; }
  .btn-header-pdfs { padding: 7px 10px; }
}

/* ═══════════════════════════════════════
   DAY NAVIGATION
═══════════════════════════════════════ */
.day-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  transition: all 0.22s ease;
  min-width: 0;
}

.nav-btn:hover {
  background: var(--glass-hover);
  border-color: var(--gold-line);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-btn.prev { justify-content: flex-start; }
.nav-btn.next { justify-content: flex-end; }
.nav-btn.disabled { opacity: 0.25; pointer-events: none; }
.nav-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-arrow { flex-shrink: 0; font-size: 1.1rem; color: var(--gold); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px 40px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
}

footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ═══════════════════════════════════════
   INDEX PAGE
═══════════════════════════════════════ */
.index-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 140px 24px 56px;
}

.index-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.index-eyebrow::before, .index-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-line);
}

.index-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.index-subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Lang tabs — visible grid, all languages at once */
.lang-tabs-wrap {
  margin-bottom: 48px;
  padding: 0 8px;
}

.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
}

.lang-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--glass);
  line-height: 1.2;
  min-width: 62px;
}

.lang-tab .tab-code {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: 'DM Sans', sans-serif;
}

.lang-tab .tab-name {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  opacity: 0.65;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.lang-tab.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 2px 14px rgba(201,146,42,0.25);
}

.lang-tab.active .tab-code { color: var(--gold-bright); }
.lang-tab.active .tab-name { opacity: 1; color: var(--gold); }
.lang-tab:not(.active):hover {
  color: var(--text);
  border-color: var(--gold-line);
  background: var(--glass-hover);
  transform: translateY(-2px);
}

/* Calendar grid */
.calendar-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.month-block { margin-bottom: 40px; }

.month-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-bright);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.month-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}

.days-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
}

.day-chip:hover {
  background: var(--gold-glow);
  border-color: var(--gold-line);
  color: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(201,146,42,0.2);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }
  .site-logo { font-size: 0.88rem; }
  .card-inner { padding: 28px 22px 32px; }
  .hero { padding: 100px 20px 60px; }
  .quote-open { font-size: 5rem; top: -10px; left: -10px; }
  [dir="rtl"] .quote-open { left: auto; right: -10px; }
  .day-nav { grid-template-columns: 1fr; }
  .nav-btn.next { justify-content: flex-start; }
  .index-hero { padding: 110px 20px 44px; }
  .lang-menu { min-width: 260px; right: -8px; }
  .lang-tab { padding: 7px 12px; }
}

@media (max-width: 380px) {
  .lang-menu { grid-template-columns: 1fr; min-width: 200px; }
}
