@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

.hero-section {
  padding: 60px 10%;
}

.hero-title {
  line-height: 1.3;
  text-align: center;
}

.highlight {
  background: var(--bs-warning);
  color: var(--dark-color);
  border-radius: 20px;
  padding: 0 5px;
}

.hero-text {
  text-align: justify;
  font-size: 1rem;
  color: #444;
  margin-top: 1rem;
  font-weight: 500;
}

.btn-learn {
  background: var(--bs-warning);
  color: var(--dark-color);
  transition: all ease 0.5s;
}
.btn-learn:hover {
  border: 2px solid var(--bs-warning);
  color: var(--dark-color);
}

/* carousel */

.slider-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.slider-title {
  margin-bottom: 14px;
}

.infinite-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px 0;
}

.infinite-slider-track {
  display: flex;
  gap: 12px;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

@media (min-width: 1440px) {
  .infinite-slider-item {
    flex: 0 0 100%;
    padding: 8px;
  }
}
@media (min-width: 576px) {
  .infinite-slider-item {
    flex: 100%;
    padding: 8px;
  }
}

.infinite-slider-card {
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  border-radius: 10px;
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 30, 60, 0.04);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.infinite-slider-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.infinite-slider-card p {
  margin: 10px;
  font-weight: 600;
}

.infinite-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 18px rgba(10, 20, 40, 0.12);
}

.infinite-slider-nav.prev {
  left: 10px;
}

.infinite-slider-nav.next {
  right: 10px;
}

@media (min-width: 768px) {
  .infinite-slider-item {
    flex: 0 0 calc(50% - 12px / 2);
  }
}

@media (min-width: 1024px) {
  .infinite-slider-item {
    flex: 0 0 calc(33.333% - 12px * 0.66);
  }
}

.slider-controls {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3d7e2;
}

/* responsive: 2 per view at >=768, 3 per view at >=1024 */
@media (min-width: 768px) {
  .slide {
    flex: 0 0 calc(50% - 12px / 2);
  }
}

@media (min-width: 1024px) {
  .slide {
    flex: 0 0 calc(33.333% - 12px * 0.66);
  }
}

/* small helper */
.controls {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3d7e2;
}

/* nav buttons */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 18px rgba(10, 20, 40, 0.12);
}

.nav.prev {
  left: 10px;
}

.nav.next {
  right: 10px;
}

/* responsive: 2 per view at >=768, 3 per view at >=1024 */
@media (min-width: 768px) {
  .slide {
    flex: 0 0 calc(50% - 12px / 2);
  }
}

@media (min-width: 1024px) {
  .slide {
    flex: 0 0 calc(33.333% - 12px * 0.66);
  }
}

/* small helper */
.controls {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3d7e2;
}

/* Navigation */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

@media (max-width: 900px) {
  .card-item-carousel {
    flex: 0 0 50%;
  }
}

@media (max-width: 600px) {
  .card-item-carousel {
    flex: 0 0 100%;
  }
}

/* article-5 */
#information-article-5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#container-section-article-5 {
  padding: 50px;
}

#information-article-5 h3 {
  font-weight: 700;
}

#information-article-5 h3 span {
  color: #2e6e65;
}

#information-article-5 p {
  font-size: 16px;
  font-weight: 600;
  color: #6b6a6a;
}

.images-article-5 {
  flex: 1 1 45%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.images-article-5 img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.images-article-5 img.back {
  position: absolute;
  top: -60px;
  right: -30px;

  z-index: 0;
}

.images-article-5 img.front {
  position: relative;
  z-index: 1;
}

.images-article-5 img {
  width: 50%;
}

/* article-6 */
#header-article-6 h1 {
  font-size: 46px;
  font-weight: 700;
  width: 650px;
  text-align: center;
}

#header-article-6 h1 span {
  color: var(--dark-green);
}

#header-article-6 p {
  color: #6b6a6a;
  font-size: 16px;
  font-weight: 600;
  width: 800px;
}

#konten-article-6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#konten-article-6 h1 {
  background-color: var(--dark-green);
  border-radius: 50%;
  padding: 20px 30px 20px 30px;
  font-size: 46x;
  font-weight: 700;
  color: #fff;
}

#konten-article-6 h3 {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

#konten-article-6 p {
  font-size: 14px;
  color: #6b6a6a;
  font-weight: 600;
  text-align: center;
  width: 275px;
}

/* article grid */
#container-section-grid {
  padding: 50px;
}

.heading-desc p {
  color: #6b6a6a;
  font-size: 16px;
  font-weight: 600;
}

.heading-desc h1 {
  font-size: 46px;
  font-weight: 700;
}

.heading-desc span {
  color: var(--dark-green);
}

.card-list {
  color: #fff;
  width: 500px;
  padding: 100px;
  background: url("../resources/image/image-slider-article/Frame\ 1.png") center no-repeat;
}

