/**
 * Sri Ganesha Ashtothram 108 Namavali 2026 - Page-Scoped Styles
 * Scoped strictly to: .ganesha-ashtothram-page
 */

/* ==========================================================================
   1. Typography & General Layout
   ========================================================================== */
.ganesha-ashtothram-page,
.vinayaka-ashtothram-page {
  color: #1C140E;
  background-color: #FFFDF9;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.ganesha-ashtothram-page .font-heading,
.vinayaka-ashtothram-page .font-heading {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}

.ganesha-ashtothram-page .sanskrit-name,
.ganesha-ashtothram-page .sanskrit-text,
.vinayaka-ashtothram-page .sanskrit-text {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', serif;
  font-size: 18px;
  color: #8B0000;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ganesha-ashtothram-page .telugu-name,
.ganesha-ashtothram-page .telugu-text,
.vinayaka-ashtothram-page .telugu-text {
  font-family: 'Noto Sans Telugu', 'Noto Serif Telugu', 'Tiro Telugu', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #2D1A10;
  font-weight: 600;
}

.ganesha-ashtothram-page .english-meaning,
.vinayaka-ashtothram-page .english-meaning {
  font-size: 15px;
  color: #4A3B32;
  line-height: 1.5;
}

.ganesha-ashtothram-page .text-saffron {
  color: #E65100 !important;
}

.ganesha-ashtothram-page .text-maroon {
  color: #8B0000 !important;
}

.ganesha-ashtothram-page .bg-cream-warm {
  background-color: #FAF5EC !important;
}

.ganesha-ashtothram-page .bg-cream-card {
  background-color: #FFFFFF !important;
}

.ganesha-ashtothram-page .border-gold-subtle {
  border-color: #EEDFCB !important;
}

/* ==========================================================================
   2. Hero & Quick Answer Section
   ========================================================================== */
.ganesha-ashtothram-page .ashtothram-hero-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF5EC 100%);
  border: 1px solid #EEDFCB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.04);
}

.ganesha-ashtothram-page .hero-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
  background-color: #2D1A10;
}

.ganesha-ashtothram-page .hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ganesha-ashtothram-page .quick-answer-card {
  background-color: #FFF8E7;
  border-left: 4px solid #E65100;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.04);
}

.ganesha-ashtothram-page .pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.82rem;
  font-weight: 600;
  background-color: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
}

/* ==========================================================================
   3. Featured Devotional Block: How to Chant
   ========================================================================== */
.ganesha-ashtothram-page .chanting-guide-card {
  background: #FFFFFF;
  border: 1px solid #EEDFCB;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 3px 12px rgba(62, 39, 35, 0.03);
}

.ganesha-ashtothram-page .guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.ganesha-ashtothram-page .guide-step-item:last-child {
  margin-bottom: 0;
}

.ganesha-ashtothram-page .guide-step-bullet {
  color: #E65100;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* ==========================================================================
   4. Controls Toolbar (Search, Filter, Progress)
   ========================================================================== */
.ganesha-ashtothram-page .toolbar-panel {
  background: #FFFFFF;
  border: 1px solid #EEDFCB;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(62, 39, 35, 0.03);
}

.ganesha-ashtothram-page .search-input-group {
  position: relative;
}

.ganesha-ashtothram-page .search-input-group input {
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid #D4AF37;
  padding-left: 2.75rem;
  padding-right: 2.5rem;
  font-size: 0.95rem;
  background-color: #FFFDF9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ganesha-ashtothram-page .search-input-group input:focus {
  border-color: #E65100;
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12);
  outline: none;
}

.ganesha-ashtothram-page .search-input-group .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #E65100;
  font-size: 1.1rem;
  pointer-events: none;
}

.ganesha-ashtothram-page .search-input-group .clear-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
}

.ganesha-ashtothram-page .btn-group-filter {
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #FAF5EC;
  border: 1px solid #EEDFCB;
  color: #3E2723;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ganesha-ashtothram-page .btn-group-filter:hover {
  background-color: #FFF3E0;
  color: #E65100;
  border-color: #E65100;
}

.ganesha-ashtothram-page .btn-group-filter.active {
  background-color: #E65100;
  color: #FFFFFF;
  border-color: #E65100;
  box-shadow: 0 2px 6px rgba(230, 81, 0, 0.2);
}

.ganesha-ashtothram-page .progress-tracker-box {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF3E0 100%);
  border: 1px solid #FFE0B2;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
}

.ganesha-ashtothram-page .progress {
  height: 10px;
  border-radius: 5px;
  background-color: #EEDFCB;
  overflow: hidden;
}

