/* ==========================================================================
   IEC Dakotas Homepage — Registration Hero & Cards
   Add to child theme style.css or enqueue via functions.php
   ========================================================================== */

/* --- Design tokens --- */
.iec-homepage {
  --iec-navy: #0c1e3a;
  --iec-navy-dark: #081528;
  --iec-navy-mid: #132d52;
  --iec-red: #c8102e;
  --iec-gold: #f5b800;
  --iec-gold-hover: #e5aa00;
  --iec-white: #ffffff;
  --iec-gray-50: #f3f5f8;
  --iec-gray-100: #e8ecf1;
  --iec-gray-400: #8a96a8;
  --iec-gray-600: #4a5568;
  --iec-gray-800: #2d3748;
  --iec-green-bg: #e6f4ea;
  --iec-green-text: #1b6b3a;
  --iec-yellow-bg: #fef6dc;
  --iec-yellow-text: #8a6d00;
  --iec-blue-bg: #e8f0fb;
  --iec-blue-text: #1a4d8c;
  --iec-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --iec-radius: 12px;
  --iec-radius-lg: 16px;
  --iec-shadow: 0 4px 24px rgba(12, 30, 58, 0.08);
  --iec-shadow-lg: 0 8px 40px rgba(12, 30, 58, 0.12);
  font-family: var(--iec-font);
  line-height: 1.6;
  color: var(--iec-gray-800);
}

.iec-homepage *,
.iec-homepage *::before,
.iec-homepage *::after {
  box-sizing: border-box;
}

/* Remove default WPBakery row padding when wrapping this block */
.vc_row.iec-homepage-row,
.vc_row.iec-homepage-row.vc_row-no-padding {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: 0 !important;
  width: 100% !important;
}

.vc_row.iec-homepage-row > .wpb_column,
.vc_row.iec-homepage-row > .vc_column_container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ==========================================================================
   FULL-BLEED TEMPLATE OVERRIDES
   ========================================================================== */
body.page-template-page-templates-iec-registration-home-php #body.iec-registration-body {
  padding: 0;
  overflow-x: hidden;
}

body.page-template-page-templates-iec-registration-home-php .iec-registration-content,
body.page-template-page-templates-iec-registration-home-php #content,
body.page-template-page-templates-iec-registration-home-php .row,
body.page-template-page-templates-iec-registration-home-php .col-md-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

body.page-template-page-templates-iec-registration-home-php .content-pad-3x {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-template-page-templates-iec-registration-home-php .vc_row[data-vc-full-width="true"] {
  left: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page-templates-iec-registration-home-php .vc_row[data-vc-full-width="true"] > .wpb_column,
body.page-template-page-templates-iec-registration-home-php .vc_row[data-vc-full-width="true"] > .vc_column_container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Break out of any remaining theme container */
.iec-registration-content .iec-homepage,
.single-page-content .iec-homepage {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.iec-hero {
  position: relative;
  background-color: var(--iec-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  overflow: hidden;
  border-top: 4px solid var(--iec-red);
  border-radius: 0;
}

.iec-hero__bolt {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 520px;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' fill='%23ffffff'%3E%3Cpath d='M110 0L70 120h50L60 280l90-140H95L110 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.iec-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

/* Badge */
.iec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(245, 184, 0, 0.45);
  border-radius: 999px;
  background: rgba(245, 184, 0, 0.12);
  color: var(--iec-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.iec-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--iec-gold);
  flex-shrink: 0;
}

/* Title */
.iec-hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--iec-white);
}

.iec-hero__title-accent {
  color: var(--iec-gold);
}

/* Description */
.iec-hero__desc {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.iec-hero__desc strong {
  color: var(--iec-white);
  font-weight: 700;
}

/* Contact box */
.iec-hero__contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.iec-hero__contact .fa {
  color: var(--iec-gold);
  font-size: 16px;
}

.iec-hero__contact a {
  color: var(--iec-gold);
  font-weight: 700;
  text-decoration: none;
}

.iec-hero__contact a:hover {
  text-decoration: underline;
}

/* Meta row */
.iec-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.iec-hero__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.iec-hero__meta .fa {
  color: var(--iec-gold);
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.iec-hero__meta strong {
  color: var(--iec-white);
  font-weight: 700;
}

/* ==========================================================================
   PATHS SECTION
   ========================================================================== */
.iec-paths {
  background: var(--iec-gray-50);
  padding: 72px 24px 80px;
}

.iec-paths__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.iec-paths__header {
  text-align: center;
  margin-bottom: 48px;
}

.iec-paths__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--iec-red);
}

.iec-paths__title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--iec-navy);
}

