/**
 * Sanātana Tattva - Component Stylesheets (Glassmorphism & Multi-Page Layouts)
 */

/* ==================== 1. GLASSMORPHIC TOP NAVBAR ==================== */
.ancient-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 6, 3, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.65rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem {
  font-size: 1.8rem;
  color: var(--gold-primary);
  text-shadow: 0 0 15px var(--gold-glow);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-sanskrit {
  font-family: var(--font-devanagari);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
}

.brand-latin {
  font-family: var(--font-serif-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--saffron-primary);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-serif-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-parchment-light);
  letter-spacing: 0.03em;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-light);
  background: rgba(229, 184, 66, 0.12);
  transform: translateY(-1px);
}

.nav-link.active-nav-link {
  color: var(--gold-light);
  background: rgba(229, 184, 66, 0.22);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 12px rgba(229, 184, 66, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.audio-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(26, 17, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-family: var(--font-serif-heading);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.audio-toggle-btn.playing {
  background: rgba(255, 106, 0, 0.25);
  border-color: var(--saffron-primary);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
}

.search-box-wrapper {
  position: relative;
}

.ancient-search-input {
  background: rgba(18, 11, 7, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.45rem 1rem 0.45rem 2rem;
  color: var(--text-parchment-bright);
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 155px;
  transition: all 0.25s ease;
}

/* ==================== 22 OFFICIAL LANGUAGES SELECTOR ==================== */
.lang-dropdown-relative {
  position: relative;
}

.ancient-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(26, 17, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-family: var(--font-serif-heading);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.ancient-lang-btn:hover {
  background: rgba(229, 184, 66, 0.18);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(229, 184, 66, 0.3);
}

.lang-globe-icon {
  font-size: 0.95rem;
}

.lang-current-label {
  font-weight: 600;
}

.lang-arrow {
  font-size: 0.7rem;
  color: var(--gold-dark);
}

.lang-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-height: 480px;
  overflow-y: auto;
  background: rgba(14, 8, 4, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(229, 184, 66, 0.2);
  padding: 1.2rem;
  z-index: 1500;
}

.lang-dropdown-header {
  border-bottom: 1px solid rgba(229, 184, 66, 0.18);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.lang-header-title {
  display: block;
  font-family: var(--font-serif-heading);
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 700;
}

.lang-header-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-parchment-muted);
  margin-top: 0.2rem;
}

.lang-grid-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.lang-option-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(229, 184, 66, 0.06);
  border: 1px solid rgba(229, 184, 66, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option-item:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: var(--saffron-primary);
  transform: translateY(-1px);
}

.lang-native-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.lang-english-name {
  font-size: 0.72rem;
  color: var(--text-parchment-muted);
  text-transform: uppercase;
}

/* Completely eliminate Google Translate top banner, suggestions and default styling */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
iframe[id=":1.container"],
iframe[id=":2.container"],
.VIpgJd-ZVi9od-OR1Ng-bKo6H,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
#goog-gt-tt,
#goog-gt-vt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0px !important;
  width: 0px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

body {
  top: 0px !important;
  position: static !important;
  min-height: 100vh !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Hide Google branding widgets if injected into body */
.goog-logo-link,
.goog-te-gadget span,
.goog-te-gadget {
  display: none !important;
}

.ancient-search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  width: 210px;
  box-shadow: 0 0 15px rgba(229, 184, 66, 0.25);
}

/* ==================== HERO SECTION & BANNER SPACING ==================== */
.hero-section {
  padding: 3.5rem 0 2.5rem 0;
  position: relative;
  z-index: 1;
}

.hero-sanskrit-tag {
  display: inline-block;
  font-family: var(--font-devanagari);
  font-size: 1.25rem;
  color: var(--gold-light);
  background: rgba(229, 184, 66, 0.12);
  border: 1px solid rgba(229, 184, 66, 0.35);
  padding: 0.35rem 1.4rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgba(229, 184, 66, 0.15);
}

.hero-main-title {
  font-family: var(--font-serif-heading);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 15%, #fbe39d 55%, #e5b842 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
  font-size: 1.22rem;
  color: var(--text-parchment-light);
  max-width: 860px;
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

.hero-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* HERO NASADIYA & SUBHASHITA DYNAMIC CARDS */
.hero-nasadiya-card {
  background: linear-gradient(135deg, rgba(30, 18, 10, 0.88), rgba(16, 9, 5, 0.95));
  border: 1px solid var(--gold-primary);
  border-radius: 18px;
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(229, 184, 66, 0.15);
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.subhashita-banner-wrapper {
  margin-bottom: 3.5rem;
}

.subhashita-card {
  background: linear-gradient(135deg, rgba(24, 15, 8, 0.88), rgba(12, 7, 4, 0.95));
  border: 1px solid rgba(229, 184, 66, 0.4);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 106, 0, 0.12);
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.mini-wisdom-btn:hover,
.chime-btn:hover {
  background: rgba(229, 184, 66, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(229, 184, 66, 0.4);
}

.search-icon-prefix {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--gold-dark);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(18, 11, 7, 0.96);
  backdrop-filter: blur(25px);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
  padding: 0.5rem;
  z-index: 1200;
}

.search-result-item {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(229, 184, 66, 0.08);
}
.search-result-item:hover {
  background: rgba(229, 184, 66, 0.15);
}

.search-type-badge {
  font-size: 0.72rem;
  color: var(--saffron-primary);
  text-transform: uppercase;
  font-family: var(--font-serif-heading);
  letter-spacing: 0.05em;
}
.search-item-title {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.98rem;
}
.search-item-snippet {
  font-size: 0.82rem;
  color: var(--text-parchment-muted);
}

/* ==================== 2. PORTAL HUB MATRIX (HOMEPAGE) ==================== */
.portal-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.portal-node-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portal-node-card:hover .portal-node-arrow {
  transform: translateX(6px);
  color: var(--gold-light);
}

.portal-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.portal-node-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.portal-node-tag {
  font-family: var(--font-serif-heading);
  font-size: 0.75rem;
  color: var(--saffron-primary);
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.portal-node-title {
  font-family: var(--font-serif-heading);
  font-size: 1.45rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.portal-node-desc {
  font-size: 0.95rem;
  color: var(--text-parchment-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.portal-node-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(229, 184, 66, 0.12);
  padding-top: 0.8rem;
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  color: var(--gold-primary);
}

.portal-node-arrow {
  transition: transform 0.25s ease;
}

/* ==================== 3. STORY BANNER & NARRATIVE HEADERS ==================== */
.story-header-banner {
  background: linear-gradient(135deg, rgba(35, 20, 12, 0.85), rgba(16, 9, 5, 0.92));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.story-header-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15), transparent 70%);
  pointer-events: none;
}

.story-badge {
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  color: var(--saffron-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.story-heading {
  font-family: var(--font-serif-heading);
  font-size: 2.8rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.story-lead {
  font-size: 1.2rem;
  color: var(--text-parchment-light);
  max-width: 850px;
  line-height: 1.8;
}

/* ==================== 4. MANUSCRIPT BOOK & READER STYLING ==================== */
.scriptures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.parchment-book-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-glass);
}

.parchment-book-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-liquid-hover);
}

.book-spine-accent {
  width: 8px;
  background: linear-gradient(180deg, var(--saffron-primary) 0%, var(--gold-primary) 50%, var(--crimson-sacred) 100%);
}

.book-card-inner {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.book-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-category-tag {
  font-size: 0.75rem;
  color: var(--saffron-primary);
  letter-spacing: 0.1em;
  font-family: var(--font-serif-heading);
  text-transform: uppercase;
}

.book-card-title {
  font-size: 1.35rem;
  color: var(--gold-light);
  line-height: 1.3;
}

.book-card-desc {
  font-size: 0.95rem;
  color: var(--text-parchment-muted);
  line-height: 1.6;
}

.book-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--gold-dark);
}

.book-card-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(229, 184, 66, 0.12);
}

.open-reader-action-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-family: var(--font-serif-heading);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.open-reader-action-btn:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

/* ==================== 5. MODAL PALM LEAF READER ==================== */
.manuscript-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 3, 2, 0.88);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.manuscript-modal-overlay.active {
  display: flex;
}

.manuscript-modal-container {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
}

.manuscript-parchment {
  background: #fbf5e8;
  color: #2d1a0d;
  border: 4px double #8c631e;
  border-radius: 16px;
  padding: 2.8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  position: relative;
}

.manuscript-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #d4b886;
  padding-bottom: 0.8rem;
}

.manuscript-badge {
  background: #8c261e;
  color: #fff;
  font-family: var(--font-serif-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
}

.close-modal-btn {
  background: none;
  border: 1px solid #8c631e;
  color: #8c631e;
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

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

.manuscript-title {
  font-family: var(--font-serif-heading);
  font-size: 2.2rem;
  color: #6e1a1a;
  margin-bottom: 0.5rem;
}

.manuscript-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #7a502e;
  margin-bottom: 1.5rem;
}

.manuscript-desc {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #3d2413;
  margin-bottom: 2rem;
}

.palm-leaf-verse-box {
  background: #ede1cb;
  border: 1px solid #caa050;
  border-left: 5px solid #8c261e;
  border-radius: 8px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.palm-leaf-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8c631e;
  margin-bottom: 0.8rem;
  font-family: var(--font-serif-heading);
}

.sanskrit-verse {
  font-family: var(--font-devanagari);
  font-size: 1.45rem;
  color: #6e1a1a;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.iast-verse {
  font-size: 1.05rem;
  font-style: italic;
  color: #7a502e;
  margin-bottom: 1rem;
}

.verse-translation {
  font-size: 1.15rem;
  color: #2b180a;
  line-height: 1.6;
}

.archive-access-box {
  background: #ede1cb;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 2rem;
}

.archive-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6e1a1a;
  display: block;
  margin-bottom: 0.6rem;
}

.archive-links-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.archive-btn {
  background: #fff;
  border: 1px solid #caa050;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: #6e1a1a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.archive-btn:hover {
  background: #8c261e;
  color: #fff;
}

/* ==================== 6. JIJÑĀSĀ QUIZ ENGINE & FULLSCREEN EXAM TERMINAL ==================== */
body.exam-mode-active .ancient-navbar,
body.exam-mode-active .story-header-banner,
body.exam-mode-active #quiz-modules-list,
body.exam-mode-active #demo-certificates-showcase,
body.exam-mode-active footer.ancient-footer {
  display: none !important;
}

body.exam-mode-active main.section-padding {
  padding: 1.5rem 0 2rem 0 !important;
}

body.exam-mode-active .quiz-question-card {
  min-height: 85vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.8rem;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 184, 66, 0.25);
  background: linear-gradient(135deg, rgba(20, 12, 7, 0.96), rgba(10, 5, 3, 0.98));
}

.quiz-level-tabs-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.quiz-question-card {
  padding: 2.5rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.quiz-progress-bar-container {
  margin-bottom: 2rem;
  user-select: none;
}

.quiz-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif-heading);
  user-select: none;
}

