@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #3498db;
  --primary-color-dark: #2980b9;
  --text-dark: #2e2e2e;
  --text-light: #595959;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--extra-light);
  padding-top: 70px;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  text-align: center; 
  margin-bottom: 2rem;
}

.section__subheader {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-align: center; 
  margin-bottom: 0.5rem;
}

.section__description {
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--text-light);
  text-align: justify;
  padding: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .section__description {
    font-size: 0.875rem; 
    line-height: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section__description {
    font-size: 0.75rem; 
    line-height: 1.5rem;
    padding: 0.75rem; /
  }
}

@media (max-width: 480px) {
  .section__description {
    font-size: 0.7rem; 
    line-height: 1.4rem;
    padding: 0.5rem; 
    margin-bottom: 1.5rem;
  }
}

.section__description2 {
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--text-light);
  text-align: left;
}

@media (max-width: 1024px) {
  .section__description2 {
    font-size: 0.875rem; 
    line-height: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section__description2 {
    font-size: 0.75rem;
    line-height: 1.5rem;
    padding: 0.75rem; 
  }
}

@media (max-width: 480px) {
  .section__description2 {
    font-size: 0.7rem; 
    line-height: 1.4rem;
    padding: 0.5rem; 
    margin-bottom: 1.5rem;
  }
}

.btn {
  padding: 1rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  white-space: nowrap;
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color-dark);
}

.btn3 {
  outline: none;
  border: none;
  color: var(--primary-color);
  background-color: var(--white);
  white-space: nowrap;
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: bold;
}

.btn3:hover {
  background-color: var(#eaf3fa);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
}

header {
  background: linear-gradient(
    to bottom,
    rgba(52, 152, 219, 0.1),
     rgba(52, 152, 219, 0) 
  );
}

@media (max-width: 1024px) {
  .section__subheader {
    font-size: 0.875rem; 
  }

  .section__header {
    font-size: 2.5rem; 
  }
}

@media (max-width: 768px) {
  .section__subheader {
    font-size: 0.75rem; 
  }

  .section__header {
    font-size: 2rem; 
  }
}

@media (max-width: 480px) {
  .section__subheader {
    font-size: 0.7rem;
  }

  .section__header {
    font-size: 1.5rem; 
    margin-bottom: 1.5rem;
  }
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}


.wrapper2 {
  position: relative;
  width: 100%;
  height: 10vh;
}

.fade-line {
  width: 80%; 
  height: 2px; 
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    #3498db,
    rgba(0, 0, 0, 0)
  ); 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wrapper23 {
  position: relative;
  width: 100%;
  height: 10vh;
}

@media (max-width: 768px) {
  .fade-line1 {
    width: 80%; 
    height: 2px; 
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      #26ccca,
      rgba(0, 0, 0, 0)
    ); 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 769px) {
  .fade-line1 {
    display: none;
  }
}


.content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

.article-container {
    text-align: center;
    margin-bottom: 20px;
}

.article-container h1 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.article-container .date {
    font-size: 1rem;
    color: #888;
    margin-bottom: 20px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    gap: 20px; 
}

section.article {
    flex: 2;
    padding: 2px;
    text-align: justify;
    border-radius: 8px;
    margin-right: 100px;
    margin-left: 60px;
}

section.article img {
    width: 100%;
    aspect-ratio: 16/9; 
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover; 
}

section.article p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    word-spacing: 0;
    text-indent: 45px;
}

section.cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

section.cards::before {
    content: "Berita Lainnya";
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    color: #333;
}

.card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
    margin: auto;
}

.card h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card .date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.card img {
    max-width: 100%;
    height: 250px;
    width: 365px;
    border-radius: 8px;
    margin-bottom: 5px;
    object-fit: cover;
  }

@media (max-width: 768px) {
    .main-content {
        flex-direction: column; 
    }

    section.article {
        margin-right: 0;
        margin-bottom: 20px;
        margin-left: 0;
        font-size: 0.9rem;
    }

    section.article img {
        border-radius: 6px; 
        margin-bottom: 10px;
    }

    section.cards {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .article-container h1 {
        font-size: 0.8rem; 
    }

    section.article img,
    .card img {
        border-radius: 4px; 
    }

    section.cards::before {
        font-size: 1.2rem; 
    }
}

