/* =============================================
   MAHA SHIVA NAADI JOTHIDAM — about.css
   ============================================= */

/* ─── CONTAINER ──────────────────────────────── */
.ab-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATION BASE STATES
   Elements start hidden, .ab-in makes them appear
═══════════════════════════════════════════════ */
.ab-slide-left,
.ab-slide-right,
.ab-fade-up,
.ab-step-anim,
.ab-animate .ab-help-item {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ab-slide-left  { transform: translateX(-50px); }
.ab-slide-right { transform: translateX(50px); }
.ab-fade-up     { transform: translateY(40px); }
.ab-step-anim   { transform: translateY(30px); }
.ab-animate .ab-help-item { transform: translateX(-30px); }

/* Triggered state */
.ab-slide-left.ab-in,
.ab-slide-right.ab-in,
.ab-fade-up.ab-in,
.ab-step-anim.ab-in,
.ab-animate .ab-help-item.ab-in {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════════ */
.about-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('./images/olaichuavdi_nadi_jothidam.jpg')
    center top / cover no-repeat;
  text-align: center;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90,0,0,0.90), rgba(26,10,0,0.85));
}
.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 20px 55px;
}
.about-hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(17px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  max-width: 820px;
  margin: 0 auto 18px;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  animation: heroFadeIn 1s ease both;
}
.about-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  animation: heroFadeIn 1.2s ease both;
}
.about-breadcrumb a { color: #fff; text-decoration: none; transition: color 0.2s; }
.about-breadcrumb a:hover { color: var(--gold-light); }
.about-breadcrumb i { font-size: 11px; color: rgba(255,255,255,0.5); }
.about-breadcrumb span { color: var(--saffron); font-weight: 600; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   SHARED IMAGE BOX + HOVER OVERLAY
═══════════════════════════════════════════════ */
.ab-img-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(212,175,55,0.4);
  box-shadow: 0 12px 45px rgba(0,0,0,0.18);
  background: #f5ede0;
}
.ab-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ab-img-hover:hover img { transform: scale(1.06); }

/* overlay label on hover */
.ab-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(80,0,0,0.88), transparent);
  padding: 30px 20px 18px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-align: center;
}
.ab-img-hover:hover .ab-img-overlay { transform: translateY(0); }
.ab-img-overlay span {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--gold-light);
  font-weight: 600;
  line-height: 1.5;
}
.ab-img-overlay small {
  display: block;
  font-size: 12px;
  color: #ffd;
  font-family: 'Crimson Text', serif;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   SECTION 1 — GURU
═══════════════════════════════════════════════ */
.ab-guru {
  padding: 80px 0;
  background: #fff;
}
.ab-guru-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 65px;
  align-items: center;
}
.ab-guru-text h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(19px, 2.4vw, 29px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.35;
}
.ab-guru-text p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 16px;
}
.ab-guru-img .ab-img-box { height: 380px; }

/* ═══════════════════════════════════════════════
   PALM LEAF STRIP  (olaichuavdi_nadi_jothidam.jpg)
═══════════════════════════════════════════════ */
.ab-strip {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.ab-strip-img {
  position: relative;
  height: 300px;
}
.ab-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 8s ease;
}
.ab-strip:hover .ab-strip-img img { transform: scale(1.04); }
.ab-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(80,0,0,0.85) 0%, rgba(80,0,0,0.5) 50%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 60px;
}
.ab-strip-text { color: #fff; }
.ab-strip-text i {
  font-size: 28px;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: block;
  animation: featherSway 3s ease-in-out infinite;
}
@keyframes featherSway {
  0%,100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}
.ab-strip-text h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.ab-strip-text p {
  font-size: 15px;
  color: #ffd;
  max-width: 420px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   SECTION 2 — VAITHEESWARAN KOIL
═══════════════════════════════════════════════ */
.ab-temple {
  padding: 80px 0;
  background: var(--cream);
}
.ab-temple-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 65px;
  align-items: center;
}
.ab-temple-img .ab-img-box { height: 340px; }
.ab-temple-text h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 22px;
  line-height: 1.35;
}
.ab-temple-text p {
  font-size: 15.5px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════
   SECTION 3 — HOW WE HELP  +  images (2).jpg
═══════════════════════════════════════════════ */
.ab-help {
  padding: 80px 0;
  background: #f9f4ec;
}
.ab-help-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}
.ab-help-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.ab-help-header h2 span { color: var(--saffron); }
.ab-help-header p { font-size: 16px; color: #555; line-height: 1.8; }

/* two-column: list + image */
.ab-help-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
}
.ab-help-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ab-help-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--saffron);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.ab-help-item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.ab-help-item i {
  color: var(--saffron);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}
