/* VARIABEL & RESET */
:root {
  --pkk-primary: #28a745;
  --pkk-primary-dark: #1e7e34;
  --pkk-primary-light: #d4edda;
  --pkk-accent: #ffc107;

  --text-dark: #333333;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.2);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.text-success {
  color: var(--pkk-primary) !important;
}

/*NAVBAR */
.navbar {
  background: linear-gradient(
    135deg,
    var(--pkk-primary) 0%,
    var(--pkk-primary-dark) 100%
  ) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: linear-gradient(
    135deg,
    var(--pkk-primary-dark) 0%,
    var(--pkk-primary) 100%
  ) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--pkk-accent);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  padding: 0.5rem 0;
  margin-top: 0.5rem !important;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: var(--transition-fast);
  color: var(--text-dark);
}

.dropdown-item:hover {
  background-color: var(--pkk-primary-light);
  color: var(--pkk-primary-dark);
  transform: translateX(5px);
}

/* HERO SLIDER */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  height: 70vh;
  min-height: 500px;
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.7);
}

.carousel-caption {
  bottom: 25%;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.9) 0%,
    rgba(30, 126, 52, 0.9) 100%
  );
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
}

.carousel-caption h1 {
  color: white;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.carousel-caption p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--pkk-primary);
  border-radius: 50%;
  padding: 20px;
  opacity: 1;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--pkk-primary);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* SECTION STYLES */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  color: var(--pkk-primary-dark);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--pkk-primary), var(--pkk-accent));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 1rem;
}

/* CARDS */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition-normal);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.card:hover .card-title {
  color: var(--pkk-primary);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

/* BUTTONS */
.btn {
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: var(--transition-fast);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-pkk {
  background: linear-gradient(
    135deg,
    var(--pkk-primary) 0%,
    var(--pkk-primary-dark) 100%
  );
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-pkk:hover {
  background: linear-gradient(
    135deg,
    var(--pkk-primary-dark) 0%,
    var(--pkk-primary) 100%
  );
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-pkk {
  background: transparent;
  border: 2px solid var(--pkk-primary);
  color: var(--pkk-primary);
}

.btn-outline-pkk:hover {
  background: var(--pkk-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* FOOTER STYLES*/

.footer {
  background: linear-gradient(180deg, #0f0f0f, #000);
  color: #fff;
  padding-top: 50px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #1e7e34);
}

.container-footer {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 20px;
}

/* COLUMN */
.footer-col h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #28a745;
}

.footer-col h4 {
  margin-top: 20px;
  font-size: 18px;
  color: #28a745;
}

/* FOOTER HEADER */
.footer-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}

/* FOOTER INFO */
.footer-info p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-info p i {
  color: #28a745;
  font-size: 16px;
  margin-top: 2px;
}

/* FOOTER DESC */
.footer-desc {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* FOOTER DIVIDER */
.footer-divider {
  border: 0;
  height: 1px;
  background: #333;
  margin: 20px 0;
}

/* PASAMAN SECTION */
.pasaman-section {
  margin-top: 20px;
}

.pasaman {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: 10px;
}

.pasaman-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}

.pasaman p {
  color: #ccc;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* POKJA LIST */
.pokja-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pokja-list li {
  margin-bottom: 10px;
}

.pokja-list li a {
  color: #28a745;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.pokja-list li a:hover {
  color: #1e7e34;
  padding-left: 5px;
}

.pokja-list li a i {
  font-size: 14px;
}

/* MAP CONTAINER */
.map-container {
  margin-top: 15px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #28a745;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  background: #1b1b1b;
  padding: 15px;
  font-size: 14px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  margin: 0;
  color: #999;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  border: none;
  font-size: 1.2rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #1e7e34;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .container-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container-footer {
    grid-template-columns: 1fr;
  }

  .footer-col h3 {
    font-size: 20px;
  }

  .footer-col h4 {
    font-size: 16px;
  }

  .footer-info p {
    font-size: 13px;
  }

  .pasaman {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer {
    padding-top: 30px;
  }

  .container-footer {
    padding: 15px;
    gap: 30px;
  }

  .footer-col h3 {
    font-size: 18px;
  }

  .footer-logo-img {
    width: 60px;
    height: 60px;
  }

  .pasaman-logo {
    width: 50px;
    height: 50px;
  }

  .map-container iframe {
    height: 150px;
  }
}
/* FORMS */
.form-control {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--pkk-primary);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* TABLES */
.table {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead {
  background: var(--pkk-primary);
  color: white;
}

.table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--pkk-primary-light);
}

/* BADGES & ALERTS */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* LOADING & ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 50vh;
    min-height: 350px;
  }

  .carousel-caption {
    padding: 1rem;
    bottom: 20%;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .card-img-top {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 45vh;
    min-height: 300px;
  }

  .carousel-caption h1 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/*UTILITY CLASSES */
.shadow-custom {
  box-shadow: var(--shadow-md);
}

.rounded-custom {
  border-radius: 15px;
}

.bg-gradient-pkk {
  background: linear-gradient(
    135deg,
    var(--pkk-primary) 0%,
    var(--pkk-primary-dark) 100%
  );
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--pkk-primary),
    var(--pkk-primary-dark)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--pkk-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pkk-primary-dark);
}

/* LOADING SPINNER */
.spinner-custom {
  border: 4px solid var(--pkk-primary-light);
  border-top: 4px solid var(--pkk-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ADMIN PANEL STYLES */
.admin-sidebar {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  min-height: 100vh;
  padding: 2rem 0;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 0.5rem 1rem;
  transition: var(--transition-fast);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: var(--pkk-primary);
  color: white;
  transform: translateX(5px);
}

.admin-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.admin-card h3 {
  color: var(--pkk-primary-dark);
  margin-bottom: 1rem;
}

/* LOADING STATE */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.hidden {
  display: none;
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--pkk-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--pkk-primary-dark);
  transform: translateY(-5px);
}

/* IMAGE GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* STATS CARDS */
.stats-card {
  background: linear-gradient(
    135deg,
    var(--pkk-primary) 0%,
    var(--pkk-primary-dark) 100%
  );
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stats-card .number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stats-card .label {
  font-size: 1rem;
  opacity: 0.9;
}

/* TESTIMONIALS */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--pkk-primary);
}

.testimonial-card .quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--pkk-primary-dark);
}

/*NEWSLETTER */
.newsletter-section {
  background: linear-gradient(
    135deg,
    var(--pkk-primary-light) 0%,
    #ffffff 100%
  );
  padding: 4rem 0;
  text-align: center;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* PRICING CARDS (Optional) */
.pricing-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--pkk-primary);
  transform: translateY(-10px);
}

