:root {
  --primary-color: #1a1a1a;
  --secondary-color: #e6a83f;
  --accent-color: #df8013;
  --bg-color: #ffffff;
  --bg-alt-color: #f8f7f4;
  --text-color: #212121;
  --text-muted-color: #6c757d;
  --white-color: #ffffff;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Google Sans", sans-serif;
  --radius-base: 8px;
  --transition-base: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Base & Typography */
html {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  /* Do not use scroll-behavior: smooth here to avoid conflicts with Lenis */
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--secondary-color);
}
.form-control-lg {
  font-size: 0.95rem;
}
/* Lenis Recommended CSS */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--bg-color);
  transition:
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  max-height: 48px;
  object-fit: contain;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}
header i {
  color: var(--secondary-color);
}
@media (max-width: 576px) {
  .navbar-brand,
  header a {
    margin: auto;
  }
}
/* Shared Buttons */
.btn-primary-custom {
  background-color: var(--secondary-color);
  color: var(--white-color) !important;
  border: 2px solid var(--secondary-color);
  border-radius: var(--radius-base);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--secondary-color);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--secondary-color) !important;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-base);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--white-color) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Page Header Banner (Shared across inner pages) */
.page-banner {
  position: relative;
  min-height: 280px;
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  text-align: center;
  overflow: hidden;
  padding: 4rem 1rem;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26, 26, 26, 0.82), rgba(26, 26, 26, 0.88));
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-banner h1 {
  color: var(--white-color);
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.page-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Sections General */
.section-padding {
  padding: 5rem 0;
}

.bg-alt {
  background-color: var(--bg-alt-color);
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Homepage Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
  color: var(--white-color);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(26, 26, 26, 0.75) 0%,
    rgba(26, 26, 26, 0.26) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--white-color);
  margin-bottom: 1.25rem;
}

.hero-content h1 span {
  color: var(--accent-color);
}

.hero-content h2 {
  font-size: 1.35rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 540px;
}

/* ==========================================================================
   3D GRAND OPEN-BOOK SHOWCASE & PORTAL STAGE (Hero Right Side)
   ========================================================================== */
.hero-stage-wrapper {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transform-style: preserve-3d;
}

/* Ambient Glowing Portal Rings */
.stage-portal-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.portal-ring-outer {
  width: 440px;
  height: 440px;
  background: radial-gradient(
    circle,
    rgba(230, 57, 70, 0.22) 0%,
    rgba(244, 162, 97, 0.12) 40%,
    transparent 70%
  );
  filter: blur(28px);
  animation: pulsePortal 7s ease-in-out infinite alternate;
}

.portal-ring-inner {
    width: 370px;
    height: 370px;
    border: 1px dashed rgba(244, 162, 97, 0.35);
    box-shadow: 0 0 35px rgba(230, 57, 70, 0.25);
    animation: rotatePortalRing 26s linear infinite;
}

@keyframes pulsePortal {
  0% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.15) rotate(18deg);
    opacity: 0.95;
  }
}

@keyframes rotatePortalRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 576px) {
  .portal-ring-inner {
    width: 300px;
    height: 300px;
}
}
/* Floating Magical Dust & Sparkles */
.magic-sparkle {
  position: absolute;
  color: var(--accent-color);
  font-size: 1.25rem;
  pointer-events: none;
  z-index: 1;
  text-shadow: 0 0 10px rgba(244, 162, 97, 0.8);
}

.sparkle-1 {
  top: 10%;
  left: 12%;
  animation: floatSparkle1 5s ease-in-out infinite;
}

.sparkle-2 {
  top: 18%;
  right: 14%;
  color: var(--secondary-color);
  font-size: 1.1rem;
  animation: floatSparkle2 6s ease-in-out infinite 1s;
}

.sparkle-3 {
  bottom: 22%;
  left: 8%;
  animation: floatSparkle3 5.5s ease-in-out infinite 2s;
}

.sparkle-4 {
  bottom: 12%;
  right: 18%;
  font-size: 0.95rem;
  animation: floatSparkle1 7s ease-in-out infinite 0.5s;
}

