/* =========================================================
   DEFAULT THEME
   File ini khusus styling frontend untuk theme folder `default`.
   Data tetap datang dari database / admin panel.
   ========================================================= */

/* =========================================================
   1. GLOBAL COLOR TOKENS
   ========================================================= */
:root {
  /* Ganti warna global theme default di sini. */
  --theme-primary: #2563eb;
  --theme-secondary: #0f172a;
  --theme-accent: #38bdf8;
  --theme-background: #f8fbff;
  --theme-text: #172033;
  --theme-surface: #ffffff;
  --theme-muted-surface: #eef6ff;
  --theme-border: rgba(31, 46, 68, 0.08);
  --theme-shadow: 0 28px 80px -42px rgba(31, 46, 68, 0.42);
}

body.theme-default {
  /* Background halaman utama default: putih dengan aksen biru lembut. */
  background: #f8fbff;
  color: var(--theme-text);
}

/* =========================================================
   2. GLOBAL SHELL + NAVBAR
   ========================================================= */
body.theme-default .frontend-shell {
  /* Kanvas utama frontend. Ubah width/min-height kalau ingin layout boxed atau full screen. */
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background: #f8fbff;
  box-shadow: none;
}

body.theme-default .frontend-shell > .absolute {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fbff) !important;
  opacity: 1 !important;
}

body.theme-default .frontend-header {
  /* Navbar utama. Tambah border/shadow di sini kalau nanti ingin gaya yang lebih menonjol. */
  top: 0;
  margin: 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 0;
  background: #ffffff !important;
  box-shadow: 0 12px 32px -28px rgba(15, 23, 42, 0.20) !important;
  backdrop-filter: none;
}

body.theme-default .frontend-header .max-w-7xl {
  max-width: 1480px;
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 88px;
}

body.theme-default .frontend-brand,
body.theme-default .frontend-nav a {
  color: var(--theme-secondary) !important;
}

body.theme-default .frontend-brand {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

body.theme-default .frontend-brand img {
  height: 34px;
}

body.theme-default .frontend-header [x-cloak] {
  display: none !important;
}

body.theme-default .frontend-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 28px;
  align-items: center;
  white-space: nowrap;
}

body.theme-default .frontend-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.75;
}

body.theme-default .frontend-nav a:hover {
  opacity: 1;
}

body.theme-default .frontend-tools {
  margin-left: auto;
  flex-shrink: 0;
}

body.theme-default .frontend-search-toggle {
  box-shadow: none;
  height: 46px;
  width: 46px;
  border-radius: 18px;
  border-color: rgba(37, 99, 235, 0.18) !important;
  background: #ffffff;
  color: var(--theme-primary) !important;
}

body.theme-default .frontend-search-panel {
  z-index: 80;
}

body.theme-default .frontend-admin-link {
  border-radius: 999px;
  background: var(--theme-primary) !important;
  color: #fff !important;
  box-shadow: none;
  min-height: 46px;
  padding-inline: 1.25rem;
}

body.theme-default .frontend-admin-link:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}

body.theme-default .frontend-page {
  padding-bottom: 20px;
}

/* =========================================================
   3. HOMEPAGE HERO
   ========================================================= */
body.theme-default.page-kind-home .frontend-page > main {
  /* Container homepage. Atur max-width dan padding global section dari sini. */
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 20px 52px;
}

body.theme-default.page-kind-home #hero {
  /* Card hero utama. Radius/overflow/background dasar hero diatur di sini. */
  position: relative;
  isolation: isolate;
  min-height: 0;
  border-radius: 30px;
  overflow: hidden;
  background: transparent !important;
}

body.theme-default.page-kind-home #hero > .absolute.inset-0.-z-10.opacity-60 {
  z-index: 0 !important;
  opacity: 1 !important;
}

body.theme-default.page-kind-home #hero > .mx-auto {
  position: relative;
  z-index: 1;
}

body.theme-default.page-kind-home #hero > .absolute.inset-0.-z-10.opacity-60 img,
body.theme-default.page-kind-home #hero > .absolute.inset-0.-z-10.opacity-60 > div:first-child {
  /* Gambar/background hero aktif. Ubah scale kalau ingin hero terasa lebih zoom in/out. */
  transform: scale(1.04);
}

