/* Mulai Gym Styles - Mobile First */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Theme colors based on mockups */
  --primary: #4B4BEC;
  --secondary: #BEF006;
  --dark: #343434;
  --light: #FFFFFF;
  --background: #F5F5F5;
  --gray: #757575;
  --outline-button-border-width: 3px;
  --navbar-height: 7.5vh; /* Variable for navbar height */
}

/* Bootstrap Overrides */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

/* Ensure specificity for button outlines if needed */
.btn-outline-secondary.text-secondary {
  color: var(--secondary) !important;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary);
  color: var(--light);
  margin: 0;
  padding-top: var(--navbar-height); /* Use variable */
  overflow-x: hidden;
}

/* Navbar styling */
.navbar {
  background: linear-gradient(90deg, #4B4BEC, #6464ef) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  text-align: center;
  height: var(--navbar-height); /* Use variable */
  display: flex;
  align-items: center;
}

.navbar-brand {
  color: var(--light) !important;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto;
}

.navbar-toggler {
  border: none;
  color: var(--light);
  position: absolute;
  right: 20px;
}

.navbar-toggler i {
  font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--light) !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3939d1;
  border-color: #3939d1;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  border-radius: 24px;
  font-weight: 600;
  padding: 10px 24px;
  color: var(--primary) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #a8d700;
  border-color: #a8d700;
  color: var(--primary) !important;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
  border-width: var(--outline-button-border-width);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--light);
  border-width: var(--outline-button-border-width);
}

.btn-outline-secondary {
  color: var(--secondary);
  border-color: var(--secondary);
  border-radius: 24px;
  font-weight: 600;
  padding: 10px 24px;
  border-width: var(--outline-button-border-width);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--secondary);
  color: var(--dark);
  border-width: var(--outline-button-border-width);
}

/* Hero section */
.hero-title {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  text-transform: uppercase;
}

/* Feature section */
.feature-section {
  background-color: var(--primary);
  padding: 3rem 1rem;
}

