/* ==========================================================
   CampusLogin AI Suite — Stripe-inspired product sections
   Used by the "CampusLogin AI" block patterns (inc/block-patterns.php)
   ========================================================== */

/* ---------- Product sections ---------- */
.ai-product-section {
  padding: 5.5rem 0;
  background: #fff;
}

.ai-section-alt {
  background: #f6f9fc;
}

.ai-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.9rem;
  color: #006EC4;
  margin-bottom: 1rem;
}

.ai-product-section h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  color: #0a2540;
  margin-bottom: 1rem;
}

.ai-overview {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #425466;
  margin-bottom: 1.5rem;
}

.ai-product-top {
  gap: 4rem;
}

/* checkmark feature list */
.ai-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.ai-check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #425466;
}

.ai-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(0, 110, 196, 0.1);
  color: #006EC4;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

/* product visual */
.ai-visual {
  margin: 0;
}

.ai-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(10, 37, 64, 0.25), 0 8px 16px -8px rgba(10, 37, 64, 0.2);
}

/* CTA button */
.ai-cta .wp-block-button__link {
  background-color: #006EC4;
  background-image: linear-gradient(90deg, #005586, #0090dd);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

/* .ai-cta .wp-block-button__link::after {
  content: " ›";
  font-weight: 700;
} */

.ai-cta .wp-block-button__link:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(0, 110, 196, 0.5);
}

/* Secondary CTA — outline pill: blue text on white with blue border.
   Use class "ai-cta-outline" on a Button block (e.g. "Read More Details"). */
.ai-cta-outline .wp-block-button__link {
  background: #fff;
  color: #006EC4;
  border: 2px solid #006EC4;
  border-radius: 999px;
  padding: calc(0.65rem - 2px) calc(1.75rem - 2px);
  font-weight: 600;
  font-size: 0.98rem;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ai-cta-outline .wp-block-button__link:hover {
  background: rgba(0, 110, 196, 0.08);
  color: #006EC4;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(0, 110, 196, 0.25);
}

/* ---------- GEI Tabs ---------- */
.gei-tabs {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border:1px solid #e1e8f0;
  box-shadow: 0 6px 24px -8px rgba(10, 37, 64, 0.12);
}

/* When a product section's right column holds tabs instead of an image,
   top-align both columns so the text and the tabs card line up. */
.ai-product-top:has(.gei-tabs) {
  align-items: flex-start;
}

.ai-product-top:has(.gei-tabs) > .wp-block-column.is-vertically-aligned-center {
  align-self: flex-start;
}

/* Single-line pill nav; overflowing buttons scroll into view when their
   tab activates (see gei-tabs.js), like Stripe's country selector. */
.gei-tabs-nav {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
}

.gei-tabs-nav::-webkit-scrollbar {
  display: none;
}

.gei-tab-btn {
  appearance: none;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #425466;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.gei-tab-btn:hover {
  color: #006EC4;
  background: rgba(0, 110, 196, 0.08);
}

.gei-tab-btn.is-active {
  color: #fff;
  background: #006EC4;
}

.gei-tab-panel[hidden] {
  display: none;
}

.gei-tab-panel .wp-block-image img{
  max-width: 100%;
  width:auto;
  height:auto;
}
/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .ai-product-section {
    padding: 3.5rem 0;
  }

  .ai-product-top {
    gap: 1.5rem;
  }
}