body.theme-default.page-kind-home #hero > .mx-auto {
  /* Grid dalam hero: kiri untuk teks, kanan untuk preview slide/single image. */
  max-width: none;
  padding: 88px 52px 42px;
  gap: 28px;
  align-items: end;
  min-height: 760px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 34%) !important;
}

body.theme-default.page-kind-home #hero > .mx-auto > .space-y-8 {
  max-width: 640px;
}

body.theme-default.page-kind-home #hero .hero-copy-panel {
  /* Panel transparan untuk teks hero. Ubah background/blur/border agar lebih soft atau lebih bold. */
  padding: 28px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(10, 16, 31, 0.248), rgba(10, 16, 31, 0.18)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 24px 50px -34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

body.theme-default.page-kind-home #hero .space-y-8 > p:first-child {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88) !important;
  letter-spacing: 0.22em;
}

body.theme-default.page-kind-home #hero h1 {
  /* Judul hero dari database. Ubah ukuran/font/transform di sini. */
  max-width: 640px;
  font-size: clamp(3.4rem, 6.4vw, 6.2rem) !important;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

body.theme-default.page-kind-home #hero .space-y-8 > p.max-w-2xl {
  /* Subtitle hero dari database. */
  max-width: 560px;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84) !important;
}

body.theme-default.page-kind-home #hero .space-y-8 .flex.flex-wrap.gap-3 {
  gap: 12px;
}

body.theme-default.page-kind-home #hero .space-y-8 .flex.flex-wrap.gap-3 a {
  /* Style dasar tombol hero. */
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

body.theme-default.page-kind-home #hero .space-y-8 .flex.flex-wrap.gap-3 a:not([class*="border"]) {
  /* Tombol hero primary. */
  background: #ffffff !important;
  color: var(--theme-secondary) !important;
}

body.theme-default.page-kind-home #hero .space-y-8 .flex.flex-wrap.gap-3 a[class*="border"] {
  /* Tombol hero secondary. */
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

body.theme-default.page-kind-home #hero .overflow-hidden.rounded-\[2rem\] {
  /* Kartu preview slider/single image di sisi kanan hero. */
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  align-self: end;
  max-width: 520px;
  justify-self: end;
  overflow: hidden;
}

body.theme-default.page-kind-home #hero .hero-slide-card {
  min-height: 160px !important;
  width: 100%;
}

body.theme-default.page-kind-home #hero .hero-slide-card.is-active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52);
}

body.theme-default.page-kind-home #hero .hero-slide-card.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.14));
  pointer-events: none;
}

body.theme-default.page-kind-home #hero .hero-slider-progress button.is-active {
  width: 3rem;
  background: #ffffff;
}

/* =========================================================
   4. HOMEPAGE SECTIONS
   ========================================================= */
body.theme-default.page-kind-home #sections {
  /* Jarak antara hero dan section pertama. */
  margin-top: 42px;
}

body.theme-default.page-kind-home #sections > section {
  padding: 20px 0 !important;
  background: transparent !important;
}

body.theme-default.page-kind-home #sections > section > .mx-auto {
  max-width: none;
  padding: 0;
}

body.theme-default.page-kind-home #sections > section > .mx-auto > div {
  border-radius: 30px;
}

body.theme-default.page-kind-home #section_about > .mx-auto > div,
body.theme-default.page-kind-home #section_contact > .mx-auto > div {
  padding: 42px 42px 46px;
  background: var(--theme-surface);
  box-shadow: 0 18px 46px -38px rgba(37, 99, 235, 0.22);
}

body.theme-default.page-kind-home #section_about h2,
body.theme-default.page-kind-home #section_contact h2,
body.theme-default.page-kind-home #sections .max-w-3xl h2 {
  font-size: clamp(2rem, 3vw, 2.8rem) !important;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

body.theme-default.page-kind-home #section_about .prose {
  color: #506073;
}

body.theme-default.page-kind-home #section_about .prose p:first-child {
  font-size: 1.05rem;
  line-height: 1.9;
}

body.theme-default.page-kind-home #section_about .rounded-\[2rem\] {
  border-radius: 26px !important;
}

body.theme-default.page-kind-home .home-about-panel {
  /* Panel khusus Tentang Kami. */
  position: relative;
  padding: 28px 8px 18px;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: none;
  align-items: center;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr) !important;
  column-gap: 56px;
}

