/* Ensure body uses flex-box for layout */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  /* Remove default margin */
}

/* Main content should be flexible to push footer to the bottom */

main {
  flex: 1;
  /* Make main content flexible */
}

/* Your existing styles */

.profile-background {
  height: 500px;
  width: 100%;
  background-image: linear-gradient(rgba(9, 0, 77, 0.5), rgba(9, 0, 77, 0.3)),
    url(../asset/image/fotostruktural/IMG-20241219-WA0003.jpg);
  background-size: cover;
  background-position: center;
}

.profile-artikel-background {
  height: 500px;
  width: 100%;
  background-image: linear-gradient(rgba(9, 0, 77, 0.5), rgba(9, 0, 77, 0.3)),
    url(../asset/image/fotostruktural/labmcu/artikelbg.png);
  background-size: cover;
  background-position: center;
}

.profile-kegiatan-background {
  height: 500px;
  width: 100%;
  background-image: linear-gradient(rgba(9, 0, 77, 0.5), rgba(9, 0, 77, 0.3)),
    url(../asset/image/fotostruktural/labmcu/kegiatanbg.png);
  background-size: cover;
  background-position: center;
}

.profile-pengumuman-background {
  height: 500px;
  width: 100%;
  background-image: linear-gradient(rgba(9, 0, 77, 0.5), rgba(9, 0, 77, 0.3)),
    url(../asset/image/fotostruktural/labmcu/pengumumanbg.png);
  background-size: cover;
  background-position: center;
}

.artikel-container {
  height: auto;
  margin-bottom: 100px;
  padding-left: 7%;
  padding-right: 7%;
  font-family: "Ubuntu", serif;
  /* Ensure all text inside artikel-container uses Ubuntu */
}

