/* custom responsive css  */

@media (max-width: 1600px) {
  .target-card {
    display: flex;
    /* grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); */
    width: 100%;
    max-width: 100%;
  }

  .targets-grid {
    gap: 15px;
  }
}

@media (max-width: 1500px) {
  .newsletter p {
    display: flex;
    flex-direction: column;
  }
.members-menu {
  padding: 15px;
}
  .things-grid {
    /* max-width: 1200px; */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    gap: 20px;
    justify-content: space-evenly;
  }

  .cards-container5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
  }

  .wpcf7-spinner {
    margin: 0;
  }
  .become-main {
    justify-content: center;
  }
  .logo-section
  {
    margin-left: 0;
  }
  .social-icons 
  {
    margin-left: 0;
  }
}

@media (max-width: 1300px) {
  .main {
    display: block;
    flex-direction: column;
    align-items: center;
  }

  .logo-section {
    margin: 0;
  }
  .logo-section img 
{
  width: 60px;
}

  .sdg-icon {
    width: 80px;
    height: 80px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s;
  }

  .circle-wrapper {
    display: none;
  }

  .circle-main {
    min-height: 140px;
  }

  .head {
    height: 0;
  }

  .main-style {
    display: none;
  }

  .container-box {
    display: block;
  }

  .sdg-icons {
    text-align: center;
    position: absolute;
    top: 18%;
  }

  .things-grid {
    /* max-width: 1200px; */
           display: grid
;
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }

  /* Header area */
  .map-header {
    width: 100%;
    margin-bottom: 20px;
    display: block !important;
  }

  .thing-item {
    max-width: 100%;
  }

  .indicator-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none;
  }

  .indicator-btn img {
    width: 100px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
  }

  .indicator-btn.active img {
    border: 3px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
  }

  /* Map Image Container */
  .map-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
  }

  .map-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
  }

  .map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
  }

  .map-image.active {
    opacity: 1;
    pointer-events: auto;
  }

  .head::before {
    background-color: transparent;
    z-index: 9999;
    position: relative;
  }

  #popup img {
    max-width: 40vw;
    max-height: 40vh;
    /* display: none; */
  }

  #popup-img_1 {
    display: none !important;
  }

  #popup {
    display: none !important;
    position: absolute;
    top: 70%;
    left: 49%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: white;
    padding: 10px;
    border-radius: 10px;
  }

  .popup-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }

  .close-btn {
    position: absolute;
    top: 30%;
    right: 16%;
    font-size: 28px;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
  }

  .popup-content {
    position: absolute;
    top: 30%;
    margin: 0 auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #fff;
    position: absolute;
    left: 13%;
    width: 73%;
    margin: 0 auto;
  }
  .main-about1 p
  {
    font-size: 16px;
    margin-top: 55px;
  }
}

@media (max-width: 1200px) {
  .logo-section h4 {
    margin: 0;
  }

  .sdg-icon {
    width: 80px;
    height: 80px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s;
  }

  .circle-wrapper {
    display: none;
  }

  #popup-img_1 {
    display: none !important;
  }

  .head {
    height: 0;
  }

  .main-style {
    display: none;
  }

  .container-box {
    display: block;
  }

  .sdg-icon {
    text-align: center;
  }
  .become-main {
    max-width: 1150px;
    justify-content: center;
  }
  .become-form {
    padding: 25px 20px;
    min-width: 325px;
  }
}

@media (max-width: 1100px) {
  .circle-wrapper {
    left: -13%;
    transform: translate(-50%, -50%);
  }
  .targets-grid {
    display: grid
;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
  .awesome-button
  {
    font-size: 14px;
  }

  .social-icons {
    margin-left: 0px;
  }

  .container-box {
    display: block;
  }

  .circle-wrapper {
    display: none;
  }

  .popup-content {
    display: block;
    position: absolute;
    left: 5%;
    width: 90%;
    margin: 0 auto;
  }

  #popup img {
    max-width: 40vw;
    max-height: 40vh;
    /* display: none !important; */
  }

  #popup-img_1 {
    display: none !important;
  }

  .head {
    height: 0;
  }

  .sdg-icon {
    width: 80px;
    height: 80px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s;
  }

  .sdg-icons {
    text-align: center;
    top: 21%;
  }

  .main-style {
    display: none;
  }

  .contact-main {
    flex-wrap: wrap;
    justify-content: center;
  }
  .things-grid 
  {
            display: grid
;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  nav 
  {
    gap: 20px;
  }
}