body.theme-default.page-kind-home .home-about-media {
  /* Frame gambar/about visual di kiri. */
  position: relative;
  max-width: 540px;
  width: 100%;
  padding: 12px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 34px -28px rgba(31, 46, 68, 0.16);
  justify-self: start;
}

body.theme-default.page-kind-home .home-about-media::before,
body.theme-default.page-kind-home .home-about-media::after {
  /* Dekorasi bulat di area Tentang Kami. Hapus blok ini jika ingin tampilan lebih minimal. */
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(31, 46, 68, 0.12);
}

body.theme-default.page-kind-home .home-about-media::before {
  top: -20px;
  left: -18px;
  width: 92px;
  height: 92px;
  background: #2563eb;
  border: 6px solid #ffffff;
}

body.theme-default.page-kind-home .home-about-media::after {
  right: -8px;
  bottom: -12px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #38bdf8, #93c5fd);
  border: 5px solid #ffffff;
}

body.theme-default.page-kind-home .home-about-media img,
body.theme-default.page-kind-home .home-about-media > div {
  border-radius: 20px;
}

body.theme-default.page-kind-home .home-about-copy {
  /* Area copy/text Tentang Kami. */
  padding: 12px 10px 12px 18px;
  max-width: 640px;
  justify-self: stretch;
}

body.theme-default.page-kind-home .home-about-badge,
body.theme-default.page-kind-home .home-section-badge {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--theme-primary) !important;
}

body.theme-default.page-kind-home .home-about-copy h2 {
  max-width: 520px;
  font-size: clamp(2.2rem, 3vw, 3.4rem) !important;
  line-height: 1.05;
}

body.theme-default.page-kind-home .home-about-subtitle {
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.82;
  color: #6b7787 !important;
}

body.theme-default.page-kind-home .home-about-body {
  max-width: 560px;
  color: #5f6d80;
}

body.theme-default.page-kind-home .home-about-body p {
  margin-bottom: 0.85rem;
}

body.theme-default.page-kind-home #sections > section:not(#section_about):not(#section_contact) > .mx-auto {
  /* Wrapper section umum: products, blog, portfolio, team, clients, partners. */
  padding: 42px;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 42px -34px rgba(37, 99, 235, 0.24);
}

body.theme-default.page-kind-home #sections > section:not(#section_about):not(#section_contact) .max-w-3xl {
  max-width: 620px;
}

body.theme-default.page-kind-home #sections > section:not(#section_about):not(#section_contact) .max-w-3xl p:last-child {
  color: #5e6d80;
  font-size: 0.98rem;
  line-height: 1.8;
}

body.theme-default.page-kind-home #sections .inline-flex.items-center.justify-center.rounded-full.border {
  border-radius: 999px !important;
  border-color: rgba(31, 46, 68, 0.08) !important;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px -18px rgba(31, 46, 68, 0.24);
}

body.theme-default.page-kind-home .home-section-head {
  /* Header tiap section umum: badge, title, subtitle, CTA kanan. */
  gap: 22px;
  align-items: flex-start;
  text-align: center;
}

body.theme-default.page-kind-home .home-collection-grid {
  /* Grid kartu konten di homepage. */
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px)) !important;
  align-items: stretch;
  justify-content: center !important;
  gap: 24px;
}

body.theme-default.page-kind-home .home-section-head .max-w-3xl {
  margin-inline: auto;
}

body.theme-default.page-kind-home .home-section-head .max-w-3xl p:last-child,
body.theme-default.page-kind-home .home-section-head .max-w-3xl h2 {
  margin-inline: auto;
}

body.theme-default.page-kind-home .home-collection-card {
  /* Kartu item umum. Cocok untuk products/blog/portfolio/team. */
  border: 1px solid rgba(31, 46, 68, 0.08) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 14px 28px -24px rgba(31, 46, 68, 0.14);
  overflow: hidden;
}

body.theme-default.page-kind-home .home-collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -24px rgba(31, 46, 68, 0.18);
}

body.theme-default.page-kind-home .home-collection-card .h-56,
body.theme-default.page-kind-home .home-collection-card .min-h-\[88px\] {
  border-radius: 22px !important;
}

