/* ===========================
   TOP HEADER & LANGUAGE SWITCHER
   =========================== */
.top-header {
  background-color: var(--primary-color); /* Menggunakan variabel untuk konsistensi */
  height: 50px;
  width: 100%;
  position: relative;
  padding: 6px 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Tambahan untuk konsistensi layout */
}

.language-switcher {
  position: absolute;
  top: 15px;
  right: 40px;
  z-index: 1001;
  background: transparent;
  text-align: right;
  padding-right: 40px;
}

.language-switcher button {
  background: transparent;
  border: none;
  color: var(--white-color); /* Menggunakan variabel */
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
  outline: none; /* Tambahan untuk konsistensi */
}

.language-switcher button:hover {
  color: var(--secondary-color); /* Menggunakan variabel */
  background: rgba(255, 255, 255, 0.1);
}

.language-switcher button.active {
  color: var(--secondary-color); /* Menggunakan variabel */
  background: rgba(255, 255, 255, 0.15);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  background-color: var(--white-color); /* Hapus !important, gunakan variabel */
  position: sticky;
  top: 0;
  z-index: 999;
  margin-top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-sizing: border-box; /* Tambahan */
}

.navbar.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar .nav-link {
  color: var(--dark-color); /* Menggunakan variabel */
  font-weight: 500;
  padding: 8px 15px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color); /* Menggunakan variabel dengan opacity jika perlu */
  transition: width 0.3s ease;
  will-change: width; /* Optimasi performa */
}

.navbar .nav-link:hover {
  color: var(--primary-color); /* Menggunakan variabel */
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 80%;
}

/* ===========================
   SCROLL TO TOP BUTTON
   =========================== */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  background-color: var(--primary-color); /* Menggunakan variabel */
  color: var(--white-color); /* Menggunakan variabel */
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(209, 6, 6, 0.4);
  display: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Tambahan */
}

#scrollToTopBtn.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: var(--secondary-color); /* Menggunakan variabel */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 150, 13, 0.5);
}

#scrollToTopBtn:active {
  transform: translateY(-1px) scale(0.98);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   CABANG SECTION
   =========================== */

.latest-podcast-section {
  position: relative;
  padding: 60px 0;
  background: #f8f9fa;
}

.latest-podcast-section .section-title {
  background-color: #d10606;
  color: #fff;
  padding: 8px 25px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(209, 6, 6, 0.3);
  transition: all 0.3s ease;
}

.latest-podcast-section .section-title:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 6, 6, 0.4);
}

/* ===========================
   SLIDER WRAPPER
   =========================== */

.podcast-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.podcast-container {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   CARD STYLES
   =========================== */

.custom-block {
  flex: 0 0 calc(50% - 10px);
  min-width: calc(50% - 10px);
  background: #fff;
  border: 2px solid #d10606;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 50px;
  transition: all 0.3s ease;
  position: relative;
}

.custom-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(209, 6, 6, 0.25);
  border-color: #b10505;
}

.custom-block.d-flex {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* ===========================
   CARD CONTENT
   =========================== */

.custom-block-icon-wrap {
  flex-shrink: 0;
}

.custom-block-image-wrap {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
  transition: transform 0.3s ease;
}

.custom-block-image-wrap:hover {
  transform: scale(1.0);
}

.custom-block-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.custom-block-image-wrap .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.95;
  transition: all 0.3s ease;
}

.custom-block-image-wrap:hover .btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.custom-block-icon-wrap > .btn.mt-2 {
  width: 100%;
  font-size: 0.85rem;
  padding: 6px 12px;
  font-weight: 600;
  background-color: #d10606;
  border-color: #d10606;
}

.custom-block-icon-wrap > .btn.mt-2:hover {
  background-color: #b10505;
  border-color: #b10505;
}

.custom-block-info {
  flex: 1;
  min-width: 0;
}

