/**
 * Package    : ORCA Ecosystem / ARNetwork Holding Portal
 * Author     : Ahmad Roni <ahmad@orca.id>
 * Copyright  : (c) ORCA CMS / ORCA Ecosystem / ARNETWORK.ID
 * Purpose    : Master Refactored Frontend Stylesheet (100% All Blade Styles Combined)
 * Version    : 3.1.0-DEDUPED
 *
 */

/* ==========================================================================
   1. CORE VARIABLES & BRANDING ACCENTS (app.blade.php)
   ========================================================================== */
:root {
  --brand-primary: #7367f0;
  --brand-primary-rgb: 115, 103, 240;
  --brand-secondary: #0b7a7b;
  --brand-secondary-rgb: 11, 122, 123;
  --brand-gradient: linear-gradient(135deg, var(--brand-primary, #7367f0) 0%, var(--brand-secondary, #0b7a7b) 100%);
}

/* ==========================================================================
   2. GLOBAL LAYOUT & UTILITIES (app.blade.php, show.blade.php & Shared)
   ========================================================================== */
main {
  position: relative;   /* tanpa z-index */
}

section {
  position: relative;
  z-index: 1;            /* aman, cuma lokal untuk .header-gradient-bg dkk */
}

/* Top Header Gradient Banner */
.header-gradient-bg {
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(var(--brand-secondary-rgb, 11, 122, 123), 0.15) 0%, transparent 45%),
    linear-gradient(180deg, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.05) 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.01) 100%);
}

