/* =============================================================================
   loyaltyProgram.css
   - Verzia: Fixné HERO (position: fixed)
   - Žiadne fialové pozadie okolia (biele pozadie)
   ============================================================================= */

/* ------------------------ 1) RESET BOX-MODELU VO VNÚTRI Sekcie ------------------------ */

.container {
  width: 100% !important;
  max-width: 1450px !important;
}

.page-title-wrapper {
  margin-bottom: 0px !important;
}

#wrapper {
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.page-content.page-cms {
  background: none !important;

.loyalty-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ------------------------ 2) CELÉ POZADIE NA BIELO  ------------------------ */
/* Týmto pádom okolo vernostnej sekcie už nebude žiadny gradient, ale čistá biela plocha. */
body {
  background: #ffffff !important;
}

/* ------------------------ 3) POSUNIATIE CELEJ LOYALTY-SECTION POD CMS-HEADER ------------------------ */
/*
   Predpokladáme, že výška CMS‐headera + breadcrumbs je 140px
   (over v DevTools: Elements → spočítaš kombinovanú výšku horného pásu).
   Ak máš iné číslo, uprav "140px" na skutočnú hodnotu.
*/
.loyalty-page {
  padding-top: 140px;
  min-height: 100vh;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

/* ------------------------ 4) FIXNUTÉ (PEVNÉ) HERO ------------------------ */
/*
   .hero sa prilepí k hornému okraju okna presne 140px pod skutočným topom prehliadača,
   teda voľne "sadne" pod CMS‐header.  
   Zvyšok obsahu (karty levelov a pod.) dostane margin-top, aby sa nevnikal pod hero.
*/
.loyalty-page .hero1 {
  top: 140px;           /* <– prilepené presne pod CMS‐header – uprav na svoju reálnu výšku */
  left: 0;
  width: 100%;
  z-index: 1000;        /* dostatočne vysoký index, aby hero bolo vždy na vrchu */
  padding: 60px 0;      /* zachovávame odsadenie 60px hore-dole */
  text-align: center;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background: #e8ede1;
    margin: auto;
   /* border-top-left-radius: 50% 200px;
    border-top-right-radius: 50% 200px; */
    border-radius: 200px;
    margin-bottom: 50px;
}

/* Nadpis v HERO */
.loyalty-page .hero1 h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

/* Podnadpis v HERO */
.loyalty-page .hero1 p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
  color: #000000;
}

/* CTA‐tlačidlo v HERO */
.loyalty-page .cta-button {
  display: inline-block;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 18px 45px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 1s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}
.loyalty-page .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.loyalty-page .cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 45px rgba(255, 107, 107, 0.6);
}
.loyalty-page .cta-button:hover::before {
  left: 100%;
}

/* ------------------------ 5) PRIDANIE MARGIN-TOP PRE HLAVNÝ OBSAH ------------------------ */
/*
   Hlavný obsah (karty levelov, benefits, atď.) sa musí posunúť pod fixnú výšku HERO.
   V tomto príklade si meral, že fixné HERO zaberá cca 260px (60 px padding top + h1 + p + button + 60px padding bottom).
   Ak máš v skutočnosti iný údaj (napr. 280px), uprav "260px" presne podľa výšky.  
   Jednoducho: height(hero) + malé rezervné zlomky → margin-top pre .main-content.
*/

.loyalty-page .main-content {
  /* margin-top: 260px;   <– upraviť podľa skutočnej výšky .hero (zmerané v DevTools) */
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 40px;
}

