/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --hue: 174;
  --sat: 63%;
  --first-color: hsl(var(--hue), var(--sat), 40%);
  --first-color-alt: hsl(var(--hue), var(--sat), 36%);
  --title-color: hsl(var(--hue), 12%, 15%);
  --text-color: hsl(var(--hue), 8%, 35%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #fff;

  /*========== Font and typography ==========*/
  --body-font: "Open Sans", sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: 0.938rem;
  --tiny-font-size: 0.625rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.25rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: rgb(255, 255, 255);
  /* background-color: #a7b9f7; */
  background-color: white;
  /* background: linear-gradient(to right, #ffffff, #a7b9f7); */
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: -1rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  /* margin-bottom: 1.5rem; */
}

#berita .card__button {
  display: block;
  background-color: var(--first-color);
  padding: 0.75rem 1rem; /* Mengurangi lebar padding */
  border-radius: 0.25rem;
  color: white;
  font-weight: 600;
  text-align: center;
  margin: 0 auto; /* Menengahkan secara horizontal */
  max-width: 150px; /* Menetapkan lebar maksimum */
  width: 100%; /* Menggunakan lebar penuh dari container */
}

#konsul .card__button {
  display: block;
  background-color: var(--first-color);
  padding: 0.75rem 1rem; /* Mengurangi lebar padding */
  border-radius: 0.25rem;
  color: white;
  font-weight: 600;
  text-align: center;
  margin: 0 auto; /* Menengahkan secara horizontal */
  max-width: 150px; /* Menetapkan lebar maksimum */
  width: 100%; /* Menggunakan lebar penuh dari container */
}

.section__height {
  height: 100vh;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  z-index: var(--z-fixed);
  transition: 0.4s;
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__img {
  width: 32px;
  border-radius: 50%;
}

.nav__logo {
  color: var(--title-color);
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--container-color);
    box-shadow: 0 -1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
    width: 100%;
    height: 4rem;
    padding: 0 1rem;
    display: grid;
    align-content: center;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: 0.4s;
  }
}

.nav__list,
.nav__link {
  display: flex;
}

.nav__link {
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  color: var(--title-color);
  font-weight: 600;
}

.nav__list {
  justify-content: space-around;
}

.nav__name {
  font-size: var(--tiny-font-size);
  /* display: none;*/ /* Minimalist design, hidden labels */
}

.nav__icon {
  font-size: 1.5rem;
}

/*Active link*/
.active-link {
  position: relative;
  color: var(--first-color);
  transition: 0.3s;
}

/* Minimalist design, active link */
/* .active-link::before{
  content: '';
  position: absolute;
  bottom: -.5rem;
  width: 4px;
  height: 4px;
  background-color: var(--first-color);
  border-radius: 50%;
} */

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
/* Remove if you choose, the minimalist design */
@media screen and (max-width: 320px) {
  .nav__name {
    display: none;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__list {
    justify-content: center;
    column-gap: 3rem;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  /* .section {
    padding: 5rem 0 2rem;
  } */
  .nav {
    height: calc(var(--header-height) + 1.5rem); /* 4.5rem */
  }
  .nav__img {
    display: none;
  }
  .nav__icon {
    display: none;
  }
  .nav__name {
    font-size: var(--normal-font-size);
    /* display: block; */ /* Minimalist design, visible labels */
  }
  .nav__link:hover {
    color: var(--first-color);
  }

  /* First design, remove if you choose the minimalist design */
  .active-link::before {
    content: "";
    position: absolute;
    bottom: -0.75rem;
    width: 4px;
    height: 4px;
    background-color: var(--first-color);
    border-radius: 50%;
  }

  /* Minimalist design */
  /* .active-link::before{
      bottom: -.75rem;
  } */
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}

/* informasi */
#table-section .div-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 10px auto;
  background-color: #f0f0f0;
  padding: 10px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center; /* Menengahkan konten secara horizontal */
}

#table-section .card {
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  padding: 10px; /* Tambahkan padding */
}

.detail-btn {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
  padding: 10px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

#table-section table {
  width: 100%;
  border-collapse: collapse;
}

#table-section td {
  border: none;
  padding: 12px;
  text-align: left !important;
}

#table-section td img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

#table-section .harga-text-1 {
  text-align: left;
  display: inline-block;
  vertical-align: middle;
  margin-left: 20px;
}

#table-section .harga-text-2 {
  text-align: left;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

#table-section .harga {
  border-left: 1px solid #ddd;
  padding-left: 10px;
}

