/*
Theme Name: Mahir Sunat Bandung
Author: Ultimatoom Digital Agency
Author URI: https://ultimatoom.com
Version: 1.5
Description: Tema website Mahir Sunat Bandung
*/

/* =========================================
   1. BASE & RESET (Tailwind Preflight Mini)
   ========================================= */
:root {
  --mahir-primary: #1b4e8b;
  --mahir-secondary: #71d5eb;
  --mahir-accent: #e4552f;
  --mahir-dark: #0f172a;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  color: #0f172a;
  /* text-slate-900 */
  background-color: #ffffff;
}

img {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   2. UTILITY CLASSES REPLACEMENT
   ========================================= */

/* Layout & Container */
.container,
.max-w-7xl {
  max-width: 80rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.w-11 {
  width: 2.75rem;
}

.w-5 {
  width: 1.25rem;
}

.h-auto {
  height: auto;
}

.h-full {
  height: 100%;
}

.h-half {
  height: 50%;
}

.h-10 {
  height: 2.5rem;
}

.h-11 {
  height: 2.75rem;
}

.h-12 {
  height: 3rem;
}

.h-20 {
  height: 5rem;
}

.w-20 {
  width: 5rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.h-5 {
  height: 1.25rem;
}

.object-cover {
  object-fit: cover;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.inline-block {
  display: inline-block;
}

/* Flexbox & Grid */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-none {
  flex: none;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Spacing (Padding/Margin) */
.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-10 {
  padding: 2.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.pt-12 {
  padding-top: 3rem;
}

.pt-20 {
  padding-top: 5rem;
}

.pt-24 {
  padding-top: 6rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-5 {
  padding-bottom: 1.25rem;
}

.pb-10 {
  padding-bottom: 2.5rem;
}

.pb-24 {
  padding-bottom: 6rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
  padding: 5px 0px 5px 10px
}

.mt-4 {
  margin-top: 1rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mr-6 {
  margin-right: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

/* Space Between */
.space-x-8>*+* {
  margin-left: 2rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

/* Typography */
.font-sans {
  font-family: var(--font-sans);
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

.italic {
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-tight {
  line-height: 1.25;
}

.text-google-star {
  color: #fbbc04 !important;
  fill: #fbbc04 !important;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.fill-current {
  fill: currentColor;
}

.review-avatar-circle {
  width: 3rem !important;
  height: 3rem !important;
  min-width: 3rem !important;
  min-height: 3rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  aspect-ratio: 1 / 1 !important;
  flex: none !important;
  overflow: hidden !important;
}

.btn-youtube-subscribe {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  padding: 0.875rem 2rem !important;
  border-radius: 9999px !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 15px 20px -5px rgba(127, 29, 29, 0.2) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 180px !important;
}

.btn-youtube-subscribe:hover {
  background-color: #b91c1c !important;
}

@media (min-width: 768px) {
  .btn-youtube-subscribe {
    padding: 1rem 3.5rem !important;
    font-size: 1.125rem !important;
    min-width: 220px !important;
    max-width: 320px !important;
  }
}

/* Colors & Backgrounds */
.text-white {
  color: #ffffff;
}

.text-slate-300 {
  color: #cbd5e1;
}

.text-slate-400 {
  color: #94a3b8;
}

.text-slate-500 {
  color: #64748b;
}

.text-slate-600 {
  color: #475569;
}

.text-slate-700 {
  color: #334155;
}

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

.bg-slate-50 {
  background-color: #f8fafc !important;
}

.text-primary {
  color: var(--mahir-primary) !important;
}

.bg-primary {
  background-color: var(--mahir-primary) !important;
}

.bg-slate-900 {
  background-color: #0f172a;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-emerald-500 {
  background-color: #10b981;
}

.bg-red-600 {
  background-color: #dc2626;
}

/* Borders & Radius */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}

.border-slate-50 {
  border-color: #f8fafc;
}

.border-slate-100 {
  border-color: #f1f5f9;
}

.border-slate-200 {
  border-color: #e2e8f0;
}

.border-white {
  border-color: #ffffff;
}

.border-white\/5 {
  border-color: rgba(255, 255, 255, 0.05);
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-\[2rem\] {
  border-radius: 2rem;
}

.rounded-\[2\.5rem\] {
  border-radius: 2.5rem;
}

.rounded-\[3rem\] {
  border-radius: 3rem;
}

.rounded-\[3\.5rem\] {
  border-radius: 3.5rem;
}

/* Effects & Transitions */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.shadow-inner {
  box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.shadow-blue-100 {
  box-shadow: 0 20px 25px -5px rgba(27, 78, 139, 0.15), 0 8px 10px -6px rgba(27, 78, 139, 0.1);
}

.drop-shadow-2xl {
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

.scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: scale(1.05);
}

.scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: scale(1.1);
}

.scale-125 {
  --tw-scale-x: 1.25;
  --tw-scale-y: 1.25;
  transform: scale(1.25);
}

/* SILO Link */
.silo-link {
  display: inline-flex;
  align-items: center;
  color: var(--mahir-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  border: 2px solid var(--mahir-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.silo-link:hover {
  background: var(--mahir-primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(27, 78, 139, 0.2);
}

/* Collapsible Table of Contents */
.toc-panel {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
  opacity: 1;
}

.toc-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
}

.toc-toggle svg {
  transition: transform 300ms ease;
}

.toc-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.toc-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-content li {
  margin-bottom: 0.75rem;
}

.toc-content li:last-child {
  margin-bottom: 0;
}

.toc-content a {
  color: var(--mahir-dark);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 200ms ease;
  display: block;
}

.toc-content a:hover {
  color: var(--mahir-primary);
}

.toc-level-3 {
  padding-left: 1rem;
  font-size: 0.8125rem;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-700 {
  transition-duration: 700ms;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: scale(1.05);
}

.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

/* Visibility */
.hidden {
  display: none;
}

.block {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive (Media Queries) */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 768px) {
  .md\:p-20 {
    padding: 5rem;
  }

  .md\:p-12 {
    padding: 3rem;
  }

  .md\:h-12 {
    height: 3rem;
  }

  .md\:text-left {
    text-align: left;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .md\:col-span-8 {
    grid-column: span 8 / span 8;
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:inline {
    display: inline;
  }

  .md\:justify-start {
    justify-content: flex-start;
  }
}

/* Missing Utility Classes */
.aspect-video { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { 
  .md\:aspect-\[21\/9\] { aspect-ratio: 21 / 9; } 
  .md\:p-14 { padding: 3.5rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:p-20 { padding: 5rem; }
}
@media (min-width: 1024px) {
  .lg\:p-20 { padding: 5rem; }
}
.top-28 { top: 7rem; }
.max-w-none { max-width: none; }
.rounded-\[4rem\] { border-radius: 4rem; }
.shadow-slate-200\/60 { 
  --tw-shadow-color: rgb(226 232 240 / 0.6); 
  --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color); 
  box-shadow: var(--tw-shadow); 
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* =========================================
   3. CUSTOM THEME STYLES
   ========================================= */

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-gradient {
  background: radial-gradient(circle at top right, #f0f9ff 0%, #ffffff 60%);
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

#carousel-track {
  display: flex;
}

.gallery-img {
  background: #f8fafc;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid #f1f5f9;
}

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

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  color: #ffffff;
}

.social-icon:hover {
  background: #1b4e8b;
  color: white;
  transform: translateY(-3px);
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.toc-wrapper {
  position: relative;
}

.toc-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #dadee2;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.toc-panel {
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1024px) {
  .toc-panel {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    overflow: auto;
  }
}

.toc-panel.is-collapsed {
  display: none;
}

.toc-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.prose {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.prose img,
.prose video,
.prose iframe,
.prose object,
.prose embed {
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.prose pre,
.prose code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.prose p {
  margin: 0 0 1.1em;
  padding: 8px 0;
  max-width: 100%;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}

@media (min-width: 768px) {
  .prose h2 {
    font-size: 1.8rem;
  }
}

.prose h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2937;
}

@media (min-width: 768px) {
  .prose h3 {
    font-size: 1.4rem;
  }
}

.prose ul {
  list-style-type: disc;
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
}

.prose ol {
  list-style-type: decimal;
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
}

.prose li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
  display: list-item;
}

.prose ul li::marker,
.prose ol li::marker {
  color: var(--mahir-primary);
  font-weight: 800;
}

.prose h2+p,
.prose h3+p {
  margin-top: 0.2em;
}

/* Article Table Styling */
.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.prose th {
  font-weight: 800;
  color: var(--mahir-dark);
}

.prose thead {
  background-color: #f8fafc;
}

.prose tr:nth-child(even) {
  background-color: #fcfdfe;
}

@media (max-width: 1023px) {}