/* ══════════════════════════════════════════════
   MHPS — Modern Home Page  (DMK-inspired)
   ══════════════════════════════════════════════ */

/* ===== PAGE WRAPPER ===== */
.mhp {
  width: 100%;
  opacity: 0;                         /* GSAP fades in */
}

/* ===== 1. HERO CAROUSEL ===== */
.mhp-hero {
  position: relative;
  overflow: hidden;
  margin: -16px -16px 0;              /* bleed into .page-content padding */
}

.mhp-hero-img {
  width: 100%;
  height: 72vh;
  min-height: 400px;
  max-height: 720px; /* overrides global carousel.css 520px cap */
  object-fit: cover;
  display: block;
}

.mhp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.20) 40%,
    transparent 65%
  );
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
}

.mhp-hero-caption {
  color: #fff;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  max-width: 740px;
  line-height: 1.35;
}

/* carousel controls + indicators — handled by global carousel.css */

/* override global 520px cap for the full-bleed hero */
.mhp-hero.hero-carousel-wrap .carousel-item img,
.mhp-hero.hero-carousel-wrap .hero-carousel .carousel-item img {
  max-height: 720px;
}

/* ===== 2. FLASH NEWS TICKER ===== */
.mhp-ticker {
  display: flex;
  align-items: stretch;
  background: #14532d;
  color: #fff;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
}

.mhp-ticker-label {
  flex-shrink: 0;
  padding: 11px 22px;
  background: #d4a841;
  color: #1b2a1e;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
}

.mhp-ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.mhp-ticker-content {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: mhpTicker 32s linear infinite;
  padding: 0 24px;
}

.mhp-ticker-item {
  flex-shrink: 0;
  position: relative;
  padding-left: 18px;
}

.mhp-ticker-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4a841;
}

.mhp-ticker:hover .mhp-ticker-content {
  animation-play-state: paused;
}

@keyframes mhpTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== 3. LEADERS SECTION ===== */
.mhp-leaders {
  padding: 64px 0;
}

/* Section title — shared */
.mhp-sec-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: #1b2a1e;
  margin: 0 0 44px;
  position: relative;
}

.mhp-sec-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: #1e8756;
  margin: 14px auto 0;
  transform: scaleX(var(--ul-scale, 1));
  transform-origin: center;
}

.mhp-sec-title--light {
  color: #fff;
}

.mhp-sec-title--light::after {
  background: #d4a841;
}

/* leaders row */
.mhp-leaders-row {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.mhp-leader-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  width: 340px;
  max-width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  /* GSAP start */
  opacity: 0;
  transform: translateY(50px);
}

.mhp-leader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 44px rgba(30, 135, 86, 0.20);
}

.mhp-leader-photo {
  background: linear-gradient(135deg, #1e8756 0%, #14532d 100%);
  padding: 36px 36px 0;
  position: relative;
}

.mhp-leader-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.mhp-leader-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.30);
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mhp-leader-info {
  padding: 18px 22px 30px;
}

.mhp-leader-name {
  font-size: 20px;
  font-weight: 800;
  color: #1b2a1e;
  margin: 0 0 6px;
}

.mhp-leader-role {
  font-size: 14px;
  font-weight: 600;
  color: #1e8756;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mhp-story {
  padding: 22px 0 70px;
}

.mhp-sec-title--left {
  text-align: left;
  margin-bottom: 22px;
}

.mhp-sec-title--left::after {
  margin: 14px 0 0;
}

.mhp-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.mhp-story-visual {
  position: relative;
  opacity: 0;
  transform: translateY(36px);
}

.mhp-story-image {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
}

.mhp-story-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(8, 21, 17, 0.72);
  backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.mhp-story-badge-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #d4a841;
}

.mhp-story-copy {
  opacity: 0;
  transform: translateY(36px);
}

.mhp-story-eyebrow {
  margin: 0 0 10px;
  color: #1e8756;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.mhp-story-summary {
  font-size: 19px;
  line-height: 1.7;
  color: #123524;
  margin: 0 0 16px;
  max-width: 62ch;
}

.mhp-story-text {
  margin: 0 0 14px;
  color: #415163;
  font-size: 15px;
  line-height: 1.8;
}

.mhp-story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 24px;
}

.mhp-story-stat {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #eff8f2 100%);
  border: 1px solid rgba(30, 135, 86, 0.14);
  box-shadow: 0 14px 30px rgba(30, 135, 86, 0.08);
}

.mhp-story-stat strong {
  display: block;
  color: #0d3b22;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  margin-bottom: 8px;
}

.mhp-story-stat span {
  display: block;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mhp-story-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mhp-story-panel {
  padding: 15px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  color: #213547;
  font-weight: 700;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(24px);
}

.mhp-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.mhp-story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mhp-story-btn--primary {
  background: #1e8756;
  color: #fff;
  box-shadow: 0 18px 30px rgba(30, 135, 86, 0.24);
}

.mhp-story-btn:not(.mhp-story-btn--primary) {
  background: #fff;
  color: #14532d;
  border: 1px solid rgba(30, 135, 86, 0.18);
}

.mhp-story-btn:hover {
  transform: translateY(-2px);
}

.mhp-milestones {
  padding: 0 0 70px;
}

.mhp-milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mhp-milestone-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.05);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(28px);
}