.ganesha-ashtothram-page .progress-bar-devotional {
  background: linear-gradient(90deg, #E65100 0%, #FFB300 100%);
  transition: width 0.3s ease;
}

/* ==========================================================================
   5. Section Header & Group Labels
   ========================================================================== */
.ganesha-ashtothram-page .ashtothram-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 1.5rem auto;
}

.ganesha-ashtothram-page .ashtothram-section-header h2 {
  font-family: 'Noto Sans Telugu', 'Noto Serif Telugu', sans-serif;
  color: #8B0000;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.ganesha-ashtothram-page .ashtothram-group-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem 0;
}

.ganesha-ashtothram-page .ashtothram-group-divider::before,
.ganesha-ashtothram-page .ashtothram-group-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #EEDFCB;
}

.ganesha-ashtothram-page .group-badge-label {
  display: inline-block;
  background: #FFF3E0;
  color: #8B0000;
  border: 1px solid #FFE0B2;
  border-radius: 20px;
  padding: 0.35rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   6. Desktop Table Presentation (1100–1200px centered)
   ========================================================================== */
.ganesha-ashtothram-page .desktop-table-container {
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid #EEDFCB;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(62, 39, 35, 0.04);
  background: #FFFFFF;
}

.ganesha-ashtothram-page .ashtothram-desktop-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.ganesha-ashtothram-page .ashtothram-desktop-table thead th {
  background: linear-gradient(180deg, #FAF5EC 0%, #F5EBE1 100%);
  color: #3E2723;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #D4AF37;
}

.ganesha-ashtothram-page .ashtothram-desktop-table tbody td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #F3EAE0;
  vertical-align: middle;
  min-height: 54px;
}

.ganesha-ashtothram-page .ashtothram-desktop-table tbody tr:nth-child(even) {
  background-color: #FFFDF9;
}

.ganesha-ashtothram-page .ashtothram-desktop-table tbody tr:hover {
  background-color: #FFF8E7;
}

.ganesha-ashtothram-page .ashtothram-desktop-table tbody tr.is-recited {
  background-color: rgba(46, 125, 50, 0.05);
}

.ganesha-ashtothram-page .ashtothram-desktop-table tbody tr:last-child td {
  border-bottom: none;
}

/* Column Proportions: 8%, 30%, 27%, 35% */
.ganesha-ashtothram-page .col-dt-num {
  width: 8%;
  text-align: center;
}

.ganesha-ashtothram-page .col-dt-sanskrit {
  width: 30%;
}

.ganesha-ashtothram-page .col-dt-telugu {
  width: 27%;
}

.ganesha-ashtothram-page .col-dt-meaning {
  width: 35%;
}

.ganesha-ashtothram-page .gold-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFF3E0;
  color: #8B0000;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid #D4AF37;
  box-shadow: 0 1px 4px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   7. Mobile Cards Presentation (< 768px)
   ========================================================================== */
.ganesha-ashtothram-page .mobile-cards-container {
  max-width: 580px;
  margin: 0 auto;
}

.ganesha-ashtothram-page .ashtothram-mobile-card {
  background: #FFFFFF;
  border: 1px solid #EEDFCB;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 2px 8px rgba(62, 39, 35, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ganesha-ashtothram-page .ashtothram-mobile-card.is-recited {
  background-color: #F8FAF8;
  border-color: #A5D6A7;
}

.ganesha-ashtothram-page .ashtothram-mobile-card .card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ganesha-ashtothram-page .ashtothram-mobile-card .sanskrit-name {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.ganesha-ashtothram-page .ashtothram-mobile-card .telugu-name {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.ganesha-ashtothram-page .ashtothram-mobile-card .english-meaning {
  font-size: 14.5px;
  color: #555555;
  line-height: 1.5;
  padding-top: 0.5rem;
  border-top: 1px dashed #EEDFCB;
}

.ganesha-ashtothram-page .btn-load-more-group {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  background-color: #FFF3E0;
  border: 1.5px solid #E65100;
  color: #E65100;
  transition: all 0.2s ease;
}

.ganesha-ashtothram-page .btn-load-more-group:hover {
  background-color: #E65100;
  color: #FFFFFF;
}

/* ==========================================================================
   8. Chanting Mode (Modal / Focus View)
   ========================================================================== */
.ganesha-ashtothram-page.chanting-modal,
.ganesha-ashtothram-page .chanting-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 20, 14, 0.94);
  backdrop-filter: blur(6px);
  z-index: 1060;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.ganesha-ashtothram-page.chanting-modal .chanting-modal-content,
.ganesha-ashtothram-page .chanting-modal-content {
  max-width: 680px;
  margin: auto;
  background: #FFFDF9;
  border: 2px solid #D4AF37;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.ganesha-ashtothram-page.chanting-modal .sanskrit-chant,
.ganesha-ashtothram-page .chanting-modal .sanskrit-chant {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', serif;
  font-size: 2.3rem;
  color: #8B0000;
  font-weight: 700;
  line-height: 1.4;
}

.ganesha-ashtothram-page.chanting-modal .telugu-chant,
.ganesha-ashtothram-page .chanting-modal .telugu-chant {
  font-family: 'Noto Sans Telugu', 'Noto Serif Telugu', sans-serif;
  font-size: 1.65rem;
  color: #1C140E;
  font-weight: 600;
  line-height: 1.8;
}

.ganesha-ashtothram-page.chanting-modal .meaning-chant,
.ganesha-ashtothram-page .chanting-modal .meaning-chant {
  font-size: 1.1rem;
  color: #555555;
  line-height: 1.6;
}

.ganesha-ashtothram-page .chanting-nav-btn {
  min-width: 130px;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  border-radius: 10px;
}

body.chanting-mode-open {
  overflow: hidden;
}

/* ==========================================================================
   9. Action Bar: Copy All, Sanskrit, Telugu, Print & Share
   ========================================================================== */
.ganesha-ashtothram-page .action-bar-panel {
  background: linear-gradient(135deg, #FAF5EC 0%, #F5EBE1 100%);
  border: 1px solid #D4AF37;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(62, 39, 35, 0.04);
}

.ganesha-ashtothram-page .btn-action-primary {
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.ganesha-ashtothram-page .btn-copy-feedback {
  background-color: #2E7D32 !important;
  color: #FFFFFF !important;
  border-color: #2E7D32 !important;
}

/* ==========================================================================
   10. Related Guides & FAQ
   ========================================================================== */
.ganesha-ashtothram-page .related-guide-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid #EEDFCB;
  border-radius: 10px;
  text-decoration: none;
  color: #3E2723;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  height: 100%;
}

.ganesha-ashtothram-page .related-guide-card:hover {
  transform: translateY(-2px);
  border-color: #E65100;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.08);
  color: #E65100;
}

.ganesha-ashtothram-page .accordion-item {
  border: 1px solid #EEDFCB;
  border-radius: 10px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #FFFFFF;
}

.ganesha-ashtothram-page .accordion-button {
  background-color: #FAF5EC;
  color: #3E2723;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 1rem 1.25rem;
}

.ganesha-ashtothram-page .accordion-button:not(.collapsed) {
  background-color: #FFF3E0;
  color: #E65100;
  box-shadow: none;
}

.ganesha-ashtothram-page .accordion-button:focus {
  box-shadow: none;
  border-color: #EEDFCB;
}

/* ==========================================================================
   11. Print Stylesheet
   ========================================================================== */
@media print {
  .top-notice-bar,
  .auspicious-top-border,
  header,
  footer,
  .no-print,
  .skip-link,
  .toolbar-panel,
  .chanting-modal,
  .btn,
  .btn-load-more-group,
  .ashtothram-hero-card .hero-image-wrapper,
  .related-guide-card,
  .accordion,
  .action-bar-panel {
    display: none !important;
  }

  body,
  .ganesha-ashtothram-page,
  .vinayaka-ashtothram-page {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .ganesha-ashtothram-page .desktop-table-container {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
  }

  .ganesha-ashtothram-page .ashtothram-desktop-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .ganesha-ashtothram-page .ashtothram-desktop-table th,
  .ganesha-ashtothram-page .ashtothram-desktop-table td {
    border: 1px solid #999999 !important;
    padding: 6px 10px !important;
    font-size: 10.5pt !important;
  }

  .ganesha-ashtothram-page .gold-num-badge {
    border: 1px solid #666 !important;
    background: none !important;
    color: #000 !important;
  }

  .ganesha-ashtothram-page .print-only-header {
    display: block !important;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
  }

  .ganesha-ashtothram-page .print-only-header h1 {
    font-size: 18pt;
    margin-bottom: 4px;
  }

  .ganesha-ashtothram-page .print-only-header p {
    font-size: 11pt;
    color: #444;
  }

  .ganesha-ashtothram-page .ashtothram-group-divider {
    page-break-after: avoid;
    break-after: avoid;
  }

  .ganesha-ashtothram-page .ashtothram-desktop-table tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

.ganesha-ashtothram-page .print-only-header {
  display: none;
}