@media (min-width: 767px) and (max-width: 1024px) {
  .sdg-subtitle {
    font-size: 16px;
    max-width: 615px;
  }

  .sdg-title5 {
    font-size: 2.8rem;
  }
    header
  {
    padding: 0 15px;
  }
}

@media (min-width: 1023px) and (max-width: 1440px) {
  .sdg-subtitle {
    font-size: 24px;
    max-width: 615px;
  }

}

@media (max-width: 991px) {
  .grid-container {
    
    gap: 20px;
  }
  .newscard {
    width: 47%;
  }
  .no-end-poverty {
    flex-wrap: wrap;
    padding: 30px 0;
  }

  .boxgoals {
    flex-direction: row;
    align-items: center;
  }
  .boxgoals h3 {
    text-align: left;
  }

  .boxgoals p {
    text-align: left;
  }
  .img-poverty_goal {
    text-align: justify;
  }
  .become-form {
    padding: 25px 0px;
    min-width: 290px;
  }
  .img-poverty_goal img {
    width: 100%;
    height: 100%;
    margin: 0;
    /* border-radius: 8px 0 0 8px; */
  }

  .target-text p {
    max-width: 100%;
  }

  .get-type {
    text-align: center;
  }

  .main-card-thing {
    padding: 30px 0;
  }

  .sdg-box5::after {
    display: none;
  }

 

  .heading-red {
    margin: 0;
  }

  .things-to-do {
    padding: 30px 0;
  }

  .sdg-title5 {
    font-size: 2.8rem;
  }

  .circle-poverty1,
  .circle-poverty2,
  .circle-poverty3 {
    display: none;
  }

  .bg-poverty1 {
    flex-wrap: wrap;
  }

  .target-card {
    margin: 20px 0;
    max-width: 100%;
  }

  .targetcard2 {
    display: block;
    margin: 20px 0;
  }

  .form-row p {
    flex-direction: column;
  }

  .card {
    flex: 0 1 calc(50% - 20px);
    /* 2 per row on medium screens */
  }

  .sdg-icon:hover {
    transform: scale(1.1);
  }

  .close-btn i::after {
    content: "";
    position: relative;
    right: 20%;
    transform: translate(-50%, -50%);
    top: 16px;
  }

  .popup-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }

  .popup-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #fff;
  }

  .close-btn {
    right: 8%;
  }

  .main-style {
    display: none;
  }

  body {
    padding: 0;
  }

  .circle-wrapper {
    display: none;
  }

  .circle-main {
    min-height: 325px;
  }

  #popup {
    display: none !important;
  }

  .social-icons {
    gap: 5px;
    margin: 0;
  }

  .circle-wrapper {
    left: -50%;
    top: 20%;
    transform: translate(-50%, -50%);
  }

  .circle-wrapper {
    left: -17%;
    transform: translate(-50%, -50%);
  }

  .social-icons {
    display: none;
  }

  .map-header {
    display: block !important;
  }

  .map-wrapper {
    display: block !important;
  }

  .indicator-btn {
    display: block;
  }

  .main-about-info {
    padding: 0;
    flex-direction: column;
  }

  .contact-main .content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 25px 0;
  }
}

