:root {
  --color-primary: #028fcc;
  --color-description: #616161;
}

/* Global */
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--color-description);
  padding-top: 70px;
}

.container {
  max-width: 85%;
}

/* Navbar - 2 Column Layout */
.custom-navbar-2col {
  display: flex;
  height: 70px;
  padding: 0;
}

.navbar-nav-left {
  padding-left: 7.5%;
}
.navbar-nav-right {
  padding-right: 7.5%;
}

.navbar-brand-section {
  width: 20%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* .navbar-brand-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 70px 30px;
  border-color: transparent transparent var(--color-primary) transparent;
  z-index: 1;
} */

.navbar-brand-section .navbar-brand {
  font-size: 1.2rem;
  color: var(--color-primary) !important;
  font-weight: bold;
  text-decoration: none;
  z-index: 3;
  position: relative;
}

.navbar-menu-section {
  width: 80%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.navbar-menu-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 70px 0 0 30px;
  border-color: transparent transparent transparent #fff;
  z-index: 1;
}

.navbar-menu-section .nav-link {
  font-size: 1rem;
  margin-left: 1rem;
  color: #fff !important;
}

.navbar-menu-section .nav-link:hover {
  color: #dceeff !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.text-description {
  color: var(--color-description) !important;
}

.text-justify {
  text-align: justify !important;
}

/* Tombol login */
.login-btn {
  font-weight: 500;
  background: #ffffff;
  color: var(--color-primary) !important;
  border-radius: 50px;
  transition: 0.3s ease;
}

.login-btn:hover {
  background: #f0f0f0;
  color: #0056b3 !important;
}

.navbar-toggler {
  border: none;
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.login-btn-blue {
  background: #ffffff;
  color: var(--color-primary) !important;
  border-radius: 50px;
  transition: 0.3s ease;
  font-weight: 500;
}

.login-btn-blue:hover {
  background: #f0f0f0;
  color: var(--color-primary) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.text-description {
  color: var(--color-description) !important;
}

.text-justify {
  text-align: justify !important;
}

/* Tombol login */
.login-btn {
  font-weight: 500;
  background: #ffffff;
  color: var(--color-primary) !important;
  border-radius: 50px;
  transition: 0.3s ease;
}

.login-btn:hover {
  background: #f0f0f0;
  color: #0056b3 !important;
}

/* Banner */
.banner-img {
  max-height: 670px;
  object-fit: cover;
}

#bannerCarousel .container {
  padding: 3rem 0;
}

#bannerCarousel .container .carousel-inner {
  border-radius: 3rem;
}

/* Cards */
.custom-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.custom-card h6,
.custom-card h5 {
  color: var(--color-primary);
}

/* .custom-card p {
  text-align: justify;
} */

/* Feature Box */
.feature-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Portfolio */
.portfolio-img {
  max-height: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-img:hover {
  transform: scale(1.05);
}

/* Footer */
.custom-footer {
  background: #222;
}

/* About Us */
#about-us .about-us-description {
  display: flex;
  gap: 4rem;
}

#about-us .about-us-description .text-description {
  text-align: justify;
}

#about-us .about-us-row {
  gap: 2rem;
}

#about-us .custom-card .visi-misi {
  display: flex;
  gap: 2rem;
}

#about-us .custom-card .visi-misi img {
  width: 10%;
  height: 10%;
}

/* Fitur Kami */
#our-feature .content {
  border-radius: 2rem !important;
  background-image: url("../images/bg-fitur-kami.png");
  background-size: cover;
  position: relative;
}

#our-feature .content .img-char-people {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35%;
}

#our-feature .list-feature {
  max-width: 70%;
}

#our-feature .icon img {
  width: 20%;
}

#our-feature .description p {
  text-align: justify;
}

#solution .custom-card {
  padding: 1rem;
}

#solution .custom-card .icon img {
  width: 20%;
}

/* why-use */
#why-use .list-why-use {
  max-width: 70%;
}
#why-use .icon img {
  width: 20%;
}
#why-use .content .img-char-asking {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  z-index: -1;
}

