/* Modern Endoscopy Page Styles - Warm Beige + Emerald Design */
/* Same palette as CardiologyPage.modern.css */

/* ========== CSS Variables ========== */
:root {
  --primary: #1B5E45;
  --primary-light: #2D7A5F;
  --primary-dark: #124734;
  --primary-soft: rgba(27, 94, 69, 0.08);
  --primary-medium: rgba(27, 94, 69, 0.15);
  --accent-warm: #E8B86D;
  --accent-coral: #F4A261;
  --bg-warm: #FEFCF8;
  --bg-cream: #FDF9F3;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-dark: #1A2E1A;
  --text-medium: #3D5A3D;
  --text-light: #6B8B6B;
  --shadow-soft: 0 4px 20px rgba(27, 94, 69, 0.08);
  --shadow-medium: 0 8px 32px rgba(27, 94, 69, 0.12);
  --shadow-strong: 0 20px 60px rgba(27, 94, 69, 0.15);
}

/* ========== Hero Section ========== */
.endoscopy-hero {
  background: linear-gradient(135deg, #FEFCF8 0%, #F5FAF8 50%, #E8F5F0 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.endoscopy-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27, 94, 69, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-organic 8s ease-in-out infinite;
}

.endoscopy-hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 184, 109, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-organic 10s ease-in-out infinite reverse;
}

@keyframes pulse-organic {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.endoscopy-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.endoscopy-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 28px 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.endoscopy-hero__badge-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 94, 69, 0.4);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.1);
    box-shadow: 0 0 20px 5px rgba(27, 94, 69, 0.2);
  }
}

.endoscopy-hero__title {
  font-size: 56px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 20px;
  margin-left: 24px;
  letter-spacing: -0.02em;
}

.endoscopy-hero__title em {
  color: var(--primary);
  font-style: normal;
  position: relative;
}

.endoscopy-hero__subtitle {
  font-size: 18px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 36px;
  margin-left: 24px;
  max-width: 500px;
  font-weight: 400;
}

.endoscopy-hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.endoscopy-hero__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

.endoscopy-hero__feature:hover {
  background: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: rgba(27, 94, 69, 0.2);
}

.endoscopy-hero__feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(27, 94, 69, 0.3);
}

.endoscopy-hero__feature span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.endoscopy-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.endoscopy-hero__cta .button-wrapper {
  flex: 1;
  min-width: 220px;
}

.endoscopy-hero__cta .button-wrapper .btn {
  width: 100%;
}

/* Hero Visual */
.endoscopy-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (min-width: 1280px) {
  .hero__image-wrapper {
    max-width: 620px;
  }
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero__blob-bg {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 94, 69, 0.08) 0%, rgba(232, 184, 109, 0.06) 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob-morph 10s ease-in-out infinite;
}

@keyframes blob-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 30% 60% 40% / 70% 40% 50% 60%; }
}

.hero__deco-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 94, 69, 0.1), rgba(232, 184, 109, 0.1));
}

.hero__deco-circle--1 {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -20px;
  animation: float-circle 7s ease-in-out infinite;
}

.hero__deco-circle--2 {
  width: 100px;
  height: 100px;
  bottom: -10px;
  left: -60px;
  animation: float-circle 5s ease-in-out infinite reverse;
}

.hero__deco-circle--3 {
  width: 60px;
  height: 60px;
  top: 40%;
  right: -70px;
  animation: float-circle 6s ease-in-out infinite;
}

@keyframes float-circle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero__image-container {
  position: relative;
  z-index: 1;
}

.hero__image-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  box-shadow: 
    0 30px 80px rgba(27, 94, 69, 0.25),
    0 10px 30px rgba(27, 94, 69, 0.1);
  animation: blob-morph 10s ease-in-out infinite;
  border: 8px solid white;
  position: relative;
}

.hero__image-blob::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(27, 94, 69, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero__image-blob:hover .hero__img {
  transform: scale(1.05);
}

/* ========== Section Headers ========== */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 400;
}

