/* Brand Grid Styles */
.brand-marquee-area {
  padding: 60px 0;
}

.brand-marquee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.brand-marquee .brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 20px;
  height: 120px;
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.brand-marquee .brand-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.brand-marquee .brand-item:hover img {
  filter: grayscale(0%);
}

/* Show/Hide functionality */
.brand-marquee .brand-item.hidden {
  display: none;
}

.brand-marquee .brand-item.visible {
  display: flex;
}

/* Show More Button Styles */
.show-more-btn {
  background: transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-brand-show-more {
  background: none;
  border: none;
  color: #ae8b5a;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  width: auto;
}

.btn-brand-show-more i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-brand-show-more:hover {
  color: #d9ba8e;
}

.brand-marquee .show-more-btn:hover .btn-brand-show-more {
  color: #d9ba8e;
}

/* Expanded state */
.brand-marquee.expanded .brand-item.hidden {
  display: flex;
}

@media (min-width: 1400px) {
  .brand-marquee {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }

  .brand-marquee .brand-item {
    height: 140px;
    padding: 25px;
  }

  .brand-marquee .brand-item img {
    max-height: 80px;
  }
}

/* Desktop - up to 5 columns */
@media (min-width: 1200px) {
  .brand-marquee {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .brand-marquee .brand-item {
    height: 130px;
  }

  .brand-marquee .brand-item img {
    max-height: 70px;
  }
}

/* Tablet - up to 4 columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .brand-marquee {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
  }

  .brand-marquee .brand-item {
    height: 110px;
    padding: 18px;
  }

  .brand-marquee .brand-item img {
    max-height: 55px;
  }
}

/* Mobile - up to 3 columns */
@media (min-width: 576px) and (max-width: 767px) {
  .brand-marquee {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }

  .brand-marquee .brand-item {
    height: 100px;
    padding: 15px;
  }

  .brand-marquee .brand-item img {
    max-height: 50px;
  }
}

/* Small mobile - up to 2 columns */
@media (max-width: 575px) {
  .brand-marquee {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }

  .brand-marquee .brand-item {
    height: 90px;
    padding: 12px;
  }

  .brand-marquee .brand-item img {
    max-height: 45px;
  }

  .brand-marquee-area {
    padding: 40px 0;
  }
}

.brand-marquee {
  justify-content: start;
}

/* When not expanded, center the visible items */


/* Dark mode support for brand items */

.map-para {
  color: #b2c0d8;
}

.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gd-1 {
  position: absolute;
  top: -10%;
  left: 66%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(174, 139, 90, 0.1) 20%,
    rgb(217, 186, 143, 0.05) 100%,
    transparent 80%
  );
  filter: blur(800px);
  animation: rotateGradient 20s linear infinite;
  border-radius: 50%;
  z-index: 999;
}
.gd-2 {
  position: absolute;
  top: 20%;
  left: 0%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(174, 139, 90, 0.1) 20%,
    rgb(217, 186, 143, 0.05) 100%,
    transparent 60%
  );
  filter: blur(500px);
  animation: rotateGradient 20s linear infinite;
  border-radius: 50%;
  z-index: 999;
}

/* === Optional Slick compatibility for brand marquee === */
.brand-marquee.slick-initialized .slick-track {
  display: flex !important;
  align-items: center;
}

.brand-marquee.slick-initialized .slick-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.brand-marquee.slick-initialized .slick-slide img {
  width: 100px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-marquee.slick-initialized .slick-slide img:hover {
  transform: scale(1.05);
}

/* Responsive improvement */
@media (max-width: 768px) {
  .brand-marquee .brand-item img {
    max-height: 50px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* ✅ yang benar */
}




.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 20px         ;
}

.promo-card {
  background: white;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-content {
            padding: 30px;
        }

        .card-title {
            font-size: 28px;
            font-weight: 700;
            color: #0e63eb;
            margin-bottom: 20px;
            line-height: 1.3;
        }

        .card-date {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #64748b;
            font-size: 16px;
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 2px solid #e2e8f0;
        }

        .calendar-icon {
            width: 24px;
            height: 24px;
            color: #3b82f6;
        }

        .more-detail-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #0e263f 0%, #2563eb 100%);
            color: white;
            padding: 14px 28px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .more-detail-btn:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            transform: translateX(5px);
        }

        .arrow-icon {
            transition: transform 0.3s ease;
        }

        .more-detail-btn:hover .arrow-icon {
            transform: translateX(5px);
        }

        @media (max-width: 768px) {
            .promo-grid {
                grid-template-columns: 1fr;
            }

            .card-title {
                font-size: 24px;
            }
        }
/* Theme Switch Styles */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.theme-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  color: #ae8b5a;
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8) rotate(-180deg);
}

