/* Base styles */
.blog-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  align-items: center;

}

.blog-body {
  display: flex;
  flex-direction: row;
  margin-right: 100px;
  margin-left: 100px;
}

.blog-body-extend {
  display: flex;
  flex-direction: row;
  margin-right: 100px;
  margin-left: 100px;

}


.blog-title{
  margin-right: 40px;

}

h3 {
  font-family: "Archivo" sans-serif;
  font-weight: 800;
  color: #003366;
  font-size: clamp(18px, 3vw, 26px);
  text-align: center;
  margin: 20px 0;

}

/* Specifically target the image container and text container */
.blog-img {
  margin: 0; /* Remove vertical margin to align properly */
  flex-shrink: 0; /* Prevent shrinking */
}

/* Disable scrolling on the body when the popup is open */
body:has(.popup-modal:target) {
  overflow: hidden;
}

/* Popup Modal */
.popup-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
}

/* Show the popup when it is targeted */
.popup-modal:target {
  display: block;
}

/* Transparent background that covers the entire screen */
.popup-background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 78%);
  cursor: pointer;
}

/* Popup content (image container) */
.popup-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevents clicks on the image from closing the popup */
}

/* Popup Image */
.popup-image {
  display: block;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain; /* Ensures the image fits within the container while maintaining aspect ratio */
  pointer-events: auto; /* Allows clicks on the image */
  border-radius: 15px;
}

.blog-img span{
  color: #ff6f2b;
}

.blog-img img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.blog-sub-img{
  display: grid;
  grid-template-columns: auto auto auto;
  grid-row-gap: 10px;
}
.blog-sub-img2{
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-row-gap: 10px;
}

.blog-sdg {
  display: flex;
  justify-content: flex-start;
  width: 50%;
  margin-top: 20px;
  max-width: 40px;
  max-height: 40px;
}


.blog-p {
  width: 50%; /* Set to exactly 50% width */
  padding: 0 0 0 20px; /* Add padding only on the left side */
}
.blog-p-extend{
  padding-top: 20px;
  margin-right: 100px;
  margin-left: 100px;
}

.blog-p-extend p {
  color: #004080;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: justify;
  
}

.blog-p-extend span {
  color: #004080;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: justify;
  font-weight: 800;
}

.blog-p-extend li{
  color: #004080;
  line-height: 1.8;
  font-size: 14px;
  text-align: justify;
}

.blog-p p {
  color: #004080;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: justify;
}

.blog-p span {
  color: #004080;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: justify;
  font-weight: 800;
}

.blog-p li{
  color: #004080;
  line-height: 1.8;
  font-size: 14px;
  text-align: justify;
}


@media screen and (max-height: 1024px) {
  /* Base styles */
.blog-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.blog-body {
  display: flex;
  flex-direction: row;

}

.blog-title{
  margin-right: 0px;

}

h3 {
  font-family: "Archivo" sans-serif;
  font-weight: 800;
  color: #005099;
  font-size: clamp(18px, 3vw, 26px);
  text-align: center;
  margin: 20px 0;

}

/* Specifically target the image container and text container */
.blog-img {
  width: 50%; /* Set to exactly 50% width */
  margin: 0; /* Remove vertical margin to align properly */
  flex-shrink: 0; /* Prevent shrinking */
}

.blog-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover; /* Ensures image covers the area nicely */
  margin: auto;
}

.blog-sdg {
  display: flex;
  justify-content: flex-start;
  width: 50%;
  margin-top: 20px;
  max-width: 40px;
  max-height: 40px;
}


.blog-p {
  width: 50%; /* Set to exactly 50% width */
  padding: 0 0 0 20px; /* Add padding only on the left side */
}
.blog-p p a li {
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: justify;
}

  
}
/* Responsive design */
@media screen and (max-width: 768px) {
  .blog-content {
    padding: 15px;

  }
  .blog-body {
    flex-direction: column; /* Stack vertically on mobile */
    margin-right: auto;
    margin-left: auto;
  }
  .blog-p-extend{
    padding-top: -20px;
    margin-right: auto;
    margin-left: auto;
  }

  .blog-title{
    margin-right: 0px;
  
  }
  .blog-img, .blog-p {
    width: 100%; /* Full width on mobile */
    padding: 20px 0; /* Reset padding */
  }

  h3 {
    font-size: 22px;
    margin: 30px 0;
  }



  .blog-p p a li{
    font-size: 15px;
    line-height: 1.6;
  }

  .sdg-img {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 480px) {
  .blog-content {
    padding: 15px;

  }
  .blog-body {
    flex-direction: column; /* Stack vertically on mobile */
    margin-right: auto;
    margin-left: auto;
  }

  .blog-title{
    margin-right: 0px;
  
  }
  
  .blog-img, .blog-p {
    width: 100%; /* Full width on mobile */
  
  }

  .blog-p-extend{

    margin-right: auto;
    margin-left: auto;
  }

  h3 {
    font-size: 20px;
    margin: 20px 0;
  }

  .blog-p p a li{
    font-size: 14px;
  }

  .blog-p{
    padding-bottom: 0px;
  }
  .blog-sdg {
    display: flex;
    justify-content: flex-start;
    width: 50%;
    margin-top: 10px;
    max-width: 20px;
    max-height: 20px;
  }
}

/* Background gradient */
.blog-content:first-child {
  background: linear-gradient(0deg, rgba(255,248,248,1) 30%, rgba(79,193,255,1) 100%);
  padding-top: 30px;
}