/* ============================================
   RUHAMA MARKETPLACE - GLOBAL STYLE (REVISI)
============================================ */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f0f4f8;
  color: #333;
  overflow-x: hidden;
  padding-top: 120px; /* jarak aman header 2 baris */
}

@media (max-width: 768px) {
  body {
    padding-top: 150px; /* header mobile lebih tinggi */
  }
}

/* ===== Header Utama ===== */
.header-top {
  z-index: 1050;
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Kolom Pencarian */
.search-box {
  background-color: #eaf3ff;
  border-radius: 25px;
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
}
.search-box input {
  flex: 1;
  padding: 8px;
  font-size: 0.95rem;
  color: #333;
  border: none;
  background: transparent;
}
.search-box input:focus {
  outline: none;
  box-shadow: none;
}
.btn-search {
  background-color: #6fa8dc;
  color: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tombol Icon */
.btn-action {
  width: 40px;
  height: 40px;
  background-color: #e7f0fc;
  color: #4a7bbf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.btn-action:hover {
  background-color: #6fa8dc;
  color: #fff;
}

/* Tombol Login */
.btn-login {
  background-color: #6fa8dc;
  border: none;
  padding: 6px 16px;
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}
.btn-login-outline {
  border: 1px solid #6fa8dc;
  color: #4a7bbf;
  border-radius: 25px;
  padding: 6px 16px;
  text-decoration: none;
  font-weight: 500;
}
.btn-login-outline:hover {
  background-color: #6fa8dc;
  color: #fff;
}

/* ===== Navbar bawah ===== */
.nav-bottom {
  background: linear-gradient(90deg, #6fa8dc, #a8cfff);
  padding: 6px 0;
}
.nav-bottom .navbar-nav {
  margin: 0 auto; /* Menu di tengah saat desktop */
}
.nav-bottom .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 8px 15px;
  transition: 0.3s;
}
.nav-bottom .nav-link:hover {
  text-decoration: underline;
}

/* === Perbaikan posisi breadcrumb === */
.breadcrumb-section {
  padding: 15px 0;
  background-color: #f8f9fa;
  position: relative;
  z-index: 1;
  margin-top: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Tambahkan jarak otomatis di bawah header fixed */
body > .breadcrumb-section:first-of-type {
  margin-top: 120px;
}
@media (max-width: 768px) {
  body > .breadcrumb-section:first-of-type {
    margin-top: 150px;
  }
}

/* Breadcrumb link */
.breadcrumb a {
  color: #0d6efd;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb-section h4 {
  font-weight: 700;
  margin-top: 8px;
  color: #0d6efd;
}

/* ===== Navigasi Responsif: Menu di Kiri ===== */
@media (max-width: 992px) {
  .navbar-collapse {
    justify-content: flex-start ;
  }

  .navbar-nav {
    align-items: flex-start ;
    text-align: left ;
    margin: 0 ;
  }

  .navbar-nav .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* === Header bagian kanan (ikon akun & cart sejajar) === */
.header-top .d-flex.align-items-center.gap-2.ms-auto {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 100%;
}
.header-top .btn-action i {
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsif Header */
@media (max-width: 768px) {
  .search-form {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  .btn-action, .btn-login, .btn-login-outline {
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .btn-login span, .btn-login-outline span {
    display: none;
  }
}

/* === HERO SECTION === */
.hero {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image {
  width: 100%;
  height: auto;
}
.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* === MOBILE RESPONSIVE HERO === */
@media (max-width: 768px) {
  .hero {
    height: 200px;
  }
  .hero-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

/* ============================================
   BUTTONS
============================================ */
.btn-outline-success {
  color: #6fa8dc;
  border-color: #6fa8dc;
}
.btn-outline-success:hover {
  background-color: #6fa8dc;
  color: #fff;
  border-color: #6fa8dc;
}
.btn-light {
  background-color: #e7f0fc;
  color: #4a7bbf;
}
.btn-light:hover {
  background-color: #d0e1f7;
  color: #375b9a;
}

/* ============================================
   CARD STYLES
============================================ */
.category-card,
.card {
  background-color: #ffffff;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.category-card:hover,
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.card img {
  object-fit: cover;
  width: 100%;
  height: 180px;
}

/* ============================================
   PAGINATION
============================================ */
.pagination .page-item.active .page-link {
  background-color: #6fa8dc;
  border-color: #6fa8dc;
}
.pagination .page-link {
  color: #6fa8dc;
}
.pagination .page-link:hover {
  background-color: #d0e1f7;
}

/* ============================================
   FOOTER
============================================ */
footer {
  background-color: #e7f0fc;
  color: #375b9a;
  text-align: center;
  padding: 2rem 0;
}
footer a {
  color: #6fa8dc;
  transition: color 0.3s;
}
footer a:hover {
  color: #4a7bbf;
}

/* Floating WhatsApp Bubble */
.wa-bubble {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    text-decoration: none;
    animation: waBounce 2.5s infinite ease-in-out;
    transition: transform .2s ease, box-shadow .2s ease;
}

.wa-bubble i {
    font-size: 22px;
}

.wa-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* Soft bounce animation */
@keyframes waBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 600px) {
    .wa-bubble {
        padding: 9px 14px;
        font-size: 14px;
    }
    .wa-bubble i {
        font-size: 20px;
    }
}

.social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #fff;
  transition: .3s;
}

.social-icon.fb { background: #1877F2; }
.social-icon.ig { background: linear-gradient(45deg, #ff7a00, #e91e63, #8a3ab9); }
.social-icon.wa { background: #25D366; }

.social-links .social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


/* ============================================
   SPOTIFY SECTION
============================================ */
.spotify-section {
  background-color: #f0f8ff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.spotify-section .section-title {
  font-size: 2rem;
  font-weight: 600;
}
.spotify-section .spotify-embed iframe {
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.spotify-section .spotify-text h3 {
  font-weight: 600;
  margin-top: 1rem;
}
.spotify-section .spotify-text p {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   VIDEO SECTION
============================================ */
.video-youtube-section {
  background-color: #f9fbfd;
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.video-youtube-section .section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
}
.video-wrapper iframe {
  border-radius: 12px;
  width: 100%;
  height: 315px;
}

/* ============================================
   ANIMASI
============================================ */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 767px) {
  .hero { min-height: 60vh; background-position: center top; }
  .card img { height: 150px; }
  .category-card { margin-bottom: 1rem; }
  .spotify-section .section-title,
  .video-youtube-section .section-title { font-size: 1.5rem; }
  .video-wrapper iframe { height: 200px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hero { min-height: 70vh; background-position: center center; }
  .card img { height: 170px; }
  .video-wrapper iframe { height: 250px; }
}
@media (min-width: 992px) {
  .hero { min-height: 85vh; background-position: center center; }
}

/* ================= Floating WhatsApp Button ================= */
.floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: #fff;
}
@media (max-width: 576px) {
  .floating-wa {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
}

/* ============================== */
/* BUMIRAJA SECTION */
/* ============================== */
.bumiraja-section {
  background: linear-gradient(180deg, #e8f2ff 0%, #f9fbfd 100%);
  padding: 80px 0;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}
.bumiraja-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 50%;
  z-index: 0;
}
.bumiraja-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 180px;
  height: 180px;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}
.bumiraja-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.bumiraja-section h2 {
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 20px;
  font-size: 2rem;
}
.bumiraja-section p {
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}
.bumiraja-section img {
  max-width: 280px;
  height: auto;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}
.bumiraja-section img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
}
@media (max-width: 768px) {
  .bumiraja-container { padding: 30px; text-align: center; }
  .bumiraja-section h2 { font-size: 1.6rem; }
  .bumiraja-section img { margin-top: 20px; max-width: 200px; }
}

/* ============================== */
/* UNIT USAHA BUMIRAJA */
/* ============================== */
.unit-bumiraja {
  background: linear-gradient(180deg, #e6f0ff 0%, #f9fbfd 100%);
  padding: 80px 0;
}
.unit-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.unit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.2);
}
.unit-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.unit-card:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}
.unit-card h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-top: 15px;
  color: #0d47a1;
  transition: color 0.3s ease;
}
.unit-card:hover h5 {
  color: #0d6efd;
}
@media (max-width: 768px) {
  .unit-card img { height: 160px; }
  .unit-card h5 { font-size: 15px; }
}