.artikel-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  margin-top: 140px;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-left {
  flex: 0 0 30%;
  max-width: 250px;
  min-height: 500px;
  margin-top: 140px;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-left-1 {
  padding: 30px;
  border: 0.5px solid rgb(156, 154, 154);
  border-radius: 30px;
  background-color: #fff;
  min-height: 150px;
  font-family: "Ubuntu", serif;
  margin-bottom: 20px;
  /* Apply Ubuntu font */
}

.artikel-col-left-1 h2 {
  color: rgb(32, 140, 186);
  margin-bottom: 20px;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-left-1 .fa {
  margin-right: 10px;
  font-size: 16px;
  color: #4f738f;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900;
  /* Untuk ikon solid */
  /* Apply Ubuntu font */
}

.artikel-col-left-1 ul {
  margin-left: 10px;
  list-style: none;
  padding: 0;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-left-1 ul li {
  padding: 5px 0;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-left-1 ul li a {
  text-decoration: none;
  color: #a7a3a3;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.ul2-col-left-1 li a {
  color: #042642 !important;
  font-weight: 500;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.ul2-col-left-1 li p {
  margin-top: 10px;
  color: #a7a3a3;
  font-size: 12px;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-right {
  flex: 0 0 68%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 140px;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-right-1 {
  flex: 0 0 48%;
  box-sizing: border-box;
  margin-bottom: 20px;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.artikel-col-right img {
  width: 350px;
  height: 200px !important;
  border-radius: 40px;
  margin-bottom: 0;
}

.artikel-col-right-berita-cell img{
  object-fit: cover;
  object-position: justify-content;
}

.artikel-col-right .artikel-berita-col {
  flex-basis: 35%;
}

.artikel-col-right .artikel-col-left-1 .berita-grid .berita-grid-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.berita-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.berita-grid-image img {
  width: 100%;
  height: 220px !important;
  border-top-left-radius: 50px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 50px;
  border-bottom-left-radius: 0;
}

.berita-grid-text {
  padding: 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
}

.berita-grid-text h2 {
  padding: 0;
  font-size: 16px;
  margin: 0;
  color: #1f1e1e;
  font-family: "Ubuntu", serif;
  /* Apply Ubuntu font */
  line-height: 1.4;
}

#title-header {
  text-decoration: none;
  color: inherit;
  background: none;
  border-radius: none;
  display: block;
  /* Pastikan a tag tampil sebagai blok */
  margin: 0;
  /* Hilangkan margin */
  padding: 0;
  /* Hilangkan padding */
  margin-top: -20px;
}

#title-header h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  /* Pastikan tidak ada margin atas/bawah */
  padding: 0;
  /* Pastikan tidak ada padding */
  color: #252525;
  font-family: "Ubuntu", serif;
  text-align: left;
  line-height: 1.4;
  /* Jaga jarak antar baris jika ada teks lebih dari satu baris */
}

.berita-grid-text p {
  font-size: 14px;
  font-family: "Ubuntu", serif;
  color: #726c6c;
  line-height: 1.4;
}

.berita-grid-text a {
  text-decoration: none;
  color: #d6d6d6;
  display: inline-block;
}

#btnbaca {
  font-family: "Ubuntu", serif;
  margin-top: -40px;
  background: none;
  border-radius: 0;
  border: none;
  font-size: 16px;
  color: #042642;
  padding: 0;
}

.berita-grid-text ul {
  font-family: "Ubuntu", serif;
  list-style: none;
  padding: 0;
  margin-top: -10px;
  margin-bottom: -5px;
  display: flex;
}

.berita-grid-text ul li {
  display: inline-block;
  margin-right: 10px;
}

.artikel-col-left,
.artikel-col-right {
  min-height: 500px;
}

.artikel-row {
  overflow: hidden;
}

.artikel-col-left,
.artikel-col-right {
  margin-top: 0;
}

.artikel-col-left-1 ul li #activepage {
  color: #000;
}

.row-divider {
  height: 200px;
  width: 100%;
}

.fa-calendar {
  color: #726c6c !important;
}

/* Media Query untuk perangkat dengan lebar layar hingga 1000px */

@media (max-width: 1000px) {
  .profile-background {
    height: 400px;
  }
  .artikel-col-left,
  .artikel-col-right {
    flex: 0 0 48%;
    max-width: 48%;
  }
  .artikel-row {
    gap: 10px;
  }
}

/* Media Query untuk perangkat dengan lebar layar hingga 768px */

@media (max-width: 768px) {
  .profile-background {
    height: 300px;
  }
  .artikel-container {
    padding-left: 5%;
    padding-right: 5%;
  }
  .artikel-row {
    flex-direction: column;
    margin-top: 100px;
    gap: 20px;
  }
  .artikel-col-left,
  .artikel-col-right {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;
  }
  .artikel-col-right .artikel-col-right-1,
  .artikel-col-right img {
    width: 100%;
    height: auto;
  }
  .berita-grid-text h2 {
    font-size: 14px;
  }
  #btnbaca {
    width: 100%;
  }
}

/* Media Query untuk perangkat dengan lebar layar hingga 512px */

@media (max-width: 512px) {
  .profile-background {
    height: 250px;
  }
  .artikel-container {
    padding-left: 4%;
    padding-right: 4%;
  }
  .artikel-col-left,
  .artikel-col-right {
    flex: 0 0 100%;
  }
  .artikel-row {
    gap: 15px;
  }
  .berita-grid-text h2 {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .profile-background {
    height: 200px;
  }
  .artikel-container {
    padding-left: 3%;
    padding-right: 3%;
  }
  .artikel-row {
    gap: 10px;
    flex-direction: column;
    /* Ensure column layout for small screens */
    margin-top: 20px;
  }
  .artikel-col-left,
  .artikel-col-right {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;
  }
  .artikel-col-left-1 h2,
  .berita-grid h2 {
    font-size: 16px;
  }
  .artikel-col-left ul li p {
    font-size: 10px;
  }
  .berita-grid-text h2 {
    font-size: 12px;
    line-height: 1.2;
    /* Adjust line-height for readability */
  }
  .berita-grid-text p {
    font-size: 12px;
    /* Adjust paragraph font size */
  }
  .footer {
    bottom: 0 !important;
    /* Position at the bottom */
    position: relative !important;
    /* Ensure relative positioning */
  }
}
