/* =========================
   LAYOUT STRUCTURE
========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

header, section, footer {
  width: 100%;
}

header {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-md);
}

header h1 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

/*-light header-*/
.light .section-header,.container h2{
color: var(--picton-blue);
}
.light .container h2{
color: var(--picton-blue);
}

/* ---------- Animated Cards Section ---------- */
.animated-cards-section {
  background-color: var(--tea-green);
  /*color: var(--tea-green-light);*/
  padding: 5rem 0;
}

.animated-cards-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.animated-cards-section .section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.animated-cards-section .arrow-down {
  margin-top: 1rem;
  animation: bounce 2s infinite;
}

/* --- Split Card Layout --- */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Left side – text */
.card-content {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

/* Right side – image */
.card-image {
  flex: 1;
  overflow: hidden;
}

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

/* ---------- PPC Funnel Section Layout ---------- */
.ppc-funnel-section {
  background-color: var(--snow);
  padding: 20px 0;
}

/* Section Title */
.funnel-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tea-green-light);
  margin-bottom: 40px;
  white-space: normal;       /* allow word wraps */
  word-break: break-word;    /* if long words stay unbroken */
  overflow-wrap: anywhere;   /* for browsers honoring modern spec */
}

/* Grid Layout */
.funnel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

/* LEFT COLUMN (sticky steps + button) */
.funnel-sidebar {
  position: sticky;
  top: 140px; /* ensures sidebar starts below title */
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 40px;
}

/* RIGHT COLUMN */
.funnel-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-top: 20px; /* so first block never collides with title */
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .funnel-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .funnel-sidebar {
    position: relative;
    top: 0;
    align-items: center;
    text-align: center;
  }

  .funnel-content {
    padding-top: 0;
    gap: 60px;
  }

  /* Stack split cards vertically on mobile */
  .card {
    flex-direction: column;
  }
}

/* Mobile-friendly container */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 1.25rem; /* breathing room from edges */
  }
}

@media (max-width: 768px) {
  .card,
  .funnel-sidebar {
    position: relative;  /* no sticky on mobile */
    top: auto;
  }
}

@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }
  .card-image img {
    height: auto;
  }
  .card-content {
    text-align: center;
    align-items: center;
    border-left: none;
    border-top: 4px solid var(--coral-pink);
  }
}

@media (max-width: 768px) {
  h1, h2, h3 {
    line-height: 1.3;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  
}