@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

.cn-when-section-9d3d40a7 {
  --cn-teal:        #5FC2BE;
  --cn-navy:        #1F3F5B;
  --cn-white:       #FFFFFF;
  --cn-text-muted:  #5a7388;
  --cn-border:      #dce8ef;
  --cn-shadow-card: 0 8px 40px rgba(31,63,91,0.12);
  --cn-gradient:    linear-gradient(135deg, #5FC2BE 0%, #1F3F5B 100%);
  --cn-font-display:'Playfair Display', Georgia, serif;
  --cn-font-body:   'DM Sans', sans-serif;

  padding: 100px 0;
  background: #FFFFFF;
  font-family: var(--cn-font-body);
  color: var(--cn-navy);
  box-sizing: border-box;
}

.cn-when-section-9d3d40a7 *,
.cn-when-section-9d3d40a7 *::before,
.cn-when-section-9d3d40a7 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cn-when-container-9d3d40a7 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cn-when-header-9d3d40a7 { text-align: center; }

.cn-when-tag-9d3d40a7 {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cn-teal);
  background: rgba(95,194,190,.12);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  font-family: var(--cn-font-body);
}

.cn-when-title-9d3d40a7 {
  font-family: var(--cn-font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--cn-navy);
  line-height: 1.2;
  margin-bottom: 0;
}

.cn-when-sub-9d3d40a7 {
  font-size: 1.05rem;
  color: var(--cn-text-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 12px auto 0;
  font-family: var(--cn-font-body);
}

.cn-when-grid-9d3d40a7 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.cn-when-card-9d3d40a7 {
  border-radius: 20px;
  padding: 32px 28px;
  border: 2px solid var(--cn-border);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  background: var(--cn-white);
}

.cn-when-card-9d3d40a7::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cn-gradient);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}

.cn-when-card-9d3d40a7:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--cn-shadow-card);
}
.cn-when-card-9d3d40a7:hover::before { opacity: 1; }

.cn-when-card-9d3d40a7 > * {
  position: relative;
  z-index: 1;
}

.cn-when-card-9d3d40a7:hover .cn-when-icon-wrap-9d3d40a7,
.cn-when-card-9d3d40a7:hover .cn-when-card-title-9d3d40a7,
.cn-when-card-9d3d40a7:hover .cn-when-card-text-9d3d40a7 {
  color: #fff;
}
.cn-when-card-9d3d40a7:hover .cn-when-icon-wrap-9d3d40a7 i,
.cn-when-card-9d3d40a7:hover .cn-when-icon-wrap-9d3d40a7 svg {
  color: #fff;
  fill: #fff;
}

/* Icon circle */
.cn-when-icon-wrap-9d3d40a7 {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(95,194,190,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .3s;
}
.cn-when-card-9d3d40a7:hover .cn-when-icon-wrap-9d3d40a7 {
  background: rgba(255,255,255,.15);
}
.cn-when-icon-wrap-9d3d40a7 i,
.cn-when-icon-wrap-9d3d40a7 svg {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: var(--cn-teal);
  fill: var(--cn-teal);
  transition: color .3s, fill .3s;
}

.cn-when-card-title-9d3d40a7 {
  font-family: var(--cn-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cn-navy);
  margin-bottom: 10px;
  transition: color .3s;
  line-height: 1.3;
}

.cn-when-card-text-9d3d40a7 {
  font-size: 14px;
  color: var(--cn-text-muted);
  line-height: 1.65;
  transition: color .3s;
  font-family: var(--cn-font-body);
}

.cn-when-section-9d3d40a7 [data-cn-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.cn-when-section-9d3d40a7 [data-cn-reveal].cn-visible {
  opacity: 1;
  transform: translateY(0);
}
.cn-when-section-9d3d40a7 [data-cn-delay="1"] { transition-delay: .1s; }
.cn-when-section-9d3d40a7 [data-cn-delay="2"] { transition-delay: .2s; }
.cn-when-section-9d3d40a7 [data-cn-delay="3"] { transition-delay: .3s; }
.cn-when-section-9d3d40a7 [data-cn-delay="4"] { transition-delay: .4s; }

@media (max-width: 1024px) {
  .cn-when-grid-9d3d40a7 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cn-when-section-9d3d40a7 { padding: 64px 0; }
  .cn-when-container-9d3d40a7 { padding: 0 16px; }
  .cn-when-grid-9d3d40a7 { grid-template-columns: 1fr; margin-top: 40px; gap: 16px; }
  .cn-when-card-9d3d40a7 { padding: 26px 22px; }
  .cn-when-title-9d3d40a7 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .cn-when-sub-9d3d40a7 { font-size: 0.98rem; }
}