/* ========== Why Section ========== */
.endoscopy-why {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-warm) 0%, white 50%, var(--bg-warm) 100%);
  position: relative;
  overflow: hidden;
}

.endoscopy-why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.endoscopy-why__card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 36px 28px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.endoscopy-why__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-warm));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.endoscopy-why__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
  background: white;
}

.endoscopy-why__card:hover::before {
  transform: scaleX(1);
}

.endoscopy-why__card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: white;
  box-shadow: 0 10px 30px rgba(27, 94, 69, 0.3);
  transition: transform 0.4s ease;
}

.endoscopy-why__card:hover .endoscopy-why__card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.endoscopy-why__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.endoscopy-why__card-text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ========== Services Section ========== */
.endoscopy-services {
  padding: 100px 0;
  background: white;
  position: relative;
}

.endoscopy-services__accordion {
  max-width: 900px;
  margin: 0 auto;
}

.endoscopy-services__item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

.endoscopy-services__item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateX(4px);
}

.endoscopy-services__item--active {
  border-color: rgba(27, 94, 69, 0.3);
  box-shadow: var(--shadow-strong);
  background: white;
  transform: scale(1.01);
}

.endoscopy-services__header {
  width: 100%;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.endoscopy-services__header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.endoscopy-services__header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(27, 94, 69, 0.1), rgba(27, 94, 69, 0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.endoscopy-services__item--active .endoscopy-services__header-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: scale(1.1);
}

.endoscopy-services__header-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.endoscopy-services__header-desc {
  font-size: 13px;
  color: var(--text-light);
}

.endoscopy-services__header-arrow {
  width: 40px;
  height: 40px;
  background: rgba(27, 94, 69, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.endoscopy-services__item--active .endoscopy-services__header-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.endoscopy-services__content {
  padding: 0 30px 30px;
}

.endoscopy-services__description {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 20px;
}

.endoscopy-services__includes {
  background: linear-gradient(135deg, rgba(27, 94, 69, 0.03), rgba(232, 184, 109, 0.03));
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(27, 94, 69, 0.08);
}

.endoscopy-services__includes h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.endoscopy-services__includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.endoscopy-services__includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-medium);
}

.endoscopy-services__includes li i {
  color: var(--primary);
  font-size: 12px;
  width: 18px;
  height: 18px;
  background: rgba(27, 94, 69, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.endoscopy-services__price {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.endoscopy-services__price-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-warm);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(27, 94, 69, 0.1);
}

.endoscopy-services__price-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.endoscopy-services__price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.endoscopy-services__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(27, 94, 69, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.endoscopy-services__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(27, 94, 69, 0.3);
}

.endoscopy-services__btn:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(27, 94, 69, 0.4);
}

/* ========== Stats Section ========== */
.endoscopy-stats {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-cream) 0%, #F5FAF8 50%, var(--bg-warm) 100%);
  position: relative;
  overflow: hidden;
}

.endoscopy-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.endoscopy-stats__card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
}

.endoscopy-stats__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  background: white;
}

.endoscopy-stats__number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.1;
}

.endoscopy-stats__label {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
}

.endoscopy-stats__note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ========== Equipment Section ========== */
.equipment-section {
  padding: 100px 0;
  background: white;
  position: relative;
}

.equipment-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.equipment-section__card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
}

.equipment-section__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  background: white;
}

.equipment-section__image-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #F5FAF8;
}

.equipment-section__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}

.equipment-section__card:hover .equipment-section__image {
  transform: scale(1.05);
}

.equipment-section__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(27, 94, 69, 0.3);
}

.equipment-section__content {
  padding: 24px;
}

.equipment-section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.equipment-section__subtitle {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.equipment-section__description {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 16px;
}

.equipment-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.equipment-section__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(27, 94, 69, 0.15);
}

.equipment-section__list li:last-child {
  border-bottom: none;
}