.section-heading {
  color: var(--light);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.feature-icon {
  background-color: var(--light);
  color: var(--primary);
  width: 80px;
  height: 80px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.feature-title {
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.5rem;
  text-align: center;
}

.feature-text {
  color: var(--light);
  opacity: 0.8;
  text-align: center;
}

/* Section styling */
.section {
  padding: 3rem 1rem;
  background-color: var(--primary);
}

.section-title {
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.75rem;
  color: var(--light);
}

/* Forms */
.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}

.form-control::placeholder {
  color: #9393ee !important;
  opacity: 1;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(75, 75, 236, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--light);
}

/* Offcanvas menu */
.offcanvas {
  background-color: var(--primary);
  width: 50% !important;
  max-width: 50%;
  top: var(--navbar-height); /* Use variable */
  height: calc(100vh - var(--navbar-height) - 10vh); /* Use viewport height percentage instead of fixed pixels */
  margin-top: 0;
  box-sizing: border-box;
  z-index: 1040; /* Below navbar but above backdrop */
  border-top-left-radius: 16px; /* Round the top left corner */
  border-top: none; /* Remove the transparent border */
  position: fixed; /* Fix positioning */
  overflow-y: auto; /* Add scrolling for content that may be cut off */
}

/* Keep navbar above offcanvas backdrop */
.offcanvas-backdrop {
  z-index: 999;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
  color: var(--light) !important;
}

.offcanvas-header .btn-close {
  background-color: var(--light);
  opacity: 1;
}

.offcanvas-body .nav-link {
  color: var(--light) !important;
  font-size: 1.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

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

/* For smaller devices, ensure offcanvas is not too small */
@media (max-width: 576px) {
  .offcanvas {
    width: 50% !important;
    max-width: none;
  }
}

/* Cards */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #3a3ad1 !important;
}

/* Mobile container for consistent mobile view */
.mobile-container {
  max-width: 576px;
  margin: 0 auto;
  background-color: var(--primary);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Remove any additional top padding as body padding handles it */
}

/* Promo box */
.promo-box {
  background: linear-gradient(90deg, #bef006, #ffffff);
  color: var(--primary);
  border-radius: 15px;
  padding: 15px 30px;
  display: inline-block;
  font-weight: bold;
  font-style: italic;
  text-align: left;
}

/* Media Queries */
@media (min-width: 768px) {
  .content-wrapper {
    width: 60%;
  }
  
  .hero-section {
    text-align: left;
    padding: 4rem 2rem;
    margin-top: 0; /* Remove this since we have body padding already */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    color: var(--light);
  }
  
  .section {
    padding: 5rem 2rem;
  }
  
  .section-title {
    font-size: 2.25rem;
    color: var(--light);
  }
  
  .section.bg-white .section-title {
    color: var(--light);
  }
  
  .section.bg-white {
    background-color: var(--primary) !important;
  }
}

/* Ensure content containers have proper spacing */
.container, .mobile-container {
  padding-top: 0; /* Remove any additional top padding as body padding handles it */
}

/* Full width container overrides */
.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.container-fluid.px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

section {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Feature cards */
.feature-cards {
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 100%;
}

.feature-card {
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.feature-card .feature-icon {
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card .feature-content {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  padding: 0.75rem 1rem;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .feature-cards {
    padding: 1rem;
    max-width: 90%;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .feature-card h3 {
    font-size: 1.5rem;
  }
  
  .feature-card p {
    font-size: 1.1rem;
  }
  
  .feature-card .feature-content {
    min-height: 80px;
  }
}

@keyframes dancing {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(15px) rotate(2deg); }
  50% { transform: translateX(0) rotate(0deg); }
  75% { transform: translateX(-15px) rotate(-2deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.dancing-text-top {
  animation: dancing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
}

.dancing-text-bot {
  animation: dancing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 0.75s;
  display: inline-block;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(15px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(-15px); }
  100% { transform: translateX(0); }
}

.shake-text-top {
  animation: shake 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
}

.shake-text-bot {
  animation: shake 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
  display: inline-block;
}

/* Membership Tier Colors */
/* Bronze/Copper Tier - Gym Reguler */
.tier-bronze {
  background: linear-gradient(135deg, #faf0e6 0%, #e6b87d 25%, #cd7f32 50%, #b8722c 75%, #e8c5a0 100%);
  border: 2px solid #b8722c;
  box-shadow: 0 6px 15px rgba(205, 127, 50, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-bronze-strong {
  background: linear-gradient(135deg, #faf0e6 0%, #e6b87d 25%, #cd7f32 50%, #b8722c 75%, #e8c5a0 100%);
  border: 2px solid #b8722c;
  box-shadow: 0 12px 35px rgba(205, 127, 50, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Silver Tier - Kelas Pemula */
.tier-silver {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 25%, #d5d5d5 50%, #c8c8c8 75%, #e0e0e0 100%);
  border: 2px solid #b8b8b8;
  box-shadow: 0 6px 15px rgba(180, 180, 180, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-silver-strong {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 25%, #d5d5d5 50%, #c8c8c8 75%, #e0e0e0 100%);
  border: 2px solid #b8b8b8;
  box-shadow: 0 12px 35px rgba(180, 180, 180, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Gold Tier - Semi Private */
.tier-gold {
  background: linear-gradient(135deg, #faf6e8 0%, #f7e98e 25%, #f4d03f 50%, #f1c40f 75%, #f8e596 100%);
  border: 2px solid #d4ac0d;
  box-shadow: 0 6px 15px rgba(244, 208, 63, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-gold-strong {
  background: linear-gradient(135deg, #faf6e8 0%, #f7e98e 25%, #f4d03f 50%, #f1c40f 75%, #f8e596 100%);
  border: 2px solid #d4ac0d;
  box-shadow: 0 12px 35px rgba(244, 208, 63, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Diamond/Blue Tier - Private Trainer */
.tier-diamond {
  background: linear-gradient(135deg, #f0f8ff 0%, #d6ebff 25%, #b9f2ff 50%, #9de8ff 75%, #d1f0ff 100%);
  border: 2px solid #5bb3e6;
  box-shadow: 0 6px 15px rgba(185, 242, 255, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-diamond-strong {
  background: linear-gradient(135deg, #f0f8ff 0%, #d6ebff 25%, #b9f2ff 50%, #9de8ff 75%, #d1f0ff 100%);
  border: 2px solid #5bb3e6;
  box-shadow: 0 12px 35px rgba(185, 242, 255, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Tier indicator dots */
.tier-bronze .tier-dot {
  background-color: #cd7f32;
}

.tier-silver .tier-dot, .tier-silver-strong .tier-dot {
  background-color: #c0c0c0;
}

.tier-gold .tier-dot, .tier-gold-strong .tier-dot {
  background-color: #ffd700;
}

.tier-diamond .tier-dot, .tier-diamond-strong .tier-dot {
  background-color: #b9f2ff;
}

/* ==========================================
   Ramadan Section Styles
   ========================================== */

/* Hero Ramadan banner - tappable teaser in the hero */
.ramadan-hero-banner {
  display: block;
  margin: 3vh auto 0;
  max-width: 320px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(190, 240, 6, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1.5px solid rgba(190, 240, 6, 0.45);
  border-radius: 14px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.ramadan-hero-banner::before,
.ramadan-hero-banner::after {
  content: '✦';
  position: absolute;
  font-size: 0.55rem;
  color: var(--secondary);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: ramadanSparkle 2.8s ease-in-out infinite;
}

.ramadan-hero-banner::before {
  top: 10px;
  right: 48px;
  animation-delay: 0s;
}

.ramadan-hero-banner::after {
  bottom: 8px;
  left: 28px;
  font-size: 0.4rem;
  animation-delay: 1.4s;
}

.ramadan-hero-sparkle {
  position: absolute;
  font-size: 0.5rem;
  color: var(--secondary);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: ramadanSparkle 2.8s ease-in-out infinite;
}

.ramadan-hero-sparkle::before {
  content: '✦';
}

.ramadan-hero-sparkle:nth-child(4) { font-size: 0.6rem; }
.ramadan-hero-sparkle:nth-child(5) { font-size: 0.35rem; }
.ramadan-hero-sparkle:nth-child(6) { font-size: 0.45rem; }
.ramadan-hero-sparkle:nth-child(7) { font-size: 0.4rem; }

.ramadan-hero-banner:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
  color: white;
}

.ramadan-hero-banner:active {
  transform: scale(0.98);
}

.ramadan-hero-banner-glow {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 80%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(190, 240, 6, 0.12), transparent);
  transform: skewX(-20deg);
  animation: ramadanShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ramadanShimmer {
  0% { left: -60%; }
  100% { left: 140%; }
}

@keyframes ramadanSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  15%      { opacity: 1; transform: scale(1.2) rotate(20deg); }
  30%      { opacity: 0.9; transform: scale(1) rotate(-10deg); }
  50%      { opacity: 0; transform: scale(0.4) rotate(0deg); }
}

.ramadan-hero-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ramadan-hero-banner-crescent {
  font-size: 1.8rem;
  color: var(--secondary);
  line-height: 1;
  flex-shrink: 0;
}

.ramadan-hero-banner-body {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.ramadan-hero-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.3px;
}

.ramadan-hero-banner-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1px;
}

.ramadan-hero-banner-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(190, 240, 6, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.65rem;
  animation: ramadanArrowBounce 2s ease-in-out infinite;
}

@keyframes ramadanArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.ramadan-section {
  background: var(--primary);
  padding: 48px 0 24px;
  text-align: center;
  color: white;
}

/* Section header (Gojek-style: label left, counter right) */
.ramadan-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.ramadan-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ramadan-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

/* Shared block spacing */
.ramadan-carousel-block,
.ramadan-image-block {
  max-width: 500px;
  margin: 0 auto 36px;
}

/* Standalone images */
.ramadan-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Link row below image */
.ramadan-link-row {
  text-align: right;
  margin-top: 10px;
  padding-right: 2px;
}

.ramadan-text-link {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ramadan-text-link:hover {
  opacity: 0.8;
  color: var(--secondary);
}

.ramadan-text-link i {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.2s;
}

.ramadan-text-link:hover i {
  transform: translateX(3px);
}

/* Carousel */
.ramadan-carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}

.ramadan-carousel .carousel-inner {
  border-radius: 16px;
}

.ramadan-carousel .carousel-item {
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.ramadan-carousel-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nav bar below carousel (prev / dots / next) */
.ramadan-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0 4px;
}

.ramadan-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(190, 240, 6, 0.3);
  background: transparent;
  color: var(--secondary);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.ramadan-nav-btn:hover {
  background: rgba(190, 240, 6, 0.15);
  border-color: var(--secondary);
}

.ramadan-nav-btn:active {
  transform: scale(0.92);
}

/* Dots */
.ramadan-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ramadan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.ramadan-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--secondary);
}

/* CTA block */
.ramadan-cta-block {
  max-width: 500px;
  margin: 8px auto 0;
  padding: 0 2px;
}

.ramadan-cta-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.ramadan-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.ramadan-wa-btn:hover {
  background: #1fb855;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.ramadan-wa-btn:active {
  transform: translateY(0);
}

/* Ramadan Light class card */
.ramadan-light-card {
  background: linear-gradient(135deg, #f0f0ff 0%, #e8e8f8 25%, #dcdcf5 50%, #e0e0fa 75%, #eaeaff 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(75, 75, 236, 0.25), inset 0 1px 4px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  padding-top: 38px !important;
}

.ramadan-light-card::before,
.ramadan-light-card::after {
  content: '✦';
  position: absolute;
  font-size: 0.5rem;
  color: var(--primary);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: ramadanSparkleLight 3s ease-in-out infinite;
}

.ramadan-light-card::before {
  top: 44px;
  right: 14px;
  animation-delay: 0.5s;
}

.ramadan-light-card::after {
  top: 46px;
  left: 18px;
  font-size: 0.35rem;
  animation-delay: 2s;
}

@keyframes ramadanSparkleLight {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  20%      { opacity: 0.9; transform: scale(1.1) rotate(15deg); }
  35%      { opacity: 0.8; transform: scale(0.9) rotate(-8deg); }
  55%      { opacity: 0; transform: scale(0.3) rotate(0deg); }
}

.ramadan-light-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--primary), #6B6BFF);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  text-align: center;
  overflow: hidden;
}

.ramadan-light-ribbon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: ramadanRibbonShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ramadanRibbonShimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}

.ramadan-light-ribbon i {
  font-size: 0.6rem;
  margin-right: 4px;
}

.ramadan-light-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 2px;
  font-style: italic;
}

/* Scroll-triggered reveal animations */
.ramadan-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ramadan-reveal.ramadan-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger each block: 2nd +100ms, 3rd +200ms, etc. */
.ramadan-reveal:nth-child(2) { transition-delay: 0.1s; }
.ramadan-reveal:nth-child(3) { transition-delay: 0.2s; }
.ramadan-reveal:nth-child(4) { transition-delay: 0.3s; }
.ramadan-reveal:nth-child(5) { transition-delay: 0.4s; }

/* Carousel image subtle scale-in on slide */
.ramadan-carousel .carousel-item.active .ramadan-carousel-img {
  animation: ramadanSlideIn 0.4s ease-out;
}

@keyframes ramadanSlideIn {
  from { opacity: 0.7; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .ramadan-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ramadan-carousel .carousel-item.active .ramadan-carousel-img,
  .ramadan-hero-banner::before,
  .ramadan-hero-banner::after,
  .ramadan-hero-sparkle,
  .ramadan-hero-banner-glow,
  .ramadan-light-card::before,
  .ramadan-light-card::after,
  .ramadan-light-ribbon::after {
    animation: none;
  }
}