/* ============================================================
   GITAGYAAN — Chapter Dedicated View CSS
   ============================================================ */

.chapter-page {
  background: var(--bg);
  padding-top: 0; /* Sticky navbar handles its own space */
}

.chapter-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px 0; margin-bottom: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.header-left {
  flex: 1;
}

.header-right {
  flex: 0 0 420px;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .header-flex { flex-direction: column; align-items: flex-start; gap: 24px; }
  .header-right { flex: 0 0 auto; width: 100%; }
}

.header-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: #000;
  border: 1px solid var(--border);
}

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

.chapter-eyebrow {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--saffron); margin-bottom: 12px;
}

.chapter-title {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; color: var(--text);
  margin-bottom: 12px; line-height: 1.2;
}

.chapter-subtitle {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.4rem; color: var(--text-3); margin-bottom: 24px;
}

.chapter-meta {
  display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-3); font-weight: 600;
}
.meta-pill { 
  color: var(--text-2); background: var(--surface); padding: 4px 12px; border-radius: 999px; 
  text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center;
}

/* ── Header YouTube Pill ── */
.header-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f00; /* YouTube Red */
  color: white !important;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
  margin-left: 10px;
}

.header-video-pill:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.pill-icon { font-size: 0.75rem; }

/* ── Content Grid ── */
.content-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-bottom: 80px;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ── Main Column ── */
.content-section { margin-bottom: 48px; }
.section-title { font-size: 1.6rem; color: var(--text); padding-bottom: 12px; border-bottom: 2px solid var(--surface-hover); margin-bottom: 24px; }

.text-body {
  font-size: 1.1rem; line-height: 1.8; color: var(--text-2);
}
.text-body p { margin-bottom: 16px; }

.highlight-box {
  display: flex; gap: 20px; padding: 32px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-hover); border-left: 6px solid var(--saffron);
}
.box-icon { font-size: 2rem; }
.box-content { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; line-height: 1.6; color: var(--text); font-style: italic; }

.practical-list {
  display: flex; flex-direction: column; gap: 16px;
}
.practical-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: 8px; border: 1px solid var(--border);
  background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.practical-num {
  width: 28px; height: 28px; border-radius: 4px; background: var(--saffron-glow);
  color: var(--saffron); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.practical-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.6; }

/* ── Sidebar Column ── */
.sidebar-widget {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; margin-bottom: 32px; box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}
.widget-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }

