.hero-carousel {
  height: calc(100vh - 64px); /* subtract header */
  overflow: hidden;
}

/* Slides */
.carousel-track {
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;

  display: flex;
  align-items: center;
  justify-content: center;
}


.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}


/* Overlay */
.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
  color: #fff;
}

.carousel-overlay h1 {
  font-size: clamp(28px, 4vw, 46px);
  max-width: 600px;
  margin-bottom: 12px;
  color:#E9762B
}

.carousel-overlay p {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 480px;
  color:#002455
}

/* Soft clouds */
.hero-carousel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: url("https://svgshare.com/i/13Yk.svg") repeat-x bottom;
  opacity: 0.35;
  pointer-events: none;
}

.learning-section {
  background: #F8F6F2;
  padding: 100px 20px;
}

.learning-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}

.learning-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.learning-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: #D46A3A;
}

.learning-header p {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
}

/* Tabs */
.learning-tabs {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.learning-tab {
  background: none;
  border: none;
  font-size: 15px;
  padding: 6px 0;
  cursor: pointer;
  color: #555;
  position: relative;
}

.learning-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #D46A3A;
  transition: width 0.3s ease;
}

.learning-tab.active {
  color: #D46A3A;
}

.learning-tab.active::after {
  width: 100%;
}

/* Content */
.learning-content {
  background: #ffffff;
  border-radius: 28px;
  padding: 60px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.learning-pane {
  display: none;
}

.learning-pane.active {
  display: block;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.content-grid h3 {
  font-size: 30px;
  margin-bottom: 14px;
  color: #D46A3A;
}

.content-grid p {
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
   display: block;
  margin-bottom: 6px;
  max-width: 650px;

}

.content-grid ul {
  margin: 14px 0;
  padding-left: 18px;
}

.content-grid li {
  margin-bottom: 8px;
}

.note {
  font-size: 14px;
  color: #777;
  font-style: italic;
}

.content-grid img {
  width: 100%;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .learning-wrapper {
    padding: 0 20px;
  }

  .learning-content {
    padding: 36px 26px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .learning-tabs {
    gap: 18px;
  }
}
/* =======================
   SECTION 3 – VALUES CARDS
======================= */
/* SHLOKA BOOK – LEFT SIDE */
/* SHLOKA FLIP STACK */
.shloka-book {
  perspective: 1200px;
}

/* Page base */
.shloka-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: top center;
  transform: rotateX(90deg);
  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
}

.leaf-img {
  width: 100%;
  height: auto;
  display: block;
}

.shloka-overlay {
  position: absolute;
  inset: 0;
  padding: 70px 65px 60px;
  text-align: center;
}


/* Active page */
.shloka-page.active {
  opacity: 1;
  transform: rotateX(0deg);
  z-index: 2;
}
/* OUT animation */
.shloka-page.exit {
  transform: rotateX(-90deg);
  opacity: 0;
  z-index: 1;
}

/* FIXED HEIGHT (NO GROWTH) */
.shloka-book {
  height: 320px;
}


/* NUMBER */
.shloka-number {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 13px;
  color: #5A0E24;
  font-weight: 600;
}

/* TEXT */
.shloka-text {
  max-height: 170px; /* fits 6 lines */
  overflow: hidden;
  line-height: 1.7;
  position: relative;
}

/* soft fade at bottom */
.shloka-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0));
}


.shloka-meaning {
  margin-top: 10px;
  font-size: 14px;
  color: #5A0E24;
  font-style: italic;
}



/* CONTROLS */
.shloka-controls {
  margin-top: 14px;
}

.shloka-controls button {
  background: #D46A3A;
  border: none;
  color: #fff;
  padding: 6px 12px;
  margin-right: 8px;
  border-radius: 10px;
  cursor: pointer;
}

/* SHLOKA RESPONSIVE BASE */
.shloka-book {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Page scales naturally */
.shloka-page {
  width: 100%;
}

/* Image never overflows */
.leaf-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Stories */

/* STORIES GRID */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.story-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.story-card:hover {
  transform: translateY(-6px);
}

.story-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.story-card h4 {
  font-size: 17px;
  color: #5A0E24;
  margin-bottom: 6px;
}

.story-card p {
  font-size: 14px;
  color: #555;
}

/* VIEW ALL */
.view-all-wrap {
  text-align: center;
  margin-top: 36px;
}

.view-all-btn {
  background: #D46A3A;
  color: #fff;
  padding: 12px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
}

/* =======================
   SECTION 3 – VALUES CARDS
======================= */

.values-section {
  background: #F8F6F2;
  padding: 100px 20px;
}

.values-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}