body.theme-default.page-kind-home .home-collection-card .mb-5 {
  margin: -8px -8px 20px;
}

body.theme-default.page-kind-home .home-collection-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

body.theme-default.page-kind-home .home-collection-card p {
  color: #5d6d80;
}

body.theme-default.page-kind-home .home-collection-card a.inline-flex {
  margin-top: auto;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--theme-primary);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 10px 24px -18px rgba(31, 46, 68, 0.22);
}

body.theme-default.page-kind-home .home-collection-card a.inline-flex:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

body.theme-default.page-kind-home #section_clients .grid,
body.theme-default.page-kind-home #section_partners .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.theme-default.page-kind-home .home-logo-card {
  /* Kartu khusus clients/partners. */
  padding: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

body.theme-default.page-kind-home .home-logo-grid,
body.theme-default.page-kind-home .home-collection-grid {
  justify-items: center;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

body.theme-default.page-kind-home .home-logo-grid > *,
body.theme-default.page-kind-home .home-collection-grid > * {
  width: 100%;
  max-width: 380px;
}

body.theme-default.page-kind-home .home-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px)) !important;
  justify-content: center !important;
  gap: 20px;
}

body.theme-default.page-kind-home .home-logo-card .min-h-\[88px\] {
  min-height: 136px !important;
  background: #fff !important;
}

body.theme-default.page-kind-home .home-contact-shell {
  max-width: 1280px;
  margin-inline: auto;
}

body.theme-default.page-kind-home .home-contact-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

body.theme-default.page-kind-home .home-contact-grid {
  align-items: stretch;
}

body.theme-default.page-kind-home .home-contact-info,
body.theme-default.page-kind-home .home-contact-form {
  border: 1px solid rgba(31, 46, 68, 0.08) !important;
  border-radius: 30px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 40px -34px rgba(31, 46, 68, 0.14) !important;
}

body.theme-default.page-kind-home .home-contact-info {
  padding: 34px 32px !important;
}

body.theme-default.page-kind-home .home-contact-form {
  padding: 30px 30px 28px !important;
}

body.theme-default.page-kind-home .home-contact-social {
  background: #fff;
}

body.theme-default.page-kind-home .home-map-shell {
  max-width: 1280px;
  margin-inline: auto;
  border-radius: 34px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px -34px rgba(31, 46, 68, 0.16);
}

body.theme-default.page-kind-home .home-map-frame {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

body.theme-default.page-kind-home .home-map-frame iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

body.theme-default.page-kind-home #section_contact form input,
body.theme-default.page-kind-home #section_contact form textarea {
  border-radius: 16px !important;
  border-color: rgba(31, 46, 68, 0.08) !important;
  background: #f8fafc !important;
}

body.theme-default.page-kind-home #section_contact form input {
  min-height: 56px;
  border-radius: 999px !important;
}

body.theme-default.page-kind-home #section_contact form textarea {
  min-height: 220px;
  border-radius: 30px !important;
}

/* =========================================================
   5. FOOTER + LISTING/DETAIL
   ========================================================= */
body.theme-default .home-footer {
  margin-top: 40px;
  border: 0;
  background: transparent;
}

body.theme-default .home-footer-shell {
  max-width: 1480px;
  margin-inline: auto;
  border-radius: 34px;
  background: #000000 !important;
  background-image:
    radial-gradient(circle at left top, rgba(37, 99, 235, 0.28), transparent 34%),
    radial-gradient(circle at right bottom, rgba(56, 189, 248, 0.16), transparent 30%) !important;
  padding-top: 48px !important;
  padding-bottom: 32px !important;
  box-shadow: 0 24px 60px -46px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.theme-default .home-footer-grid a,
body.theme-default .home-footer-grid p {
  color: rgba(255, 255, 255, 0.72);
}

body.theme-default .home-footer-grid a:hover {
  color: #ffffff;
}

body.theme-default .home-footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) repeat(3, minmax(160px, 0.8fr));
  gap: 40px;
  align-items: start;
}

body.theme-default .home-footer-brand {
  max-width: 360px;
}

body.theme-default .home-footer-brand-copy {
  color: rgba(255, 255, 255, 0.54) !important;
}

body.theme-default .home-footer-links p,
body.theme-default .home-footer-contact > p {
  margin-bottom: 4px;
}