.mhp-milestone-media {
  overflow: hidden;
  background: #dcefe4;
}

.mhp-milestone-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.mhp-milestone-card:hover .mhp-milestone-img {
  transform: scale(1.04);
}

.mhp-milestone-body {
  padding: 22px 24px 24px;
}

.mhp-milestone-date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #1e8756;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.mhp-milestone-title {
  margin: 14px 0 12px;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.mhp-milestone-text {
  color: #475569;
  font-size: 14px;
  line-height: 1.75;
}

.mhp-milestone-text p {
  margin: 0;
}

/* ===== 4. AGENDA / MISSION ===== */
.mhp-agenda {
  padding: 64px 0;
  background: linear-gradient(135deg, #1e8756 0%, #14532d 100%);
  margin: 0 -16px;                   /* bleed */
  position: relative;
  overflow: hidden;
}

.mhp-agenda::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.mhp-agenda::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.mhp-agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mhp-agenda-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px 22px;
  transition: background 0.3s, transform 0.3s;
  /* GSAP start */
  opacity: 0;
  transform: translateY(25px);
}

.mhp-agenda-item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.mhp-agenda-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d4a841;
  color: #1b2a1e;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mhp-agenda-text {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.mhp-agenda-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #d4a841;
  color: #1b2a1e;
  font-weight: 700;
  font-size: 15px;
  border-radius: 32px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  /* GSAP start */
  opacity: 0;
  transform: translateY(18px);
}

.mhp-agenda-btn:hover {
  background: #e6bc5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 168, 65, 0.40);
  color: #1b2a1e;
}

/* ===== 5. QUICK LINKS ===== */
.mhp-links {
  padding: 64px 0 48px;
}

.mhp-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}

.mhp-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(30, 135, 86, 0.10);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.3s ease;
  /* GSAP start */
  opacity: 0;
  transform: translateY(24px);
}

.mhp-link-card:hover {
  background: #f0fdf4;
  border-color: #1e8756;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 135, 86, 0.14);
}

.mhp-link-label {
  font-weight: 700;
  font-size: 15px;
  color: #1b2a1e;
}

.mhp-link-arrow {
  font-size: 22px;
  color: #1e8756;
  transition: transform 0.3s ease;
}

.mhp-link-card:hover .mhp-link-arrow {
  transform: translateX(6px);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 900px) {
  .mhp-hero-img {
    height: 52vh;
    min-height: 300px;
  }

  .mhp-hero-overlay {
    padding-bottom: 44px;
  }

  .mhp-leaders {
    padding: 44px 0;
  }

  .mhp-story {
    padding: 8px 0 52px;
  }

  .mhp-story-grid {
    grid-template-columns: 1fr;
  }

  .mhp-story-image {
    min-height: 420px;
  }

  .mhp-milestone-grid {
    grid-template-columns: 1fr;
  }

  .mhp-leaders-row {
    gap: 28px;
  }

  .mhp-leader-card {
    width: 300px;
  }

  .mhp-leader-img {
    width: 170px;
    height: 170px;
  }

  .mhp-agenda {
    padding: 44px 0;
  }

  .mhp-links {
    padding: 44px 0 28px;
  }
}

@media (max-width: 640px) {
  .mhp-hero-img {
    height: 42vh;
    min-height: 240px;
  }

  .mhp-hero-overlay {
    padding-bottom: 32px;
  }

  .mhp-ticker {
    font-size: 13px;
  }

  .mhp-ticker-label {
    padding: 9px 14px;
    font-size: 11px;
  }

  .mhp-sec-title {
    margin-bottom: 30px;
  }

  .mhp-story-summary {
    font-size: 17px;
  }

  .mhp-story-stats {
    grid-template-columns: 1fr;
  }

  .mhp-story-panels {
    grid-template-columns: 1fr;
  }

  .mhp-story-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px 16px;
  }

  .mhp-story-image {
    min-height: 320px;
    border-radius: 22px;
  }

  .mhp-milestone-body {
    padding: 18px;
  }

  .mhp-milestone-title {
    font-size: 18px;
  }

  .mhp-leader-card {
    width: 100%;
    max-width: 320px;
  }

  .mhp-leader-photo {
    padding: 26px 26px 0;
  }

  .mhp-leader-img {
    width: 150px;
    height: 150px;
  }

  .mhp-leader-info {
    padding: 16px 18px 24px;
  }

  .mhp-agenda-grid {
    grid-template-columns: 1fr;
  }

  .mhp-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mhp-hero-img {
    height: 36vh;
    min-height: 210px;
  }

  .mhp-leader-img {
    width: 130px;
    height: 130px;
  }

  .mhp-leader-name {
    font-size: 17px;
  }

  .mhp-leader-role {
    font-size: 13px;
  }
}