#table-section th {
  background-color: #f2f2f2;
}

#table-section tr:hover {
  background-color: #f5f5f5;
}

#table-section .detail-btn {
  margin: 20px 0;
}

.data-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.options-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-container,
.data-options {
  margin-right: 20px;
}

#date-picker-broiler,
#date-picker-egg {
  padding: 8px;
}

#data-table-broiler,
#data-table-egg {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #ffffff;
}

#data-table-broiler th,
#data-table-egg th,
#data-table-broiler td,
#data-table-egg td {
  border: 1px solid #ffffff;
  padding: 8px;
  text-align: left;
}

#data-table-broiler th,
#data-table-egg th {
  background-color: #f2f2f2;
}

#selected-date-broiler {
  margin-bottom: 10px; /* Atur margin bottom sesuai kebutuhan */
  color: black; /* Atur warna teks menjadi hitam */
}

#selected-date-egg {
  margin-bottom: 10px; /* Atur margin bottom sesuai kebutuhan */
  color: black; /* Atur warna teks menjadi hitam */
}

/* carousel */

#video-carousel {
  width: 40%; /* Mengurangi lebar carousel */
  max-width: 600px; /* Menambahkan lebar maksimum */
  height: 300px; /* Menambahkan tinggi carousel */
  margin: auto;
  overflow: hidden;
  position: relative;
}

#video-carousel .carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%; /* Menyesuaikan tinggi carousel */
}

#video-carousel .carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%; /* Menyesuaikan tinggi carousel */
}

#video-carousel iframe {
  width: 100%;
  height: 100%; /* Menyesuaikan tinggi iframe dengan carousel */
  border: none;
}

#video-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto; /* Menyesuaikan lebar tombol dengan kontennya */
  cursor: pointer;
  font-size: 24px;
  background: none;
  border: none;
  outline: none;
  color: #000000;
  background-color: #ffffff;
  opacity: 0.5;
  padding: 4px; /* Menambahkan padding agar tombol lebih kecil */
}

#video-carousel .carousel-btn.prev {
  left: 0;
}

#video-carousel .carousel-btn.next {
  right: 0;
}

@media screen and (max-width: 768px) {
  #video-carousel {
    width: 70%; /* Mengurangi lebar carousel pada layar kecil */
  }
}

.carousel-title {
  margin-bottom: 20px; /* Menambahkan jarak di bawah judul */
  text-align: center;
  color: #000000;
}

#berita .card__buttonout {
  display: block;
  background-color: var(--first-color);
  padding: 0.5rem 0.75rem; /* Adjusted padding */
  border-radius: 0.25rem;
  color: white;
  font-weight: 600;
  text-align: center;
  max-width: 150px;
  width: 100%;
}

.kons-title {
  margin-bottom: 20px; /* Menambahkan jarak di bawah judul */
  text-align: center;
  color: #000000;
}

/* INI KONSULTASI CSS */

.card-container-konsul,
#some-other-element {
  box-sizing: border-box;
  /* Properti CSS lainnya */
}

.card-container-konsul {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  /* background-color: #fff; */
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;
  overflow: hidden;
  position: relative;
}

.card-down-konsul {
  display: flex;
  flex-direction: row; /* Tetap row bahkan untuk layar kecil */
  width: 100%;
  margin-bottom: 2px;
}

/* Media query untuk responsivitas */

.table-container-konsul {
  overflow-x: auto;
}

/* CSS untuk membuat konten tabel menjadi center */
.info-table-konsul {
  width: 100%;
  border-collapse: collapse;
  text-align: center; /* Membuat seluruh konten tabel menjadi center */
}

.info-table-konsul th,
.info-table-konsul td {
  padding: 8px;
  font-size: 14px;
  text-align: center; /* Membuat teks rata tengah di seluruh sel */
  background-color: #fff;
  /* border: 1px solid #ddd; */
  border: none;
}

.info-table-konsul th {
  background-color: navy;
  color: white;
}

.info-table-konsul td button {
  padding: 5px 10px;
  background-color: #2a2aab;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.info-text-konsul {
  font-size: 20px;
  font-weight: bold;
  /*  */
  margin-bottom: 20px;
  color: #000000;
}

.card-content-konsul {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
}
@media screen and (max-width: 600px) {
  .card-content-konsul {
    padding: 25px;
  }
}

/* Tambahkan style berikut */
.info-table-konsul td.text-left-konsul {
  text-align: left;
  font-size: 15px;
  font-weight: bold;
}

/* Tambahkan style berikut */
.info-table-konsul td.text-right-konsul {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  font-weight: bold;
}