/* ------------------------ 6) LEVELS SECTION (KARTY ÚROVNE) ------------------------ */
.loyalty-page .levels-section {
  padding: 60px 40px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.loyalty-page .section-title {
  text-align: center;
  font-size: 3.3rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 50px;
  position: relative;
}
.loyalty-page .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 2px;
}
.loyalty-page .levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* ------------------------ 7) LEVEL CARD ------------------------ */
.loyalty-page .level-card {
  background: white;
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}
.loyalty-page .level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--level-color);
}
.loyalty-page .level-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--level-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.loyalty-page .level-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--level-border);
}
.loyalty-page .level-card:hover::after {
  opacity: 0.1;
}
/* Farby na úrovniach */
.loyalty-page .bronze {
  --level-color: linear-gradient(45deg, #cd7f32, #b8860b);
  --level-glow: rgba(205, 127, 50, 0.3);
  --level-border: rgba(205, 127, 50, 0.4);
}
.loyalty-page .silver {
  --level-color: linear-gradient(45deg, #c0c0c0, #a8a8a8);
  --level-glow: rgba(192, 192, 192, 0.3);
  --level-border: rgba(192, 192, 192, 0.4);
}
.loyalty-page .gold {
  --level-color: linear-gradient(45deg, #ffd700, #ffed4e);
  --level-glow: rgba(255, 215, 0, 0.3);
  --level-border: rgba(255, 215, 0, 0.4);
}
.loyalty-page .platinum {
  --level-color: linear-gradient(45deg, #e5e4e2, #b8b8b8);
  --level-glow: rgba(229, 228, 226, 0.3);
  --level-border: rgba(229, 228, 226, 0.4);
}
.loyalty-page .level-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  background: var(--level-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}
.loyalty-page .level-card:hover .level-icon {
  transform: scale(1.1) rotate(5deg);
}
.loyalty-page .level-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #2c3e50;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.loyalty-page .level-benefit {
  font-size: 1.6rem;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ------------------------ 8) BENEFITS SECTION ------------------------ */
.loyalty-page .benefits-section {
  padding: 60px 40px;
  background: white;
}
.loyalty-page .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}
.loyalty-page .benefit-item {
  display: flex;
  align-items: flex-start;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.loyalty-page .benefit-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.loyalty-page .benefit-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}
.loyalty-page .benefit-item:hover::before {
  opacity: 1;
}
.loyalty-page .benefit-icon {
  font-size: 3rem;
  margin-right: 25px;
  color: #667eea;
  min-width: 70px;
  transition: all 0.3s ease;
}
.loyalty-page .benefit-item:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}
.loyalty-page .benefit-content div {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 12px;
  font-weight: 700;
}
.loyalty-page .benefit-content p {
  color: #666;
  line-height: 1.7;
  font-size: 1.15rem;
}

/* ------------------------ 9) HOW IT WORKS ------------------------ */
.loyalty-page .how-it-works {
  padding: 60px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.loyalty-page .steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.loyalty-page .step-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.loyalty-page .step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.loyalty-page .step-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
}
.loyalty-page .step-card:hover::before {
  opacity: 1;
}
.loyalty-page .step-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ff6b6b;
  text-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}
.loyalty-page .step-card:hover .step-number {
  transform: scale(1.1);
  text-shadow: 0 6px 12px rgba(255, 107, 107, 0.5);
}
.loyalty-page .step-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}
.loyalty-page .step-description {
  opacity: 0.95;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
}

/* ------------------------ 10) TERMS SECTION ------------------------ */
.loyalty-page .terms-section {
  padding: 40px;
  background: #f8f9fa;
}
.loyalty-page .terms-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}
.loyalty-page .terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  font-size: 22px;
}
.loyalty-page .term-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.loyalty-page .term-icon {
  color: #667eea;
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 2px;
}
.loyalty-page .term-text {
  color: #666;
  line-height: 1.5;
}

/* ------------------------ 11) FOOTER CTA ------------------------ */
.loyalty-page div[style*="text-align: center"] h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.loyalty-page div[style*="text-align: center"] .cta-button {
  margin-top: 10px;
}

/* ------------------------ 12) ANIMÁCIE ------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------ 13) RESPONZÍVNE PRAVIDLÁ ------------------------ */
@media (max-width: 768px) {
  .loyalty-page .levels-grid {
    grid-template-columns: 1fr;
  }
  .loyalty-page .steps-grid {
    grid-template-columns: 1fr;
  }
  .loyalty-page .benefits-grid {
    grid-template-columns: 1fr;
  }
  .loyalty-page .hero1 {
    padding: 30px 0;  /* Reduced from 60px to 30px */
    margin-top: 20px;
  }
  .loyalty-page .hero1 h1 {
    font-size: 2.5rem;
    max-width: 238px;
    margin: auto;
    margin-bottom: 40px;
  }
  .loyalty-page .hero1 p {
    font-size: 1.1rem;
  }
  .loyalty-page .section-title {
    font-size: 2rem;
  }
  .loyalty-page .levels-section,
  .loyalty-page .benefits-section,
  .loyalty-page .how-it-works {
    padding: 40px 20px;
  }
  .loyalty-page .benefit-item,
  .loyalty-page .level-card,
  .loyalty-page .step-card {
    padding: 35px 20px;
  }
  .loyalty-page .benefit-item {
    display: block;
  }
  .loyalty-page {
    padding-top: 0px !important;
  }

  .loyalty-page .terms-list {
    grid-template-columns: none;
  }

  .loyalty-page .term-text {
    text-align: left;
    font-size: 18px;
  }
  .loyalty-page .benefit-content p {
    text-align: left;
    font-size: 17px;
  }
  .loyalty-page .benefit-content div {
    text-align: left;
    font-size: 18px;
  }


}