/* ════════════════════════════════════════
   TOKENS
════════════════════════════════════════ */
:root {
  --ink:        #1c1208;
  --brown-deep: #3b1f00;
  --brown-mid:  #623b04;
  --brown-warm: #805b28;
  --gold:       #c9922a;
  --gold-light: #e8c47a;
  --cream:      #fdf8f0;
  --parchment:  #f5ead8;
  --parchment2: #ede0c8;
  --green:      #1b7428;
  --white:      #ffffff;
  --muted:      #8a7d6b;
  --line:       #e9e6e0;
    --font-d:  'Tiro Devanagari Sanskrit', Georgia, serif;
    --font-b:  'Poppins', sans-serif;
    --font-dv: 'Tiro Devanagari Sanskrit', sans-serif;
}

.gdnavbar{
    border-bottom: 1px solid #d1d1d1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--cream); font-family: var(--font-b); }

/* ════════════════════════════════════════
   SHARED UTILITIES
════════════════════════════════════════ */
.eyebrow {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--gold);
}

.ornament {
  text-align: center;
  font-family: var(--font-dv);
  font-size: 16px;
  color: rgba(201,146,42,0.45);
  letter-spacing: 0.4em;
  margin-bottom: 6px;
}

.teach-container { max-width: 1320px; margin: auto; }

/* ════════════════════════════════════════
   HERO — Two-column, editorial split
════════════════════════════════════════ */
.teach-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Subtle Sanskrit running vertically */
.hero-verse {
    position: absolute;
    left: -170px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-family: var(--font-dv);
    font-size: 16px;
    letter-spacing: 0.22em;
    color: rgb(98 59 4 / 40%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* LEFT text column */
.teach-hero-container {
  position: relative;
  z-index: 2;
  padding: 0 56px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.teach-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(27,116,40,0.07);
  border: 1px solid rgba(27,116,40,0.2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.3; transform:scale(.6); }
}

.teach-heading {
  font-family: var(--font-b);
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  font-weight: 600;
  color: var(--brown-mid);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.teach-heading span { color: var(--green); font-style: italic; }

.teach-subheading {
  font-size: clamp(0.92rem, 1.3vw, 2.4rem);
  font-weight: 400;
  color: var(--brown-warm);
  line-height: 1.8;
  margin-bottom: 40px;
}

.teach-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stat pills below buttons */
.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-num {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--brown-mid);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* RIGHT image column */
.teach-hero-image {
  position: relative;
  overflow: hidden;
}
.teach-hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 28%);
  z-index: 2;
  pointer-events: none;
}

.learning-price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.learning-price-original {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.teach-hero-image img {
    width: 100%;
    height: 90%;
    margin-top: 5%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.88);
    object-position: left 5%;

}

/* Vertical divider */
.hero-rule {
  position: absolute;
  right: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--parchment2) 40%, var(--parchment2) 60%, transparent);
  z-index: 3;
}

/* ── Buttons ── */
.teach-btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--brown-mid);
  color: #fff9f2;
  border: 2px solid var(--brown-mid);
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.teach-btn-primary:hover {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,31,0,0.28);
}

.teach-btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  background: #ffffff;
  color: var(--brown-mid);
  border: 2px solid var(--brown-mid);
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.teach-btn-secondary:hover {
  background: var(--brown-mid);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,31,0,0.2);
}

/* ════════════════════════════════════════
   PATHSHALAS CAROUSEL
════════════════════════════════════════ */
.teach-pathshalas {
  padding: 96px 20px 80px;
  background: var(--white);
  position: relative;
}
.teach-pathshalas::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--parchment2), transparent);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding: 0 4px;
}
.section-header-left { flex: 1; }

.teach-section-title {
  font-family: var(--font-b);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: var(--brown-mid);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}

/* Inline nav */
.carousel-nav-inline { display: flex; gap: 10px; flex-shrink: 0; }
.nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--brown-warm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover {
  background: var(--brown-warm);
  color: var(--white);
  border-color: var(--brown-warm);
  box-shadow: 0 4px 14px rgba(128,91,40,0.28);
}