.ab-help-item p { font-size: 15.5px; color: #333; line-height: 1.65; margin: 0; }

/* help image — taller for portrait poster */
.ab-help-img .ab-img-box { height: 480px; }

/* ═══════════════════════════════════════════════
   SECTION 4 — READING PROCESS
   BG: download (3).jpg
═══════════════════════════════════════════════ */
.ab-process {
  position: relative;
  background:
    url('./images/WhatsApp Image 2026-02-19 at 10.46.33 AM.jpeg')
    center / cover no-repeat;
  background-attachment: fixed;
  padding: 90px 0;
  text-align: center;
}
.ab-process-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 3, 0, 0.87);
}
.ab-process-inner {
  position: relative;
  z-index: 2;
}
.ab-process-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.ab-process-title span { color: var(--saffron); }
.ab-process-sub {
  font-size: 15px;
  color: #bbb;
  margin-bottom: 55px;
  font-style: italic;
}
.ab-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ab-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 195px;
}
.ab-step-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,0.08);
  transition: background 0.3s, transform 0.3s;
}
.ab-step:hover .ab-step-icon {
  background: rgba(212,175,55,0.2);
  transform: scale(1.1);
}
.ab-step-icon i { font-size: 34px; color: var(--gold-light); }
.ab-step p {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: #fff;
  line-height: 1.55;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.ab-step-arrow {
  color: rgba(212,175,55,0.5);
  font-size: 22px;
  padding-top: 30px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Guru section */
  .ab-guru-grid  { grid-template-columns: 1fr; gap: 30px; }
  .ab-guru-img   { order: -1; }
  .ab-guru-img .ab-img-box { height: 260px; }

  /* Temple section */
  .ab-temple-grid { grid-template-columns: 1fr; gap: 30px; }
  .ab-temple-img .ab-img-box { height: 240px; }

  /* Help section */
  .ab-help-inner  { grid-template-columns: 1fr; gap: 30px; }
  .ab-help-img    { order: -1; }
  .ab-help-img .ab-img-box { height: 260px; }

  /* Process steps — wrap into 2×2 grid */
  .ab-steps { gap: 30px 20px; }
  .ab-step-arrow { display: none; }
  .ab-step { width: 160px; }

  /* Strip */
  .ab-strip-img { height: 210px; }
  .ab-strip-overlay { padding: 0 30px; }

  /* On tablet, keep slide animations but reduce distance */
  .ab-slide-left  { transform: translateX(-30px); }
  .ab-slide-right { transform: translateX(30px); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 700px)
═══════════════════════════════════════════════ */
@media (max-width: 700px) {
  /* Container padding */
  .ab-container { padding: 0 16px; }

  /* Hero */
  .about-hero { min-height: 200px; }
  .about-hero-content { padding: 50px 16px 40px; }
  .about-hero-content h1 { font-size: 16px; line-height: 1.5; }
  .about-breadcrumb { font-size: 12px; gap: 7px; }

  /* All sections padding */
  .ab-guru, .ab-temple, .ab-help, .ab-process { padding: 50px 0; }

  /* Guru */
  .ab-guru-grid  { gap: 22px; }
  .ab-guru-img .ab-img-box { height: 230px; }
  .ab-guru-text h2 { font-size: 18px; margin-bottom: 16px; }
  .ab-guru-text p  { font-size: 14.5px; line-height: 1.8; margin-bottom: 12px; }

  /* Strip */
  .ab-strip-img { height: 160px; }
  .ab-strip-overlay {
    padding: 0 18px;
    /* On small screens make overlay full-width dark so text readable */
    background: linear-gradient(to right, rgba(80,0,0,0.88), rgba(80,0,0,0.6));
  }
  .ab-strip-text i  { font-size: 20px; margin-bottom: 8px; }
  .ab-strip-text h3 { font-size: 15px; margin-bottom: 5px; }
  .ab-strip-text p  { font-size: 12px; line-height: 1.5; max-width: 100%; }

  /* Temple */
  .ab-temple-grid { gap: 22px; }
  .ab-temple-img .ab-img-box { height: 210px; }
  .ab-temple-text h2 { font-size: 18px; margin-bottom: 14px; }
  .ab-temple-text p  { font-size: 14.5px; line-height: 1.8; }

  /* Help */
  .ab-help { padding: 50px 0; }
  .ab-help-header { margin-bottom: 28px; }
  .ab-help-header h2 { font-size: 22px; }
  .ab-help-header p  { font-size: 14.5px; }
  .ab-help-inner { gap: 22px; }
  .ab-help-img .ab-img-box { height: 200px; }
  .ab-help-item { padding: 11px 14px; gap: 10px; }
  .ab-help-item i { font-size: 17px; }
  .ab-help-item p { font-size: 14px; }
  /* Disable slide-on-hover for help items on touch */
  .ab-help-item:hover { transform: none; }

  /* Process */
  .ab-process { padding: 55px 0; background-attachment: scroll; }
  .ab-process-title { font-size: 22px; }
  .ab-process-sub   { font-size: 13px; margin-bottom: 35px; }
  .ab-steps { flex-direction: column; align-items: center; gap: 28px; }
  .ab-step  { width: 100%; max-width: 240px; flex-direction: row; gap: 18px; text-align: left; }
  .ab-step p { text-align: left; font-size: 13px; }
  .ab-step-icon { width: 62px; height: 62px; flex-shrink: 0; }
  .ab-step-icon i { font-size: 26px; }

  /* Reduce animation distances on mobile */
  .ab-slide-left  { transform: translateX(-20px); }
  .ab-slide-right { transform: translateX(20px); }
  .ab-fade-up     { transform: translateY(20px); }
  .ab-step-anim   { transform: translateY(15px); }

  /* Image overlay — always visible on mobile (no hover) */
  .ab-img-overlay { transform: translateY(0); background: linear-gradient(to top, rgba(80,0,0,0.75), transparent); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 380px)
═══════════════════════════════════════════════ */
@media (max-width: 380px) {
  .about-hero-content h1 { font-size: 14px; }
  .ab-guru-img .ab-img-box,
  .ab-temple-img .ab-img-box,
  .ab-help-img .ab-img-box { height: 180px; }
  .ab-guru-text h2,
  .ab-temple-text h2 { font-size: 16px; }
  .ab-strip-img { height: 130px; }
  .ab-strip-text h3 { font-size: 13px; }
  .ab-strip-text p  { display: none; }
  .ab-step { max-width: 210px; }
  .ab-step-icon { width: 52px; height: 52px; }
  .ab-step-icon i { font-size: 22px; }
  .ab-step p { font-size: 12px; }
}

/* ══════════════════════════════════════
   WHAT IS NADI JOTHIDAM SECTION
══════════════════════════════════════ */
.ab-whatis {
  padding: 80px 0;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.ab-whatis-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.ab-label {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
}
.ab-whatis-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.ab-whatis-header h2 span { color: var(--deep-red); }
.ab-gold-line {
  width: 55px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  border-radius: 2px;
  margin: 0 auto 20px;
}
.ab-whatis-header p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}
/* 4-card grid */
.ab-whatis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}
.ab-wi-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px 22px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}
.ab-wi-card.ab-in {
  opacity: 1;
  transform: none;
}
.ab-wi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(139,0,0,0.12);
}
.ab-wi-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--deep-red), var(--crimson));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 18px rgba(139,0,0,0.28);
}
.ab-wi-icon i { font-size: 26px; color: #fff; }
.ab-wi-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.ab-wi-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* Responsive */
@media (max-width: 900px) {
  .ab-whatis-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ab-whatis-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .ab-whatis { padding: 50px 0; }
}