.iec-paths__subtitle {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  color: var(--iec-gray-400);
}

/* Cards grid */
.iec-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Card base */
.iec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--iec-white);
  border: 1px solid var(--iec-gray-100);
  border-radius: var(--iec-radius-lg);
  box-shadow: var(--iec-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.iec-card:hover {
  box-shadow: var(--iec-shadow-lg);
  transform: translateY(-2px);
}

.iec-card--featured {
  border: 2px solid var(--iec-red);
  box-shadow: var(--iec-shadow-lg);
}

/* Ribbon on featured card */
.iec-card__ribbon {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--iec-red);
  color: var(--iec-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
}

.iec-card__ribbon .fa {
  font-size: 9px;
}

/* Large background number */
.iec-card__number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--iec-gray-100);
  user-select: none;
  pointer-events: none;
}

/* Icon box */
.iec-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 20px;
}

.iec-card__icon--red {
  background: #fde8eb;
  color: var(--iec-red);
}

.iec-card__icon--blue {
  background: var(--iec-blue-bg);
  color: var(--iec-blue-text);
}

.iec-card__icon--gold {
  background: #fef6dc;
  color: #b8860b;
}

/* Card content */
.iec-card__title {
  margin: 0 0 14px;
  padding-right: 48px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--iec-navy);
  line-height: 1.35;
}

.iec-card__body {
  flex: 1;
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--iec-gray-600);
}

.iec-card__body strong {
  display: block;
  margin-top: 10px;
  color: var(--iec-gray-800);
  font-weight: 700;
}

/* Tags */
.iec-card__tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iec-card__tag--green {
  background: var(--iec-green-bg);
  color: var(--iec-green-text);
}

.iec-card__tag--yellow {
  background: var(--iec-yellow-bg);
  color: var(--iec-yellow-text);
}

.iec-card__tag--blue {
  background: var(--iec-blue-bg);
  color: var(--iec-blue-text);
}

/* Buttons */
.iec-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.iec-card__btn .fa {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.iec-card__btn:hover .fa {
  transform: translateX(4px);
}

.iec-card__btn--navy {
  background: var(--iec-navy);
  color: var(--iec-white) !important;
}

.iec-card__btn--navy:hover {
  background: var(--iec-navy-mid);
  color: var(--iec-white) !important;
}

.iec-card__btn--red {
  background: var(--iec-red);
  color: var(--iec-white) !important;
}

.iec-card__btn--red:hover {
  background: #a50d26;
  color: var(--iec-white) !important;
}

.iec-card__btn--outline {
  background: var(--iec-white);
  border: 2px solid var(--iec-gray-100);
  color: var(--iec-navy) !important;
}

.iec-card__btn--outline:hover {
  border-color: var(--iec-navy);
  color: var(--iec-navy) !important;
}

/* Card footer */
.iec-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--iec-gray-100);
  font-size: 12px;
  color: var(--iec-gray-400);
}

.iec-card__footer .fa {
  font-size: 13px;
  color: var(--iec-gray-400);
}

.iec-card__footer a {
  color: var(--iec-navy);
  font-weight: 600;
  text-decoration: none;
}

.iec-card__footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   BOTTOM CTA BAR
   ========================================================================== */
.iec-cta {
  background: var(--iec-navy);
  padding: 36px 24px;
}

.iec-cta__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.iec-cta__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 184, 0, 0.15);
  color: var(--iec-gold);
  font-size: 22px;
}

.iec-cta__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.iec-cta__text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iec-white);
}

.iec-cta__text a {
  color: var(--iec-gold);
  font-weight: 700;
  text-decoration: none;
}

.iec-cta__text a:hover {
  text-decoration: underline;
}

.iec-cta__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 16px 28px;
  border-radius: 8px;
  background: var(--iec-gold);
  color: var(--iec-navy) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.iec-cta__btn:hover {
  background: var(--iec-gold-hover);
  color: var(--iec-navy) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .iec-paths__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .iec-card--featured {
    order: -1;
  }

  .iec-cta__inner {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .iec-cta__text {
    flex-basis: 100%;
  }
}

@media (max-width: 767px) {
  .iec-hero__inner {
    padding: 40px 20px 36px;
  }

  .iec-hero__meta {
    flex-direction: column;
    gap: 16px;
  }

  .iec-hero__contact {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .iec-paths {
    padding: 56px 20px 64px;
  }

  .iec-cta__btn {
    width: 100%;
    text-align: center;
  }
}
