/* =========================
   RESET & VARIABLES
========================= */
:root {
  --impact-gap: clamp(40px, 6vw, 80px);
  --impact-gap-lg: clamp(60px, 8vw, 120px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   BASE
========================= */
body {
  font-family: "Georgia", "Times New Roman", serif;
  background-color: #fffaf4;
  color: #4b3f35;
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */
.topbar {
  background: #fff6eb;
  border-bottom: 1px solid #eee2d4;
}

.topbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-weight: bold;
  font-size: 20px;
  color: #f47c20;
}

.logo span {
  background: #4caf50;
  color: #fff;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 14px;
}

/* =========================
   MAIN SECTION
========================= */
.impact-section {
  max-width: 1100px;
  margin: auto;
  padding: var(--impact-gap-lg) 24px;
}

/* =========================
   HEADER TEXT
========================= */
.impact-header {
  text-align: center;
  margin-bottom: var(--impact-gap-lg);
}

.impact-header h1 {
  color: #4F423B;
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  line-height: 72px;
  white-space: nowrap;
}

.mission-dhana {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  color: #EA580C;
  line-height: 42px;
  text-align: center;
  margin-bottom: 44px;
}

h2 {
  font-family: "Cormorant Garamond", serif;
}

.subtitle {
  font-size: 15px;
  color: #7a6a5c;
  margin: 15px 0 16px;
}

.description {
  font-size: 18px;
  color: #8a7a6c;
  text-align: center;
  /* text-align: justify; */
}

/* =========================
   FIRST CONTENT BLOCK
========================= */
.impact-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: var(--impact-gap-lg);
}

/* =========================
   EXTENDED SECTION
========================= */
.impact-extended {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px var(--impact-gap-lg);
}

/* =========================
   ROW LAYOUT
========================= */
.impact-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  margin-bottom: var(--impact-gap-lg);
}

.impact-row.reverse {
  grid-template-columns: 260px 1fr;
}

.impact-row:last-child {
  margin-bottom: 0;
}

/* =========================
   TEXT CONTENT
========================= */
.impact-text h2 {
  font-size: 36px;
  color: #4F423B;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.impact-text p {
  font-size: 16px;
  color: #7A6A61;
  line-height: 1.6;
  margin-bottom: clamp(12px, 2.5vw, 18px);
}

.impact-highlight {
  font-size: 11px;
  letter-spacing: 1px;
  color: #7A6A61;
  margin-top: 12px;
  font-family: "Cormorant Garamond", serif;
}

/* =========================
   IMAGES
========================= */
.impact-image-img {
  width: 100%;
  height: auto;
}

/* =========================
   DIVIDER
========================= */
.section-divider {
  width: 100%;
  height: 2px;
  background-color: #FDF0E4;
  margin: clamp(24px, 4vw, 40px) 0 0;
}

/* =========================
   METRICS
========================= */
.impact-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 5vw, 40px);
  margin-top: var(--impact-gap-lg);
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 48px;
  color: #4F423B;
  margin-bottom: 6px;
}

.metric span {
  font-size: 14px;
  letter-spacing: 1px;
  color: #7A6A61;
  font-family: "Cormorant Garamond", serif;
}

/* =========================
   TABLET
========================= */
@media (max-width: 900px) {
  .impact-header h1 {
    font-size: 48px;
    line-height: 1.1;
    white-space: normal;
  }
}

/* =========================
   RESPONSIVE LAYOUT (MOBILE FIX)
========================= */
@media (max-width: 768px) {

  .impact-content,
  .impact-row,
  .impact-row.reverse {
    grid-template-columns: 1fr;
  }

  /* IMAGE FIRST */
  .impact-content img,
  .impact-row img {
    order: 1;
  }

  /* TEXT SECOND */
  .impact-content .impact-text,
  .impact-row .impact-text {
    order: 2;
  }

  .impact-image-img {
    max-width: 100%;
    margin: 0 auto clamp(24px, 4vw, 32px);
    display: block;
  }

  .impact-text {
    text-align: left;
  }

  .impact-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .impact-header {
    margin-bottom: var(--impact-gap);
  }

  .impact-row,
  .impact-content {
    margin-bottom: var(--impact-gap);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 640px) {
  .impact-header h1 {
    font-size: 30px;
  }
  .description {
  font-size: 18px;
  color: #8a7a6c;
  /* text-align: center; */
   text-align: justify; 
}
}

/* =========================
   DESKTOP FULL-WIDTH OVERRIDE
========================= */
@media (min-width: 1024px) {
  .topbar-container,
  .impact-section,
  .impact-extended {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }
}
