/* Impact Life Mission — homepage improvements */

/* Hero readability */
.tp-slider-3__bg.ilm-hero-slide {
  position: relative;
}

.tp-slider-3__bg.ilm-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 45, 35, 0.55) 0%,
    rgba(20, 45, 35, 0.72) 55%,
    rgba(20, 45, 35, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.tp-slider-3__bg.ilm-hero-slide .container {
  position: relative;
  z-index: 2;
}

.tp-slider-3__content .tp-slider-3-title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Equal-height program & update cards */
.ilm-card-grid .ilm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ilm-card-grid .ilm-card .tp-blog-2__thumb {
  flex-shrink: 0;
  height: 250px;
}

.ilm-card-grid .ilm-card .tp-blog-2__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ilm-card-grid .ilm-card .tp-blog-2__content,
.ilm-card-grid .ilm-card .ilm-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ilm-card-grid .ilm-card .ilm-card-text {
  flex: 1;
}

.ilm-card-grid .ilm-card .tp-blog-2__link {
  margin-top: auto;
}

/* About section vertical alignment */
.tp-about-4__left-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

/* Events & Instagram section — equal-height two-column row */
.ilm-events-section {
  background: #f6f8f7;
}

.ilm-events-section--pre-footer {
  padding-top: 100px;
  padding-bottom: 100px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ilm-events-section--pre-footer {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

.ilm-highlight-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .ilm-highlight-row {
    grid-template-columns: 1fr;
  }
}

.ilm-highlight-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(14, 45, 35, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.ilm-highlight-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 460px;
  background: #0f1f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.ilm-highlight-card__header {
  padding: 24px 28px 16px;
  flex: 0 0 auto;
}

.ilm-highlight-card__footer {
  padding: 16px 28px 28px;
  flex: 0 0 auto;
}

.ilm-highlight-card__body {
  padding: 24px 28px 28px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.ilm-highlight-card--event .ilm-highlight-card__media {
  flex: 1 1 auto;
}

/* Event flyer — show full graphic without cropping */
.ilm-event-flyer {
  width: 100%;
  height: 100%;
  min-height: 436px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ilm-event-flyer img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ilm-event-flyer--empty {
  color: #fff;
  text-align: center;
  padding: 2rem;
  flex-direction: column;
}

/* Instagram embed (post or reel) */
.ilm-ig-media {
  width: 100%;
  height: 100%;
  min-height: 436px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ilm-ig-embed {
  border: 0;
  border-radius: 8px;
  background: #fff;
  display: block;
  margin: 0 auto;
}

.ilm-ig-embed--post {
  width: 100%;
  max-width: 400px;
  min-height: 480px;
  height: 100%;
}

.ilm-ig-embed--reel {
  width: 100%;
  max-width: 320px;
  min-height: 520px;
  height: 100%;
  max-height: 640px;
}

.ilm-ig-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 436px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ilm-ig-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.ilm-ig-thumb--reel img {
  max-height: 580px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.ilm-ig-thumb--post img {
  max-width: 100%;
  object-fit: contain;
}

.ilm-ig-type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(30, 55, 55, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ilm-ig-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 31, 26, 0.25);
  pointer-events: none;
  border-radius: 6px;
}

.ilm-ig-play-overlay span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tp-common-orange, #c45c26);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ilm-instagram-card__placeholder {
  min-height: 436px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, #1e3737 0%, #2d5a4a 100%);
  color: #fff;
  text-align: center;
  padding: 2rem;
  text-decoration: none;
}

.ilm-instagram-card__placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .ilm-highlight-card__media {
    min-height: 360px;
  }

  .ilm-event-flyer,
  .ilm-ig-media,
  .ilm-ig-thumb {
    min-height: 336px;
  }

  .ilm-event-flyer img,
  .ilm-ig-thumb {
    min-height: 320px;
  }

  .ilm-ig-embed--post {
    min-height: 400px;
  }

  .ilm-ig-embed--reel {
    min-height: 440px;
    max-width: 280px;
  }
}

.ilm-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tp-common-orange, #c45c26);
  margin-bottom: 8px;
}

.ilm-event-meta {
  font-size: 14px;
  color: #5a6b66;
  margin-bottom: 12px;
}

.ilm-event-meta i {
  margin-right: 6px;
  color: var(--tp-theme-2, #1e3737);
}

/* Partner & impact section */
.ilm-impact-stats {
  background: var(--tp-theme-2, #1e3737);
  padding: 70px 0;
}

.ilm-stat-item {
  text-align: center;
  padding: 20px 15px;
}

.ilm-stat-item__number {
  font-size: 48px;
  font-weight: 800;
  color: var(--tp-common-orange, #c45c26);
  line-height: 1.1;
  margin-bottom: 8px;
}

.ilm-stat-item__label {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.ilm-partner-strip {
  padding: 60px 0 40px;
  background: #fff;
}

.ilm-partner-strip .tp-brand-2__item img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: opacity 0.3s, filter 0.3s;
}

.ilm-partner-strip .tp-brand-2__item img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.ilm-why-partner {
  padding: 50px 0 70px;
  background: #fff;
}

.ilm-why-partner__item {
  padding: 28px 24px;
  border-radius: 12px;
  background: #f6f8f7;
  height: 100%;
  border-left: 4px solid var(--tp-common-orange, #c45c26);
}

.ilm-why-partner__item h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e3737;
}

.ilm-why-partner__item p {
  margin: 0;
  color: #4a5c56;
  font-size: 15px;
  line-height: 1.6;
}

/* Video thumbnail (replaces heavy autoplay iframe) */
.ilm-video-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  min-height: 370px;
  background: #1e3737;
  display: block;
  text-decoration: none;
}

.ilm-video-thumb img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ilm-video-thumb:hover img {
  transform: scale(1.03);
}

.ilm-video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 45, 35, 0.35);
}

.ilm-video-thumb__play span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--tp-common-orange, #c45c26);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ilm-section-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  color: #5a6b66;
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .ilm-stat-item__number {
    font-size: 36px;
  }

  .ilm-video-thumb {
    min-height: 260px;
  }

  .ilm-video-thumb img {
    min-height: 260px;
  }
}

/* Full-screen inner page hero */
.ilm-page-hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: #0f221c;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.ilm-page-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ilm-page-hero__overlay--base {
  z-index: 1;
  background: linear-gradient(
    to top,
    #0a1814 0%,
    rgba(15, 34, 28, 0.96) 14%,
    rgba(20, 45, 35, 0.82) 32%,
    rgba(30, 55, 55, 0.45) 58%,
    rgba(30, 55, 55, 0.08) 82%,
    transparent 100%
  );
}