body.theme-default .home-footer-links a,
body.theme-default .home-footer-contact a,
body.theme-default .home-footer-contact p,
body.theme-default .home-footer-legal a {
  font-size: 0.95rem;
  line-height: 1.9;
}

body.theme-default .home-footer-contact {
  max-width: 280px;
}

body.theme-default .home-footer-legal {
  max-width: 220px;
}

body.theme-default .home-footer-social a {
  border: 0;
  background: transparent;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

body.theme-default.page-kind-generic .frontend-page,
body.theme-default.page-kind-listing .frontend-page,
body.theme-default.page-kind-detail .frontend-page {
  padding-bottom: 0;
}

body.theme-default.page-kind-generic .frontend-page,
body.theme-default.page-kind-listing .frontend-page,
body.theme-default.page-kind-detail .frontend-page {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 52px;
}

body.theme-default.page-kind-generic main,
body.theme-default.page-kind-listing main,
body.theme-default.page-kind-detail main {
  max-width: none !important;
  padding: 0 !important;
}

body.theme-default .ul-breadcrumb--dynamic {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

body.theme-default.page-kind-generic .ul-breadcrumb,
body.theme-default.page-kind-listing .ul-breadcrumb,
body.theme-default.page-kind-detail .ul-breadcrumb {
  margin: 0 0 32px;
}

body.theme-default.page-kind-generic .ul-breadcrumb::before,
body.theme-default.page-kind-listing .ul-breadcrumb::before,
body.theme-default.page-kind-detail .ul-breadcrumb::before {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.84));
}

body.theme-default.page-kind-listing main > section:first-child,
body.theme-default.page-kind-detail article,
body.theme-default.page-kind-detail aside > div,
body.theme-default.page-kind-listing main > section:nth-child(2) article {
  border-color: var(--theme-border) !important;
  box-shadow: var(--theme-shadow) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

body.theme-default.page-kind-listing main > section:first-child,
body.theme-default.page-kind-detail article {
  border-radius: 28px !important;
}

body.theme-default.page-kind-listing main > section:first-child {
  padding: 34px 34px 38px !important;
  margin-bottom: 24px;
}

body.theme-default.route-portfolio-index .listing-hero-section {
  position: relative;
  border: 1px solid rgba(35, 58, 149, 0.08);
  background:
    radial-gradient(circle at left center, color-mix(in srgb, var(--theme-primary) 18%, transparent), transparent 34%),
    radial-gradient(circle at right center, color-mix(in srgb, var(--theme-accent) 20%, transparent), transparent 28%),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-primary) 7%, white), white 52%, color-mix(in srgb, var(--theme-accent) 9%, white));
  box-shadow: 0 28px 60px -42px rgba(15, 23, 42, 0.2);
}

body.theme-default.route-portfolio-index .listing-hero-badge {
  background: color-mix(in srgb, var(--theme-primary) 12%, white);
}

body.theme-default.route-portfolio-index .listing-hero-title {
  letter-spacing: -0.05em;
  line-height: 1.08;
}

body.theme-default.route-portfolio-index .listing-hero-subtitle {
  color: color-mix(in srgb, var(--theme-secondary) 72%, white) !important;
}

body.theme-default.page-kind-listing main > section:nth-child(2) {
  gap: 20px !important;
}

body.theme-default.page-kind-detail .page-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 22px;
  align-items: start;
}

body.theme-default.page-kind-detail .page-detail-sidebar {
  position: sticky;
  top: 7rem;
}

body.theme-default.page-kind-detail .grid {
  gap: 22px !important;
}

body.theme-default.page-kind-detail aside > div,
body.theme-default.page-kind-listing main > section:nth-child(2) article {
  border-radius: 24px !important;
}

body.theme-default.page-kind-detail .prose,
body.theme-default.page-kind-listing p {
  color: #5f6d7f;
}

body.theme-default.page-kind-detail .prose a,
body.theme-default.page-kind-listing .frontend-page a:hover {
  color: var(--theme-primary);
}

