/* 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: #010016;
  --text-first: #fafafa;
  --text-second: #0a0a0a;
  --first-color: #0c0c0c;
  --second-color: #060450;
  --third-color: #040237;
  --fourth-color: #010016;
  --fifth-color: #010016;
  --g1: #e9ce59;
  --g2: #a76916;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #000000;
  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: #000000c0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 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;
  }
}

.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%;
  }
}

.Btn {
  width: 140px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right,#77530a,#ffd277,#77530a,#77530a,#ffd277,#77530a);
  background-size: 250%;
  background-position: left;
  color: #ffd277;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: 1s;
  overflow: hidden;
}

.Btn::before {
  position: absolute;
  content: "LOGIN";
  color: #ffd277;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97%;
  height: 90%;
  border-radius: 8px;
  transition-duration: 1s;
  background-color: rgba(0, 0, 0, 0.842);
  background-size: 200%;
}

.Btn:hover {
  background-position: right;
  transition-duration: 1s;
}

.Btn:hover::before {
  background-position: right;
  transition-duration: 1s;
}

.Btn:active {
  transform: scale(0.95);
}

.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: #001609;
}

.web-logo {
  width: 100%;
  max-width: 150px;
}

/* 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 #ddd;
}

/* Card Swiper */
.card-swiper {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1; /* Tetap rasio 1:1 */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.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: #00160138;
  margin: 20px auto;
  padding: 20px;
  border-radius: 20px;
  max-width: 800px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: #000000;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

h2,
h3,
p,
strong,
li,
a,
tr,
td {
  color: whitesmoke;
  padding: 0;
}

h1 {
  background-image: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 4%;
  text-align: center;
}

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,
thead {
  background-image: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
  -webkit-text-fill-color: #000000;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
}

/* 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: #555;
  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 #ddd;
  text-align: center;
}

.ranking-table th {
  background-color: #f8f8f8;
  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: #333333; /* Warna latar belakang scroll bar */
  border-radius: 5px;
}

/* Warna track (jalur scroll bar) */
.table-responsive::-webkit-scrollbar-track {
  background-color: #333333; /* 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: #fff;
  font-size: 1rem;
  background: #333;
  border-radius: 8px;
}