.ilm-page-hero__overlay--accent {
  z-index: 2;
  background:
    radial-gradient(ellipse 110% 70% at 50% 115%, rgba(196, 92, 38, 0.55) 0%, transparent 58%),
    linear-gradient(
      118deg,
      transparent 0%,
      rgba(196, 92, 38, 0.08) 42%,
      rgba(20, 45, 35, 0.35) 100%
    );
  mix-blend-mode: soft-light;
}

.ilm-page-hero__glow {
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 42%;
  z-index: 2;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(196, 92, 38, 0.28) 0%,
    rgba(196, 92, 38, 0.08) 40%,
    transparent 72%
  );
  pointer-events: none;
}

.ilm-page-hero__container {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(72px, 10vh, 120px);
}

.ilm-page-hero__content {
  max-width: 920px;
  margin: 0 auto;
}

.ilm-page-hero__content.text-center {
  text-align: center;
}

.ilm-page-hero__content.text-start {
  text-align: left;
}

.ilm-page-hero__crumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
}

.ilm-page-hero__crumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.2s;
}

.ilm-page-hero__crumb a:hover {
  color: var(--tp-common-orange, #e07840);
}

.ilm-page-hero__crumb-sep {
  color: rgba(255, 255, 255, 0.45);
}

.ilm-page-hero__crumb-current {
  color: #fff;
  font-weight: 600;
  text-transform: capitalize;
}

.ilm-page-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.ilm-page-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.ilm-page-hero__content.text-start .ilm-page-hero__subtitle {
  margin-left: 0;
}

.ilm-page-hero__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 4;
  height: 72px;
  color: #f6f8f7;
  line-height: 0;
  pointer-events: none;
}

.ilm-page-hero__curve svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Grey-bg sections sit flush under hero curve */
.ilm-page-hero + .grey-bg,
.ilm-page-hero + .tp-about-4__area {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .ilm-page-hero__container {
    padding-top: 90px;
    padding-bottom: 56px;
  }

  .ilm-page-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }
}

/* Footer — quick links & connect */
.ilm-footer-row {
  align-items: flex-start;
  --bs-gutter-x: 2.5rem;
}

.ilm-footer-col-brand {
  padding-right: 2.5rem;
}

.ilm-footer-col-links {
  padding-left: 2.5rem;
}

@media (min-width: 992px) {
  .ilm-footer-col-brand {
    padding-right: 4rem;
  }

  .ilm-footer-col-links {
    padding-left: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .ilm-footer-col-brand {
    padding-right: 5.5rem;
  }

  .ilm-footer-col-links {
    padding-left: 4.5rem;
  }
}

@media (max-width: 767px) {
  .ilm-footer-col-brand {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .ilm-footer-col-links {
    padding-left: 0;
    margin-bottom: 2rem;
  }
}

.ilm-footer-quicklinks li a {
  color: #fff !important;
  opacity: 0.88;
  transition: opacity 0.2s, padding-left 0.2s;
}

.ilm-footer-quicklinks li a:hover {
  opacity: 1;
  padding-left: 4px;
  color: var(--tp-common-orange, #e07840) !important;
}

.ilm-footer-connect__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ilm-footer-connect__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.ilm-footer-connect__card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(196, 92, 38, 0.45);
  transform: translateX(4px);
}

.ilm-footer-connect__card--static {
  cursor: default;
}

.ilm-footer-connect__card--static:hover {
  transform: none;
}

.ilm-footer-connect__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(196, 92, 38, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.ilm-footer-connect__text {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.ilm-footer-connect__text small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-bottom: 2px;
}

.ilm-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ilm-social-links__item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, border-color 0.25s;
}

.ilm-social-links__item:hover {
  background: var(--tp-common-orange, #c45c26);
  border-color: var(--tp-common-orange, #c45c26);
  transform: translateY(-3px);
  color: #fff !important;
}

.tp-contact-form__social-box .ilm-social-links__item {
  background: var(--tp-theme-2, #1e3737);
  border-color: transparent;
}

.tp-contact-form__social-box .ilm-social-links__item:hover {
  background: var(--tp-common-orange, #c45c26);
}