/* Skeleton Loaders (Unifikasi .skeleton-bg & .skeleton-loader) */
.orca-skeleton,
.skeleton-bg,
.skeleton-loader {
  background: linear-gradient(90deg, #f1f5f9 25%, #cbd5e1 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: orca-shimmer 1.5s infinite linear;
}

@keyframes orca-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

[data-bs-theme="dark"] .orca-skeleton,
[data-bs-theme="dark"] .skeleton-bg,
[data-bs-theme="dark"] .skeleton-loader,
.dark-style .orca-skeleton,
.dark-style .skeleton-bg,
.dark-style .skeleton-loader {
  background: linear-gradient(90deg, #2f3349 25%, #434968 50%, #2f3349 75%);
  background-size: 200% 100%;
}

/* Smart Image Load (merged: hidden until JS marks it loaded, then locked-down box model) */
.img-smart-load {
  display: none;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Text Line Clamps */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-primary {
  transition: color 0.2s ease-in-out;
}

.hover-primary:hover {
  color: var(--bs-primary, #7367f0) !important;
}

/* ==========================================================================
   3. NAVIGATION BAR COMPONENTS (_navbar.blade.php)
   ========================================================================== */
.front-navbar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.front-navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] .front-navbar.navbar-scrolled,
.dark-style .front-navbar.navbar-scrolled {
  background-color: rgba(43, 44, 64, 0.92) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.navbar-brand:hover .navbar-brand-logo {
  transform: scale(1.03);
}

/* Indikator Navigasi & Active States */
.landing-nav-menu .nav-link.active,
.landing-nav-menu .nav-item.active > .nav-link,
.nav-link.active-page {
  color: var(--bs-primary, #7367f0) !important;
  font-weight: 700 !important;
}

/* Desktop Navigation Styling & Dropdowns */
@media (min-width: 992px) {
  .landing-nav-menu .nav-item.active > .nav-link,
  .landing-nav-menu .nav-link.active,
  .nav-link.active-page {
    position: relative;
  }

  .landing-nav-menu .nav-item.active > .nav-link::before,
  .landing-nav-menu .nav-link.active::before,
  .nav-link.active-page::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0.75rem;
    right: 0.75rem;
    height: 3px;
    background-color: var(--bs-primary, #7367f0);
    border-radius: 2px;
  }

  .landing-nav-menu .nav-item.dropdown.active > .nav-link::before {
    right: 1.8rem !important;
  }

  .landing-nav-menu .dropdown-menu {
    margin-top: 12px !important;
    min-width: 220px !important;
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 12px 32px rgba(115, 103, 240, 0.12) !important;
    border: 1px solid rgba(115, 103, 240, 0.08) !important;
    padding: 0.5rem !important;
  }

  .landing-nav-menu .dropdown-item {
    border-radius: 0.5rem !important;
    padding: 0.55rem 1rem !important;
    transition: all 0.2s ease-in-out;
  }
}

/* Submenu Dropdown Item Aktif */
.landing-nav-menu .dropdown-item.active,
.landing-nav-menu .dropdown-item:active {
  background-color: rgba(115, 103, 240, 0.1) !important;
  color: var(--bs-primary, #7367f0) !important;
  font-weight: 700 !important;
  border-left: none !important;
  padding-left: 1rem !important;
}

/* Mobile Responsive Navigation */
@media (max-width: 991.98px) {
  .landing-offcanvas {
    background-color: var(--bs-paper-bg, #ffffff);
  }
  [data-bs-theme="dark"] .landing-offcanvas,
  .dark-style .landing-offcanvas {
    background-color: #2b2c40 !important;
  }

  .landing-nav-menu .dropdown-menu {
    border: none !important;
    box-shadow: none !important;
    padding-left: 1rem !important;
    background-color: rgba(115, 103, 240, 0.04) !important;
    margin-top: 0.25rem !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
  }

  .landing-nav-menu .nav-link.active {
    background-color: rgba(115, 103, 240, 0.08);
    border-radius: 0.375rem;
    padding-left: 0.75rem !important;
  }
}
/* ==========================================================================
   4. HOME PAGE & CAROUSEL COMPONENTS (home.blade.php)
   ========================================================================== */
/* Slider Wrapper & Slide Container Fix */
.swiper-hero-full-slider,
.swiper-hero-full-slider .swiper-wrapper,
.swiper-hero-full-slider .swiper-slide.hero-slide-bg {
  width: 100%;
  height: 960px;
  min-height: 960px;
  display: flex;
  align-items: center;
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Paksa tombol hero agar langsung siap tangkap event di dalam Swiper Slide */
.swiper-hero-full-slider .swiper-slide .btn-dynamic-primary,
.swiper-hero-full-slider .swiper-slide-active .btn-dynamic-primary {
    background-color: var(--brand-primary, #7367f0) !important;
    border-color: var(--brand-primary, #7367f0) !important;
    pointer-events: auto !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease !important;
}

.swiper-hero-full-slider .swiper-slide .btn-dynamic-primary:hover,
.swiper-hero-full-slider .swiper-slide-active .btn-dynamic-primary:hover {
    background-color: var(--brand-secondary, #0B7A7B) !important;
    border-color: var(--brand-secondary, #0B7A7B) !important;
    transform: translateY(-2px) !important;
}

/* Hero Overlay & Content Box Layering */
.hero-slide-bg .hero-overlay-soft,
.hero-slide-bg .hero-slide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20) 0%, rgba(15, 23, 42, 0.10) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide-bg .container {
  position: relative;
  width: 100%;
  z-index: 3 !important;
  pointer-events: auto !important;
}

.hero-content-box {
  max-width: 860px;
  margin: 0 auto;
}

/* Tombol Utama Hero dengan Efek Hover Dinamis */
/* Gabungkan dan pastikan selector global maupun scoped memiliki bobot tertinggi */
body .btn-dynamic-primary,
.hero-slide-bg .btn-dynamic-primary {
    background-color: var(--brand-primary, #7367f0) !important;
    border-color: var(--brand-primary, #7367f0) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 0.375rem !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

body .btn-dynamic-primary:hover,
body .btn-dynamic-primary:focus,
body .btn-dynamic-primary:active,
.hero-slide-bg .btn-dynamic-primary:hover,
.hero-slide-bg .btn-dynamic-primary:focus,
.hero-slide-bg .btn-dynamic-primary:active {
    background-color: var(--brand-secondary, #0B7A7B) !important;
    border-color: var(--brand-secondary, #0B7A7B) !important;
    color: #ffffff !important;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
}

/* Hero Carousel Swiper Controls */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: var(--bs-primary, #7367f0);
  transform: scale(1.1);
}

.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ffffff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 6px;
  opacity: 1;
  background: var(--bs-primary, #7367f0);
}

.hero-slide-bg .container .hero-content-col,
.hero-slide-bg .container a,
.hero-slide-bg .container button {
  pointer-events: auto !important;
}

/* Testimonials Carousel Swiper (home.blade.php) */
.swiper-testimonials {
  padding-bottom: 3rem !important;
}

.swiper-testimonials .swiper-pagination-bullet {
  background: var(--bs-primary, #7367f0);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.swiper-testimonials .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 6px;
}

.swiper-testimonials .swiper-button-next,
.swiper-testimonials .swiper-button-prev {
  color: var(--bs-primary, #7367f0);
  background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-testimonials .swiper-button-next:after,
.swiper-testimonials .swiper-button-prev:after {
  font-size: 1.2rem;
  font-weight: bold;
}

.swiper-testimonials .swiper-button-next:hover,
.swiper-testimonials .swiper-button-prev:hover {
  background: var(--bs-primary, #7367f0);
  color: #ffffff;
}

/* Cards & Timer Customizations */
.card-custom {
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] .card-custom,
.dark-style .card-custom {
  background-color: #2f3349;
  border-color: #434968;
}

.icon-box-center {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem auto;
}

.timer-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 0.5rem;
  background-color: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.1);
  color: var(--bs-primary, #7367f0);
  border-radius: 0.5rem;
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 1399.98px) {
  .swiper-hero-full-slider,
  .swiper-hero-full-slider .swiper-wrapper,
  .swiper-hero-full-slider .swiper-slide.hero-slide-bg {
    height: 750px;
    min-height: 750px;
  }
}

@media (max-width: 991.98px) {
  .swiper-hero-full-slider,
  .swiper-hero-full-slider .swiper-wrapper,
  .swiper-hero-full-slider .swiper-slide.hero-slide-bg {
    height: 100vh;
    min-height: 100vh;
  }
}
/* ==========================================================================
   5. LANDING BUILDER & CMS SHOW (show.blade.php) — Canonical .page-content
   ========================================================================== */
.orca-gradient-card {
  background: var(--brand-gradient);
}

.orca-card-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* WYSIWYG Content Typography — single source of truth, used by both
   show.blade.php and the blog/post module (section 6). */
.page-content {
  font-size: 1.0625rem;
  line-height: 1.85;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: var(--bs-heading-color);
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-content h1 { font-size: 2.25rem; }
.page-content h2 { font-size: 1.75rem; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 0.5rem; }
.page-content h3 { font-size: 1.4rem; }
.page-content h4 { font-size: 1.2rem; }

.page-content p {
  margin-bottom: 1.4rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Callout / excerpt block — shared by prose blockquotes and the standalone
   .post-summary-callout component (previously declared twice with drifting
   values; this is now the only definition). */
.page-content blockquote,
.post-summary-callout {
  position: relative;
  padding: 1.25rem 1.5rem !important;
  margin: 2rem 0 !important;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.05) 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.01) 100%) !important;
  border-left: 4px solid var(--bs-primary, #7367f0) !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  font-style: italic;
  color: var(--bs-heading-color, #2f3349) !important;
}

.page-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
}

.page-content table th,
.page-content table td {
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--bs-border-color);
}

.page-content table th {
  background-color: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.06);
  font-weight: 600;
  color: var(--bs-heading-color);
}

.page-content code:not(pre code) {
  background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.08);
  color: var(--bs-primary, #7367f0);
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
}

.page-content pre {
  background-color: #282c34;
  color: #abb2bf;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}

/* ==========================================================================
   6. POST & BLOG MODULE (post-index, post-category, post-show)
   ========================================================================== */

/* Legacy shimmer keyframe name, kept in case older Blade partials still
   reference `animation: shimmer` directly instead of `orca-shimmer`. */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Article Covers & Image Containers */
.post-card-thumb {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.article-cover-container {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .article-cover-container {
    height: 260px;
  }
}

.related-img-container {
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
}

/* Popular Posts & Related Post Hover Effects */
.popular-post-item {
  transition: all 0.25s ease;
}

.popular-post-item:hover {
  transform: translateX(4px);
}

.popular-badge-num {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}

.related-post-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Redesigned Nested Comment Thread System */
.comment-thread-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 10px;
}

[data-bs-theme="dark"] .comment-card,
.dark-style .comment-card {
  background: #2f3349;
  border-color: rgba(255, 255, 255, 0.08);
}

.comment-card:hover {
  border-color: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04) !important;
}

.nested-reply-wrapper {
  margin-left: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px dashed rgba(var(--bs-primary-rgb, 115, 103, 240), 0.25);
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .nested-reply-wrapper {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
  }
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.comment-avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.875rem;
}

/* ==========================================================================
   7. PRODUCTS MODULE (products-index)
   ========================================================================== */
.catalog-product-card {
  border-radius: 0.85rem !important;
  background-color: var(--bs-paper-bg, #ffffff);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.catalog-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1) !important;
}

/* Hover Blur Overlay (Glassmorphism) */
.hover-overlay-soft {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
  opacity: 0;
  transition: all 0.3s ease;
}

.group-preview:hover .hover-overlay-soft {
  opacity: 1 !important;
}

.group-preview:hover img.product-img-zoom {
  transform: scale(1.06);
}

.product-img-zoom {
  transition: transform 0.4s ease;
}

/* Filter Control Bar Styling */
.filter-control-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--bs-primary-rgb, 115, 103, 240), 0.12) !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
}

.custom-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-input-group .input-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--bs-primary, #7367f0);
  z-index: 4;
  pointer-events: none;
}

.custom-control-input,
.custom-control-select {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bs-heading-color, #2f3349);
  background-color: var(--bs-body-bg, #ffffff);
  border: 1.5px solid var(--bs-border-color, #e0e0e0);
  border-radius: 0.65rem;
  transition: all 0.25s ease;
}

.custom-control-input:focus,
.custom-control-select:focus {
  border-color: var(--bs-primary, #7367f0);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 115, 103, 240), 0.15);
  outline: none;
}

.custom-control-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237367f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 12px;
  padding-right: 2.5rem;
}

/* View Switcher Pill Buttons */
.view-switcher-pill {
  display: inline-flex;
  padding: 0.25rem;
  background-color: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.06);
  border-radius: 0.65rem;
  border: 1px solid rgba(var(--bs-primary-rgb, 115, 103, 240), 0.1);
}

.view-switcher-pill .btn-switch {
  border: none;
  background: transparent;
  color: var(--bs-body-color, #5d596c);
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.view-switcher-pill .btn-switch.active {
  background-color: var(--bs-primary, #7367f0);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.3);
}

.btn-hover-action {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-hover-action:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.3) !important;
}

/* List View Modes */
.view-mode-list .product-item-col {
  width: 100% !important;
}

.view-mode-list .catalog-product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 220px;
}

.view-mode-list .card-img-wrapper {
  width: 300px !important;
  height: 100% !important;
  min-height: 220px;
  flex-shrink: 0 !important;
  border-radius: 0.85rem 0 0 0.85rem !important;
}

.view-mode-list .card-body-wrapper {
  flex-grow: 1 !important;
  padding: 1.5rem 1.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.view-mode-list .list-view-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem !important;
}

@media (max-width: 991.98px) {
  .view-mode-list .list-view-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .view-mode-list .catalog-product-card {
    flex-direction: column !important;
  }
  .view-mode-list .card-img-wrapper {
    width: 100% !important;
    height: 220px !important;
    border-radius: 0.85rem 0.85rem 0 0 !important;
  }
}

.product-gallery-thumbs .swiper-slide {
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  overflow: hidden;
}

.product-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--bs-primary, #7367f0);
}

.product-price-tag {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bs-primary, #7367f0);
}

.product-spec-table tr td:first-child {
  font-weight: 600;
  width: 35%;
  color: var(--bs-heading-color);
}

/* ==========================================================================
   8. PRODUCTS SHOW (products-show.blade.php — detail page additions)
   ========================================================================== */
.product-detail-card {
  border-radius: 0.75rem !important;
  background-color: var(--bs-paper-bg, #ffffff);
}

.price-highlight-card {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.06) 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.01) 100%);
}

/* Swiper Product Gallery Carousel */
.swiper-product-main {
  width: 100%;
  height: 380px;
  background-color: var(--bs-light-bg, #f8fafc);
}

.swiper-product-thumbs {
  width: 100%;
  height: 85px;
}

.swiper-product-thumbs .swiper-slide {
  width: 85px;
  height: 75px;
  opacity: 0.55;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent !important;
  border-radius: 0.5rem;
  overflow: hidden;
}

.swiper-product-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--bs-primary, #7367f0) !important;
}

.product-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-image-wrapper {
  width: 100%;
  height: 380px;
  background-color: var(--bs-light-bg, #f8fafc);
  position: relative;
}

/* Custom Swiper Controls */
.custom-swiper-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  color: var(--bs-primary, #7367f0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.custom-swiper-btn::after {
  font-size: 14px;
  font-weight: bold;
}

.custom-swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--bs-primary, #7367f0) !important;
  width: 18px;
  border-radius: 4px;
}

/* WhatsApp Hover Animation */
.btn-hover-wa {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-hover-wa:hover {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35) !important;
}

/* Product Feature & Review Cards Callout */
.product-summary-callout,
.review-quote-callout {
  position: relative;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.05) 0%, rgba(var(--bs-primary-rgb, 115, 103, 240), 0.01) 100%);
  border-left: 4px solid var(--bs-primary, #7367f0);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--bs-heading-color, #2f3349);
}

.feature-item-card:hover {
  border-color: var(--bs-primary, #7367f0) !important;
  background-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.review-card-item .card-custom {
  transition: all 0.3s ease;
}

.review-card-item .card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--bs-primary-subtle, #e0e0e0);
}

/* Interactive Star Rating Input (used inside the "Tulis Review" modal) */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
}

.star-rating-input input[type="radio"] {
  display: none;
}

.star-rating-input label {
  font-size: 1.75rem;
  color: #d3d3d3;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input[type="radio"]:checked ~ label {
  color: #ffb800;
  transform: scale(1.15);
}

/* FilePond Form Overrides (review photo attachments) */
.filepond--root {
  font-family: inherit !important;
  margin-bottom: 0 !important;
}

.filepond--panel-root {
  background-color: var(--bs-light-bg, #f8fafc) !important;
  border: 2px dashed var(--bs-border-color, #dbade1) !important;
  border-radius: 0.5rem !important;
}

.filepond--drop-label {
  color: var(--bs-body-color, #5d596c) !important;
  font-size: 0.875rem !important;
  cursor: pointer;
}

.filepond--label-action {
  text-decoration-color: var(--bs-primary, #7367f0) !important;
  color: var(--bs-primary, #7367f0) !important;
  font-weight: 700;
}

.modal-footer-spaced {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid var(--bs-border-color, #e0e0e0);
}

/* ==========================================================================
   9. FLOATING ACTION & SPEED DIAL SYSTEM (single source of truth)
   ========================================================================== */

/* Prevent the footer from clipping fixed/floating elements. Only one of
   these two properties actually mattered (overflow: visible) — the z-index
   value itself doesn't affect clipping, so it no longer needs to compete
   with the floating button's z-index. */
footer,
.footer,
[class*="landing-footer"] {
  position: relative !important;
  overflow: visible !important;
  z-index: 1 !important;
}

.floating-action-container,
.floating-btn-group {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  left: auto !important;
  top: auto !important;
  z-index: 1030 !important; /* deliberately below .modal-backdrop (1050) */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
  pointer-events: auto !important;
}

.floating-share-wrapper {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.floating-share-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  background: var(--bs-primary, #7367f0);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 8px 22px rgba(var(--bs-primary-rgb, 115, 103, 240), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-share-trigger:hover {
  transform: scale(1.08);
}

.floating-share-wrapper.active .floating-share-trigger i {
  transform: rotate(135deg);
}

/* Opens right-aligned, tucked under the trigger — matches the container's
   right: 2rem anchor. (The old duplicate centered it with left: 50%, which
   only made sense for a differently-positioned trigger and has been
   dropped.) */
.floating-share-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  left: auto;
  transform: translateY(15px) scale(0.85);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  width: max-content;
  z-index: 1; /* relative to its own stacking context (.floating-action-container: 1030) — it never needs to compete with the modal stack directly */
}

[data-bs-theme="dark"] .floating-share-menu,
.dark-style .floating-share-menu {
  background: rgba(43, 44, 64, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.floating-share-wrapper.active .floating-share-menu,
.floating-share-wrapper:hover .floating-share-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-share-item {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
  position: relative;
}

.floating-share-item i {
  color: #ffffff !important;
}

.floating-share-item:hover {
  transform: scale(1.15);
}

.floating-share-item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 50px;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(6px);
}

.floating-share-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   10. BOOTSTRAP MODAL OVERRIDES (Fix Z-Index & Backdrop Conflict)
   ========================================================================== */
.modal-backdrop {
  z-index: 1050 !important;
}

.modal {
  z-index: 1055 !important;
}

/* .modal-dialog no longer gets a forced z-index: 1060. It is a child of
   .modal, which already establishes the stacking context — the extra value
   did nothing but risk outranking things that should sit above the dialog
   (tooltips, a toast, a nested dropdown). */

/* The floating action button/menu (share, WA, etc.) must never visually
   collide with an open modal — including the "Tulis Review" write-review
   modal. Bootstrap adds .modal-open to <body> for every modal it opens, so
   hook into that directly instead of relying on z-index alone. */
body.modal-open .floating-action-container,
body.modal-open .floating-btn-group {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* ==========================================================================
   11. DYNAMIC BRAND COLOR OVERRIDES & HELPERS (app.blade.php)
   ========================================================================== */
.btn-primary {
  --bs-btn-bg: var(--brand-primary, #7367f0) !important;
  --bs-btn-border-color: var(--brand-primary, #7367f0) !important;
  --bs-btn-hover-bg: var(--brand-secondary, #0b7a7b) !important;
  --bs-btn-hover-border-color: var(--brand-secondary, #0b7a7b) !important;
  --bs-btn-active-bg: var(--brand-secondary, #0b7a7b) !important;
  --bs-btn-active-border-color: var(--brand-secondary, #0b7a7b) !important;
  background-color: var(--brand-primary, #7367f0) !important;
  border-color: var(--brand-primary, #7367f0) !important;
}

.btn-secondary {
  --bs-btn-bg: var(--brand-secondary, #0b7a7b) !important;
  --bs-btn-border-color: var(--brand-secondary, #0b7a7b) !important;
  --bs-btn-hover-bg: var(--brand-primary, #7367f0) !important;
  --bs-btn-hover-border-color: var(--brand-primary, #7367f0) !important;
  --bs-btn-active-bg: var(--brand-primary, #7367f0) !important;
  --bs-btn-active-border-color: var(--brand-primary, #7367f0) !important;
  background-color: var(--brand-secondary, #0b7a7b) !important;
  border-color: var(--brand-secondary, #0b7a7b) !important;
  color: #ffffff !important;
}

.btn-label-secondary:hover,
.btn-label-secondary:focus,
.btn-label-secondary:active {
  background-color: var(--brand-secondary, #0b7a7b) !important;
  border-color: var(--brand-secondary, #0b7a7b) !important;
  color: #ffffff !important;
}

.bg-secondary { background-color: var(--brand-secondary, #0b7a7b) !important; }
.text-secondary { color: var(--brand-secondary, #0b7a7b) !important; }

.bg-brand { background-color: var(--brand-primary, #7367f0) !important; }
.bg-brand-secondary { background-color: var(--brand-secondary, #0b7a7b) !important; }
.text-brand { color: var(--brand-primary, #7367f0) !important; }
.text-brand-secondary { color: var(--brand-secondary, #0b7a7b) !important; }
.border-brand { border-color: var(--brand-primary, #7367f0) !important; }
.border-brand-secondary { border-color: var(--brand-secondary, #0b7a7b) !important; }

.btn-brand {
  background-color: var(--brand-primary, #7367f0) !important;
  border-color: var(--brand-primary, #7367f0) !important;
  color: #ffffff !important;
}
.btn-brand:hover,
.btn-brand:focus,
.btn-brand:active {
  background-color: var(--brand-secondary, #0b7a7b) !important;
  border-color: var(--brand-secondary, #0b7a7b) !important;
  color: #ffffff !important;
}

.btn-brand-secondary {
  background-color: var(--brand-secondary, #0b7a7b) !important;
  border-color: var(--brand-secondary, #0b7a7b) !important;
  color: #ffffff !important;
}
.btn-brand-secondary:hover,
.btn-brand-secondary:focus,
.btn-brand-secondary:active {
  background-color: var(--brand-primary, #7367f0) !important;
  border-color: var(--brand-primary, #7367f0) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   12. RGB TAPERED SPINNER FULLSCREEN LOADER & EXTENDED COMPONENTS
   ========================================================================== */
#global-app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tapered-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 45%,
        rgba(var(--brand-primary-rgb, 115, 103, 240), 0.2) 70%,
        rgb(var(--brand-primary-rgb, 115, 103, 240)) 100%
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    animation: spinRGB 1.8s linear infinite;
}

.logo-img-loader {
    position: absolute;
    width: 65px;
    height: 65px;
    object-fit: contain;
    z-index: 2;
    animation: synchronizedPulse 1.8s ease-in-out infinite;
}

.loading-text {
    display: flex;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loading-text span {
    opacity: 0;
    display: inline-block;
    animation: revealLetter 1.8s ease-in-out infinite;
}

.loading-text span:nth-child(1)  { animation-delay: 0.00s; }
.loading-text span:nth-child(2)  { animation-delay: 0.11s; }
.loading-text span:nth-child(3)  { animation-delay: 0.22s; }
.loading-text span:nth-child(4)  { animation-delay: 0.33s; }
.loading-text span:nth-child(5)  { animation-delay: 0.44s; }
.loading-text span:nth-child(6)  { animation-delay: 0.55s; }
.loading-text span:nth-child(7)  { animation-delay: 0.66s; }
.loading-text span:nth-child(8)  { animation-delay: 0.77s; }
.loading-text span:nth-child(9)  { animation-delay: 0.88s; }
.loading-text span:nth-child(10) { animation-delay: 0.99s; }

@keyframes spinRGB {
    0% { transform: rotate(0deg); filter: hue-rotate(0deg); }
    100% { transform: rotate(360deg); filter: hue-rotate(180deg); }
}

@keyframes synchronizedPulse {
    0%, 100% { filter: grayscale(100%) opacity(0.35); transform: scale(0.92); }
    50% { filter: grayscale(0%) opacity(1) drop-shadow(0 4px 12px rgba(var(--brand-primary-rgb, 115, 103, 240), 0.3)); transform: scale(1.06); }
}

@keyframes revealLetter {
    0% { opacity: 0; transform: translateY(3px); }
    15% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(-2px); }
}

/* ==========================================================================
   13. BODY & TYPOGRAPHY STANDARDIZATION
   ========================================================================== */
body {
    background-color: #ffffff !important;
    color: #566a7f;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.53;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-section-white {
    background-color: #ffffff !important;
}

.bg-section-soft {
    background-color: #f8fafc !important;
}

.text-heading-dark {
    color: #232733 !important;
}

.text-body-subtle {
    color: #64748b !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   14. DARK MODE OVERRIDES (ADDITIONAL)
   ========================================================================== */
[data-bs-theme="dark"] body,
.dark-style body {
    background-color: #25293c !important;
    color: #b6bee3 !important;
}

[data-bs-theme="dark"] #global-app-loader,
.dark-style #global-app-loader {
    background-color: #25293c !important;
}

[data-bs-theme="dark"] .bg-section-white,
.dark-style .bg-section-white {
    background-color: #25293c !important;
}

[data-bs-theme="dark"] .bg-section-soft,
.dark-style .bg-section-soft {
    background-color: #2f3349 !important;
}

[data-bs-theme="dark"] .text-heading-dark,
.dark-style .text-heading-dark {
    color: #cfd3ec !important;
}

[data-bs-theme="dark"] .text-body-subtle,
.dark-style .text-body-subtle {
    color: #a3adc2 !important;
}

[data-bs-theme="dark"] .form-control,
.dark-style .form-control,
[data-bs-theme="dark"] .form-select,
.dark-style .form-select {
    background-color: #2f3349 !important;
    border-color: #434968 !important;
    color: #cfd3ec !important;
}

/* ==========================================================================
   15. HERO BUTTONS & DYNAMIC ACCENTS
   ========================================================================== */
.btn-hero-primary {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--brand-primary) !important;
    font-weight: 700;
    border-radius: 0.375rem !important;
    box-shadow: 0 6px 18px rgba(var(--brand-primary-rgb), 0.35) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-hero-primary:hover {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.4) !important;
}

.btn-hero-outline {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    font-weight: 700;
    border-radius: 0.375rem !important;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-hero-outline:hover {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   16. PARALLAX & TIMER ENHANCEMENTS
   ========================================================================== */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.timer-box {
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        color-mix(in srgb, var(--brand-secondary, #0B7A7B) 30%, transparent) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--brand-secondary, #0B7A7B) 40%, white);
    padding: 1.25rem 1rem;
    min-width: 90px;
    text-align: center;
    border-radius: 0.5rem;
}

/* ==========================================================================
   17. CLIENT LOGO MAC-DOCK ZOOM ANIMATION
   ========================================================================== */
.client-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 80px;
    padding: 0.5rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom center;
    text-decoration: none;
}

.client-logo-link img {
    max-height: 100px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .client-logo-link:hover {
        transform: scale(1.35);
        z-index: 10;
    }
    .client-logo-link:hover img {
        filter: grayscale(0%) opacity(1);
    }
}

@media (max-width: 991.98px) {
    .client-logo-link img {
        filter: grayscale(0%) opacity(1) !important;
    }
    .client-logo-link:hover {
        transform: none;
    }
}

.swiper-client-logos {
    padding-bottom: 3rem !important;
}

.swiper-pagination-clients {
    position: relative !important;
    margin-top: 2.5rem !important;
}

/* ==========================================================================
   18. MASONRY PORTFOLIO GALLERY STYLING
   ========================================================================== */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 991.98px) {
    .masonry-grid { column-count: 2; }
}

@media (max-width: 575.98px) {
    .masonry-grid { column-count: 1; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.portfolio-masonry-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    background: #0f172a;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-masonry-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.85) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: opacity 0.4s ease;
}

.portfolio-masonry-card:hover img {
    transform: scale(1.08);
}

.portfolio-masonry-card:hover .portfolio-overlay {
    opacity: 1;
}

/* ==========================================================================
   19. MOBILE RESPONSIVE ENHANCEMENTS FOR DYNAMIC DATABASE SECTIONS
   ========================================================================== */

/* Spacing & Section Padding Fixes for Mobile */
@media (max-width: 991.98px) {
  /* Kurangi padding vertikal section agar tidak terlalu renggang di mobile */
  section.py-12,
  .parallax-section.py-12 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* Header Section Spacing */
  .text-center.mb-10,
  .text-center.mb-12 {
    margin-bottom: 2rem !important;
  }

  /* Display Typography Auto Scaling */
  .display-5 {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }

  /* Handle Parallax Background Fixed Issue on iOS/Android Webkit Browsers */
  .parallax-section,
  section[style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
  }
}

/* --------------------------------------------------------------------------
   Layout Type 2: Parallax Single Card Mobile Enhancements
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .parallax-section .timer-box {
    width: 100%;
    min-width: 100% !important;
    padding: 1.25rem 1rem !important;
    margin-bottom: 0.5rem;
  }

  .parallax-section .btn-dynamic-primary {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   Layout Type 3: Masonry Grid Mobile & Touch Enhancements
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Tampilkan overlay informasi secara tetap di mobile (karena tidak ada mouse hover) */
  .portfolio-masonry-card .portfolio-overlay {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
    padding: 1rem !important;
  }

  .portfolio-masonry-card img {
    transform: none !important;
  }

  .portfolio-masonry-card .portfolio-overlay h5 {
    font-size: 0.95rem !important;
  }

  .portfolio-masonry-card .portfolio-overlay p {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .masonry-grid {
    column-count: 1 !important;
    column-gap: 0 !important;
  }

  .masonry-item {
    margin-bottom: 1rem !important;
  }
}

/* --------------------------------------------------------------------------
   Layout Type 4: Swiper Carousel & Testimonials Mobile Tuning
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .swiper-testimonials {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    padding-bottom: 2.5rem !important;
  }

  .swiper-testimonials .card-custom {
    padding: 1.25rem !important;
  }
}

/* --------------------------------------------------------------------------
   Layout Type 5: Standard Grid & Preset Cards (Image Cover / Horizontal)
   -------------------------------------------------------------------------- */
/* Horizontal Card Preset: Paksa Stack Vertikal di Mobile */
@media (max-width: 767.98px) {
  .card-custom .row.g-0 {
    flex-direction: column !important;
  }

  .card-custom .row.g-0 .col-md-5,
  .card-custom .row.g-0 .col-md-7 {
    width: 100% !important;
  }

  .card-custom .row.g-0 img {
    height: 190px !important;
    min-height: 190px !important;
  }
}

/* Image Cover Card Preset: Penyesuaian Aspek Rasio Min-Height di Mobile */
@media (max-width: 575.98px) {
  .card-custom.position-relative.text-white {
    min-height: 320px !important;
  }

  /* Full Width Buttons di Layar Kecil untuk Responsivitas Optimal */
  .card-custom .btn-dynamic-primary {
    width: 100% !important;
    justify-content: center;
  }

  .card-custom .w-fit {
    width: 100% !important;
    text-align: center;
  }
}