/* =====================================================
   HOME PAGE — scoped to .home-page only
   Reuses: .ieg-btn / .ieg-btn-primary / .ieg-btn-secondary (forms.css)
   ===================================================== */

.home-page {
  width: 100%;
  max-width: var(--ieg-content, 76rem);
  margin: 0 auto;
  padding: 16px 0 28px;
  box-sizing: border-box;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}


/* =====================================================
   HERO
   ===================================================== */

.home-page .home-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 64% 40%,
      rgba(188, 232, 219, .40) 0%,
      rgba(229, 247, 240, .22) 35%,
      rgba(255, 255, 255, 0) 68%
    ),
    linear-gradient(
      105deg,
      #f7fffb 0%,
      #ffffff 44%,
      #e5f7f0 100%
    );
}

.home-page .home-hero-content {
  width: min(630px, 65%);
  position: relative;
  z-index: 3;
}

.home-page .home-hero-eyebrow {
  margin-bottom: 9px;
  color: #087442;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .13em;
}

.home-page .home-hero h1 {
  margin: 0;
  color: #111921;
  font-size: 39px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.4px;
}

.home-page .home-hero h1 span {
  color: #087842;
}

.home-page .home-hero p {
  max-width: 590px;
  margin: 12px 0 0;
  color: #485851;
  font-size: 15px;
  line-height: 1.5;
}

.home-page .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.home-page .home-hero-btn {
  min-height: 44px;
}

.home-page .home-hero-btn svg {
  width: 18px;
  height: 18px;
}

.home-page .home-hero-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 43%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(
      115deg,
      rgba(222, 245, 237, .15),
      rgba(169, 221, 203, .38)
    );
}

.home-page .home-hero-art::before {
  content: "";
  position: absolute;
  left: 70px;
  top: -35px;
  width: 150px;
  height: 290px;
  background: rgba(116, 201, 173, .10);
  transform: skewX(-20deg);
}

.home-page .home-hero-art::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -35px;
  width: 230px;
  height: 290px;
  background: rgba(82, 173, 145, .10);
  transform: skewX(-20deg);
}

.home-page .home-hero-message {
  position: absolute;
  left: 40px;
  top: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  color: #087443;
  font-size: 19px;
  line-height: 23px;
  font-style: italic;
  font-weight: 650;
}

.home-page .home-hero-message strong {
  font-weight: 800;
}

