/* style.css */
:root {
  --color-green: #10B981;
  --color-blue: #0A2540;
  --color-black: #1E293B;
  --color-bg-light: #F8FAFC;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-black);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--color-blue);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-blue) !important;
}
.nav-link {
  color: var(--color-blue) !important;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-green) !important;
  font-weight: 700;
}

/* Mobile Navbar Toggler */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11, 61, 99, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 5px 10px;
}
.navbar-toggler:focus {
  box-shadow: none !important;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-item {
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-item:last-child {
    border-bottom: none;
  }
  .nav-link {
    padding: 12px 0 !important;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('../img/hero/hero-bg.webp'); /* Pastikan gambar tersedia */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(16, 185, 129, 0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  color: white;
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.btn-primary-custom {
  background-color: #87CEEB; /* Biru Muda */
  border: none;
  color: var(--color-blue);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-primary-custom:hover {
  background-color: var(--color-blue); /* Biru Tua */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(10, 37, 64, 0.4);
}

/* Custom Modal Close Button */
.modal-close-custom {
    background-color: #d1d5db; /* gray-300 */
    border-radius: 4px; /* Square with slightly rounded edges */
    padding: 8px; /* Smaller padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 1;
    transition: all 0.2s ease;
    width: 1.25rem;
    height: 1.25rem;
    box-sizing: content-box;
}
.modal-close-custom:hover,
.modal-close-custom:active,
.modal-close-custom:focus {
    background-color: #bfdbfe; /* light blue on hover/click */
    opacity: 1;
    outline: none;
}

/* Sections */
.section-padding {
  padding: 80px 0;
  position: relative; /* Prevent wave divider overlap */
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-maroon);
}
.bg-light-pattern {
  background-color: var(--color-bg-light);
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,50 Q40,20 60,50 T100,50" fill="none" stroke="rgba(11,61,99,0.03)" stroke-width="2"/></svg>');
}

/* Kades Section */
.kades-img-wrapper img {
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border: 5px solid white;
}

/* UMKM Map & Cards */
#umkm-map {
  height: 400px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  z-index: 1; /* prevent map overlapping navbar */
}
.umkm-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  overflow: hidden;
  background-color: white;
}
.umkm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.umkm-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background-color: #eee;
}
.badge-blok {
  background-color: var(--color-green);
}
.btn-wa {
  background-color: #25D366;
  color: white;
  border: none;
  font-weight: 500;
}
.btn-wa:hover {
  background-color: #128C7E;
  color: white;
}

/* Footer */
footer {
  background-color: var(--color-blue);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}
footer h5 {
  color: white;
  margin-bottom: 20px;
}
footer a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: white;
}
.social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: white;
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
}
.social-icons a:hover {
  color: var(--color-gold);
  transform: translateY(-3px);
}

/* --- New Styles for Redesign --- */

/* Wave Dividers */
.custom-shape-divider-bottom-hero, 
.custom-shape-divider-bottom-profil {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.custom-shape-divider-bottom-hero svg,
.custom-shape-divider-bottom-profil svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.custom-shape-divider-bottom-hero .shape-fill {
    fill: #f8f9fa; /* Matches bg-light-pattern */
}
.custom-shape-divider-bottom-profil .shape-fill {
    fill: #ffffff; /* Matches section bg */
}

/* Modal Styling with Blur */
.modal-backdrop {
    background-color: rgba(11, 61, 99, 0.4);
}
.modal-backdrop.show {
    backdrop-filter: blur(8px);
    opacity: 1;
}
.custom-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}
.custom-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 2rem;
}
.custom-modal .modal-body {
    padding: 2rem;
}
.custom-modal .modal-footer {
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
}

.umkm-desc-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--color-gold);
}

/* Katalog / Menu Grid */
.katalog-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.katalog-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.katalog-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.katalog-nama {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-blue);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.katalog-harga {
    font-size: 0.9rem;
}

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
}

/* --- KKM Org Chart CSS --- */
.kkm-org-wrapper {
    padding: 20px 0;
    overflow-x: auto;
    text-align: center;
}
.org-chart-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: max-content;
    padding: 0 20px;
}
@media (max-width: 767.98px) {
    .org-chart-inner {
        display: flex;
        min-width: 100%;
        padding: 0;
    }
}
.org-node {
    background: #fff;
    border: 2px solid #2D6A4F;
    border-radius: 12px;
    min-width: 280px;
    max-width: 350px;
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}
.org-node.node-blue {
    border-color: #0B3D63;
}
.org-header {
    background: #2D6A4F;
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.org-header.header-blue {
    background: #0B3D63;
}
.org-body {
    padding: 15px;
}
.org-person {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d5db;
}
.org-person:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.org-person img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    border: 2px solid #ddd;
}
.org-info {
    text-align: left;
}
.org-info .role-title {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
    display: block;
}
.org-info h6 {
    margin: 0 0 2px 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}
.org-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #0B3D63;
    font-weight: 600;
}
.org-line-vertical {
    width: 2px;
    height: 30px;
    background-color: #2D6A4F;
    margin: 0 auto;
}
.org-line-vertical.line-blue {
    background-color: #0B3D63;
}

/* GLightbox Blur Background */
.glightbox-container .goverlay {
    transform: rotate(180deg);
}
.custom-shape-divider-bottom-hero svg,
.custom-shape-divider-bottom-profil svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.custom-shape-divider-bottom-hero .shape-fill {
    fill: #f8f9fa; /* Matches bg-light-pattern */
}
.custom-shape-divider-bottom-profil .shape-fill {
    fill: #ffffff; /* Matches section bg */
}

/* Modal Styling with Blur */
.modal-backdrop {
    background-color: rgba(11, 61, 99, 0.4);
}
.modal-backdrop.show {
    backdrop-filter: blur(8px);
    opacity: 1;
}
.custom-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}
.custom-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 2rem;
}
.custom-modal .modal-body {
    padding: 2rem;
}
.custom-modal .modal-footer {
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
}

.umkm-desc-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--color-gold);
}

/* Katalog / Menu Grid */
.katalog-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.katalog-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.katalog-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.katalog-nama {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-blue);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.katalog-harga {
    font-size: 0.9rem;
}

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
}

/* --- KKM Org Chart CSS --- */
.kkm-org-wrapper {
    padding: 20px 0;
    overflow-x: auto;
    text-align: center;
}
.org-chart-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: max-content;
    padding: 0 20px;
}
@media (max-width: 767.98px) {
    .org-chart-inner {
        display: flex;
        min-width: 100%;
        padding: 0;
    }
}
.org-node {
    background: #fff;
    border: 2px solid #2D6A4F;
    border-radius: 12px;
    min-width: 280px;
    max-width: 350px;
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}
.org-node.node-blue {
    border-color: #0B3D63;
}
.org-header {
    background: #2D6A4F;
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.org-header.header-blue {
    background: #0B3D63;
}
.org-body {
    padding: 15px;
}
.org-person {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d5db;
}
.org-person:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.org-person img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    border: 2px solid #ddd;
}
.org-info {
    text-align: left;
}
.org-info .role-title {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
    display: block;
}
.org-info h6 {
    margin: 0 0 2px 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}
.org-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #0B3D63;
    font-weight: 600;
}
.org-line-vertical {
    width: 2px;
    height: 30px;
    background-color: #2D6A4F;
    margin: 0 auto;
}
.org-line-vertical.line-blue {
    background-color: #0B3D63;
}

/* GLightbox Blur Background */
.glightbox-container .goverlay {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}