.pricing-card.featured {
  border-color: var(--pkk-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pkk-primary);
}

/* FAQ SECTION */
.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--pkk-primary);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item .faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/*CONTACT SECTION */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.contact-info-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.contact-info-item i {
  font-size: 2rem;
  color: var(--pkk-primary);
}

/* MAP SECTION */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*TEAM SECTION */
.team-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--pkk-primary-light);
}

.team-card .name {
  font-weight: 700;
  color: var(--text-dark);
}

.team-card .position {
  color: var(--pkk-primary);
  font-size: 0.9rem;
}

/*PARTNERS SECTION */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.partner-logo {
  width: 150px;
  height: 80px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/*FOOTER LINKS */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--pkk-primary);
  padding-left: 5px;
}

/*SKILLS SECTION */
.skill-bar {
  margin-bottom: 1.5rem;
}

.skill-bar .label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-bar .progress {
  height: 10px;
  background: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.skill-bar .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pkk-primary), var(--pkk-accent));
  border-radius: 5px;
  transition: width 1s ease;
}

/* TIMELINE SECTION */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--pkk-primary);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  padding-right: 50%;
}

.timeline-item:nth-child(even) {
  padding-left: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--pkk-primary);
  border-radius: 50%;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* BLOG SECTION */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-card .blog-content {
  padding: 1.5rem;
}

.blog-card .blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card .blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.blog-card .blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination .page-link {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--pkk-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.pagination .page-link:hover {
  background: var(--pkk-primary);
  color: white;
  border-color: var(--pkk-primary);
}

.pagination .page-item.active .page-link {
  background: var(--pkk-primary);
  color: white;
  border-color: var(--pkk-primary);
}

/* SEARCH BAR */
.search-bar {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* MODAL CUSTOM */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--pkk-primary) 0%,
    var(--pkk-primary-dark) 100%
  );
  color: white;
  border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

/* PROGRESS BAR */
.progress {
  height: 10px;
  background: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--pkk-primary), var(--pkk-accent));
  transition: width 1s ease;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--pkk-primary);
}

