/* ===== CSS Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* ===== Banner Image ===== */
.sdg-bg-photo {
  width: 100%;
  max-height: 550px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.sdg-image {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
}

/* ===== SDG Content Section ===== */
.sdg-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 50px 80px;
  background-color: #ffffff;
}
.sdg-heading {
  font-size: 2.5rem;
  font-weight: bold;
  color: rgb(6, 129, 190);
  margin-bottom: 20px;
}
.sdg-logo{
  width: 800px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: space-around;
  text-align: center;
}
.sdgs-logo img{
  width: 250px;
  height: 250px;
  margin-top: 70px;
  margin-bottom: 40px;
}
.sdg-logo img {
  margin-top: 40px;
  width: 300px;
  height: 300px;
  margin-bottom: 40px;
}

.sdg-head-img {
  width: 100%;
  text-align: left;
  margin: 40px 0;
}

.sdg-head-img img {
  max-width: 25%;
  margin-left: 60px;
  height: auto;
  display: inline-block;
}

.sdg-content,
.sdg-container p {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #444;
  max-width: 800px;
  margin: 0;
}
.sdg-containers{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 100px;
  padding: 50px 80px;
  background-color: #ffffff;
}
.sdg-contents,
.sdg-containers p {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #444;
  max-width: 900px;
  margin: 0;
}

.sdg-container p:last-child {
  font-size: 1rem;
  color: #666;
  margin-top: 20px;
}
.sdg-containers{
   display: flex;
   flex-direction: row;
   align-items: center;
   gap: 100px;
   padding: 50px 80px;
   background-color: #ffffff;
}
/* ===== Carousel Section ===== */
.carousel-wrapper {
  padding: 0px 0;
  background-color: #f0f0f0;
}

.carousel-track {
  background-color: #ececec;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-items: left;
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 300px;
  background-color: rgb(231, 230, 230);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  padding-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.carousel-card img {
  width: 250px;
  height: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.carousel-card h3 {
  margin: 12px 0 16px;
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 600;
}

/* ===== Info Box Section ===== */
.sdg-info-box {
  background-color: #d3cece;
  padding: 20px 80px;
}

.sdg-info-box h2 {
  font-size: 2rem;
  color: #0681be;
  margin-bottom: 20px;
}

.sdg-info-box ol,
.sdg-info-box ul {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  padding-left: 25px;
  margin-top: 10px;
}

.sdg-info-box li {
  margin-bottom: 10px;
}

/* ===== Contribution Section ===== */
.sdg-contribution-section {
  background-color: #d8d6d655;
  padding: 60px 80px;
}

.sdg-contribution-section h2 {
  font-size: 2rem;
  color: #0681be;
  margin-bottom: 30px;
  text-align: left;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.corousel-image{
  position:relative;
}
.corousel-image .overlay-image{
  position: absolute;
  bottom: 5px;
  right: 26px;
  border-radius: 0px 0px 7px 0px;
  width: 100px;
  height:100px;
}

.contribution-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.contribution-card:hover {
  transform: scale(1.03);
}

.contribution-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.contribution-card p {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
  padding: 15px;
  margin: 0;
}

/* ===== Coordinator Section ===== */
.coordinator-section {
  padding: 40px 20px;
  background: #f8f8f8;
  text-align: left;
}

.coordinator-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #0681be;
  margin-left: 60px;
}

.coordinator-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.coordinator-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 350px;
  transition: transform 0.3s ease;
  text-align: center;
}

.coordinator-card:hover {
  transform: translateY(-5px);
}

.coordinator-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

.coordinator-card h3 {
  font-size: 1.2rem;
  margin: 15px 0 5px;
  color: #1a1a1a;
}

.coordinator-card p {
  font-size: 1rem;
  color: #555;
}
/* ===== Ecosystem Section ===== */

.ecosystem-container{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-right: 0;
}
.ecosystem-header h1{
    font-size:28px ;
    color: rgb(8, 128, 171);
}
.eco-system-content{
    padding-top: 80px;
    padding-left: 100px;
}
.ecosystem-header p{
    font-size: 16px;
    color: black;
    margin-top: 20px;
    margin-bottom: 20px;
}
.ecosystem-points .points-header{
    font-size: 22px;
    color: rgb(6, 131, 11);
    margin-bottom: 10px;
    margin-top: 10px;
}
.ecosystem-points .points-para{
    font-size: 16px;
    color: black;
    margin-bottom: 20px;
    margin-top: 20px;
}
.points-center .points-center-list{
    margin-left: 100px;
    margin-top: 10px;
    margin-bottom: 10px;
}
/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .sdg-bg-photo,
  .sdg-image {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .sdg-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px 20px;
  }

  .sdg-logo img {
    margin-top: 0;
    width: 200px;
  }
  .carousel-track {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding: 0 10px;
    gap: 20px;
  }

  .carousel-card {
    width: 100%;
  }

  .carousel-card img {
    width: 100%;
    height: auto;
  }

  .sdg-head-img img {
    max-width: 60%;
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .sdg-container {
    padding: 20px;
    gap: 20px;
  }

  .sdg-bg-photo,
  .sdg-image {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .sdg-container p:last-child {
    margin-top: 210px;
    position: absolute;
    font-size: small !important;
  }

  .sdg-heading {
    width: 100%;
    font-size: 1.3rem;
    text-align: center;
    background-color: rgba(255, 234, 0, 0.311);
  }

  .sdg-content {
    text-align: justify;
    font-size: 14px !important;
  }

  .sdg-logo img {
    width: 180px;
    margin-bottom: 110px;
  }

  .sdg-head-img {
    text-align: center;
    height: auto;
    margin: 10px 0;
  }

  .sdg-head-img img {
    background-color: rgba(255, 234, 0, 0.311);
  }

  .carousel-track {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    padding: 0 10px;
  }

  .carousel-card {
    width: 100%;
  }

  .carousel-card img {
    width: 80%;
    height: auto;
  }
  .carousel-card:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
.carousel-card h3{
  max-width: 90%;
  margin-left: 20px;
  font-weight: bolder;
  background-color: rgba(190, 21, 199, 0.416);
}
  .sdg-info-box,
  .sdg-contribution-section {
    padding: 20px;
  }

  .sdg-info-box h2,
  .sdg-contribution-section h2,
  .coordinator-section h2 {
    font-size: 1.5rem;
    background-color: rgba(255, 234, 0, 0.311);
    text-align: center;
    margin-left: 0;
  }

  .coordinator-grid {
    flex-direction: column;
    align-items: center;
  }

  .coordinator-card {
    width: 90%;
  }

  .contribution-card img {
    height: 180px;
  }

  .modal-content {
    width: 95%;
    height: 80%;
  }

  .close-button {
    top: 5px;
    right: 15px;
    font-size: 25px;
  }
}
