@media (max-width: 980px) {
      .links { display: none; }
      .mobileMenu { display: block; }
  .nav { position: relative; }

  .links.is-open {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(251, 250, 245, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .links.is-open a {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .links.is-open a:hover {
    background: rgba(70, 152, 47, 0.08);
  }

      .hero { min-height: auto; padding: 54px 0 68px; }
      .heroInner, .storyGrid, .ctaInner { grid-template-columns: 1fr; }
      .visual { min-height: 520px; order: -1; }
      .cards { grid-template-columns: repeat(2, 1fr); }
      .campaignGrid, .founderGrid { grid-template-columns: 1fr; }
      .ctaInner { text-align: center; justify-items: center; }
    }

    @media (max-width: 620px) {
      .nav { height: 74px; width: min(100% - 28px, 1180px); }
      .brand img { width: 62px; }
      .brandText strong { font-size: 13px; }
      .brandText span { font-size: 10px; }
      .heroInner, .container, .footerInner { width: min(100% - 28px, 1180px); }
      .hero { padding: 36px 0 58px; }
      .heroInner { gap: 30px; }
      .visual { min-height: 410px; }
      .photoMain { width: 245px; border-width: 8px; }
      .photoSmall.one { width: 86px; height: 86px; left: 8px; top: 88px; border-width: 5px; }
      .photoSmall.two { width: 78px; height: 78px; right: 0; bottom: 86px; border-width: 5px; }
      .photoSmall.three { width: 62px; height: 62px; left: 76px; bottom: 52px; border-width: 5px; }
      .floatingCard { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -12px; border-radius: 22px; }
      .quickStats, .cards { grid-template-columns: 1fr; }
      .heroActions a { width: 100%; }
      .section { padding: 68px 0; }
      .storyMedia { min-height: 360px; }
      .storyPhoto.big { width: 82%; }
      .storyPhoto.small { width: 48%; }
      .campaignPhoto { height: 180px; }
      .footerInner { flex-direction: column; text-align: center; }
    }

@media (max-width: 980px) {
  .projectsHeroInner,
  .projectFeature {
    grid-template-columns: 1fr;
  }

  .projectsHero {
    padding: 86px 0 70px;
  }

  .projectGrid,
  .processGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projectImage,
  .projectImage img {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .projectsHero {
    padding: 58px 0 56px;
  }

  .projectsHeroCard {
    border-radius: 26px;
    padding: 28px;
  }

  .projectsHeroCard strong {
    font-size: 36px;
  }

  .projectImage {
    border-width: 6px;
    border-radius: 24px;
  }

  .projectImage,
  .projectImage img {
    min-height: 260px;
  }

  .projectMeta,
  .projectGrid,
  .processGrid {
    grid-template-columns: 1fr;
  }

  .projectPlaceholder {
    height: 190px;
  }

  /* BLOG PAGE */

@media (max-width: 1024px) {

  .featuredGrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blogGrid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {

  .blogHero {
    min-height: 380px;
    padding: 80px 0;
  }

  .blogHeroContent {
    padding: 0 20px;
  }

  .blogHero h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .blogHero p {
    font-size: 16px;
  }

  .featuredBlog {
    padding: 70px 0;
  }

  .featuredImage img {
    height: 320px;
  }

  .blogGrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

@media (max-width: 480px) {

  .blogHero h1 {
    font-size: 34px;
  }

  .blogHero p {
    font-size: 15px;
  }

  .featuredContent h2 {
    font-size: 28px;
  }

  .featuredImage img {
    height: 250px;
  }

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

}


@media (max-width: 768px) {
  .nav {
    height: 74px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 45px;
  }

  .brandText strong {
    font-size: 13px;
  }

  .brandText span {
    font-size: 10px;
    letter-spacing: .18em;
  }

  .donateBtn {
    padding: 9px 14px !important;
    font-size: 13px !important;
    min-width: auto !important;
    width: auto !important;
    border-radius: 999px;
    line-height: 1.2;
  }

  .mobileMenu {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .donateBtn {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .brand img {
    width: 40px;
  }
}

/* DONATE PAGE */

@media (max-width:1024px){

    .donationGrid{
        grid-template-columns:repeat(2,1fr);
    }

    .paymentBox{
        grid-template-columns:1fr;
    }

}

@media (max-width:768px){

    .donationGrid{
        grid-template-columns:1fr;
    }

    .impactGrid{
        grid-template-columns:1fr;
    }

    .donateHero{
        padding:100px 0 80px;
    }

    .donateHero h1{
        font-size:48px;
    }

}

@media (max-width:480px){

    .donateHero h1{
        font-size:38px;
    }

    .donateHero p{
        font-size:16px;
    }

}

/* BLOG PAGE */

@media (max-width: 1100px){

  .blogLayout{
      grid-template-columns: 1fr;
      gap:40px;
  }

  .blogSidebar{
      order:-1;
  }

}

@media (max-width:768px){

  .blogBanner{
      padding:80px 0;
  }

  .blogBanner h1{
      font-size:42px;
  }

  .blogPostImage img{
      height:280px;
  }

  .blogMeta{
      flex-wrap:wrap;
      gap:12px;
  }

}

@media (max-width: 768px) {
  .donateBtn {
    min-width: 140px;
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (max-width:480px){

  .blogBanner h1{
      font-size:34px;
  }

  .blogPostContent{
      padding:24px;
  }

  .recentPost{
      flex-direction:column;
      align-items:flex-start;
  }

  .recentPost img{
      width:100%;
      height:160px;
  }

}
}


/* DONATION MODAL — SMALL PHONES */

@media (max-width: 430px) {
  .donationModal {
    align-items: flex-end;
    padding: 0;
  }

  .donationOverlay {
    background: rgba(8, 41, 98, .58);
    backdrop-filter: blur(10px);
  }

  .donationPopup {
    width: 100%;
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
    overflow-y: auto;
  }

  .donationSlider {
    width: 300%;
    align-items: stretch;
  }

  .donationStep {
    width: 100%;
    padding: 26px 18px 30px;
    min-height: auto;
  }

  .closeDonation {
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .donationStep h2 {
    font-size: 32px;
    line-height: 1.05;
    margin-bottom: 10px;
    padding-right: 38px;
  }

  .donationStep p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .donationStep label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .donationStep input,
  .donationStep select {
    padding: 13px 14px;
    border-radius: 13px;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .paymentChoiceGrid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }

  .paymentChoice {
    min-height: 88px;
    border-radius: 20px;
    padding: 16px 18px;
    align-items: flex-start;
  }

  .paymentChoice span {
    font-size: 24px;
  }

  .paymentChoice small {
    font-size: 13px;
  }

  .selectedPaymentBadge {
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 16px;
  }

  .modalNext,
  .submitDonation,
  .modalBack {
    padding: 14px;
    font-size: 14px;
  }

  .stepActions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cardRow {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 360px) {
  .donationStep {
    padding: 22px 14px 26px;
  }

  .donationStep h2 {
    font-size: 29px;
  }

  .paymentChoice {
    min-height: 82px;
  }

  .paymentChoice span {
    font-size: 22px;
  }
}

/* DONATION MODAL — SAMSUNG S7 AND SMALL PHONES */

@media (max-width: 430px) {
  .donationModal {
    align-items: center;
    padding: 14px;
  }

  .donationPopup {
    width: 100%;
    max-height: 86vh;
    border-radius: 30px;
    overflow-y: auto;
  }

  .donationStep {
    padding: 34px 18px 22px;
  }

  .donationStep h2 {
    font-size: 30px;
  }

  .donationStep p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .donationStep input,
  .donationStep select {
    height: 44px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .paymentChoice {
    height: 66px;
    border-radius: 20px;
  }

  .paymentChoice span {
    font-size: 22px;
  }

  .closeDonation {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .cardRow {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 360px) {
  .donationStep {
    padding: 32px 14px 20px;
  }

  .donationStep h2 {
    font-size: 27px;
  }

  .donateLabel {
    font-size: 10px;
    padding: 8px 12px;
  }

  .paymentChoice {
    height: 62px;
  }
}


@media (max-width: 768px) {
  .impactBox {
    grid-template-columns: 1fr;
    padding: 34px 24px;
    border-radius: 30px;
  }

  .whyGrid {
    grid-template-columns: 1fr;
  }

  .homeCTACard {
    padding: 46px 24px;
    border-radius: 30px;
  }
}

@media (max-width: 768px) {
  .aboutStoryGrid,
  .valuesGrid,
  .workSteps {
    grid-template-columns: 1fr;
  }

  .aboutStoryGrid {
    gap: 28px;
  }
}



@media(max-width:768px){

.blogPreviewGrid{
    grid-template-columns:1fr;
}

.blogPreviewCard img{
    height:240px;
}

}