/* Quote Widget / Shloka Section */
#section-shloka .section-title { color: white; border-bottom-color: rgba(255,255,255,0.1); }
.quote-widget { 
  background: linear-gradient(135deg, #420606 0%, #5a0a12 100%); 
  color: white; border: none; position: relative; overflow: hidden;
  box-shadow: 0 10px 40px rgba(90, 10, 18, 0.2);
  border-radius: 16px;
}
.quote-widget::after {
  content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
  background: radial-gradient(circle at top right, rgba(212, 150, 42, 0.1), transparent);
}
.quote-widget .widget-title { color: var(--gold-2); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.verse-mark { font-family: 'Cormorant Garamond', serif; font-size: 6.5rem; color: white; opacity: 0.3; position: absolute; top: -15px; right: 15px; line-height: 1; pointer-events: none; transition: var(--transition); }
.verse-text { position: relative; z-index: 1; margin-bottom: 15px; font-size: 1.3rem; line-height: 1.6; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.verse-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; display: block; }

/* Lessons Widget */
.lessons-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lessons-list li {
  padding-left: 20px; position: relative; font-size: 0.9rem; color: var(--text-2); line-height: 1.5;
}
.lessons-list li::before {
  content: '✦'; position: absolute; left: 0; color: var(--saffron); font-size: 0.9rem;
}

/* Quiz Widget */
.quiz-widget { background: var(--surface); border-color: var(--saffron-glow); }
.quiz-q { font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: white;
  cursor: pointer; font-size: 0.9rem; color: var(--text-2); transition: var(--transition); text-align: left;
}
.quiz-option:hover { border-color: var(--saffron); background: var(--surface-hover); }
.quiz-option.correct { background: #eaf5e9; border-color: #4caf50; color: #2e7d32; font-weight: 700; }
.quiz-option.incorrect { background: #fdeaea; border-color: #ef5350; color: #c62828; }
.quiz-feedback { margin-top: 16px; font-size: 0.85rem; font-weight: 600; padding: 12px; border-radius: 6px; }
.quiz-feedback.success { background: #eaf5e9; color: #2e7d32; }
.quiz-feedback.error { background: #fdeaea; color: #c62828; }

/* ── Quotes Grid (3x2 Balanced Layout) ── */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .quotes-grid { grid-template-columns: 1fr; }
}

.quote-card-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  position: relative;
  border-bottom: 4px solid var(--saffron-glow);
  height: 100%;
}

.quote-card-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.08);
  border-bottom-color: var(--saffron);
}

.quote-card-icon {
  font-family: 'Georgia', serif;
  font-size: 4rem;
  color: var(--saffron-glow);
  position: absolute;
  top: -10px;
  left: 15px;
  opacity: 0.3;
  line-height: 1;
}

.quote-card-translation {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  font-weight: 500;
  position: relative;
  z-index: 1;
}


/* ── Symbolism Grid ── */
.symbolism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.symbol-glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
}

.symbol-glass-card:hover {
  background: white;
  border-color: var(--saffron);
  transform: scale(1.02);
}

.symbol-term {
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.symbol-meaning {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ── Character List ── */
.characters-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.character-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface);
}

.character-item:last-child {
  border-bottom: none;
}

.char-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.char-role {
  font-size: 0.8rem;
  color: var(--saffron);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.char-bio {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── Reflection Zone ── */
.reflection-box {
  background: radial-gradient(circle at center, #fffaf0 0%, #fdf2e9 100%);
  border: 2px dashed var(--saffron-glow);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.reflect-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.reflect-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px;
}

.reflect-guide {
  font-size: 1.1rem;
  color: var(--text-2);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.reflect-btn {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.reflect-btn:hover {
  background: var(--text);
  transform: translateY(-2px);
}

/* ── Video CTA Card ── */
.video-cta-card {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-left: 6px solid #ff0000; /* YouTube Red */
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-top: 32px;
}

@media (max-width: 600px) {
  .video-cta-card { flex-direction: column; text-align: center; }
}

.video-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.video-cta-icon {
  width: 48px;
  height: 48px;
  background: #ffeeee;
  color: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.video-cta-text h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.video-cta-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-3);
}

.video-cta-btn {
  background: #ff0000;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.video-cta-btn:hover {
  background: #cc0000;
  transform: scale(1.05);
}

/* ── Dharma Matrix Table ── */
.matrix-container {
  overflow-x: auto;
  margin-top: 20px;
}

.dharma-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.dharma-table th {
  background: var(--text);
  color: white;
  padding: 16px;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dharma-table td {
  padding: 20px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  line-height: 1.5;
}

.td-dilemma {
  font-weight: 700;
  color: var(--saffron);
  background: #fffaf0;
  width: 25%;
}

.td-arjuna {
  color: #666;
  font-style: italic;
  width: 37.5%;
}

.td-krishna {
  color: var(--text);
  font-weight: 600;
  border-left: 2px solid var(--saffron-glow);
  width: 37.5%;
}

/* ── Warrior Commitment ── */
.commitment-card {
  background: linear-gradient(135deg, var(--text) 0%, #333 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.commitment-card::before {
  content: '⚔️';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.1;
  transform: rotate(15deg);
}

.commitment-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffd700, #ffa500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.commitment-text {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.commitment-btn {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 16px 48px;
  border-radius: 99px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.commitment-btn:hover {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

/* ── Social Media Widget ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-btn:hover {
  background: white;
  transform: translateY(-3px);
  border-color: var(--saffron-glow);
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.08);
}

.social-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.social-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-btn:hover .social-name {
  color: var(--saffron);
}

@media (max-width: 400px) {
  .social-grid { grid-template-columns: 1fr; }
}

/* ── Site-Wide Footer ── */
.footer { 
  background: white; 
  padding: 80px 0 32px; 
  border-top: 1px solid var(--border); 
  margin-top: 80px;
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr; 
  gap: 64px; 
  margin-bottom: 64px; 
}

.footer-brand .logo-wrap { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 16px; 
}

.footer-brand .brand-name { 
  font-size: 1.8rem; 
  color: var(--text); 
  font-weight: 700; 
  font-family: 'Cormorant Garamond', serif; 
}

.footer-brand p { 
  font-size: 0.95rem; 
  color: var(--text-2); 
  max-width: 360px; 
  line-height: 1.7; 
  margin-bottom: 24px;
}

.footer-col h4 { 
  font-size: 0.85rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  color: var(--text); 
  margin-bottom: 20px; 
}

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

.footer-col ul li a { 
  font-size: 0.95rem; 
  color: var(--text-2); 
  text-decoration: none;
  font-family: 'Lato', sans-serif; 
  transition: color 0.2s; 
  font-weight: 600; 
}

.footer-col ul li a:hover { color: var(--saffron); }

.footer-bottom { 
  border-top: 1px solid var(--border); 
  padding-top: 32px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 24px; 
}

.footer-bottom p { font-size: 0.9rem; color: var(--text-3); font-weight: 600; }

.footer-social-min {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-icon:hover {
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* ─── Chapter Mobile App Refinements ─── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; width: 100vw !important; margin: 0 !important; padding: 0 !important; }
  .chapter-page .container { width: 100% !important; max-width: 100vw !important; padding: 0 16px !important; margin: 0 auto !important; box-sizing: border-box; overflow: hidden; }
  
  .chapter-header { padding: 20px 0 10px; text-align: center; width: 100% !important; }
  .chapter-eyebrow { text-align: center !important; width: 100%; display: block; margin-bottom: 8px; }
  .header-flex { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center; width: 100%; }
  .header-right { display: none !important; } /* Hide video on top in mobile per user request */
  
  .chapter-title { font-size: 2rem !important; width: 100% !important; text-align: center !important; line-height: 1.3 !important; }
  .chapter-subtitle { font-size: 1rem !important; width: 100% !important; text-align: center !important; margin-bottom: 16px !important; }
  .chapter-meta { justify-content: center !important; gap: 8px; flex-wrap: wrap; width: 100%; }
  .meta-pill { padding: 6px 14px; font-size: 0.75rem; }
  
  .content-grid { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 32px; padding-bottom: 60px; width: 100% !important; margin: 0 !important; }
  .main-column, .sidebar-column { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
  
  .section-title { font-size: 1.4rem; text-align: center !important; width: 100%; }
  .text-body { text-align: center !important; width: 100%; font-size: 1.05rem !important; }
  
  .highlight-box { padding: 24px; flex-direction: column !important; text-align: center !important; margin-bottom: 32px; width: 100% !important; }
  .box-icon { font-size: 1.8rem; margin-bottom: 12px; }
  .box-content { font-size: 1.15rem; width: 100%; }
  
  .practical-list { width: 100%; }
  .practical-item { padding: 16px; width: 100%; }
  
  .sidebar-widget { padding: 24px; border-radius: 16px; margin-bottom: 24px; width: 100% !important; box-sizing: border-box; }
  .widget-title { text-align: center !important; width: 100%; }
  
  .quote-widget { padding: 40px 24px; }
  .verse-text { font-size: 1.15rem; text-align: center; }
  .verse-mark { font-size: 3rem; top: -5px; right: 5px; opacity: 0.1; } /* Subdued watermark to prevent width push */
  
  .commitment-card { padding: 40px 24px; width: 100% !important; }
  .commitment-title { font-size: 1.6rem; text-align: center !important; }
  .commitment-text { font-size: 0.95rem; text-align: center !important; }
  
  .social-grid { grid-template-columns: 1fr !important; width: 100%; }
  .social-btn { width: 100%; justify-content: center; }
}