.values-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.values-header h2 {
  font-size: 36px;
  color: #D46A3A;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.values-header p {
  font-size: 17px;
  color: #555;
  line-height: 1.65;
}

/* Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Cards */
.value-card {
  border-radius: 28px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s ease,
              box-shadow 0.5s ease,
              opacity 0.5s ease;
}

.value-card.show {
  transform: translateY(0);
  opacity: 1;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

/* Icon badge (premium cartoon touch) */
.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: rgba(255,255,255,0.65);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* Pastel backgrounds (refined) */
.pastel-1 {
  background: #FF9D00;
}

.pastel-2 {
  background: #93BD57;
}

.pastel-3 {
  background: #9E2A3A;
}

/* Typography */
.value-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 600;
}

.value-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #232020;
}


/* Responsive */
@media (max-width: 768px) {
  #contactModal{
        margin-top: 54px;
  }
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .values-wrapper {
    padding: 0 20px;
  }
}

/* Trigger Button */
.contact-trigger {
  text-align: center;
  margin: 60px 0;
}

.contact-trigger button {
  background: #D46A3A;
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.contact-trigger button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Modal */
.contact-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

/* Modal Content */
.contact-modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 40px 30px;
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease;
}

/* Show Modal Animation */
.contact-modal.show {
  display: block;
}

.contact-modal.show .contact-modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Close Button */
.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #D46A3A;
}

/* Form Styles */
.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #D46A3A;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #D46A3A;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}
.highlight {
    border-bottom: 2px solid #f4a261; /* soft underline */
    padding-bottom: 2px;
  }
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.story-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.story-link:hover,
.story-link:focus,
.story-link:visited {
  text-decoration: none;
  color: inherit;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-modal-content {
    padding: 30px 20px;
  }

  .contact-trigger button {
    width: 80%;
  }
}
/* Mobile */
@media (max-width: 480px) {

  .hero-carousel {
    overflow: hidden;
    height: 40vh;
  }

  .carousel-slide {
    min-width: 100%;
    height: 40vh;          /* reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* no crop */
  }

}
@media (max-width: 768px) {
  .shloka-overlay {
    padding: 50px 40px 45px;
  }

  .shloka-text {
    font-size: 16px;
    line-height: 1.6;
    max-height: 140px; /* clamps long shlokas */
  }

  .shloka-meaning {
    font-size: 13px;
  }
}
@media (max-width: 480px) {

  .shloka-book {
    max-width: 320px;
    position: relative;
  }

  .shloka-page {
    position: absolute;

    /* keeps page slightly inside the book frame */
    inset: 18px 12px 18px 12px;

    width: auto;
    height: auto;
  }

}

  .shloka-overlay {
    padding: 40px 30px 36px;
  }

  .shloka-text {
    font-size: 15px;
    max-height: 120px;
  }
}
@media (max-width: 768px) {
  .shloka-controls button {
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 12px;
  }
}

/* STORY RESPONSIVE GRID */
@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}
.story-card img {
  height: 140px;
  object-fit: cover;
}