.theme-icon.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Dark mode specific styles for the button */
body.dark-mode .theme-toggle-btn {
  background-color: #2d2d2d;
  color: #ffffff;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a1a1a !important;
  color: #eeecec !important;
}

body.dark-mode .second-header,
body.dark-mode .copyright-wrap {
  background-color: #a38a66 !important;
}

body.dark-mode .header-area,
body.dark-mode .sticky-menu,
body.dark-mode .mean-nav,
body.dark-mode .s-aliment-1,
body.dark-mode .main-menu ul,
body.dark-mode .s-single-services,
body.dark-mode .team-item,
body.dark-mode .testimonial-item,
body.dark-mode .blog-item,
body.dark-mode .faq-area,
body.dark-mode .breadcrumb-area,
body.dark-mode .call-area,
body.dark-mode .widget,
body.dark-mode .inner-blog,
body.dark-mode .card-content,
body.dark-mode .bsingle__content {
  background-color: #2d2d2d !important;
}

body.dark-mode #mobile-menu,
body.dark-mode .testimonial-area {
  background: #2d2d2d !important;
  background-color: #2d2d2d !important;
}

body.dark-mode .single-testimonial,
body.dark-mode .about-text,
body.dark-mode .pricing-box,
body.dark-mode .card-header,
body.dark-mode .faq-btn,
body.dark-mode .card-body,
body.dark-mode .footer-bg,
body.dark-mode .call-area,
body.dark-mode .contact-bg02,
body.dark-mode .avatar__wrap,
body.dark-mode .service-detail-contact,
body.dark-mode .comment-form {
  background-color: #373737 !important;
}

body.dark-mode .main-menu ul,
body.dark-mode .main-menu ul li {
  border-color: #a38a66 !important;
}

body.dark-mode h2,
body.dark-mode .show-more-btn button i,
body.dark-mode .show-more-btn button span {
  color: #a38a66 !important;
}

body.dark-mode .main-menu ul li a,
body.dark-mode .mean-container .mean-nav ul li a {
  color: #ffffff !important;
}

body.dark-mode .meanmenu-reveal,
body.dark-mode .meanmenu-reveal span,
body.dark-mode .mean-container,
body.dark-mode .icon,
body.dark-mode span,
body.dark-mode i {
  color: #ffffff !important;
  border-color: #fff !important;
}

body.dark-mode .hero-area,
body.dark-mode .footer-bottom {
  background-color: #0f0f0f !important;
}

body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode .team-item span,
body.dark-mode .faq-btn,
body.dark-mode .comment-reply {
  color: #eeecec !important;
}

body.dark-mode .team-item span {
  color: #cccccc !important;
}

body.dark-mode .footer-area {
  background-color: #1a1a1a !important;
}

body.dark-mode .footer-widget h3 {
  color: #ffffff !important;
}

body.dark-mode .footer-widget p,
body.dark-mode .footer-widget ul li {
  color: #cccccc !important;
}

body.dark-mode .footer-bottom {
  border-top-color: #333333 !important;
}

body.dark-mode .testimonial-item p {
  color: #ffffff !important;
}

body.dark-mode .blog-item h3 {
  color: #ffffff !important;
}