/* =========================================================
   6. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  body.theme-default .frontend-header {
    top: 0;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none !important;
  }

  body.theme-default.page-kind-home .frontend-page > main,
  body.theme-default.page-kind-generic .frontend-page,
  body.theme-default.page-kind-listing .frontend-page,
  body.theme-default.page-kind-detail .frontend-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.theme-default.page-kind-home #hero > .mx-auto {
    min-height: 620px;
    padding: 72px 34px 36px;
    grid-template-columns: 1fr !important;
  }

  body.theme-default.page-kind-home #hero .hero-copy-panel {
    padding: 24px 22px 20px;
    border-radius: 24px;
  }

  body.theme-default.page-kind-home #hero h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 12vw, 4.8rem) !important;
  }

  body.theme-default.page-kind-home .home-about-panel {
    grid-template-columns: 1fr !important;
    column-gap: 0;
  }

  body.theme-default.page-kind-home #sections > section:not(#section_about):not(#section_contact) > .mx-auto,
  body.theme-default.page-kind-home #section_about > .mx-auto > div,
  body.theme-default.page-kind-home #section_contact > .mx-auto > div {
    padding: 24px;
  }

  body.theme-default.route-portfolio-index .listing-hero-section {
    padding: 2.5rem 1.75rem !important;
  }

  body.theme-default.page-kind-detail .page-detail-layout {
    grid-template-columns: minmax(0, 1fr) 18.5rem;
  }

  body.theme-default.page-kind-home .home-about-copy {
    padding: 12px 4px 10px;
  }

  body.theme-default.page-kind-home #section_clients .grid,
  body.theme-default.page-kind-home #section_partners .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-default.page-kind-home footer {
    margin: 6px auto 0;
  }

  body.theme-default.page-kind-home .home-contact-info,
  body.theme-default.page-kind-home .home-contact-form {
    padding: 24px !important;
  }

  body.theme-default .frontend-header .max-w-7xl {
    min-height: auto;
  }

  body.theme-default .frontend-nav {
    display: none !important;
    position: static;
    transform: none;
  }

  body.theme-default .home-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-default .home-footer-brand,
  body.theme-default .home-footer-contact {
    max-width: none;
  }
}

@media (max-width: 767px) {
  body.theme-default .frontend-brand {
    font-size: 1.5rem;
  }

  body.theme-default.page-kind-home #hero {
    border-radius: 24px;
  }

  body.theme-default.page-kind-home #hero > .mx-auto {
    min-height: 540px;
    padding: 54px 22px 28px;
  }

  body.theme-default.page-kind-home #hero .hero-copy-panel {
    padding: 20px 18px 18px;
    border-radius: 22px;
  }

  body.theme-default.page-kind-home #hero .space-y-8 > p:first-child {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  body.theme-default.route-portfolio-index .listing-hero-title {
    font-size: 2.25rem !important;
  }

  body.theme-default.route-portfolio-index .listing-hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }

  body.theme-default.page-kind-detail .page-detail-layout {
    grid-template-columns: 1fr;
  }

  body.theme-default.page-kind-detail .page-detail-sidebar {
    position: static;
  }

  body.theme-default.page-kind-home #section_clients .grid,
  body.theme-default.page-kind-home #section_partners .grid {
    grid-template-columns: 1fr;
  }

  body.theme-default.page-kind-home .home-about-media::before {
    top: -18px;
    left: -12px;
    width: 76px;
    height: 76px;
  }

  body.theme-default.page-kind-home .home-about-media::after {
    right: -8px;
    bottom: -10px;
    width: 52px;
    height: 52px;
  }

  body.theme-default .home-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =========================================================
   7. INDEX-2 HOMEPAGE MAPPING
   ========================================================= */