@keyframes floatSparkle1 {
  0%,
  100% {
    transform: translateY(0) scale(0.85);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-16px) scale(1.25);
    opacity: 1;
  }
}

@keyframes floatSparkle2 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) rotate(45deg);
    opacity: 1;
  }
}

@keyframes floatSparkle3 {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-12px) scale(1.3);
    opacity: 0.9;
  }
}

/* ==========================================================================
   MULTI-BOOK CLUSTER (FRONT COVERS WITH 3D CURSOR PARALLAX)
   ========================================================================== */
.multi-book-cluster {
  position: relative;
  width: 460px;
  height: 420px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Individual Showcase Book (Front Cover Only) */
.showcase-book {
  position: absolute;
  width: 195px;
  height: 292px;
  border-radius: var(--radius-base);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.3s ease;
}

/* Front Cover Card Styling */
.book-cover-front {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: var(--primary-color);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.book-cover-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle glossy dynamic sheen overlay */
.book-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
}

/* Ribbon Badge on Center Bestseller */
.book-ribbon-tag {
  position: absolute;
  top: 12px;
  right: -28px;
  background-color: var(--secondary-color);
  color: var(--white-color);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 26px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Initial Layout & Staggered 3D Depth Positions */
.book-pos-center {
  z-index: 5;
  transform: translate3d(0, 0, 40px) rotateY(0deg) rotateZ(0deg);
}

.book-pos-left {
  z-index: 4;
  transform: translate3d(-105px, 15px, 20px) rotateY(12deg) rotateZ(-6deg);
}

.book-pos-right {
  z-index: 4;
  transform: translate3d(105px, 15px, 20px) rotateY(-12deg) rotateZ(6deg);
}

.book-pos-back-left {
  z-index: 3;
  transform: translate3d(-175px, -15px, 0px) rotateY(22deg) rotateZ(-12deg)
    scale(0.88);
  filter: brightness(0.9);
}

.book-pos-back-right {
  z-index: 3;
  transform: translate3d(175px, -15px, 0px) rotateY(-22deg) rotateZ(12deg)
    scale(0.88);
  filter: brightness(0.9);
}

/* Hovering any book elevates it and casts a deeper shadow */
.showcase-book:hover {
  z-index: 10 !important;
  filter: brightness(1.05) !important;
}

.showcase-book:hover .book-cover-front {
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(244, 162, 97, 0.35);
  border-color: var(--accent-color);
}

/* Floating Satellite Mini Badges (Preserved & Enhanced) */
.satellite-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.65rem 1.15rem;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 6;
  color: var(--primary-color);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.satellite-card:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.sat-top-right {
  top: 4%;
  right: -10px;
  animation: floatSat1 6.5s ease-in-out infinite;
}

.sat-bottom-left {
  bottom: 4%;
  left: -10px;
  animation: floatSat2 7s ease-in-out infinite 1.2s;
}

.sat-text-bold {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.sat-text-sub {
  font-size: 0.7rem;
  color: var(--text-muted-color);
}

@keyframes floatSat1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -14px);
  }
}