.custom-block-top {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.custom-block-top small {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

.custom-block-top .badge {
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #d10606;
}

.custom-block-info h5 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.custom-block-info h5 a {
  transition: color 0.3s ease;
  color: #d10606;
  text-decoration: none;
}

.custom-block-info h5 a:hover {
  color: #b10505;
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-block-image {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border: 2px solid #d10606;
  border-radius: 50%;
}

.verified-image {
  width: 16px !important;
  height: 16px !important;
  border: none !important;
}

.profile-block p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.profile-block strong {
  font-size: 0.95rem;
  color: #333;
}

.custom-block-info > p.text-muted {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.custom-block-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-block-bottom span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-block-bottom i {
  font-size: 0.9rem;
  color: #d10606;
}

/* ===========================
   NAVIGATION BUTTONS
   =========================== */

.nav-btn {
  position: absolute;
  transform: translateY(-50%);
  background: #d10606;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(209, 6, 6, 0.4);
}

.nav-btn:hover {
  background: #b10505;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(209, 6, 6, 0.5);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.nav-btn:disabled:hover {
  background: #ccc;
  transform: translateY(-50%);
}

.prev-btn {
  left: px;
}

.next-btn {
  right: 10px;
}

/* ===========================
   POPUP PROMO CARD
   =========================== */

.popup-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-card.show {
  display: flex;
  opacity: 1;
}

.popup-content {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  width: 100%;
  max-width: 850px;
  animation: popupFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-direction: row;
}

.popup-image {
  width: 45%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.popup-text {
  flex: 1;
  padding: 30px 35px;
  color: #222;
  line-height: 1.6;
  font-size: 14.5px;
  font-family: "Poppins", sans-serif;
  overflow-y: auto;
  max-height: 600px;
}

.popup-text h3 {
  font-weight: 700;
  font-size: 22px;
  color: #d10606;
  margin-bottom: 15px;
  line-height: 1.3;
}

.popup-text p {
  margin-bottom: 12px;
}

.popup-text ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.popup-text ul li {
  margin-bottom: 8px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #d10606;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: #ff960d;
  transform: rotate(90deg) scale(1.1);
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===========================
   RESPONSIVE DESIGN (Kelanjutan)
   =========================== */

/* Small Mobile */
@media (max-width: 480px) {
  .top-header {
    height: 40px;
  }

  .language-switcher {
    top: 10px;
    right: 10px;
    padding-right: 10px;
  }

  .language-switcher button {
    font-size: 11px;
    padding: 3px 6px;
  }

  .podcast-wrapper {
    padding: 0 40px;
  }

  .custom-block {
    padding: 30px;
  }

  .custom-block.d-flex {
    flex-direction: column;
    text-align: center;
  }

  .custom-block-icon-wrap {
    margin: 0 auto 15px;
  }

  .custom-block-image-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .custom-block-info {
    text-align: center;
  }

  .profile-block {
    justify-content: center;
  }

  .custom-block-bottom {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-btn {
     position: absolute;
  right: 0;
  bottom: -20px; /* menempatkan di bawah garis merah */
  display: flex;
  gap: 8px;
  }

  #scrollToTopBtn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .popup-content {
    width: 95%;
  }

  .popup-text {
    padding: 15px;
  }

  .close-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
    top: 8px;
    right: 8px;
  }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
  .latest-podcast-section {
    padding: 30px 0;
  }

  .custom-block-image-wrap {
    width: 80px;
    height: 80px;
  }

  .popup-content {
    max-height: 90vh;
  }

  .popup-text {
    max-height: 300px;
  }
}

/* ===========================
   POPUP PROMO CARD (Update dari duplikasi)
   =========================== */
.popup-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Menggunakan alpha untuk konsistensi */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Diperbaiki dari 9999 untuk menghindari konflik */
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box; /* Tambahan */
}

.popup-card.show {
  opacity: 1;
}

/* ===========================
   SOCIAL ICON LINK
   =========================== */
.social-icon-link.bi-pinterest {
  visibility: hidden; /* Baik untuk menyembunyikan, tapi pastikan tidak mempengaruhi aksesibilitas */
}

/* ===========================
   PARTNERSHIP SECTION
   =========================== */
.partner-card {
  background: var(--white-color); /* Menggunakan variabel */
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  width: 220px; /* Lebih besar dari sebelumnya */
  margin: 0 20px; /* Kurangi jarak antar card */
  transition: all 0.3s ease;
  box-sizing: border-box; /* Tambahan */
  cursor: pointer; /* Tambahan jika interaktif */
}

.partner-card img {
  width: 100px; /* Sedikit diperbesar */
  height: auto;
  margin-bottom: 12px;
  object-fit: contain; /* Pastikan gambar fit */
}

.partner-card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color); /* Menggunakan variabel */
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  will-change: transform, box-shadow; /* Optimasi performa */
}

/* Pengaturan layout carousel (jika pakai Owl Carousel) */
.owl-carousel .owl-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsif untuk Partnership */
@media (max-width: 768px) {
  .partner-card {
    width: 180px;
    margin: 0 10px;
  }

  .partner-card img {
    width: 80px;
  }
}

.popup-card {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: flex-start;
  max-width: 850px;
  width: 90%;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
  position: relative;
}

.popup-image {
  width: 45%;
  border-radius: 10px;
  object-fit: cover;
}

.popup-text {
  flex: 1;
}

.popup-text h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #d10606;
  margin-bottom: 10px;
}

.popup-text p {
  color: #444;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #d10606;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  background: #ff8800;
}

@keyframes slideUp {
  from {transform: translateY(30px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

@media (max-width: 768px) {
  .popup-content {
    flex-direction: column;
    text-align: center;
  }
  .popup-image {
    width: 100%;
  }
}

.slider-section {
  position: relative;
  overflow: hidden;
}

.card-row {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex-wrap: nowrap; /* penting supaya scroll horizontal */
}

.card-row::-webkit-scrollbar {
  display: none;
}

/* Tombol kiri kanan */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #d10606;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.prev-btn {
  left: -100px;
}

.next-btn {
  right: 8px;
}

/*untuk produk*/
.products-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.products-wrapper .row {
  align-items: stretch;
}

.nav-buttons .nav-btn {
  background: #d10606;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-buttons .nav-btn:hover {
  background: #a00505;
}

.nav-buttons .nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.section-title-wrap {
  
  position: relative;
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.produk-nav-buttons {
  position: absolute;
  right: 0;
  bottom: -20px; 
  display: flex;
  gap: 8px;
}

.produk-btn {
  background: #d10606;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.produk-btn:hover {
  background: #d10606;
}

.produk-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*END untuk produk*/

/*INI CSS FOOTERRR STARTTT*/
.custom-footer {
  background-image: url('../images/footer2.png'), linear-gradient(#d10606, #FFFFFF);/* tambahkan ini */
  background-size: cover;     /* supaya menyesuaikan lebar */
  background-position: center;
  background-repeat: no-repeat;
  color: #000;
  padding: 60px 40px;
  font-family: 'Poppins', sans-serif;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}


.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-left, .footer-center, .footer-right {
  flex: 1 1 300px;
}

/* Logo dan teks kiri */
.footer-logo {
  width: 160px;
  margin-bottom: 10px;
}

.footer-left h3 {
  color: #000;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-left p {
  line-height: 1.6;
}

.footer-address {
  color: #fff;
  margin-top: 15px;
  font-size: 14px;
}

/* Follow Us */
.footer-center h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

.social-list {
  color: #fff;
  list-style: none;
  padding: 0;
}

.social-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 500;
}

.social-list i {
  font-size: 24px;
  margin-right: 10px;
  color: #000;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  padding: 6px;
  transition: all 0.3s ease;
}

.social-list i:hover {
  color: #fff;
  background: #000;
}

/* Kritik & Saran */
.footer-right h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-form .input-row {
  display: flex;
  gap: 10px;
}

.feedback-form input,
.feedback-form textarea {
  border: 2px solid #000;
  border-radius: 30px;
  padding: 10px 15px;
  width: 100%;
  font-size: 14px;
  resize: none;
  outline: none;
}

.feedback-form button {
  background: #ff960d;
  border: none;
  border-radius: 30px;
  padding: 10px 0;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
}

.feedback-form button:hover {
  background: #ff960d;
}

/* Responsif */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feedback-form .input-row {
    flex-direction: column;
  }
}

/* INI CSS FOOTER ENDDDD */

/* Wrapper untuk slider horizontal */
.article-wrapper {
  overflow: hidden;
  position: relative;
}

.article-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.article-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.custom-block.custom-block-full {
  min-width: 320px;
  flex-shrink: 0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background-color: #fff;
}

/* Tombol Navigasi */
.produk-nav-buttons .nav-btn {
  background-color: #d10606;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: 0.3s;
}

.produk-nav-buttons .nav-btn:hover {
  background-color: #a50404;
}

.nav-buttons .nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}