.home-page .home-hero-accent {
  position: absolute;
  left: 42px;
  top: 128px;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: var(--ieg-green, #15964a);
  z-index: 3;
}


/* =====================================================
   FEATURE GRID
   ===================================================== */

.home-page .home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.home-page .home-feature-card {
  position: relative;
  min-height: 128px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe7e3;
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.home-page .home-feature-card:hover {
  transform: translateY(-1px);
  border-color: #cbd9d2;
  box-shadow: 0 5px 15px rgba(18, 62, 43, .055);
  color: inherit;
}

.home-page .home-feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}

.home-page .home-feature-icon svg {
  width: 25px;
  height: 25px;
}

.home-page .home-feature-icon-notes,
.home-page .home-progress-icon-notes {
  background: #e5f6ed;
  color: #15964a;
}

.home-page .home-feature-icon-training,
.home-page .home-progress-icon-training {
  background: #e7f1fd;
  color: #247bd7;
}

.home-page .home-feature-icon-mock,
.home-page .home-progress-icon-mock {
  background: #f0e7fc;
  color: #8b49dc;
}

.home-page .home-feature-icon-tools,
.home-page .home-progress-icon-forum {
  background: #fff1dd;
  color: #e48412;
}

.home-page .home-feature-copy h2 {
  margin: 2px 0 4px;
  color: #172019;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 750;
}

.home-page .home-feature-copy p {
  margin: 0;
  color: #68766f;
  font-size: 12.5px;
  line-height: 1.45;
}

.home-page .home-feature-copy span {
  display: inline-block;
  margin-top: 11px;
  color: #108143;
  font-size: 12px;
  font-weight: 700;
}

.home-page .home-feature-arrow {
  padding-top: 4px;
  color: #27352e;
  font-size: 24px;
  line-height: 1;
}


/* =====================================================
   CARDS / SECTION HEADS
   ===================================================== */

.home-page .home-card {
  background: #ffffff;
  border: 1px solid #dfe7e3;
  border-radius: 13px;
}

.home-page .home-progress {
  margin-top: 12px;
  padding: 16px;
}

.home-page .home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.home-page .home-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-page .home-section-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e7f7ef;
  color: var(--ieg-green, #15964a);
}

.home-page .home-section-icon svg {
  width: 21px;
  height: 21px;
}

.home-page .home-section-title h2 {
  margin: 0;
  color: #172019;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 750;
}

.home-page .home-section-title p {
  margin: 3px 0 0;
  color: #738078;
  font-size: 12.5px;
}

.home-page .home-section-link {
  color: #108143;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-page .home-section-link:hover {
  color: var(--ieg-green-hover, #0f843f);
}


/* =====================================================
   PROGRESS
   ===================================================== */

.home-page .home-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.home-page .home-progress-item {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #e3eae6;
  border-radius: 10px;
  background: #fbfcfb;
  color: inherit;
  text-decoration: none;
}

.home-page .home-progress-item:hover {
  background: #f8fbf9;
  color: inherit;
}

.home-page .home-progress-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.home-page .home-progress-icon svg {
  width: 18px;
  height: 18px;
}

.home-page .home-progress-item strong {
  display: block;
  color: #172019;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
}

.home-page .home-progress-item span {
  display: block;
  margin-top: 4px;
  color: #67746d;
  font-size: 12px;
}


/* =====================================================
   BOTTOM GRID + LISTS
   ===================================================== */

.home-page .home-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.home-page .home-activity,
.home-page .home-announcements {
  padding: 16px;
}

.home-page .home-list {
  display: flex;
  flex-direction: column;
}

.home-page .home-empty {
  margin: 0;
  padding: 10px 0 4px;
  color: #718077;
  font-size: 13.5px;
  line-height: 1.5;
}

.home-page .home-list-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid #e5ece8;
  color: #1c2721;
  text-decoration: none;
}

.home-page .home-list-row:hover {
  color: #108143;
}

.home-page .home-list-icon {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f7ef;
}

.home-page .home-list-icon span {
  width: 8px;
  height: 11px;
  border: 2px solid #15964a;
  border-radius: 2px;
}

.home-page .home-list-main {
  padding-right: 10px;
  font-size: 12.5px;
}

.home-page .home-list-row time {
  color: #78847e;
  font-size: 11.5px;
  white-space: nowrap;
}

.home-page .home-announcement-row {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

.home-page .home-announcement-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ieg-green, #15964a);
}

.home-page .home-announcement-copy {
  display: flex;
  flex-direction: column;
  padding-right: 12px;
}

.home-page .home-announcement-copy strong {
  color: #18221c;
  font-size: 12.5px;
}

.home-page .home-announcement-copy span {
  margin-top: 2px;
  color: #737f79;
  font-size: 11.5px;
  line-height: 1.35;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1000px) {
  .home-page .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page {
    padding: 14px 0 24px;
  }

  .home-page .home-hero {
    min-height: auto;
    padding: 24px 20px;
  }

  .home-page .home-hero-content {
    width: 100%;
  }

  .home-page .home-hero-art {
    opacity: .28;
    width: 55%;
  }

  .home-page .home-hero-message {
    display: none;
  }

  .home-page .home-hero h1 {
    font-size: 32px;
  }

  .home-page .home-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-page .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-progress-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-hero-art {
    display: none;
  }

  .home-page .home-hero h1 {
    font-size: 28px;
  }

  .home-page .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .home-hero-actions .ieg-btn {
    width: 100%;
  }

  .home-page .home-section-head {
    align-items: flex-start;
  }

  .home-page .home-list-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .home-page .home-list-row time {
    grid-column: 2;
    margin-top: -3px;
    padding-bottom: 7px;
  }

  .home-page .home-announcement-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }
}