@keyframes floatSat2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8px, 12px);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 1200px) and (min-width: 992px) {
  .showcase-book:nth-child(4),
  .showcase-book:nth-child(5) {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .hero-stage-wrapper {
    min-height: 440px;
    margin-top: 2rem;
  }
  .multi-book-cluster {
    width: 380px;
    height: 340px;
  }
  .showcase-book {
    width: 155px;
    height: 232px;
  }
  .book-pos-left {
    transform: translate3d(-75px, 10px, 15px) rotateY(10deg) rotateZ(-5deg);
  }
  .book-pos-right {
    transform: translate3d(75px, 10px, 15px) rotateY(-10deg) rotateZ(5deg);
  }
  .book-pos-back-left {
    transform: translate3d(-130px, -10px, 0px) rotateY(18deg) rotateZ(-8deg)
      scale(0.85);
  }
  .book-pos-back-right {
    transform: translate3d(130px, -10px, 0px) rotateY(-18deg) rotateZ(8deg)
      scale(0.85);
  }
  .sat-top-right {
    top: -5px;
    right: 5%;
  }
  .sat-bottom-left {
    bottom: -5px;
    left: 5%;
  }
}

@media (max-width: 575.98px) {
  .hero-stage-wrapper {
    min-height: 340px;
    perspective: 800px;
  }
  .multi-book-cluster {
    width: 300px;
    height: 260px;
  }
  .showcase-book {
    width: 125px;
    height: 188px;
  }
  /* Hide the 2 furthest background books on narrow mobile for uncluttered clarity */
  .book-pos-back-left,
  .book-pos-back-right {
    display: none;
  }
  .book-pos-left {
    transform: translate3d(-55px, 8px, 10px) rotateY(8deg) rotateZ(-4deg);
  }
  .book-pos-right {
    transform: translate3d(55px, 8px, 10px) rotateY(-8deg) rotateZ(4deg);
  }
  .portal-ring-outer {
    width: 280px;
    height: 280px;
  }
  .portal-ring-inner {
    width: 220px;
    height: 220px;
  }
  .satellite-card {
    padding: 0.45rem 0.85rem;
  }
  .sat-top-right {
    top: -15px;
    right: 0;
  }
  .sat-bottom-left {
    bottom: -15px;
    left: 0;
  }
}

/* Mission Section */
.mission-section .section-title::after {
  display: none;
}
.mission-img-wrap {
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mission-img-wrap img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.mission-img-wrap:hover img {
  transform: scale(1.03);
}

/* Story Section */
.story-section {
  background-color: var(--secondary-color);
}
.story-section .section-subtitle {
  color: var(--bg-color);
}
/* Events Carousel */
.events-section {
  background-color: var(--secondary-color);
}
.events-section .section-subtitle {
  color: var(--bg-color);
}
.events-carousel {
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel-item {
  position: relative;
  background-color: var(--primary-color);
  min-height: 480px;
}

.carousel-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: 0.7;
}

.carousel-caption-custom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.95) 60%);
  color: var(--white-color);
  text-align: left;
}

.carousel-caption-custom h3 {
  color: var(--white-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.carousel-caption-custom .event-meta {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.carousel-indicators [button] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}
.events-section .btn-outline-custom {
  color: var(--primary-color) !important;
}
.events-section .btn-outline-custom:hover {
  color: var(--white-color) !important;
}
/* SECTION: TALES WE LOVE (Dot-Nav Slider) */
.tales-carousel {
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.tales-carousel .carousel-item {
  min-height: 440px;
  background-color: var(--primary-color);
}

.tales-carousel .carousel-item img {
  height: 440px;
  opacity: 0.85;
}

.tales-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem 3.5rem;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.92) 50%);
  color: var(--white-color);
  text-align: center;
}

.tales-caption h3 {
  color: var(--white-color);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.tales-caption p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Custom Dot Navigation */
.tales-dot-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.tales-dot-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid rgba(26, 26, 26, 0.25);
  background-color: var(--white-color);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.tales-dot-indicator img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.65;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.tales-dot-indicator.active {
  border-color: var(--secondary-color);
  transform: scale(1.22);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

.tales-dot-indicator.active img {
  opacity: 1;
}

.tales-dot-indicator:hover {
  border-color: var(--secondary-color);
  transform: scale(1.12);
}

.tales-dot-indicator:hover img {
  opacity: 0.9;
}

/* Narrative Journey Section (Replaces stat counters) */
.journey-card {
  background: var(--white-color);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.journey-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.journey-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.journey-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.journey-card:hover .journey-card-img img {
  transform: scale(1.05);
}

.journey-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journey-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.journey-card-text {
  color: var(--text-muted-color);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Scroll Reveal Polish */
.scroll-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.25s;
}
.delay-3 {
  transition-delay: 0.4s;
}

/* Marquee / Books Continuous Carousel */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  background: var(--bg-alt-color);
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt-color), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt-color), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-container:hover .marquee-track,
.marquee-container:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-card {
  width: 180px;
  margin: 0 1rem;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  background: var(--white-color);
  border-radius: var(--radius-base);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.marquee-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.marquee-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: calc(var(--radius-base) - 2px);
  margin-bottom: 0.5rem;
}

.marquee-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--primary-color);
}