body.dark-mode .blog-item p {
  color: #cccccc !important;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .contact-form select,
body.dark-mode .contact-form option,
body.dark-mode .contact-form optgroup {
  background-color: #2d2d2d !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder,
body.dark-mode .contact-form select::placeholder {
  color: #aaaaaa !important;
}

body.dark-mode .comment-form input,
body.dark-mode .comment-form textarea,
body.dark-mode .comment-form select,
body.dark-mode .service-filter-nav 
{
  background-color: #2d2d2d !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

body.dark-mode .comment-form input::placeholder,
body.dark-mode .comment-form textarea::placeholder,
body.dark-mode .comment-form select::placeholder {
  color: #aaaaaa !important;
}

/* ============================= */
/* 🔧 Dark Mode Visibility Fixes */
/* ============================= */

/* Ensure sidebar and all widgets have proper contrast */

body.dark-mode .sidebar-widget,
body.dark-mode .widget-content {
  background-color: #2d2d2d !important;
  color: #f5f5f5 !important;
}

/* Category title links */
body.dark-mode .services-categories > li a {
  color: #ffffff !important;
}

/* Subcategory items inside sidebar */
body.dark-mode .subcategory-list li {
  color: #dddddd !important;
  background-color: transparent !important;
  border-bottom: 1px solid #444 !important;
}

/* Hover and active states for both main and subcategories */
body.dark-mode .services-categories > li:hover > a,
body.dark-mode .services-categories > li.active > a,
body.dark-mode .subcategory-list li:hover,
body.dark-mode .subcategory-list li.active {
  background-color: #ae8b5a !important;
  color: #ffffff !important;
}

/* Ensure icons and pseudo-elements (like arrows) remain visible */
body.dark-mode .services-categories li a:before {
  color: #ffffff !important;
}

/* General links */
body.dark-mode a {
  color: #f5f5f5 !important;
}
body.dark-mode .layanan-umum-list li a {
  color: #333 !important;
}

/* Hover link contrast */
body.dark-mode a:hover {
  color: #ae8b5a !important;
}

/* Paragraphs and headings inside dark sections */
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode p {
  color: #f2f2f2 !important;
}

/* Ensure the detail description text and images stay visible */

/* Adjust the gold color slightly in dark mode for better balance */
body.dark-mode .services-categories li.active a:after,
body.dark-mode .services-categories li:hover a:after {
  background-color: #c7a76a !important;
}
/* Pastikan popup atau lightbox muncul di atas header */
.popup-image img,
.mfp-bg,
.mfp-wrap,
.mfp-container {
  z-index: 99999 !important;
}

/* Kalau kamu menggunakan Magnific Popup atau sejenisnya */
.mfp-content {
  z-index: 99999 !important;
}

/* Tambahan keamanan jika header terlalu tinggi */
.header-area,
#header-sticky {
  z-index: 100 !important;
}
.mfp-bg {
  background: rgba(0, 0, 0, 0.9) !important;
}
body.dark-mode .single-testimonial {
  background-color: #2a2a2a !important;
  color: #f2f2f2 !important;
}
body.dark-mode .single-testimonial h6 {
  color: #fff !important;
}
body.dark-mode .single-testimonial span {
  color: #ae8b5a !important;
}
/* 🌙 Mode Gelap (Dark Mode) */
body.dark-mode .more-detail-btn,
body.dark-mode .nav-link {
  background: #a38a66; /* warna gold lembut */
  color: #fff; /* teks putih */
  transition: all 0.3s ease;
}

body.dark-mode .more-detail-btn:hover,
body.dark-mode .nav-link:hover {
  background: #fff; /* latar putih saat hover */
  color: #a38a66; /* teks berubah ke gold */
  transform: translateX(5px);
}

body.dark-mode .more-detail-btn:hover .arrow-icon {
  transform: translateX(5px);
}
/* Untuk semua level subcategory */
.subcategory-list li.active,
.sub-subcategory-list li.active {
  background-color: #ae8b5a;
  color: #fff;
  font-weight: 600;
}

/* DARK MODE for item layanan (sub-subcategory) */
body.dark-mode .sub-subcategory-list li {
  background-color: #2b2b2b !important;
  color: #dddddd !important;
  border: 1px solid #444 !important;
}

/* hover jadi emas */
body.dark-mode .sub-subcategory-list li:hover {
  background-color: #ae8b5a !important;
  color: #ffffff !important;
  border-color: #ae8b5a !important;
}

/* item active (dipilih) tetap emas */
body.dark-mode .sub-subcategory-list li.active {
  background-color: #ae8b5a !important;
  color: #ffffff !important;
  border-color: #ae8b5a !important;
}

/*dark mode info */
body.dark-mode .per-info ,
body.dark-mode .info-section{
  background-color: #222;
  border-color: #444;
}

body.dark-mode .per-info h4,
body.dark-mode .per-info li .icon,
body.dark-mode .per-info li .text,
body.dark-mode .team-area-content li .icon strong{
  color: #ddd;
}



/* Smooth transition for theme switching */
/* body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode * {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
} */