.grid-container {
  margin: auto;
  padding: 20px;
  width: 600px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-grid {
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 5px 12px 30px rgba(44, 44, 44, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease-in-out;
}

.card-grid svg {
  fill: var(--dark-green);
  width: 100px;
  transition: fill 0.4s;
}

.card-grid h3 {
  font-size: 14px !important;
  font-weight: 700;
  color: var(--dark-green);
  transition: color 0.4s;
}

.card-grid p {
  font-size: 12px;
  font-weight: 500;
  color: #6b6a6a;
  transition: color 0.4s;
}

.card-grid:hover {
  transform: translateY(-5px);
  background-color: var(--dark-green);
  color: #fff;
}

.card-grid:hover svg {
  fill: #fff;
}

.card-grid:hover h3,
.card-grid:hover p {
  color: #fff;
}

.title-bergambar h1 {
  font-weight: 700;
}

.card {
  border: none;
  border-radius: 15px;
  min-height: 200px;
}

.card-body {
  border-radius: 15px;
}

.bg-article-main {
  background: url("../resources/image/article-bergambar/Rectangle\ 69.png") center/cover no-repeat;
}

.bg-article-left {
  background: url("../resources/image/article-bergambar/Rectangle\ 70.png") center/cover no-repeat;
}

.bg-article-right {
  background: url("../resources/image/article-bergambar/Rectangle\ 70\ \(2\).png") center/cover
    no-repeat;
}

.bg-article-bottom {
  background: url("../resources/image/article-bergambar/Rectangle\ 70\ \(1\).png") center/cover
    no-repeat;
}

.btn-article-bergambar {
  border-radius: 30px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
}

.desc-article-bergambar {
  font-weight: 700;
}

.bg-ajakan {
  background: url("../resources/image/ajakan/Rectangle\ 80.png") center/cover no-repeat;
}

.title-ajakan {
  font-size: 40px;
}

.card-ajakan {
  background: url("../resources/image/ajakan/Rectangle\ 80.png") cover no-repeat;
  border-radius: 40px;
  min-height: 300px;
}

.btn-ajakan {
  background-color: #86ee60;
  color: #000;
  font-weight: 600;
  border-radius: 20px;
  padding: 8px 20px;
  transition: 0.3s;
}

.btn-ajakan:hover {
  background-color: #7ad15c;
}

.card-edukasi {
  padding: 60px;
}

.title-edukasi {
  font-weight: 700;
  font-size: 40px;
}

.desc-article-edukasi {
  color: #ffff;
  width: 500px;
  font-size: 16px;
}

.card-edukasi {
  min-height: 200px;
  margin-top: 30px;
  border-radius: 20px;
}

/* bank sampah */

#bank-sampah {
  padding-top: 50px;
}

/* Header */
.header-bank-sampah {
  text-align: center;
  padding: 20px;
}

.header-bank-sampah h1 {
  color: var(--dark-green);
  margin: 0;
  font-weight: 700;
  font-size: 46px;
}

.subtitle {
  font-size: 16px;
  color: #6b6a6a;
  margin-top: 8px;
  font-weight: 600;
}

/* Tabs wrapper */
.tabs-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.tab {
  font-size: 18px;
  cursor: pointer;
  position: relative;
  padding: 5px;
  transition: color 0.3s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: #1b5e20;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tab:hover::after {
  transform: scaleX(1);
}

.tab.active {
  font-weight: bold;
  color: #1b5e20;
}

.tab.active::after {
  transform: scaleX(1);
}

.content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: none;
}

.content.active {
  display: flex;
  gap: 20px;
  opacity: 1;
  transform: translateY(0);
}

.list {
  flex: 1;
}

.list h4 {
  color: #1b5e20;
  margin-bottom: 10px;
}

.list-item {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #ccc;
  flex-direction: row;
}

#top-bottom {
  border-top: 1px solid #ccc;
}

.list-item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.list-item p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

.image-box {
  flex: 1;
}

.image-box img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .content.active {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image-box {
    order: -1;
    max-width: 600px;
    width: 100%;
  }

  .list {
    max-width: 600px;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 24px;
  }

  .tab {
    font-size: 16px;
  }

  .tabs {
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .header h1 {
    font-size: 20px;
  }

  .tab {
    font-size: 14px;
  }

  .list-item h3 {
    font-size: 14px;
  }

  .list-item p {
    font-size: 12px;
  }
}

/* slider konten */
.carbon-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.slider {
  position: relative;
  width: 1100px;
  max-width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 5px 12px 60px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.heading-slider {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.heading-slider h1 {
  font-weight: 700;
  text-align: center;
  font-size: 46px;
  color: #000;
  width: 620px;
}

.slides {
  display: flex;
  transition: transform 0.7s ease-in-out;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

.slide h2 {
  font-size: 36px;
  font-weight: 700;
  max-width: 500px;
  margin-bottom: 60px;
  color: #2e6e65;
  margin-bottom: 12px;
  font-weight: 700;
}

.slide p {
  font-size: 16px;
  color: #6b6a6a;
  max-width: 500px;
  font-weight: 600;
  line-height: 1.6;
}

.dots {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.dots .dot {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d6d6d6;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dots .dot:hover {
  transform: scale(1.1);
}

.dots .dot.active {
  background: #2e7d32;
}
