:root {
    --white: #ffffff;
    --black: #000000;
    /* --yellow: #ffc507; */
    --red: #f90000;
    --gray: #e1e1e1;
    --green: #adc009;
    --yellow: #dfe221;
    --blue: #042e4d;
    --blue2: #2bc5da;
    --blue-muda: #2cccc4;
}

body {
  font-family: 'Open Sans', sans-serif;
}

/* SweetAlert */
.swal2-confirm.btn-custom {
    background-color: var(--yellow) !important;
    color: var(--black) !important;
}

/* Auth Sign */
.auth-sign {
  background-image: url('/client/img/background/bg-auth.jpg');
  background-size: 130%; /* zoom sekitar 30% lebih besar */
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}


.form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #fff;
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

/* button.btn.btn-auth {
  backgorund-color: var(--blue);
} */

/* End */

/* Navbar */
nav.navbar {
  background-color: transparent;
  transition: background-color 0.3s, box-shadow 0.3s;
  min-height: 50px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500; /* tambahkan ketebalan */
}

header.fixed-top {
  pointer-events: none; /* klik akan menembus header */
}

header.fixed-top .navbar a,
header.fixed-top .navbar img {
  pointer-events: auto; /* tapi link/logo tetap bisa diklik */
}

nav.navbar.scrolled {
    background: linear-gradient(to right, #0f2c4d, #c4d600);
    box-shadow: 0 2px 6px rgba(22, 22, 22, 0.81);
}

.navbar .nav-link:focus,
.navbar .nav-link:active,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  border-radius:0;
}

img.header-logo {
    max-height: 30px;
    height: auto;
    width: auto;
}

.navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-scroll {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.logo-scroll.show {
    opacity: 1;
}

.navbar-custom {
  box-shadow: none !important;
  transition: background-color 0.3s ease;
}

.navbar-custom .nav-link {
  color: #000; /* atau #fff kalau background belakangnya gelap */
  font-weight: 500;
}

.navbar-custom .nav-link:hover {
  color: var(--green); /* contoh warna hover */
}

.navbar-custom .dropdown-menu {
  border-radius: 0;
  font-weight: 500;
}

@media (max-width: 991.98px) { /* breakpoint Bootstrap untuk navbar collapse */
  .navbar-nav {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    text-align: left !important;
    padding-left: 1rem;
  }

  .dropdown-menu {
    border-radius: 0 !important;
    margin-left: 1rem;
  }
}

/* End */


/* Hero */
.hero {
  min-height: 100vh;
  background-image: url('/client/img/hero-mobile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Desktop (default) */
.social-links {
  position: absolute;
  top: 30%;
  left: 50px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.social-links a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #d1ff00;
}

.social-links img.threads-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-links a:hover img.threads-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 5px #d1ff00);
}

/* Responsif: tampilan HP */
@media (max-width: 768px) {
  .social-links {
    /* position: static; */
    /* transform: none; */
    /* flex-direction: row; */
    align-items: center;
    gap: 10px;
    margin-left:280px;
    margin-top:-50px;
  }

  .social-links a {
    font-size: 0.9rem; /* kecilkan icon */
  }

  .social-links img.threads-icon {
    width: 16px;
    height: 16px;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .logo {
    width: 150px; /* ukuran logo */
    height: auto;
  }
}

/* Ganti background untuk layar besar */
@media (min-width: 768px) {
  .hero {
    background-image: url('/client/img/hero-desktop.jpg');
  }
}
/* ENd */


/* About */
.about {
  background-color:black;
  min-height: 100%;
  padding:5px;
}

p.about-title{
  font-size:28px;
  color:white;
}

p.about-desc{
  font-size:14px;
  color:white;
  text-align: justify;

}

/* End */

/* Categories */
.categories {
   width: 100%; /* ini lebih aman */
  overflow-x: hidden; /* cegah scroll ke samping */
  margin: 0;
  padding: 0 0 60px; /* hapus padding kiri-kanan */
  text-align: center;
  background-size: cover;
  background-image: url('/client/img/backkonturabu.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

p.categories-title {
  color: black;
  font-weight: bold;
  text-align: center;
  font-size: 34px;
  margin-top:40px;
  margin-bottom: 30px;
  font-weight: 800;
  font-family: 'Montserrat', 'Arial Black', sans-serif;
}



.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
  width: 100%;          /* penuh */
  margin: 0;
  padding: 0 30px;      /* beri sedikit ruang agar tidak terlalu mepet tepi layar */
}

.category-card {
  position: relative;
  overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* shadow ringan */
    transition: box-shadow 0.3s ease; /* efek transisi */
}

.category-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* shadow lebih besar saat hover */
}

.category-card img {
  width: 100%;
  height: auto;
  display: block;
}

.category-card center {
  position: absolute;
  top: 86%; /* atur ketinggian tombol */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.register-btn {
  color: var(--white);
  padding: 8px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .category-cards {
    grid-template-columns: repeat(2, 1fr); /* tablet */
  }
}

@media screen and (max-width: 768px) {
  .categories {
    padding: 0;
    text-align: center;
    background-image: url('/client/img/backkonturabu.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
  }

  .category-cards {
    grid-template-columns: 1fr; /* HP */
  }

  .category-card{
    background: var(--white);
    margin-bottom: 10px;
  }

  .category-card center {
    position: absolute;
    top: 86%; /* atur ketinggian tombol */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .category-card img {
    width: 100%;
    height: auto;
    margin-bottom: 0px;
  }

  .register-btn {
    color: var(--white);
    padding: 8px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    margin-top:-20px;
  }
}
/* End */

/* Maskot */
.maskot {
  max-width: 300px; /* ukuran default di desktop */
  width: 100%;
  height: auto;
  /* margin: 0 auto; */
  margin-top:100px;
  margin-bottom:50px;
}

@media (min-width: 768px) {
  .maskot {
    max-width: 400px;
    margin-top:30px;
    margin-bottom:50px;
  }
}

@media (min-width: 1200px) {
  .maskot {
    max-width: 300px;
    margin-top:0px;
    margin-bottom:10px;
  }
}
/* End */

/* Rules and Regulation */
.rules-section {
  background: #000;
  color: #fff;
  padding: 60px 20px;
  background-image: url('/client/img/backkonturputih-2.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.rules-title {
  font-size: 2.0rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .rules-title {
    font-size: 1.5rem;
    color: #FFD700;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
  }
}
.notice-box {
  background-color: #FFD700;
  color: #000;
  padding: 20px;
  text-align: left;
  margin-bottom: 30px;
}

.notice-box ul {
  list-style: decimal;
  color: #000; /* Biar bullet & teks hitam */
  margin: 10px 0 0 20px;
  padding: 0;
}

.notice-box ul li::marker {
  color: #000; /* Ubah warna marker/bullet jadi hitam */
}

.accordion-item {
  background-color:var(--yellow);
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}

.accordion-header {
  background-color: white;
  color: black;
  padding: 15px 20px;
  font-weight: bold;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
  font-size: 14px;

}
.accordion-header.active {
  background-color: var(--yellow);
  color: #000;
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
}

.accordion-item.active .accordion-header::after {
  content: '-';
}

.accordion-content {
  display: none;
  padding: 15px 20px;
  background-color: var(--white);
  color: var(--black);
  /* opacity: 0.80; */
}

.accordion-item.active .accordion-content {
  display: block;
}

/* End */

/* Entry List */
button#open-tab.nav-link.active{
  color: var(--black);
}

button#open-tab.nav-link{
  color: #9e9e9e;
}

button#master-tab.nav-link.active{
  color: var(--black);
}

button#master-tab.nav-link{
  color: #9e9e9e;
}
/* End */


/* Categories Form */
.categories-form {
  padding: 60px 0;
  background-image: url('/client/img/backkonturputih.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  background-color: rgba(255, 255, 255, 1); /* Transparansi warna putih */
}

.hr-batas {
    height: 0.7vh;
    background-color: #e0e326;
    margin-bottom: 10px;
}

.categories-form h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 30px;
}

.form-registration{
  background-color: var(--white);
  padding: 20px;
  font-size: 15px;
  border-radius: 10px;
  border: 0;
}

.categories-form input,
.categories-form select,
.categories-form textarea {
  background-color: #f3f3f3;
  border-radius: 10px;
  border: none;
}

.error-message {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
}

.categories-form button {
  background-color: var(--yellow);
  border: none;
  color: var(--black);
}

img.size-jersey{
  width: 70%;
}

@media (max-width: 768px) {
  img.size-jersey{
    width: 100%;
  }

  .categories-form h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
  }
}

button.btn.btn-submit{
  background-color:#f1c50e !important;
  width:100%;
  border-radius:10px;
}

button.btn.btn-submit:hover{
  background-color:#5ee100 !important;
  transition: 0.7s;
  width:100%;
  border-radius:10px;
}
/* End */

/* Destination */
.destination {
  background-color: #133253;
  padding:0;
}

p.destination-title {
  color: white;
  text-align: center;
  font-size: 34px;
  margin-bottom: 20px;
  font-weight: 800;
  font-family: 'Montserrat', 'Arial Black', sans-serif;
}

/* Container tiap gambar */
.destination-item {
  position: relative;
  overflow: hidden;
}

.destination-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Efek zoom pas hover */
.destination-item:hover img {
  transform: scale(1.1);
}

/* Overlay penuh */
.destination-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Muncul saat hover */
.destination-item:hover .destination-overlay {
  opacity: 1;
}

/* End */

/* Footer */
.site-footer {
  background: linear-gradient(to bottom, #133253ff, #000000);
  color: var(--white);
  padding: 10px 10px;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
}

p.support-title{
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  margin-top: 0;
}

p.footer-title{
  font-size: 14px;
  margin-top: 0;
  font-weight: bold;
  margin-bottom:5px;
}

p.footer-desc{
  font-size: 12px;
  margin-top: 0;
}

.copyright{
  background-color:#c4d600;
  padding:1px;
}

p.footer-copyright{
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color:black;
  margin-top: 0;
  text-align:center;
  margin-top:10px;
}

.footer-logo {
  max-width: 250px;
  height: auto;
  margin-top:10px;
  margin-bottom: 10px;
}

/* End */

/* Detail Race */
section.race-one-10 {
    background-image: url("/client/img/background/cat-10.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.race-one-10 .ovl {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.race-one-10 .race-content {
    position: relative;
    z-index: 2;
}

section.race-one-25 {
    background-image: url("/client/img/background/cat-25.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.race-one-25 .ovl {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(
        0,
        0,
        0,
        0.5
    ); /* Sesuaikan transparansi sesuai kebutuhan */
    z-index: 1;
}

.race-one-25 .race-content {
    position: relative;
    z-index: 2;
}

section.race-one-45 {
    background-image: url("/client/img/background/cat-45.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.race-one-45 .ovl {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(
        0,
        0,
        0,
        0.5
    ); /* Sesuaikan transparansi sesuai kebutuhan */
    z-index: 1;
}

.race-one-45 .race-content {
    position: relative;
    z-index: 2;
}

section.race-one-85 {
    background-image: url("/client/img/background/cat-85.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.race-one-85 .ovl {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(
        0,
        0,
        0,
        0.5
    );
    z-index: 1;
}

.race-one-85 .race-content {
    position: relative;
    z-index: 2;
}

h2.race {
    margin-top: 40vh;
    font-weight: bold;
    text-transform: uppercase;
}

p.race-desc {
    font-size: 16px;
    color: var(--gray3);
    text-align: center;
}

p.race-qualy {
    font-size: 16px;
    color: var(--yellow);
    text-align: center;
    margin-bottom: 0;
}

p.race-qualy-desc {
    font-size: 16px;
    color: var(--gray3);
    text-align: center;
}

a.btn.btn-register {
    background-color: var(--red);
    color: var(--white);
    font-size: 14px;
    border-radius: 0;
    font-weight: bold;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding: 10px;
}

a.btn.btn-register:hover {
    background-color: var(--yellow);
    color: var(--white);
    transition: 0.3s;
    font-size: 14px;
    border-radius: 0;
    font-weight: bold;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding: 10px;
}

section.race-two {
    background-color: var(--yellow);
    background-size: cover;
    background-position: center;
    height: 100%;
    position: relative;
    /* padding: 5px; */
    margin-bottom: 0;
}

.col-md-2.race-info {
    background-color: var(--blue);
    /* margin-right: 2px; */
    /* padding: 10px; */
}

p.race-info {
    font-size: 15px;
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
    padding: 10px 0;
}

/* .row.race-info > .col-md-2 {
    flex: 1;
    max-width: 19%;
} */

section.race-three {
    background-image: url("/client/img/background/konturputih.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
    padding: 0;
}

.nav-pills .nav-item {
    flex: 1;
    text-align: center;
}

.nav-pills .nav-link {
    width: 100%;
    color: var(--black);
    font-size: 16px;
    border-radius: 0;
    background-color: var(--gray);
}

.nav-pills .nav-link.active {
    background-color: var(--yellow);
    color: var(--black);
    font-size: 16px;
    border-radius: 0;
}

.container-fluid.race-isi {
    margin-top: -20px;
    background-color: rgba(255, 255, 255, 0.8);
    height: 100%;
    color: var(--black);
}

p.text-details {
    margin-top: 50px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

p.desc-details {
    font-size: 15px;
}

img.itra-details {
    width: 8em;
}

img.itra-details-m {
    width: 12em;
}

.maps-details {
    margin-top: 20px;
}

.container.maps {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

p.text-maps {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.container.rundowsn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

p.text-rundowsn {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

p.desc-madatory {
    font-size: 15px;
    text-align: left;
}
/* End detail race */

.bg-running-text {
    background-color: var(--blue);
    color: var(--white);
    width: 100%;
    font-weight: bold;
    padding: 10px;
}

.running-text {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
    animation: marquee 20s linear infinite;
}

.running-text span {
    display: inline-block;
    padding-right: 100%;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* destination */
.destination {
    background-color: #000;
    padding: 50px 0 0 0;
}

.destination h1 {
    font-size: 32px;
    font-weight: 900;
}

.destination-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.destination-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.destination-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 10px;
    background-color: rgba(0, 0, 0, 0.6);
}

.destination-wrap:hover img {
    transform: scale(1.1);
    cursor: pointer;
}

.destination-overlay h2 {
    color: white;
    font-size: 14px;
    margin: 0;
    text-transform: capitalize;
    text-align: center;
}

/* collaboration */
.collaboration {
    background-image: linear-gradient(
        to bottom,
        rgba(8, 103, 73, 1),
        rgba(0, 0, 0, 1)
    );
    padding: 90px 0;
}

.collaboration h1 {
    font-size: 30px;
    font-weight: 900;
}

.collaboration .logo-kanan {
    width: 230px;
}

.collaboration h2 {
    font-size: 30px;
    font-weight: 800;
}

.collaboration p {
    font-size: 13px;
    padding: 0 40px;
}

.collaboration h3 {
    font-size: 13px;
}

.collaboration a {
    text-decoration: none;
    color: #f90000 !important;
    font-weight: 600;
}

/* untuk tablet */
@media (min-width: 576px) {
    .bg-running-text {
        background-color: var(--blue);
        color: var(--white);
        width: 100%;
        font-weight: bold;
        padding: 10px;
    }

    .running-text {
        overflow: hidden;
        white-space: nowrap;
        box-sizing: border-box;
        width: 100%;
        animation: marquee 20s linear infinite;
    }

    .running-text span {
        display: inline-block;
        padding-right: 100%; 
    }

    @keyframes marquee {
        0% {
            transform: translateX(100%);
        }
        100% {
            transform: translateX(-100%);
        }
    }

    p.text-tambi {
        text-align: center;
        font-size: 22px;
        text-transform: uppercase;
        font-weight: bold;
        margin-bottom: 0;
        margin-top: 20px;
        color: var(--black);
    }

    p.text-schedule {
        text-align: center;
        font-size: 20px;
        text-transform: uppercase;
        color: var(--black);
    }
    img.header-cat {
        width: 10em;
    }

    img.logo-dcr {
        width: 30em;
    }

    h1.pre-sale {
        font-size: 85px;
        font-weight: bold;
        color: var(--white);
    }

    p.desc-mandatory{
      font-size:14px;
    }

    section.sec-four {
        background-image: url("/client/img/background/backkonturputih.jpg");
        background-size: cover;
        background-position: center;
        height: 100vh;
        position: relative;
        margin-bottom: 0;
    }

    a.ig-website {
        display: block;
        color: rgb(199, 199, 199);
        font-size: 16px;
        text-decoration: none;
        text-align: right;
    }

    section.sec-two {
        background-image: url("/img/background/backkonturputih.jpg");
        background-size: cover;
        background-position: center;
        height: 35vh;
        position: relative;
        margin-bottom: 0;
    }

    img.header-logo {
        margin-left: 0;
    }

    .row.race-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .col-md-2.race-info {
        background-color: var(--blue);
        margin-right: 2px;
        padding: 10px;
    }

    p.race-info {
        font-size: 15px;
        color: var(--white);
        text-align: center;
        margin-bottom: 0;
        padding: 10px 0;
    }

    .row.race-info > .col-md-2 {
        flex: 1;
        max-width: 19%;
    }

    .destination h1 {
        font-size: 38px;
    }

    .destination-item {
        aspect-ratio: 4/3;
    }

    .collaboration h1 {
        font-size: 38px;
    }

    .collaboration h2 {
        font-weight: 800;
    }
}


/* untuk dekstop dan seterusnya */
@media (min-width: 768px) {
    /* body {
        background-color: green;
    } */
}