/* TABS */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  transition: var(--transition-fast);
}

.nav-tabs .nav-link.active {
  color: var(--pkk-primary);
  border-bottom: 3px solid var(--pkk-primary);
  background: transparent;
}

/* ACCORDION */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  background: white;
  color: var(--text-dark);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: var(--pkk-primary-light);
  color: var(--pkk-primary-dark);
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* LOADING ANIMATION */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* HIGHLIGHT TEXT */
.highlight {
  background: linear-gradient(
    120deg,
    var(--pkk-primary-light) 0%,
    var(--pkk-primary-light) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 88%;
}

/* STICKY ELEMENT */
.sticky-element {
  position: sticky;
  top: 100px;
}

/* FLOATING ACTION BUTTON */
.fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--pkk-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 999;
}

.fab:hover {
  background: var(--pkk-primary-dark);
  transform: scale(1.1);
}

/* BACKGROUND PATTERN */
.bg-pattern {
  background-image: radial-gradient(
    var(--pkk-primary-light) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

/*  TEXT ANIMATION */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

/*  ZOOM EFFECT */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-in {
  animation: zoomIn 0.5s ease forwards;
}

/*  GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, var(--pkk-primary), var(--pkk-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* BORDER ANIMATION */
@keyframes borderPulse {
  0%,
  100% {
    border-color: var(--pkk-primary);
  }
  50% {
    border-color: var(--pkk-accent);
  }
}

.border-animate {
  animation: borderPulse 2s ease-in-out infinite;
}

/* FINAL UTILITY CLASSES */
.text-pkk {
  color: var(--pkk-primary) !important;
}
.bg-pkk {
  background-color: var(--pkk-primary) !important;
}
.border-pkk {
  border-color: var(--pkk-primary) !important;
}

.shadow-pkk {
  box-shadow: var(--shadow-md);
}
.rounded-pkk {
  border-radius: 15px;
}

.mt-pkk {
  margin-top: 3rem;
}
.mb-pkk {
  margin-bottom: 3rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--pkk-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  border: none;
  font-size: 1.2rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--pkk-primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.back-to-top:active {
  transform: translateY(0);
}

/* ========================================
   PROFIL BUPATI STYLES
   ======================================== */

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28a745;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #28a745;
}

.timeline-content {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #28a745;
}

/* profil bupati-ketua */
.img-bupati {
  border-radius: 0;
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
}

.profile-bupati-card h2 {
  color: var(--pkk-primary-dark);
}

.profile-bupati-card .lead {
  color: var(--pkk-primary);
  font-weight: 600;
}

.profile-bupati-card ul {
  list-style: none;
  padding: 0;
}

.profile-bupati-card ul li {
  margin-bottom: 0.5rem;
}

.profile-bupati-card ul li i {
  color: var(--pkk-primary);
}

/* Tab Navigation */
.nav-tabs .nav-link {
  color: #6c757d;
  border: none;
  border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
  color: #28a745;
  border-bottom: 3px solid #28a745;
  background: transparent;
}

.nav-tabs .nav-link:hover {
  color: #28a745;
  border-bottom: 3px solid #28a745;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -16px;
  }

  .profile-bupati-card img {
    max-width: 200px;
  }
}

.box-struktur {
  border: 4px solid green;
  border-radius: 15px;
  padding: 20px;
  width: 250px;
  background: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.box-struktur h5 {
  font-size: 16px;
  font-weight: 600;
  color: #198754;
  margin-bottom: 5px;
}

.box-struktur p {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

/* --- CSS POJK CARDS --- */

.card {
  transition: all 0.3s ease;
  border-radius: 15px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card .text-success {
  transition: all 0.3s ease;
}

.card:hover .text-success {
  color: #146c43 !important;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 767px) {
  .card {
    margin-bottom: 20px;
  }
}

/* --- CSS POKJA 1 --- */

/* Table Styling */
.table thead {
  background-color: #198754;
  color: white;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Documentation Gallery */
.documentationSwiper {
  max-width: 1200px;
  margin: 0 auto;
}

.documentationSwiper .swiper-slide {
  height: auto;
}

.documentationSwiper .swiper-button-next,
.documentationSwiper .swiper-button-prev {
  color: #198754;
}

.documentationSwiper .swiper-pagination-bullet-active {
  background-color: #198754 !important;
}

/* Badge Styling */
.badge {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

/* Responsive */
@media (max-width: 767px) {
  .table-responsive {
    font-size: 0.85rem;
  }

  .documentationSwiper .swiper-slide {
    margin-bottom: 20px;
  }
}

/* --- CSS INOVASI KEGIATAN --- */

.card img.card-img-top {
  transition: transform 0.3s ease;
}

.card:hover img.card-img-top {
  transform: scale(1.05);
}

/* Responsive untuk Mobile */
@media (max-width: 767px) {
  .card img.card-img-top {
    height: 180px;
  }
}

/* --- CSS POKJA 2 --- */

/* Product Gallery */
.productSwiper {
  max-width: 1200px;
  margin: 0 auto;
}

.productSwiper .swiper-slide {
  height: auto;
}

.productSwiper .swiper-button-next,
.productSwiper .swiper-button-prev {
  color: #198754;
}

.productSwiper .swiper-pagination-bullet-active {
  background-color: #198754 !important;
}

/* Card Hover Effect */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive */
@media (max-width: 767px) {
  .productSwiper .swiper-slide {
    margin-bottom: 20px;
  }

  .card img.card-img-top {
    height: 200px;
  }
}

/* --- CSS POKJA 4 & SWIPER --- */

/* Documentation Gallery */
.docSwiper {
  max-width: 1200px;
  margin: 0 auto;
}

.docSwiper .swiper-slide {
  height: auto;
}

.docSwiper .swiper-button-next,
.docSwiper .swiper-button-prev {
  color: #198754;
}

.docSwiper .swiper-pagination-bullet-active {
  background-color: #198754 !important;
}

/* Card Hover Effect */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Icon Size */
.card .fa-3x {
  transition: transform 0.3s ease;
}

.card:hover .fa-3x {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 767px) {
  .docSwiper .swiper-slide {
    margin-bottom: 20px;
  }

  .card img.card-img-top {
    height: 200px;
  }
}

/* ===== Download Page ===== */
.section-download {
  padding: 48px 0 64px;
  background: #f7f9fc;
}

.page-title {
  font-size: 28px;
  margin: 0 0 8px;
  color: #0a2647;
}

.page-subtitle {
  color: #577592;
  margin-bottom: 24px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.doc-card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  border-color: #d6e4ff;
}

.doc-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f1ff, #f0f6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.doc-content {
  min-width: 0;
}

.doc-title {
  font-size: 18px;
  color: #111827;
  margin: 0 0 6px;
}

.doc-desc {
  color: #4b5563;
  margin: 0 0 8px;
}

.doc-meta {
  font-size: 13px;
  color: #6b7280;
}

.doc-date.optional {
  opacity: 0.8;
}

.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-self: end;
}

.btn-download {
  background: #1363df;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #0f56c1;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.btn-download:hover {
  background: #0f56c1;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: #1363df;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #cfe0ff;
}

.btn-outline:hover {
  border-color: #9fc0ff;
  color: #0f56c1;
}

/* Responsif */
@media (min-width: 768px) {
  .doc-card {
    grid-column: span 6;
  }
}
@media (min-width: 992px) {
  .doc-card {
    grid-column: span 4;
  }
}

/* Mengatur container card agar elemen di dalamnya menyusun ke bawah dan rata tengah */
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Membuat semua konten di dalam card rata tengah (horizontal) */
  text-align: center; /* Membuat teks judul dan deskripsi menjadi rata tengah */
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: 100%; /* Biar tinggi semua card seragam */
  justify-content: space-between; /* Memisahkan konten atas dan tombol bawah jika card tinggi */
}

/* Mengatur bungkus teks judul dan deskripsi */
.doc-content {
  width: 100%;
  margin-bottom: 20px; /* Memberi jarak antara deskripsi dan tombol di bawahnya */
}

.doc-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px; /* Jarak antara judul dan deskripsi */
  color: #333;
}

.doc-desc {
  font-size: 0.95rem;
  color: #666;
}

/* Mengatur area tombol agar sejajar ke samping dan berada di tengah */
.doc-actions {
  display: flex;
  gap: 12px; /* Jarak antar tombol download */
  justify-content: center; /* Membuat tombol-tombol berada pas di tengah */
  width: 100%;
  margin-top: auto; /* Memaksa area tombol selalu berada di bagian paling bawah card */
}

/* Styling tambahan untuk tombol jika diperlukan */
.btn-download,
.btn-outline {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
}