/* Tablet responsive (768px to 991px) */
@media (max-width: 991.98px) and (min-width: 768px) {
  .navbar-brand-section {
    width: 25%;
  }

  .navbar-menu-section {
    width: 75%;
  }

  .navbar-brand-section .navbar-brand {
    font-size: 1.1rem;
  }
}

#why-choose .custom-card {
  padding: 1rem;
}

#why-choose .custom-card .icon img {
  width: 20%;
}

#use-case .custom-card {
  padding: 1rem;
}

#use-case .custom-card .icon img {
  width: 20%;
}

@media (max-width: 576px) {
  .navbar-brand-section .navbar-brand {
    font-size: 1.1rem;
  }
}

/* ===============================================
   MEDIA QUERIES (Untuk Responsif)
   =============================================== */

/* Target layar kecil (di bawah 768px, breakpoint 'md' Bootstrap) */
@media (max-width: 767.98px) {
  #bannerCarousel .container .carousel-inner {
    border-radius: 1.75rem;
  }
  /* Navbar responsive - stack vertically on mobile */
  .custom-navbar-2col {
    flex-direction: column;
    height: auto;
  }

  .navbar-brand-section {
    width: 100%;
    height: 60px;
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .navbar-brand-section::after {
    display: none; /* Hide slant on mobile */
  }

  .navbar-brand-section .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-menu-section {
    width: 100%;
    background: var(--color-primary);
  }

  .navbar-menu-section::before {
    display: none; /* Hide slant on mobile */
  }

  .navbar-menu-section .container-fluid {
    padding: 0.5rem 1rem;
  }

  .navbar-toggler {
    margin-right: 0 !important;
  }

  /* 1. Sembunyikan gambar karakter yang absolut 
    Ganti .img-char-people dan .img-char-asking 
    sesuai dengan class Anda yang sebenarnya jika berbeda.
  */
  .img-char-people,
  .img-char-asking {
    display: none; /* Sembunyikan di mobile agar tidak merusak layout */
  }

  /* 2. Atur ulang layout 'About Us' jika perlu
    Jika .about-us-description menggunakan 'display: flex' di desktop,
    kita ubah jadi 'flex-direction: column' di mobile.
  */
  .about-us-description {
    flex-direction: column;
    align-items: center; /* Pusatkan logo di mobile */
    text-align: center; /* Pusatkan teks di mobile */
  }

  .about-us-description .description {
    text-align: left; /* Kembalikan teks deskripsi ke rata kiri */
    margin-top: 2rem;
  }

  .about-us-description img {
    width: 50% !important; /* Perbesar logo sedikit di mobile (dari w-25) */
  }

  #our-feature .list-feature,
  #why-use .list-why-use {
    max-width: 100%;
  }

  #our-feature .content {
    border-radius: 1.5rem !important;
  }

  #about-us .custom-card .visi-misi img {
    width: 20%;
    height: 20%;
  }

  /* 3. Sesuaikan Ukuran Font Judul */
  h2,
  .h2 {
    font-size: 1.5rem; /* Kecilkan font H2 di mobile */
  }

  h5,
  .h5 {
    font-size: 1.15rem; /* Kecilkan font H5 di mobile */
  }

  /* 4. Pastikan padding tidak berlebihan di mobile */
  .my-feature {
    padding: 2rem 0rem !important; /* Kurangi padding di section 'Fitur Kami' */
  }

  /* 5. Atur Visi Misi agar ikon di atas teks */
  .visi-misi {
    display: flex;
    flex-direction: column; /* Tumpuk ikon dan teks */
    align-items: center;
    text-align: center;
  }

  .visi-misi img {
    margin-bottom: 1rem;
  }

  .visi-misi ul {
    text-align: left; /* Jaga list misi tetap rata kiri */
    padding-left: 1rem;
  }
}

/* Smooth Scroll Animation Styles */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Variasi animasi */
.scroll-animate.fade-left {
  transform: translateX(-30px);
}

.scroll-animate.fade-right {
  transform: translateX(30px);
}

.scroll-animate.fade-up {
  transform: translateY(30px);
}

.scroll-animate.zoom {
  transform: scale(0.95);
}

.scroll-animate.animate-in.fade-left,
.scroll-animate.animate-in.fade-right {
  transform: translateX(0);
}