/* Card */
.egurukul-card {
  display: grid;
  grid-template-columns: 1fr 400px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 48px rgba(128,91,40,0.10);
  overflow: hidden;
  background: var(--white);
  min-height: 360px;
  transition: opacity 0.3s, transform 0.3s;
}
.egurukul-card.fade-out { opacity: 0; transform: translateX(12px); }

.egurukul-content {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.card-num {
  font-family: var(--font-d);
  font-size: 80px;
  font-weight: 700;
  color: var(--parchment);
  line-height: 1;
  margin-bottom: -18px;
  user-select: none;
}
.egurukul-content h3 {
  font-family: var(--font-b);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 600;
  color: var(--brown-warm);
  margin-bottom: 12px;
  line-height: 1.2;
}
.egurukul-content p {
  font-size: 15px;
  color: #616161;
  line-height: 1.78;
  max-width: 70%;
  margin-bottom: 28px;
}

.egurukul-paths { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.path-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--parchment2);
  border-radius: 10px;
  padding: 11px 16px;
}
.path-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-mid);
  margin: 0;
}
.path-box span {
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.egurukul-image {
  position: relative;
  overflow: hidden;
  background: var(--parchment);
}
.egurukul-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.egurukul-card:hover .egurukul-image img { transform: scale(1.05); }

/* Dots */
.egurukul-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
}
#pathshalaDots { display: flex; gap: 6px; align-items: center; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--parchment2);
  cursor: pointer;
  transition: all 0.25s;
}
.dot.active {
  background: var(--brown-warm);
  width: 22px;
  border-radius: 4px;
}

/* ════════════════════════════════════════
   LEARNING CARDS
════════════════════════════════════════ */
.learning-paths        { padding: 96px 20px; background: var(--cream); }
.learning-paths.alt-bg { background: var(--white); }

.section-center {
  text-align: center;
  margin-bottom: 48px;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.learning-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .25s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.learning-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(128,91,40,0.15);
}
.learning-card > img {
  width: 100%; height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}
.learning-card:hover > img { transform: scale(1.04); }

.learning-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.learning-acharya {
  font-size: 11px;
  font-family: var(--font-b);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}
.learning-card h3 {
  font-family: var(--font-b);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brown-warm);
  margin-bottom: 10px;
  min-height: 56px;
}
.learning-card p {
  font-family: var(--font-b);
  font-size: 14px;
  min-height: 76px;
  color: #666;
  line-height: 1.72;
  margin-bottom: 16px;
  flex: 1;
}
.learning-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.learning-meta span {
  font-size: 11px;
  font-weight: 500;
  color: #555;
  background: var(--cream);
  border: 1px solid var(--parchment2);
  border-radius: 20px;
  padding: 3px 10px;
}
.learning-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.learning-price {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 22px;
  color: var(--brown-mid);
}
.learning-price.free { color: var(--green); }