.info-table-konsul td.text-right-konsul button.info-button-konsul {
  padding: 10px 20px;
  font-size: 17px;
  font-weight: bold;
}

a.info-button-konsul {
  padding: 10px 20px;
  font-size: 17px;
  font-weight: bold;
}

/* INI ARTIKEL DAN BERITA CSS */
.card-container-content-swipper {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  /* background-color: #ffffff; */
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;

  border-radius: 8px;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  overflow: hidden;
  position: relative;
  min-height: 350px; /* Sesuaikan nilai tinggi sesuai kebutuhan */
}

.card-down-content-swipper {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card-content-content-swipper {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.info-table-content-swipper {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.info-table-content-swipper th,
.info-table-content-swipper td {
  padding: 8px;
  font-size: 14px;
  text-align: center;
  background-color: #fff;
  border: none;
}

.info-table-content-swipper th {
  background-color: navy;
  color: white;
}

.info-table-content-swipper td button.info-button-content-swipper {
  padding: 10px 20px;
  font-size: 17px;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .card-content-konsul,
  .card-content-content-swipper {
    padding: 15px;
  }
}

.swiper-container {
  width: 100%;
  max-width: 340px;
  /* min-width: 360px; */
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
}

.info-button-content-swipper {
  padding: 10px 40px; /* Sesuaikan sesuai dengan kebutuhan Anda */
  font-size: 15px; /* Sesuaikan sesuai dengan kebutuhan Anda */
  font-weight: bold;
  background-color: navy; /* Ganti warna latar belakang sesuai kebutuhan Anda */
  color: white; /* Ganti warna teks sesuai kebutuhan Anda */
  max-width: 200px;
  border-radius: 8px;
  margin: 0 auto; /* Menengahkan tombol */
  display: block; /* Memastikan tombol berada di tengah */
  border: none;
}

/* .card-content-content-swipper p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;
  text-align: left;
} */
.card-content-content-swipper p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  font-size: 16px;
  margin-bottom: 1px;
}

.timestamp {
  font-size: 14px; /* Sesuaikan ukuran font sesuai kebutuhan Anda */
  color: #888; /* Sesuaikan warna teks sesuai kebutuhan Anda */
  text-align: center;
}

.title-swiper {
  font-weight: bold; /* Membuat teks menjadi bold */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Maksimal jumlah baris yang ditampilkan */
  -webkit-box-orient: vertical;
  margin-top: 20px;
  color: #000000;
  font-weight: bold;
}

/* INI VIDEO STYLE CSS */

.video-con {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  /* background-color: #000000; */
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;
  overflow: hidden;
  position: relative;
  height: auto;
}

.swiper-container-video {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  /* background-color: #ffffff; */

  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  height: 400px; /* Sesuaikan dengan kebutuhan */
}

.swiper-slide iframe {
  width: 90%;
  height: 100%;
}

.swiper-slide-video {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
}

/* Info kini dashboard */

#infokini .card-container,
#some-other-element {
  box-sizing: border-box;
  /* Properti CSS lainnya */
}

#infokini .card-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  background-color: #ffffff;
  border-radius: 8px;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;

  overflow: hidden;
  position: relative;
}
#infokini .card-container2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  background-color: #6861e9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

#infokini .card-down {
  display: flex;
  flex-direction: row; /* Tetap row bahkan untuk layar kecil */
  width: 100%;
  margin-bottom: 2px;
}

/* Media query untuk responsivitas */

#infokini .card-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  position: relative;
}
@media screen and (max-width: 600px) {
  #infokini .card-content {
    padding: 15px; /* Adjust padding for smaller screens */
  }

  @media screen and (max-width: 375px) {
    #infokini .info-table {
      font-size: 12px; /* Menyesuaikan ukuran teks untuk layar sangat kecil */
    }
  }
}

/* Tambahkan gaya untuk tabel 3x3 */
/* #infokini table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
} */

/* Gaya tambahan untuk tombol */
#infokini .button-containers {
  display: flex;
  justify-content: center; /* Mengatur agar tombol berada di tengah */
  margin-top: 10px;
  text-align: center;
}

.button-container-konsul {
  display: flex;
  justify-content: center; /* Mengatur agar tombol berada di tengah */

  text-align: center;
}

#infokini .button {
  padding: 10px;
  background-color: navy; /* Warna hijau sebagai contoh */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px; /* Memberi jarak antara tombol */
  text-decoration: none; /* Menghapus underline pada tombol */
  text-align: center;
}