/* Events Page Specifics */
.event-card {
  background: var(--white-color);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.event-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-base);
}

.badge-upcoming {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.badge-past {
  background-color: var(--text-muted-color);
  color: var(--white-color);
}

.event-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-meta {
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.event-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted-color);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Books Page Specifics */
.book-grid-card {
  background: var(--white-color);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.book-grid-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-base) - 2px);
  aspect-ratio: 2 / 3;
  margin-bottom: 0.75rem;
}

.book-grid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-grid-card:hover .book-grid-img-wrap img {
  transform: scale(1.08);
}

.book-grid-badge {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.4rem;
  align-self: flex-start;
}

.book-grid-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-grid-author {
  font-size: 0.8rem;
  color: var(--text-muted-color);
  margin-bottom: 0;
}

/* Timeline / Milestones (About Us) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 4px solid var(--white-color);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-year {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 0.35rem;
}

.timeline-card {
  background: var(--white-color);
  padding: 1.5rem;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
  }
}

/* Value Cards */
.values-section {
  background-color: var(--secondary-color);
}
.values-section .section-subtitle {
  color: var(--white-color);
}
.value-card {
  background: var(--white-color);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-base);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  display: inline-block;
}

/* Contact Page Specifics */
.contact-info-card {
  background: var(--white-color);
  padding: 2.5rem;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}
.contact-img-wrap {
  border-radius: var(--radius-base);
  overflow: hidden;
}
.contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-form-card {
  background: var(--white-color);
  padding: 2.5rem;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.2);
}

/* FAQ */
.faq-section .accordion-button:not(.collapsed) {
  background-color: #e6a83f;
  box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0
    var(--accent-color);
  color: var(--primary-color);
}
/* Footer Styles */
/* Footer Styles (Enhanced & Zesty) */
.footer-divider-wave {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

.site-footer {
  position: relative;
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3.5rem;
  overflow: hidden;
  /* Subtle decorative dotted background texture */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1.5px,
    transparent 1.5px
  );
  background-size: 28px 28px;
}
/* Decorative floating corner stars/shapes */
.footer-decor-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  z-index: 1;
}

.footer-shape-top-left {
  top: 40px;
  left: 20px;
}

.footer-shape-bottom-right {
  bottom: 80px;
  right: 30px;
}

/* Newsletter Micro-CTA Banner */
.footer-newsletter-box {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-base);
  padding: 2.25rem 2rem;
  margin-bottom: 3.5rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.footer-newsletter-title {
  color: var(--white-color);
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.footer-newsletter-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.footer-newsletter-box .btn-primary-custom {
  width: 100%;
}
@media (max-width: 992px) {
  .footer-newsletter-box .btn-primary-custom {
    padding: 0.75rem 0.5rem;
  }
}
@media (min-width: 768px) {
  .footer-newsletter-box .col-md-3 {
    flex: 0 0 auto;
    width: 27.7%;
  }
}
@media (max-width: 768px) {
  .footer-newsletter-box .form-control {
    margin-bottom: 12px;
  }
}

.footer-logo img {
  filter: brightness(10);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 1rem 0 0;
  max-width: 440px;
}

.footer-col-title {
  color: var(--white-color);
  font-size: 1.1rem;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--secondary-color);
}
footer i {
  color: var(--secondary-color);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  position: relative;
  display: inline-block;
  transition:
    color var(--transition-base),
    transform var(--transition-base);
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(3px);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

/* Social Links in Column 4 */
.footer-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white-color);
  transition: all var(--transition-base);
  font-size: 1rem;
}

.footer-social-pill:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white-color);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}
.footer-social-pill:hover i{
  color: var(--white-color);
}
.footer-bottom-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3.5rem;
  padding: 1.25rem 0;
  text-align: center;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}
.footer-disclaimer details {
  background: rgba(230, 168, 63, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}
.footer-disclaimer summary {
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.disclaimer-content {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #c2c2c2;
  line-height: 1.6;
}
/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--white-color);
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-4px);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .stage-portal-ring,
  .magic-sparkle,
  .satellite-card {
    animation: none !important;
  }
  .showcase-book,
  .multi-book-cluster {
    transition: none !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}