.quiz-progress-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron-primary), var(--gold-primary));
  transition: width 0.35s ease;
}

.quiz-question-text {
  font-size: 1.5rem;
  color: var(--gold-light);
  line-height: 1.45;
  margin-bottom: 2rem;
  user-select: none;
  -webkit-user-select: none;
}

.q-num {
  color: var(--saffron-primary);
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  user-select: none;
  -webkit-user-select: none;
}

.quiz-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(20, 13, 8, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  color: var(--text-parchment-light);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(45, 28, 16, 0.95);
  border-color: var(--gold-primary);
  transform: translateX(4px);
}

.option-letter {
  background: rgba(229, 184, 66, 0.15);
  color: var(--gold-light);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-option-btn.correct {
  background: rgba(46, 125, 50, 0.25) !important;
  border-color: #4caf50 !important;
  color: #a5d6a7 !important;
}

.quiz-option-btn.incorrect {
  background: rgba(198, 40, 40, 0.25) !important;
  border-color: #e53935 !important;
  color: #ef9a9a !important;
}

.quiz-feedback-box {
  border-radius: 8px;
  padding: 1.2rem 1.6rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.correct-feedback {
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid #4caf50;
  color: #c8e6c9;
}

.incorrect-feedback {
  background: rgba(198, 40, 40, 0.2);
  border: 1px solid #e53935;
  color: #ffcdd2;
}

.feedback-title {
  font-family: var(--font-serif-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.quiz-actions-row {
  display: flex;
  justify-content: flex-end;
}

.ancient-certificate-frame {
  background: #fbf5e8;
  color: #2b180a;
  border: 12px double #8c631e;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 850px;
  margin: 3rem auto;
  position: relative;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
  font-family: var(--font-body);
}

.cert-inner-border {
  border: 2px solid #caa050;
  padding: 2.5rem 2rem;
  text-align: center;
}

.cert-header-sanskrit {
  font-family: var(--font-devanagari);
  font-size: 1.6rem;
  font-weight: 700;
  color: #8c261e;
  margin-bottom: 0.3rem;
}

.cert-portal-name {
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #8c631e;
  margin-bottom: 1rem;
}

.cert-main-title {
  font-family: var(--font-serif-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #2b180a;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #caa050;
  padding-bottom: 0.5rem;
}

.cert-body-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4a301a;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.cert-candidate-name {
  font-family: var(--font-serif-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #8c261e;
  margin: 0.5rem 0;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.cert-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #caa050;
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* ==================== 7. UNIVERSAL FOOTER ==================== */
.ancient-footer {
  background: #080503;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-sanskrit-quote {
  font-family: var(--font-devanagari);
  font-size: 1.45rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.footer-quote-trans {
  font-size: 1.05rem;
  color: var(--gold-dark);
  margin-bottom: 2rem;
  font-style: italic;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links-row a {
  color: var(--text-parchment-muted);
  text-decoration: none;
  font-family: var(--font-serif-heading);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links-row a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-parchment-muted);
}