@media (max-width: 870px) {
  nav {
    gap: 15px;
  }

  .logo-section h4 {
    font-size: 16px;
  }
  select#sdg-selector {
    max-width: 45%;
}
.search-container {
  max-width: 100%;
}
#input-boxgoal {
    width: 100%;
}
}
@media (max-width: 800px) {
  .circle-wrapper {
    left: -100%;
    top: 20%;
    transform: translate(-50%, -50%);
  }
      .search-container {
        max-width: 55%;
    }

  nav {
    gap: 10px;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .targets-grid {
    flex-wrap: wrap;
    /* text-align: center; */
    justify-content: center;
  }
  .investor-grid .wpcf7-list-item {
    width: 100%;
  }
   .sdg-icon {
    width: 73px;
    height: 73px;
   }

  .newsletter4 p 
  {
    max-width: 700px;
  }
     .full-width-content {
      margin: 50px 0;
    }
  .sdg-icons
  {
    top: 20%;
  }
  .impact-achive 
  {
    padding-top:40px;
  }

  #input-boxgoal 
  {
    width: 73%;
    margin: 0 auto;
  }
  .poverty-main
  {
    margin-top: 70px;
  }
  .suggestion-box 
  {
        top: 28%;
        width: 100%;
        left: -3%;
    transform: translate(10px, 10px);
  }
  
select#sdg-selector 
  {
            max-width: 73%;
        margin: 0 auto;
  }
  .search-btn 
  {
    flex-wrap: wrap;
    justify-content: center;
  }
  .newscard {
    width: 100%;
    margin: 0 15px;
  }
  .sdg-subtitle h4 {
    font-size: 17px;
  }
  .sdg-title5 {
    font-size: 2rem !important;
  }
  .card-wrapper {
    display: block;
    margin: 20px 0;
  }

  .card {
    margin: 20px;
  }

  .breadcrumb {
    color: #000;
  }

  .things-to-do h2 {
    margin: 0;
  }

  .bg-poverty1 {
    flex-direction: column;
    height: auto;
  }

  .sdg-main5 {
    flex-direction: column;
    height: auto;
  }

  .image-flex {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .bg-poverty1 h4 {
    font-size: 16px !important;
  }

  .circle-main {
    min-height: 385px;
  }

  .thing-item {
    margin: 10px;
  }

  .get-type {
    text-align: center;
  }

  .logo-section img {
    height: 100%;
    
  }

  .targetcard2 {
    flex-wrap: wrap;
    /* text-align: center; */
    justify-content: center;
  }

  .circle {
    width: 300px;
    height: 300px;
  }

  .awesome-button {
    background: #000;
  }

  .circle img {
    width: 50px;
    height: 50px;
  }

  .central-box {
    flex-direction: column;
  }

  .central-box .left,
  .central-box .right {
    flex: none;
    width: 100%;
  }

  .map-wrapper {
    padding-top: 75%;
    /* Adjust for taller screens */
  }

  .close-btn {
    position: absolute;
    top: 30%;
    right: 6%;
    font-size: 20px;
  }

  .sdg-content {
    flex-direction: column;
    gap: 20px;
  }

  .main-sdg-img {
    max-width: 80%;
  }

  .sdg-text h2 {
    font-size: 20px;
  }

  .sdg-text p {
    font-size: 14px;
  }

  .circle-wrapper {
    width: 100%;
    height: 400px;
  }

  .icon {
    width: 60px;
    height: 60px;
  }

  .popup {
    padding: 15px;
  }

  .popup h2 {
    font-size: 18px;
  }

  .popup p {
    font-size: 14px;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  .head::before {
    display: none;
  }

  .social-icons a {
    display: none;
  }

  .logo {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 25px;
  }

  nav a {
    color: #fff;
  }

  nav.active {
    display: flex;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    border-radius: 10px;
    padding: 15px 0;
    margin-top: 50px;
    animation: animatedBG 3s ease infinite;
  }

  @keyframes animatedBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

  .menu-toggle {
    display: block;
    color: #000;
    align-self: flex-end;
    /* margin-bottom: 10px; */
    margin-top: -78px;
  }

  .head::after {
    display: none;
  }

  header {
    flex-direction: column;
    /* padding: 20px; */
    text-align: center;
  }

  nav a {
    font-size: 40px;
  }

  .left-buttons,
  nav {
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .hero h1 strong {
    font-size: 40px;
  }

  .main-card-thing {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }

  .sdg-main5 {
    gap: 2rem;
  }
  /* shreya 
 */
  .blog-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 6px;
  }

  .become-main {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    /* max-width: 900px; */
    padding: 5px 10px;
    text-align: center;
    justify-content: center;
  }

  .become-form {
    width: 100%;
    min-width: 150px;
    padding: 15px 0;
    text-align: center;
  }
  .become-main h2 {
    font-size: 25px;
  }
  .things-grid
  {
    display: flex
;
        flex-direction: column;
  }
}

@media (max-width: 650px) {
    .circle-main {
        min-height: 530px !important;
    }
}

@media (max-width: 600px) {
  .target-card p {
    max-width: 80vw;
  }
  .form-row {
    flex-direction: column;
  }
  .card .btn {
    width: 100%;
  }
      .privacy-policy .entry-title {
        font-size: 1.5rem;
    }
    .main-about1 {
        margin-top: 50px;
    }
    .entry-content p 
    {
      font-size: 15px;
    }

  .contact-main .content {
    gap: 50px;
  }

  .contact-box h2 {
    font-size: 25px;
  }

  .card {
    flex: 0 1 100%;
    /* 1 per row on mobile */
    text-align: center;
  }

  .bg-poverty1 {
    height: 70vh;
  }

  .bg-poverty1 h4 {
    font-size: 15px !important;
    text-align: center;
  }

  .thing-item {
    margin: 0;
  }

  .things-to-do {
    padding: 10px 0;
  }

  .newsletter p {
    font-size: 14px !important;
  }

  .no-end-poverty {
    flex-wrap: wrap;
    padding: 15px 0 !important;
  }

  p.sub {
    margin: 15px 0;
  }

  .contact-main {
    display: flex;
    /* max-width: 1500px; */
    justify-content: space-around;
    padding: 20px 0;
    flex-wrap: wrap;
  }

  .target-card {
    display:flex;
    /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important; */
    width: 100%;
    max-width: 100%;
  }

  .form-row input,
  .form-row .btn {
    width: 100%;
  }
  .blog-pagination a,
  .blog-pagination span {
    /* background-color: #00cc99; */
    color: white;
    font-weight: bold;
    width: 40px;
    height: 40px;
    text-align: center;
    align-items: center;
    display: flex;
    color: #000;
    justify-content: center;
    font-weight: 500;
    transition: 0.3s;
    border-right: 1px solid #eee;
  }

  .bl .latest-news p {
    font-size: 14px !important;
  }
  .sdg-subtitle h4 {
    font-size: 15px !important;
  }
  .cards-container5 {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .floating-icons .icon {
    width: 40px;
    height: 40px;
  }

  .sdg-logo {
    max-width: 100px;
  }

  .container {
    gap: 6px;
  }

  .map-wrapper {
    padding-top: 90%;
  }

  .circle-wrapper {
    height: 300px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }
  .become-main {
    max-width: 400px;
    gap: 7px;
    padding: 0 10px;
  }
  .become-form {
    min-width: 80px;
    padding: 8px 0;
  }
  .become-form h3 {
    font-size: 15px;
  }
      .main-about1 {
        margin-top: 180px;
    }
}

@media (max-width: 400px) {
  .circle-main {
    min-height: 550px !important;
  }
.entry-content p {
        font-size: 13px;
    }
  .wpcf7-response-output {
    font-size: 13px !important;
  }
  .entry-content
  {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .close-btn {
    top: 30%;
    right: 7%;
    font-size: 18px;
  }
 
    .entry-content p {
        font-size: 11px;
    }
}


/* new  */

/* single blog post(shreya) */

@media only screen and (max-width: 767px) {
  .blog-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 6px;
  }
  .latest-news {
    padding: 90px 0;
}
.main-goal-title h3 {
    /* text-align: center; */
    margin-top: 55px;
}
 
  .content {
    padding: 25px 20px;
  }

  .entry-title {
    font-size: 2rem;
  }
}

/* our vision css */

@media (max-width: 1024px) {
  .our-vision-wrapper {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .our-vision-content {
    order: 1;
  }
  .our-vision-image {
    order: 2;
  }

  .our-vision-content,
  .our-vision-image {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .our-vision-content h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .our-vision-section {
    padding: 40px 16px;
    margin-top: 55px;
  }
.sdg-box5 
{
  text-align: center;
}
  .our-vision-content h2 {
    font-size: 28px;
  }
h2 
{
  padding-top: 15px;
}
  .our-vision-content p {
    font-size: 16px;
    line-height: 1.5;
  }

  .our-vision-image img {
    max-width: 100%;
    border-radius: 6px;
  }
}

/* blog goal column */

@media (max-width: 767px) {
  .single-post .sdg-grid {
    display: block;
  }
  .single-post .sdg-card {
    width: 100%;
    margin: 20px auto;
            display: flex
;
        justify-content: flex-start;
        gap: 15px;
    }
  
}

/* Related Goals on Subscriber */

@media (max-width: 767px) {
  .related-goals-section {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
  }

  .related-goals-heading{
    margin: 30px 0 10px 0;
  }

  .related-goals-list {
    display: block;
  }
  .related-goal-card {
    width: 100%;
    margin: 20px auto;
  }
}
@media (max-width: 480px) {
  .rbn-card {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
      input.wpcf7-form-control.wpcf7-submit.has-spinner {
        width: 90% !important;
        margin: 25px auto;
    }
    .full-width-content {
      padding: 60px 10px; 
      margin: 50px 0;
    }
}



@media (max-width: 320px) {
  .main-about1 {
    margin-top: 480px;

  }
  .newscard .card-img img {
    width: 100%;
  }
}