body.theme-default.page-kind-home .frontend-page > main {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.theme-default.page-kind-home .frontend-shell > .absolute {
  display: none;
}

body.theme-default.page-kind-home .ul-banner-2-slide-bg-img,
body.theme-default.page-kind-home .ul-service-img img,
body.theme-default.page-kind-home .ul-project-img img,
body.theme-default.page-kind-home .ul-contact-img img,
body.theme-default.page-kind-home .ul-blog-2 .ul-blog-img img,
body.theme-default.page-kind-home .ul-about-2-img .img-wrapper img,
body.theme-default.page-kind-home .ul-team-img img {
  object-fit: cover;
}

body.theme-default.page-kind-home .ul-feature p {
  color: var(--ul-p);
}

body.theme-default.page-kind-home .ul-volunteer-block .d-flex {
  margin-top: 1.5rem;
}

body.theme-default.page-kind-home .ul-about-2-bottom-block-descr,
body.theme-default.page-kind-home .ul-service-descr,
body.theme-default.page-kind-home .ul-review-descr,
body.theme-default.page-kind-home .ul-blog-info .text {
  color: var(--ul-p);
}

body.theme-default.page-kind-home .ul-team {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 50px -32px rgba(30, 37, 47, 0.22);
}

body.theme-default.page-kind-home .ul-team-img img {
  width: 100%;
  height: 320px;
}

body.theme-default.page-kind-home .ul-team-txt {
  padding: 24px;
}

body.theme-default.page-kind-home .ul-gallery-slider .swiper-slide > a {
  min-height: 140px;
  border-color: rgba(30, 37, 47, 0.1) !important;
  box-shadow: 0 18px 44px -34px rgba(30, 37, 47, 0.18);
}

body.theme-default.page-kind-home .ul-contact-form .text-danger,
body.theme-default.page-kind-home .ul-blog-details-review-form .text-danger {
  display: block;
}

body.theme-default.page-kind-home .ul-blog-2 .ul-blog-title,
body.theme-default.page-kind-home .ul-service-title,
body.theme-default.page-kind-home .ul-project-title {
  display: block;
}

body.theme-default.route-galleries-index .default-gallery-hero {
  padding: 34px 34px 38px;
}

body.theme-default.route-galleries-index .default-gallery-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: end;
}

body.theme-default.route-galleries-index .default-gallery-hero__copy .ul-section-sub-title {
  margin-bottom: 14px;
}

body.theme-default.route-galleries-index .default-gallery-hero__copy .ul-section-title {
  max-width: 46rem;
}

body.theme-default.route-galleries-index .default-gallery-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.theme-default.route-galleries-index .default-gallery-hero__stat {
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 10%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-primary) 5%, white), rgba(255, 255, 255, 0.92));
  padding: 20px 22px;
}

body.theme-default.route-galleries-index .default-gallery-hero__stat .number {
  display: block;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 800;
  color: var(--theme-secondary);
}

body.theme-default.route-galleries-index .default-gallery-hero__stat .label {
  display: block;
  margin-top: 8px;
  color: #5f6d7f;
}

body.theme-default.route-galleries-index .default-gallery-grid-section {
  margin-top: 10px;
}

body.theme-default.route-galleries-index .default-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body.theme-default.route-galleries-index .default-gallery-card {
  border-radius: 24px !important;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
  background: rgba(255, 255, 255, 0.96);
}

body.theme-default.route-galleries-index .default-gallery-card__media {
  border-radius: 0;
}

body.theme-default.route-galleries-index .default-gallery-card__media img,
body.theme-default.route-galleries-index .default-gallery-card__media .cms-media-placeholder {
  aspect-ratio: 1 / 1;
}

body.theme-default.route-galleries-index .default-gallery-card__body {
  padding: 24px 24px 26px;
}

body.theme-default.route-galleries-index .default-gallery-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7b8798;
}

body.theme-default.route-galleries-index .default-gallery-card__title {
  margin: 14px 0 0;
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--theme-secondary);
}

body.theme-default.route-galleries-index .default-gallery-card__caption {
  margin: 12px 0 0;
  line-height: 1.8;
  color: #5f6d7f;
}

body.theme-default.route-galleries-index .default-gallery-empty {
  grid-column: 1 / -1;
  border-radius: 24px;
  border: 1px dashed color-mix(in srgb, var(--theme-primary) 24%, transparent);
  background: rgba(255, 255, 255, 0.9);
  padding: 52px 28px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 1024px) {
  body.theme-default.route-galleries-index .default-gallery-hero__inner {
    grid-template-columns: 1fr;
  }

  body.theme-default.route-galleries-index .default-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.theme-default.route-galleries-index .default-gallery-hero {
    padding: 24px 22px 26px;
  }

  body.theme-default.route-galleries-index .default-gallery-hero__meta,
  body.theme-default.route-galleries-index .default-gallery-grid {
    grid-template-columns: 1fr;
  }

  body.theme-default.route-galleries-index .default-gallery-card__body {
    padding: 20px 18px 22px;
  }
}