.equipment-section__list i {
  color: var(--primary);
  font-size: 12px;
}

/* ========== Gastroenterology Promo ========== */
.gastro-promo {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.gastro-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.gastro-promo__content {
  position: relative;
  z-index: 1;
}

.gastro-promo__header {
  color: white;
  text-align: center;
  margin-bottom: 50px;
}

.gastro-promo__title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.gastro-promo__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.gastro-promo__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gastro-promo__card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.4s ease;
}

.gastro-promo__card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-6px);
}

.gastro-promo__card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: white;
}

.gastro-promo__card-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.gastro-promo__card-text {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.gastro-promo__link {
  text-align: center;
  margin-top: 40px;
}

.gastro-promo__link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.gastro-promo__link a:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  gap: 14px;
}

/* ========== Article / Recommendation Cards ========== */
.articles-section {
  padding: 100px 0;
  background: var(--bg-warm);
  position: relative;
}

.articles-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.articles-section__card {
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.articles-section__card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.articles-section__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.articles-section__card-title i {
  color: var(--primary);
  font-size: 24px;
}

.articles-section__card-text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
}

.articles-section__card-text strong {
  color: var(--text-dark);
}

.articles-section__sources {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(27, 94, 69, 0.1);
}

.articles-section__sources h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.articles-section__sources a {
  display: block;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 0;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.articles-section__sources a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  padding-left: 4px;
}

/* ========== When to Visit ========== */
.when-to-visit {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #F5FAF8 50%, var(--bg-cream) 100%);
  position: relative;
  overflow: hidden;
}

.when-to-visit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.when-to-visit__card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.when-to-visit__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transition: height 0.4s ease;
  z-index: 0;
}

.when-to-visit__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.when-to-visit__card:hover::after {
  height: 5px;
}

.when-to-visit__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: white;
  box-shadow: 0 8px 24px rgba(27, 94, 69, 0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.when-to-visit__card:hover .when-to-visit__icon {
  transform: scale(1.1) rotate(10deg);
}

.when-to-visit__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.when-to-visit__text {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.when-to-visit__cta {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-medium);
  position: relative;
  z-index: 1;
}

.when-to-visit__cta-text {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 500;
}

/* ========== Container ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.endoscopy-why__card,
.endoscopy-services__item,
.endoscopy-stats__card,
.equipment-section__card,
.articles-section__card,
.when-to-visit__card {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .endoscopy-hero__content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .endoscopy-hero__title {
    font-size: 42px;
  }

  .endoscopy-hero__subtitle {
    margin: 0 auto 36px;
  }

  .endoscopy-hero__features {
    max-width: 500px;
    margin: 0 auto 36px;
  }

  .endoscopy-hero__cta {
    justify-content: center;
  }

  .hero__image-wrapper {
    max-width: 400px;
  }

  .endoscopy-why__grid,
  .endoscopy-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .equipment-section__grid {
    grid-template-columns: 1fr;
  }

  .gastro-promo__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .when-to-visit__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-section__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .endoscopy-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .endoscopy-hero__title {
    font-size: 32px;
  }

  .endoscopy-hero__features {
    grid-template-columns: 1fr;
  }

  .endoscopy-hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__image-wrapper {
    max-width: 320px;
  }

  .section-title {
    font-size: 28px;
  }

  .endoscopy-why__grid,
  .endoscopy-stats__grid,
  .gastro-promo__grid,
  .when-to-visit__grid {
    grid-template-columns: 1fr;
  }

  .endoscopy-stats__number {
    font-size: 28px;
  }

  .endoscopy-services__includes ul {
    grid-template-columns: 1fr;
  }

  .equipment-section__image-wrapper {
    height: 200px;
  }

  .gastro-promo__title {
    font-size: 28px;
  }

  .articles-section__card {
    padding: 24px;
  }

  .when-to-visit__cta {
    padding: 28px 20px;
  }
}