.scroll-animate.animate-in.zoom {
  transform: scale(1);
}

/* Stagger delays untuk efek berurutan */
.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}
.scroll-animate.delay-2 {
  transition-delay: 0.2s;
}
.scroll-animate.delay-3 {
  transition-delay: 0.3s;
}
.scroll-animate.delay-4 {
  transition-delay: 0.4s;
}
.scroll-animate.delay-5 {
  transition-delay: 0.5s;
}
.scroll-animate.delay-6 {
  transition-delay: 0.6s;
}

.swiper-slide img {
  cursor: pointer;
  transition: transform 0.3s;
}
.swiper-slide img:hover {
  transform: scale(1.05);
}

/* 4. Mengubah warna teks tombol login menjadi biru */
.login-btn {
  color: var(--color-primary);
  font-weight: bold;
}

/* 5. Memastikan ikon toggler (hamburger) berwarna putih */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 6. Memastikan link navigasi tetap putih dan tebal */
.nav-link.text-white {
  color: #ffffff !important;
  font-weight: 500;
}

/* Buku Tamu Specific Styles */
#hero {
  background: url("../images/bg-hero.png"); /* Adjusted path */
  background-size: cover;
  background-position: center;
  height: 500px;
  color: #fff;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

#hero .content-hero {
  max-width: 85%;
  margin: 0 auto;
}

#hero .hero-img {
  max-width: 100%;
  height: 500px;
  width: auto;
}

.btn-cta {
  background-color: #022c67;
  color: #fff;
  border-radius: 50px;
  width: fit-content;
}

.btn-cta:hover {
  background-color: #011f4b;
  color: #fff;
}

#hero .hero-description {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

#hero .hero-image {
  display: flex;
  justify-content: end;
}

@media (max-width: 768px) {
  #hero {
    height: auto;
    padding: 0rem 1rem;
    padding-top: 4rem;
    text-align: center;
  }

  #hero .content-hero {
    max-width: 100%;
    margin: 0 auto;
  }

  #hero .hero-img {
    height: auto;
    width: 80%;
    margin-top: 1rem;
  }

  #hero .hero-description {
    max-width: 100%;
    align-items: center;
  }

  #hero .hero-image {
    justify-content: center;
  }

  #about-us .about-us-description {
    display: flex;
    gap: 1rem;
  }
}

#why-choose .list-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center; /* PENTING: Menjaga baris terakhir tetap di tengah */
}

#why-choose .list-card .list-card-item {
  width: calc(100% / 3 - 2rem); /* Ukuran card */
  display: flex;
}

#use-case .list-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center; /* PENTING: Menjaga baris terakhir tetap di tengah */
}

#use-case .list-card .list-card-item {
  width: calc(100% / 3 - 2rem); /* Ukuran card */
  display: flex;
}

#testimoni .testimoni-content {
  display: flex;
  gap: 4rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/bg-cta.png"); /* Adjusted path */
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  color: white;
}

.w-fit {
  width: fit-content;
}

/* ===============================================
   REUSABLE COMPONENTS (Refactored)
   =============================================== */

/* Buttons */
.btn-pill {
  border-radius: 50px;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-white-primary {
  background: #ffffff;
  color: var(--color-primary) !important;
}

.btn-white-primary:hover {
  background: #f0f0f0;
  color: #0056b3 !important;
}

.btn-dark-blue {
  background-color: #022c67;
  color: #fff;
}

.btn-dark-blue:hover {
  background-color: #011f4b;
  color: #fff;
}

/* Icon Box */
.icon-box img {
  width: 20%;
}

/* Section Content Layout */
.section-content-row {
  display: flex;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .section-content-row {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .section-content-row img {
    width: 50% !important;
  }
}

/* ===============================================
   LOGIN, FORGOT PASSWORD, CHANGE PASSWORD STYLES
   =============================================== */
body.login-page,
body.forgot-password-page,
body.change-password-page {
  font-family: "Poppins", sans-serif;
  background-image: url("/assets/homepage/rc-v3/images/bg-login.png"); /* Menggunakan background yang sama */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px 0; /* Memberi ruang scroll jika layar pendek */
}

.login-card,
.forgot-password-card,
.change-password-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 90%;
  max-width: 1000px;
  min-height: 550px;
  display: flex;
}

.login-card .left-panel,
.forgot-password-card .left-panel,
.change-password-card .left-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
}

