/* assets/css/style.css */

:root {
  --smaller-font: 0.7rem;
  --small-font: 0.87rem;
  --normal-font: 1rem;
  --medium-font: 1.1rem;
  --large-font: 1.7rem;
  --x-large-font: 2rem;
  --bg-color: #ffffff;
  --text-first: #ffffff;
  --text-second: #ffffff;
  --first-color: #ffffff;
  --second-color: #ffffff;
  --third-color: #ffffff;
  --fourth-color: #ffffff;
  --fifth-color: #ffffff;
  --g1: #006845;
  --g2: #006845;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Hilangkan horizontal scroll */
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #221616;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Gaya Umum untuk Container */
.container-detail {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff00;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Tambahkan margin kiri dan kanan hanya di desktop */
@media (min-width: 1024px) {
  .container-detail {
      margin-left: 50px;
      margin-right: 50px;
  }
}

/* Responsif di Mobile */
@media (max-width: 768px) {
  .container-detail {
      margin-left: 0;
      margin-right: 0;
      padding: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  /* Tabel Responsive */
  .ranking-table table {
    width: 100%;
    font-size: 14px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 8px;
    text-align: center;
  }

  /* Card Swiper */
  .card-swiper {
    width: 95%;
  }

  .card {
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  /* Artikel */
  .articles article {
    padding: 15px;
    font-size: 14px;
  }
}

/* Tambahkan ruang pada elemen di mobile */
header,
footer {
  padding: 5px;
}

.running-text,
.running-text-2 {
  font-size: 14px;
  padding: 10px;
  text-align: center;
}

footer {
  font-size: 14px;
}

/* Pastikan gambar dalam card tetap proporsional */
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Header */
.row-nav {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row-nav > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.col {
  flex: 1 0 0%;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 992px) {
  .col-lg-auto {
    flex: 0 0 auto;
    width: auto;
  }

  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
}

.button {
  width: 140px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0px 15px;
  background-color: red;
  border-radius: 10px;
  border: none;
  color: #1b1b1b;
  position: relative;
  cursor: pointer;
  font-weight: 900;
  transition-duration: 0.2s;
  background: linear-gradient(to bottom, #ffe4b9 0%, #e3ae72 50%, #cf863d 100%);
}

.button:before,
.button:after {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  border-radius: 10px;
  background: linear-gradient(
    45deg,
    #cf863d,
    #e3ae72,
    #ffffff,
    #cf863d,
    #e3ae72,
    #ffffff,
    #cf863d,
    #e3ae72,
    #ffffff
  );
  background-size: 400%;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: -1;
  animation: steam 20s linear infinite;
}

@keyframes steam {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.button:after {
  filter: blur(50px);
}

.sticky-top {
  position: -webkit-sticky;
  position: fixed;
  top: 0;
  z-index: 1020;
  width: 100%;
}

.d-flex {
  display: flex !important;
}

.border-0 {
  border: 0 !important;
}

.w-100 {
  width: 100% !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.px-3 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.justify-content-lg-between {
  justify-content: space-between !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.color-2 {
  background: #003f34;
}

.web-logo {
  width: 100%;
  max-width: 150px;
}

.btn-regis {
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(to bottom, #ffe4b9 0%, #e3ae72 50%, #cf863d 100%);
  color: #000000;
}

.btn-regis:hover {
  background: linear-gradient(to bottom, #e2b66e 0%, #d69b58 50%, #cf863d 100%);
  color: #ffffff;
}

.btn-group span {
  font-weight: 700;
  width: 73px;
}

/* Running Text */
.running-text {
  background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--text-second);
  padding: 0.1rem;
}

marquee {
  color: #ffffff;
  font-weight: bold;
  padding-top: 10px;
  padding-bottom: 8px;
}

/* Swiper Banner */
.swiper-banner {
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
}
.banner-slide img {
  width: 100%;
  border-radius: 8px;
}

/* Ranking Table */

.ranking-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.ranking-table th,
.ranking-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #004747;
}

/* Card Swiper */

/* Pastikan swiper tidak lebih lebar dari layar */
.swiper-container {
  width: 100%;
  overflow: hidden;
}

/* Pastikan setiap slide ukurannya sesuai */
.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex: 0 0 calc(100% / 3); /* 3 slide per layar */
  max-width: calc(100% / 3);
  text-align: center;
  display: flex;
  justify-content: center;
  margin-right: 0 !important;
}

.card-swiper {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
}

.card {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pastikan gambar menyesuaikan dengan card */
}

.card-content {
  padding: 10px;
  text-align: center;
}

.card-content h3 {
  font-size: 1rem;
  margin: 0 0 5px 0;
}

.card-content p {
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 480px) {
  .card-content h3 {
    font-size: 0.9rem; /* Sesuaikan ukuran font pada mobile */
  }

  .card-content p {
    font-size: 0.8rem;
  }

  .swiper-slide {
    padding: 5px; /* Tambahkan padding agar tidak terlalu rapat */
  }
}

/* Articles */
.articles article {
  background: #ffffff34;
  margin: 20px auto;
  padding: 20px;
  border-radius: 20px;
  max-width: 800px;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
  background: #006658;
  color: #001f1d;
  text-align: center;
  padding: 15px 0;
}

h2,
h3,
p,
strong,
li,
a,
tr,
td {
  color: whitesmoke;
  padding: 0;
}



h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Paragraph Styles */
p,
strong {
  font-size: 1rem; /* Atur ukuran font untuk paragraf */
  line-height: 1.6; /* Spasi antar baris */
  margin-bottom: 10px;
}

th,


/* Detail Post Styles */
.detail-main {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.detail-banner img {
  width: 100%;
  height: auto;
}

.detail-content {
  padding: 20px;
}

.detail-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.detail-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

.detail-text {
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Ranking Table */
.ranking-title {
  font-size: 1.8rem;
  margin: 30px 0 10px;
  text-align: center;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.ranking-table th, .ranking-table td {
  padding: 10px;
  border: 1px solid #ffffff;
  text-align: center;
}

.ranking-table th {
  background-color: #ffffff;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .detail-title {
      font-size: 1.5rem;
  }

  .detail-subtitle {
      font-size: 1.2rem;
  }

  .ranking-title {
      font-size: 1.5rem;
  }

  .detail-content {
      padding: 10px;
  }
}
/* Scroll bar */
.table-responsive::-webkit-scrollbar {
  height: 10px; /* Tinggi scroll bar */
  background-color: #cf863d; /* Warna latar belakang scroll bar */
  border-radius: 5px;
}

/* Warna track (jalur scroll bar) */
.table-responsive::-webkit-scrollbar-track {
  background-color: #cf863d; /* Warna track */
}

/* Warna thumb (bagian yang bisa digeser) */
.table-responsive::-webkit-scrollbar-thumb {
  background-color: #cf863d; /* Warna thumb */
  border-radius: 5px;
}

/* Warna thumb saat di-hover */
.table-responsive::-webkit-scrollbar-thumb:hover {
  background-color: #cf863d;
}

/* Gaya untuk banner */
.banner {
  width: 100%;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Agar gambar memenuhi container dengan proporsi yang benar */
  border-radius: 8px;
}

.no-banner {
  text-align: center;
  color: #ffffff;
  font-size: 1rem;
  background: #ffffff;
  border-radius: 8px;
}