@media (max-width: 480px) {
  .story-card img {
    height: 180px;
    object-fit: contain;
    background: #f8f6f2;
  }
}
.story-card p {
  max-height: 3.6em;
  overflow: hidden;
}
/* Tabs Wrapper */
.product-tabs {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* Tab Button */
.tab-btn {
  background: transparent;
  border: 1.5px solid #f28c28;
  color: #f28c28;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  background: #fff3e6;
}

.tab-btn.active {
  background: #f28c28;
  color: #fff;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/*Products section*/
.products-section {
  padding: 40px 20px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}

.product-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-outline {
  border: 1px solid #f28c28;
  background: transparent;
  color: #f28c28;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary {
  background: #f28c28;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

.btn-view-all {
  background: #D46A3A;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
}

/* ---------- Base (Mobile First) ---------- */

.products-section {
  padding: 32px 16px;
}

.section-title {
  font-size: 22px;
  text-align: center;
}

.section-subtitle {
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  padding: 18px;
}

.product-card img {
  height: 140px;
}

.product-actions {
  flex-direction: column;
}

.product-actions button {
  width: 100%;
}


/* ---------- Small Tablets (≥ 480px) ---------- */
@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-actions {
    flex-direction: row;
  }

  .product-actions button {
    width: auto;
  }

}


/* ---------- Tablets (≥ 768px) ---------- */
@media (min-width: 768px) {
  .products-section {
    padding: 48px 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card img {
    height: 160px;
  }
}


/* ---------- Laptops (≥ 1024px) ---------- */
@media (min-width: 1024px) {
  .products-section {
    padding: 60px 60px;
  }

  .section-title {
    font-size: 30px;
  }

  .products-grid {
    gap: 28px;
  }

  .product-card {
    padding: 24px;
  }
}


/* ---------- Large Screens (≥ 1280px) ---------- */
@media (min-width: 1280px) {
  .products-section {
    max-width: 1200px;
    margin: auto;
  }
}

/* ===== MOBILE BANNER TEXT POSITION FIX ===== */

/* ===== MOBILE HERO TEXT IMPROVEMENT ===== */

@media (max-width:480px){

  .carousel-overlay{
    justify-content:flex-end;
    align-items:center;
    padding-bottom:10px;
    text-align:center;
  }

  .carousel-overlay h1{
    font-size:16px;          /* smaller title */  
    margin-bottom:4px;
    text-shadow:0 2px 6px rgba(0,0,0,0.45); /* readability */
  }

  .carousel-overlay p{
    font-size:12px;
    text-shadow:0 2px 6px rgba(0,0,0,0.45);
  }

}

/* =============================
   ANCIENT MANUSCRIPT PAGE FLIP
============================= */

.shloka-book {
  perspective: 1600px;
  position: relative;

  max-width: 420px;
  margin: 0 auto;
  padding: 32px 28px;

  /* light scripture parchment */
  background:
     linear-gradient(rgba(247,237,220,0.75), rgba(239,224,196,0.75)),
    url("../Assets/img/shlokbg.png");

  background-size: cover;
  background-repeat: repeat;

  /* scripture border */
  border: 4px solid #c8a96a;
  border-radius: 8px;

  /* manuscript depth */
  box-shadow:
    0 12px 28px rgba(0,0,0,0.25),
    inset 0 0 35px rgba(0,0,0,0.15);
}

/* inner scripture frame */
.shloka-book::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(120,80,20,0.45);
  pointer-events: none;
}

/* Page */
.shloka-page {
  position: absolute;
  inset: 0;

  padding: 24px 26px;
  box-sizing: border-box;

  /* lighter parchment paper */
  background: linear-gradient(
    to right,
    rgba(247,237,220,0.48),
    rgba(243,230,207,0.45),
    rgba(239,224,196,0.42)
  );

  border-radius: 6px;

  transform-style: preserve-3d;
  transform-origin: left center;
  transform: rotateY(90deg);
  opacity: 0;

  transition: transform 0.8s ease, opacity 0.6s ease;

  /* paper depth */
  box-shadow:
    inset 0 0 6px rgba(0,0,0,0.08),
    0 5px 10px rgba(0,0,0,0.10);
}
/* Highlight active manuscript page */
.shloka-page.active::before {
  content: "";
  position: absolute;
  inset: 0;

  /* soft scripture light */
  background: radial-gradient(
    circle at center,
    rgba(255, 230, 160, 0.35),
    rgba(255, 230, 160, 0.15),
    rgba(255, 230, 160, 0)
  );

  pointer-events: none;
  border-radius: 6px;
}

/* Active page */
.shloka-page.active {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 3;
}

/* Flip out */
.shloka-page.exit {
  transform: rotateY(-120deg);
  opacity: 0;
  z-index: 2;
}

/* Paper shadow (depth effect) */
.shloka-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0)
  );
  opacity: 0;
  transition: opacity 0.5s;
}

.shloka-page.exit::after {
  opacity: 1;
}
/* SHLOKA TEXT FIX */

.shloka-page{
  width:100%;
  max-width:100%;
  padding:20px;
  box-sizing:border-box;
}


/* MOBILE FIX */

@media (max-width:768px){

.shloka-page{
  padding:16px;
  max-height:310px;
  overflow-y:auto;
}

.shloka-page p{
  font-size:18px;
}

}