.login-card .right-panel,
.forgot-password-card .right-panel,
.change-password-card .right-panel {
  background-color: #ecf6fc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 80px;
  width: 40%;
}

.login-card .logo-top-right,
.forgot-password-card .logo-top-right,
.change-password-card .logo-top-right {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 120px;
}

@media (max-width: 768px) {
  .login-card,
  .forgot-password-card,
  .change-password-card {
    flex-direction: column;
    height: auto;
    max-width: 500px;
  }
  .login-card .left-panel,
  .forgot-password-card .left-panel,
  .change-password-card .left-panel {
    width: 100%;
    padding: 30px;
  }
  .login-card .right-panel,
  .forgot-password-card .right-panel,
  .change-password-card .right-panel {
    display: none;
  }
}

.left-panel .form-label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.left-panel .form-control {
  border-radius: 5px;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  background-color: #fff;
}

.left-panel .form-control:focus {
  box-shadow: none;
  border-color: #0099ff;
}

.btn-primary-custom {
  background-color: #0088cc;
  border: none;
  border-radius: 25px;
  padding: 10px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background-color: #0077b3;
}

/* Badge Subtle - Premium look */
.badge-subtle-success {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.badge-subtle-primary {
  background-color: rgba(2, 143, 204, 0.1);
  color: var(--color-primary);
}

.badge-subtle-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.badge-subtle-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.link-text {
  color: #0088cc;
  text-decoration: none;
  font-size: 0.85rem;
}

.link-text:hover {
  text-decoration: underline;
}

/* Mockup Recaptcha */
.fake-recaptcha {
  border: 1px solid #d3d3d3;
  background: #f9f9f9;
  width: fit-content;
  padding: 10px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fake-recaptcha input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.fake-recaptcha label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.recaptcha-logo {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #555;
}

.recaptcha-logo img {
  width: 24px;
  opacity: 0.7;
}

.right-panel {
  background-color: #ecf6fc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 80px;
}

.logo-top-right {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 120px;
  height: auto;
}

.char-img {
  max-width: 80%;
  height: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .right-panel {
    display: none;
  }
  .login-card {
    max-width: 500px;
  }
}

/* ===============================================
   UTILITY CLASSES (Shared)
   =============================================== */

.border-right-0 {
  border-right: 0 !important;
}

.border-left-0 {
  border-left: 0 !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* ===============================================
   REGISTER PAGE STYLES
   =============================================== */
body.register-page {
  font-family: "Poppins", sans-serif;
  background-image: url("/assets/homepage/rc-v3/images/bg-login.png"); /* Menggunakan background yang sama */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px 0; /* Memberi ruang scroll jika layar pendek */
}

.register-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 90%;
  max-width: 1000px;
  /* Min-height slightly taller than login because of more fields */
  min-height: 650px;
  display: flex;
}

/* Bagian Kiri (Form) */
.register-card .left-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%; /* Wider for register form */
}

.register-card .form-label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.register-card .form-control {
  border-radius: 5px;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  background-color: #fff;
  font-size: 0.95rem;
}

.register-card .form-control:focus {
  box-shadow: none;
  border-color: #0099ff;
}

/* Styling specific for dense layout (many fields) */
.mb-custom {
  margin-bottom: 1rem;
}

/* Bagian Kanan (Gambar/Visual) */
.register-card .right-panel {
  background-color: #ecf6fc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 80px;
  width: 40%;
}

.register-card .logo-top-right {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 120px;
}

/* Terms Text */
.terms-text {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
}

/* Responsif */
@media (max-width: 768px) {
  .register-card {
    flex-direction: column;
    height: auto;
    max-width: 500px;
  }
  .register-card .left-panel {
    width: 100%;
    padding: 30px;
  }
  .register-card .right-panel {
    display: none; /* Hide image on mobile so form is focused */
  }
}

/* Utility for register */
.w-h-20 {
  width: 20px;
  height: 20px;
}