.gd-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-b); font-size: 13px; font-weight: 500;
  color: var(--gray-600); background: none;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 6px 12px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.gd-share-btn:hover {
  color: var(--brown-700); border-color: var(--brown-300);
  background: var(--brown-100);
}
.gd-share-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 400; display: none; align-items: center; justify-content: center;
}
.gd-share-backdrop.open { display: flex; }
.gd-share-modal {
  background: var(--white); border-radius: var(--radius-card);
  border: 1px solid var(--gray-200); padding: 1.75rem;
  max-width: 400px; width: 92%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.gd-share-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.gd-share-eyebrow {
  font-family: var(--font-b); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-400); margin: 0 0 4px;
}
.gd-share-header h2 {
  font-family: var(--font-d); font-size: 17px; font-weight: 600;
  color: var(--brown-700); margin: 0; line-height: 1.3;
}
.gd-share-url-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 1.25rem;
}
.gd-share-url-text {
  flex: 1; font-family: var(--font-b); font-size: 12px;
  color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd-share-copy-btn {
  flex-shrink: 0; font-family: var(--font-b); font-size: 12px; font-weight: 600;
  color: var(--gray-700); background: var(--white);
  border: 1px solid var(--gray-300); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; transition: all 0.15s;
}
.gd-share-copy-btn:hover { border-color: var(--brown-500); color: var(--brown-700); }
.gd-share-copy-btn.copied { color: var(--green); border-color: var(--green); }
.gd-share-divider {
  font-family: var(--font-b); font-size: 11px; color: var(--gray-400);
  text-align: center; display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem;
}
.gd-share-divider::before,.gd-share-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.gd-share-platforms {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 1.25rem;
}
.gd-share-platform {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); background: var(--white);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.gd-share-platform:hover { background: var(--gray-50); border-color: var(--gray-300); }
.gd-share-platform span {
  font-family: var(--font-b); font-size: 11px; color: var(--gray-500); text-align: center;
}
.gd-share-footer {
  font-family: var(--font-d); font-style: italic;
  font-size: 12px; color: var(--gray-400); text-align: center; margin: 0;
}

/* ════════════════════════════════════════
   FAQ
════════════════════════════════════════ */
.teach-faq { padding: 96px 20px; background: var(--cream); }

.faq-list {
  max-width: 780px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item.active {
  border-color: var(--parchment2);
  box-shadow: 0 6px 24px rgba(128,91,40,0.09);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-mid);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 24px;
  font-size: 15px;
  color: #616161;
  line-height: 1.78;
}
.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 24px 22px;
}

/* ════════════════════════════════════════
   CTA
════════════════════════════════════════ */
.teach-cta {
  position: relative;
  padding: 120px 20px 220px;
  text-align: center;
  background: var(--white);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-bg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 380px;
  z-index: 0;
}
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.85;
}
.cta-rule {
  width: 40px; height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  margin: 0 auto 28px;
  border-radius: 2px;
}
.teach-cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-heading {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
  margin-bottom: 14px;
}
.cta-subtitle {
  font-family: var(--font-d);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--brown-warm);
  margin-bottom: 14px;
}
.cta-description {
  font-size: 15px;
  color: #616161;
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 40px;
}

.egurukul-actions{
    display: flex;
    gap: 4px;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .teach-hero              { grid-template-columns: 1fr; }
  .teach-hero-container    { padding: 100px 28px 40px; align-items: center; text-align: center; }
  .teach-subheading        { max-width: 100%; font-size: 1.6rem; }
  .teach-buttons           { justify-content: center; }
  .hero-stats              { justify-content: center; }
  .teach-hero-image        { height: 600px; }
  .teach-hero-image::before{ background: linear-gradient(to bottom, var(--cream) 0%, transparent 40%); }
  .hero-verse, .hero-rule  { display: none; }
  .egurukul-card           { grid-template-columns: 1fr; }
  .egurukul-image          { height: 240px; }
  .egurukul-content        { padding: 32px 36px; border-right: none; border-bottom: 1px solid var(--line); }
  .section-header          { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .teach-hero-image img    { object-position: left 5%;}
  .teach-pathshalas,.learning-paths        { padding: 48px 12px 40px;}
}
@media (max-width: 680px) {
  .teach-hero-container    { padding: 80px 20px 32px; }
  .hero-stats              { display: none; }
  .egurukul-content        { padding: 24px; }
  .card-num                { font-size: 56px; }
  .learning-grid           { grid-template-columns: 1fr; }
  .teach-section-title     { font-size: 2rem; }
  .egurukul-content p      { max-width: 100%; font-size: 14px; }
  .egurukul-content h3     { font-size: clamp(2rem, 2.6vw, 2rem);}
  .teach-btn-primary,.teach-btn-secondary { padding: 6px 12px; font-size: 12px; }
.teach-heading { font-family: var(--font-b); font-size: clamp(3.2rem, 4vw, 4.8rem);}
}