/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Inter",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #273d4e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #1a5f5f; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f1f4fa;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #000910;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #28323a;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
/* Reset dan gaya dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* ====== PERBAIKAN SCROLL MOBILE SAAT NAVBAR TERBUKA ====== */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Header Styles */
.header {
  background-color: transparent;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

/* Header saat di-scroll */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Warna teks berubah saat scroll */
.header.scrolled .navmenu a {
  color: #1a5f5f;
}

.header.scrolled .mobile-nav-toggle {
  color: #1a5f5f;
}

.header.scrolled .search-toggle {
  color: #1a5f5f;
}

.header.scrolled .language-toggle {
  background: #fff;
  border-color: #1a5f5f;
  color: #1a5f5f;
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1001;
}

.logo {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.header.scrolled .logo {
  height: 45px;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation Styles */
.navmenu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
  align-items: center;
}

.navmenu li {
  margin: 0;
  position: relative;
}

/* Font kapital semua untuk navbar */
.navmenu a {
  text-decoration: none;
  color: #1a5f5f;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  outline: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Garis bawah untuk link aktif */
.navmenu a.active {
  font-weight: 600;
  color: #1a5f5f;
  position: relative;
}

.navmenu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1a5f5f;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

/* Hover effect */
.navmenu a:hover {
  color: #1a5f5f;
  transform: translateY(-1px);
}

.navmenu a:focus {
  outline: none;
  box-shadow: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

/* Search Toggle Button */
.search-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #1a5f5f;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Search Container */
.search-container {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  display: none;
  background-color: white;
  border-radius: 12px;
  padding: 0;
  min-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 1002;
  animation: slideDown 0.3s ease;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-container.active {
  display: block;
}

.search-container::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 25px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.05));
}

/* Search Form */
.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 16px 18px;
  background: white;
}

.search-form .search-icon {
  color: #999;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 14px;
}

.search-form .search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  color: #333;
  background: transparent;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

.search-form .search-input::placeholder {
  color: #aaa;
}

.search-form .search-btn {
  background-color: #1a5f5f;
  color: white;
  border: none;
  padding: 10px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-form .search-btn:hover {
  background-color: #145050;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 95, 95, 0.3);
}

.search-form .search-btn:active {
  transform: translateY(0);
}

/* Hide close button (not needed with form) */
.search-close {
  display: none;
}

/* Responsive Search - Tablet */
@media (max-width: 1024px) {
  .search-container {
    min-width: 350px;
  }
  
  .search-form {
    padding: 14px 16px;
  }
  
  .search-form .search-icon {
    font-size: 17px;
    margin-right: 12px;
  }
  
  .search-form .search-input {
    font-size: 14px;
  }
  
  .search-form .search-btn {
    padding: 9px 22px;
    font-size: 13px;
  }
}

/* Responsive Search - Mobile */
@media (max-width: 992px) {
  .search-container {
    position: fixed;
    top: 75px;
    left: 15px;
    right: 15px;
    min-width: auto;
    width: calc(100% - 30px);
    border-radius: 12px;
  }

  .search-container::before {
    right: 60px;
  }

  .search-form {
    padding: 12px 14px;
  }
  
  .search-form .search-icon {
    font-size: 16px;
    margin-right: 10px;
  }

  .search-form .search-input {
    font-size: 14px;
  }

  .search-form .search-btn {
    padding: 9px 20px;
    font-size: 13px;
    margin-left: 10px;
  }
}

/* Responsive Search - Small Tablet */
@media (max-width: 768px) {
  .search-container {
    top: 70px;
  }

  .search-container::before {
    right: 55px;
  }

  .search-form {
    padding: 11px 13px;
  }
  
  .search-form .search-icon {
    font-size: 16px;
    margin-right: 10px;
  }

  .search-form .search-input {
    font-size: 14px;
  }

  .search-form .search-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* Responsive Search - Mobile Small */
@media (max-width: 576px) {
  .search-container {
    top: 68px;
    left: 15px;
    right: 15px;
  }

  .search-form {
    padding: 10px 12px;
  }
  
  .search-form .search-icon {
    font-size: 15px;
    margin-right: 8px;
  }

  .search-form .search-input {
    font-size: 13px;
  }

  .search-form .search-btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-left: 8px;
  }
}

/* Responsive Search - Very Small Mobile */
@media (max-width: 400px) {
  .search-container {
    top: 65px;
  }

  .search-form {
    padding: 9px 10px;
  }
  
  .search-form .search-icon {
    font-size: 14px;
    margin-right: 8px;
  }

  .search-form .search-input {
    font-size: 13px;
  }

  .search-form .search-btn {
    padding: 7px 14px;
    font-size: 12px;
    margin-left: 6px;
  }
}

/* Language Toggle */
.language-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #1a5f5f;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  color: #1a5f5f;
  font-size: 14px;
  font-weight: 500;
}

.language-toggle:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #1a5f5f;
  color: #333;
}

.language-toggle i {
  display: none;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a5f5f;
  transition: all 0.3s ease;
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mobile-nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ====== DROPDOWN STYLES ====== */
.navmenu .dropdown {
  position: relative;
}

.navmenu .dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.navmenu .dropdown .toggle-dropdown {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.navmenu .dropdown:hover .toggle-dropdown {
  transform: rotate(180deg);
}

/* Dropdown Menu - Desktop */
.navmenu .dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #f0f0f0;
}

.navmenu .dropdown ul::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.navmenu .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navmenu .dropdown ul li {
  width: 100%;
  margin: 0;
}

.navmenu .dropdown ul a {
  padding: 12px 20px;
  display: block;
  color: #333 !important;
  font-size: 14px;
  font-weight: 400;
  white-space: normal;
  line-height: 1.4;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f8f9fa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.navmenu .dropdown ul a:last-child {
  border-bottom: none;
}

.navmenu .dropdown ul a:hover {
  background-color: #f8f9fa;
  color: #1a5f5f !important;
  padding-left: 25px;
}

/* Header scrolled - dropdown tetap terlihat */
.header.scrolled .navmenu .dropdown ul {
  background-color: #fff;
  border-color: #e0e0e0;
}

.header.scrolled .navmenu .dropdown ul a {
  color: #333 !important;
}

/* ====== RESPONSIVE STYLES ====== */

/* Desktop Large (1440px dan atas) - Default style */

/* Desktop Medium (1200px - 1440px) */
@media (max-width: 1440px) {
  .container-fluid {
    max-width: 1200px;
    padding: 0 25px;
  }
  
  .navmenu ul {
    gap: 22px;
  }
}

/* Tablet Landscape (1024px - 1200px) */
@media (max-width: 1200px) {
  .container-fluid {
    max-width: 1100px;
    padding: 0 25px;
  }
  
  .navmenu ul {
    gap: 18px;
  }

  .navmenu a {
    font-size: 14px;
  }

  .search-container {
    min-width: 320px;
  }
}

/* Tablet (992px - 1024px) */
@media (max-width: 1024px) {
  .container-fluid {
    max-width: 1000px;
    padding: 0 20px;
  }
  
  .navmenu ul {
    gap: 15px;
  }

  .navmenu a {
    font-size: 13px;
  }
  
  .logo {
    height: 45px;
  }
  
  .header.scrolled .logo {
    height: 40px;
  }
  
  .search-container {
    min-width: 300px;
    right: -10px;
  }
}

/* ====== PERBAIKAN: Mobile & Tablet (768px - 992px) ====== */
@media (max-width: 992px) {
  .container-fluid {
    padding: 0 20px;
    position: relative;
    max-width: 100%;
  }

  /* Sembunyikan navbar desktop */
  .navmenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 25px 30px;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    overflow-y: auto;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
  }

  .navmenu.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .navmenu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: none;
    overflow-y: visible;
  }

  .navmenu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
    margin: 0;
    padding: 0;
  }

  .navmenu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger animation untuk menu items */
  .navmenu.active li:nth-child(1) { transition-delay: 0.1s; }
  .navmenu.active li:nth-child(2) { transition-delay: 0.15s; }
  .navmenu.active li:nth-child(3) { transition-delay: 0.2s; }
  .navmenu.active li:nth-child(4) { transition-delay: 0.25s; }
  .navmenu.active li:nth-child(5) { transition-delay: 0.3s; }
  .navmenu.active li:nth-child(6) { transition-delay: 0.35s; }
  .navmenu.active li:nth-child(7) { transition-delay: 0.4s; }
  .navmenu.active li:nth-child(8) { transition-delay: 0.45s; }

  .navmenu li:last-child {
    border-bottom: none;
  }

  .navmenu a {
    color: #333 !important;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 18px 15px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 12px;
    margin: 4px 0;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .navmenu a.active {
    background: linear-gradient(135deg, rgba(26, 95, 95, 0.1) 0%, rgba(26, 95, 95, 0.05) 100%);
    color: #1a5f5f !important;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(26, 95, 95, 0.1);
  }
  
  .navmenu a.active::after {
    display: none;
  }

  .navmenu a:hover {
    background: linear-gradient(135deg, rgba(26, 95, 95, 0.1) 0%, rgba(26, 95, 95, 0.05) 100%);
    color: #1a5f5f !important;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(26, 95, 95, 0.1);
  }

  .mobile-nav-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .mobile-nav-toggle .bi-list {
    display: block;
  }
  
  .mobile-nav-toggle .bi-x {
    display: none;
  }

  .mobile-nav-toggle.active .bi-list {
    display: none;
  }
  
  .mobile-nav-toggle.active .bi-x {
    display: block;
  }

  .header-actions {
    gap: 12px;
  }

  /* PERBAIKAN: Tampilkan search dan language di mobile */
  .search-toggle {
    display: flex;
  }

  .language-toggle {
    display: flex;
    padding: 6px 12px;
    font-size: 13px;
  }

  .search-container {
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    min-width: auto;
    max-width: none;
    z-index: 1002;
  }

  .search-container::before {
    right: 70px;
  }

  /* ====== PERBAIKAN DROPDOWN MOBILE ====== */
  .navmenu .dropdown {
    position: relative;
    width: 100%;
  }

  .navmenu .dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    pointer-events: auto;
    cursor: pointer;
    padding-right: 20px;
  }

  .navmenu .dropdown .toggle-dropdown {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #666;
    margin-left: auto;
    flex-shrink: 0;
  }

  .navmenu .dropdown.active .toggle-dropdown {
    transform: rotate(180deg);
    color: #1a5f5f;
  }

  /* Dropdown Menu - Mobile */
  .navmenu .dropdown ul {
    position: static !important;
    min-width: auto !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin: 8px 0 0 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease !important;
    border: 1px solid rgba(26, 95, 95, 0.1) !important;
    border-left: 4px solid #1a5f5f !important;
    display: block !important;
  }

  .navmenu .dropdown ul::before {
    display: none !important;
  }

  .navmenu .dropdown.active ul {
    max-height: 500px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 !important;
    margin-top: 12px !important;
  }

  .navmenu .dropdown ul li {
    border-bottom: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .navmenu .dropdown ul a {
    padding: 14px 20px 14px 25px !important;
    font-size: 15px !important;
    color: #555 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    font-weight: 400 !important;
    width: 100% !important;
    display: block !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .navmenu .dropdown ul a:last-child {
    border-bottom: none !important;
  }

  .navmenu .dropdown ul a:hover {
    background: rgba(26, 95, 95, 0.08) !important;
    color: #1a5f5f !important;
    padding-left: 30px !important;
    transform: none !important;
    font-weight: 500 !important;
  }
}

/* Tablet Portrait (768px dan bawah) */
@media (max-width: 768px) {
  .container-fluid {
    padding: 0 15px;
    max-width: 100%;
  }

  .navmenu.active {
    padding: 90px 20px 25px;
    width: 100%;
    left: 0;
    right: 0;
  }

  .logo {
    height: 42px;
  }

  .header.scrolled .logo {
    height: 38px;
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .navmenu a {
    padding: 16px 15px;
    font-size: 16px;
    width: 100%;
  }

  .navmenu .dropdown > a {
    padding: 16px 15px;
    width: 100%;
  }

  .navmenu .dropdown ul a {
    padding: 13px 20px 13px 25px !important;
    font-size: 15px !important;
    width: 100%;
  }

  .search-container {
    top: 70px;
    left: 15px;
    right: 15px;
    padding: 12px 15px;
    width: calc(100% - 30px);
  }

  .search-container::before {
    right: 60px;
  }

  .header {
    padding: 12px 0;
    width: 100%;
  }
  
  .header.scrolled {
    padding: 8px 0;
  }
}

/* Mobile (576px dan bawah) */
@media (max-width: 576px) {
  .container-fluid {
    padding: 0 15px;
    max-width: 100%;
  }

  .navmenu.active {
    padding: 80px 15px 20px;
    width: 100%;
  }

  .logo {
    height: 38px;
  }

  .header.scrolled .logo {
    height: 35px;
  }

  .navmenu a {
    padding: 15px 12px;
    font-size: 16px;
    width: 100%;
  }

  .navmenu .dropdown > a {
    padding: 15px 12px;
    width: 100%;
  }

  .navmenu .dropdown ul {
    margin-left: 0;
    border-radius: 8px;
    width: 100%;
  }

  .navmenu .dropdown.active ul {
    max-height: 400px;
  }

  .navmenu .dropdown ul a {
    padding: 12px 15px 12px 20px !important;
    font-size: 15px !important;
    width: 100%;
  }

  .navmenu .dropdown ul a:hover {
    padding-left: 25px !important;
  }

  .search-container {
    min-width: auto;
    padding: 10px 12px;
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
  }

  .search-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .mobile-nav-toggle {
    font-size: 20px;
    width: 36px;
    height: 36px;
  }

  .language-toggle {
    padding: 5px 10px;
    font-size: 12px;
  }

  body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  html.menu-open {
    overflow: hidden;
  }
}

/* Very Small Mobile (400px dan bawah) */
@media (max-width: 400px) {
  .container-fluid {
    padding: 0 12px;
    max-width: 100%;
  }

  .navmenu.active {
    padding: 70px 12px 15px;
    width: 100%;
  }

  .logo {
    height: 35px;
  }

  .navmenu a {
    padding: 14px 10px;
    font-size: 15px;
    width: 100%;
  }

  .navmenu .dropdown > a {
    padding: 14px 10px;
    width: 100%;
  }

  .navmenu .dropdown ul a {
    padding: 11px 12px 11px 18px !important;
    font-size: 14px !important;
    width: 100%;
  }

  .mobile-nav-toggle {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .language-toggle {
    padding: 4px 8px;
    font-size: 11px;
  }

  .search-toggle {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* ====== SCROLLBAR UNTUK NAVBAR MOBILE ====== */
@media (max-width: 992px) {
  .navmenu::-webkit-scrollbar {
    width: 4px;
  }

  .navmenu::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 2px;
  }

  .navmenu::-webkit-scrollbar-thumb {
    background: rgba(26, 95, 95, 0.3);
    border-radius: 2px;
  }

  .navmenu::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 95, 95, 0.5);
  }
}

/* ====== FIX UNTUK Z-INDEX DAN OVERFLOW ====== */
.header {
  z-index: 1000;
}

.navmenu {
  z-index: 999;
}

.mobile-nav-toggle {
  z-index: 1001;
}

/* Force warna dropdown di semua state */
.navmenu .dropdown ul a,
.header.scrolled .navmenu .dropdown ul a,
.navmenu .dropdown ul a:hover,
.header.scrolled .navmenu .dropdown ul a:hover {
  color: #333 !important;
}

.navmenu .dropdown ul a:hover {
  color: #1a5f5f !important;
}

/* Pastikan tidak ada horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Pastikan semua elemen navbar memiliki box-sizing yang konsisten */
.header *,
.navmenu *,
.container-fluid * {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8f9fa;
}

.content {
  flex: 1;
  padding: 40px 0;
}

/* ===== FOOTER UTAMA ===== */
.footer {
  background: #0e5f63;
  color: #fff;
  padding: 60px 0 0;
  margin-top: auto;
  position: relative;
}

.footer .container {
  max-width: 1200px;
}

.footer .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 30px;
}

/* ===== KOLOM ===== */
.footer .col-lg-3,
.footer .col-lg-4,
.footer .col-lg-5 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* ===== JUDUL ===== */
.footer h5 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #fbfcfc;
  border-radius: 2px;
}

/* ===== DESKRIPSI ===== */
.footer-desc {
  color: #b8d4d5;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: justify;
}

/* ===== SOCIAL MEDIA ===== */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.social-links a:hover {
  background: #fff;
  color: #0e5f63;
  transform: translateY(-3px);
}

/* ===== LOGO ===== */
.footer-logos {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.footer-logos img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logos img:hover {
  transform: scale(1.1);
}

/* ===== STATISTIK KUNJUNGAN 3 BULAN (HORIZONTAL) ===== */
.stats-subtitle {
  color: #b8d4d5;
  font-size: 0.85rem;
  margin-bottom: 15px;
  margin-top: -10px;
}

.stats-container-horizontal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card-horizontal {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-card-horizontal:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  border-color: rgba(255,255,255,0.2);
}

.stat-month {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.stat-month i {
  font-size: 1.2rem;
  color: #ffd700;
}

.stat-month span {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.stat-details {
  display: flex;
  gap: 25px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-label-small {
  font-size: 0.75rem;
  color: #b8d4d5;
  margin-bottom: 2px;
}

.stat-value-small {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ===== KONTAK ===== */
.contact-wrapper {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #b8d4d5;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  color: #fff;
  transform: translateX(3px);
}

.contact-item i {
  color: #ffd700;
  font-size: 1.1rem;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== MAP ===== */
.map-container {
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  margin-top: 15px;
  border: 2px solid rgba(255,255,255,0.1);
}

.map-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom-section {
  margin-top: 50px;
  background: #0a4a4d;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright-text {
  color: #b8d4d5;
  font-size: 0.85rem;
  margin: 0;
}

/* ===== ANIMASI ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer .col-lg-3, 
.footer .col-lg-4, 
.footer .col-lg-5 {
  animation: fadeInUp 0.6s ease-out backwards;
}

.footer .col-lg-3 {
  animation-delay: 0.1s;
}

.footer .col-lg-4 {
  animation-delay: 0.2s;
}

.footer .col-lg-5 {
  animation-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  .footer .row {
    gap: 20px;
  }
  
  .footer h5 {
    font-size: 1.1rem;
  }
  
  .footer-desc {
    font-size: 0.85rem;
  }
}

@media (max-width: 991px) {
  .footer .row {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .footer .col-lg-3,
  .footer .col-lg-4,
  .footer .col-lg-5 {
    max-width: 100%;
    flex: none;
  }
  
  .stat-details {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 0;
  }
  
  .footer h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .footer-desc {
    font-size: 0.85rem;
  }
  
  .stats-container-horizontal {
    gap: 10px;
  }
  
  .stat-card-horizontal {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .stat-month {
    min-width: auto;
  }
  
  .stat-details {
    width: 100%;
    justify-content: space-between;
  }
  
  .stat-item {
    align-items: flex-start;
  }
  
  .map-container {
    height: 200px;
  }
  
  .footer-logos {
    justify-content: center;
    margin-top: 15px;
  }
  
  .footer-logos img {
    width: 60px;
    height: 60px;
  }
  
  .copyright-text {
    text-align: center;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .stat-value-small {
    font-size: 1rem;
  }
  
  .stat-label-small {
    font-size: 0.7rem;
  }
  
  .stat-month span {
    font-size: 0.85rem;
  }
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.5s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 0.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: #1a5f5f;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Backgorund tampilan
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: white;
  padding: 0px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 76px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title p {
  color: var(--heading-color);
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

@media (max-width: 768px) {
  .section-title p {
    font-size: 24px;
  }
}

/*--------------------------------------------------------------
# Header Awal
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Mencegah scroll horizontal */
}
.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Memastikan gambar terpusat */
  z-index: 1;
}
.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 100%);
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 20px; /* Tambah padding horizontal */
}
.hero .hero-content {
  display: inline-block;
  text-align: center;
  position: relative;
  max-width: 100%; /* Membatasi lebar maksimal */
}
/* ===== Font Import ===== */
@font-face {
  font-family: 'Upakarti';
  src: url('../fonts/Upakarti.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* ===== Sugeng Rawuh ===== */
.hero h3.welcome-text {
  margin: 0 0 20px 0;
  font-size: clamp(16px, 3vw, 24px); /* Responsive font size */
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  color: #b8b8b8;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: clamp(4px, 1vw, 8px); /* Responsive letter spacing */
  word-wrap: break-word; /* Mencegah overflow */
}
/* ===== DISBUDPARPORA ===== */
.hero h2.disbud-font {
  margin: 0;
  font-size: clamp(32px, 8vw, 100px); /* Responsive font size */
  font-weight: 700;
  text-transform: lowercase;
  text-align: center;
  font-family: 'Upakarti', sans-serif;
  color: #f4b942;
  letter-spacing: clamp(1px, 0.2vw, 2px); /* Responsive letter spacing */
  line-height: 1.1;
  word-wrap: break-word; /* Mencegah overflow */
  max-width: 100%; /* Membatasi lebar */
}
/* ===== KOTA MADIUN ===== */
.hero p.city-text {
  color: #f4b942;
  margin-top: 15px;
  font-size: clamp(12px, 2.5vw, 18px); /* Responsive font size */
  text-align: left; /* Ubah ke center untuk konsistensi */
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: clamp(4px, 1.5vw, 10px); /* Responsive letter spacing */
  font-weight: 300;
  padding-left: 0;
  margin-left: 0;
  word-wrap: break-word; /* Mencegah overflow */
}
/* ===== Responsif ===== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero .container {
    padding: 0 15px;
  }
  
  .hero-content {
    margin-bottom: 150px !important; /* Kurangi margin bottom untuk mobile */
  }
  
  .hero h2.disbud-font {
    font-size: clamp(28px, 10vw, 45px);
    letter-spacing: 0.5px;
    line-height: 1.2;
  }
  
  .hero h3.welcome-text {
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: clamp(3px, 1.2vw, 6px);
    margin-bottom: 15px;
  }
  
  .hero p.city-text {
    font-size: clamp(11px, 3.5vw, 16px);
    letter-spacing: clamp(3px, 1.5vw, 8px);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }
  
  .hero .container {
    padding: 0 10px;
  }
  
  .hero-content {
    margin-bottom: 100px !important;
  }
  
  .hero h2.disbud-font {
    font-size: clamp(24px, 9vw, 38px);
    letter-spacing: 0;
  }
  
  .hero h3.welcome-text {
    font-size: clamp(12px, 3.5vw, 16px);
    letter-spacing: clamp(2px, 1vw, 5px);
    margin-bottom: 10px;
  }
  
  .hero p.city-text {
    font-size: clamp(10px, 3vw, 14px);
    letter-spacing: clamp(2px, 1.2vw, 6px);
  }
}
    
/*--------------------------------------------------------------
# Event Yang Akan Datang
--------------------------------------------------------------*/
/* CSS Terisolasi - Hanya untuk Event Banner */
.event-widget-wrapper,
.event-widget-wrapper * {
    font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.event-widget-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.event-widget-banner {
    background: #f4b942;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 130px;
}

.event-widget-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background-color: #1a5f5f;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.event-widget-content {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.event-widget-play-btn {
    background-color: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.event-widget-play-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.event-widget-play-icon {
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 3px;
}

.event-widget-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    margin: 0;
}

.event-widget-scroll {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.event-widget-scroll-line {
    width: 2px;
    height: 40px;
    background-color: white;
    opacity: 0.8;
}

.event-widget-scroll-text {
    color: white;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-transform: uppercase;
}

.event-widget-scroll-arrow {
    color: white;
    font-size: 20px;
    animation: eventWidgetBounce 2s infinite;
}

@keyframes eventWidgetBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Modal Styling */
#eventWidgetModal .modal-dialog {
    max-width: 800px;
    margin: 20px auto;
}

#eventWidgetModal .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#eventWidgetModal .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: transparent;
    padding: 0;
    border: none;
}

#eventWidgetModal .btn-close {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

#eventWidgetModal .btn-close:hover {
    background-color: #fff;
    transform: rotate(90deg);
}

#eventWidgetModal .modal-body {
    padding: 0;
}

#eventWidgetModal .modal-body img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Animasi Fade */
#eventWidgetModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 992px) {
    .event-widget-banner {
        padding: 25px 30px;
        min-height: 120px;
    }
    
    .event-widget-banner::before {
        width: 150px;
    }
    
    .event-widget-play-btn {
        width: 55px;
        height: 55px;
    }
    
    .event-widget-play-icon {
        border-left: 16px solid white;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
    
    .event-widget-title {
        font-size: 20px;
    }
    
    .event-widget-scroll {
        right: 30px;
    }
    
    .event-widget-scroll-text {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .event-widget-banner {
        padding: 20px 25px;
        min-height: 110px;
    }
    
    .event-widget-banner::before {
        width: 120px;
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    .event-widget-content {
        gap: 15px;
    }
    
    .event-widget-play-btn {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .event-widget-play-icon {
        border-left: 14px solid white;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
    
    .event-widget-title {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .event-widget-scroll {
        right: 25px;
        gap: 6px;
    }
    
    .event-widget-scroll-line {
        height: 30px;
    }
    
    .event-widget-scroll-text {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .event-widget-scroll-arrow {
        font-size: 16px;
    }
    
    #eventWidgetModal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .event-widget-banner {
        padding: 15px 20px 15px 15px;
        min-height: 100px;
    }
    
    .event-widget-banner::before {
        width: 100px;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    .event-widget-content {
        gap: 10px;
        padding-right: 60px; /* Berikan ruang untuk scroll indicator */
    }
    
    .event-widget-play-btn {
        width: 45px;
        height: 45px;
        border-radius: 8px;
    }
    
    .event-widget-play-icon {
        border-left: 12px solid white;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        margin-left: 2px;
    }
    
    .event-widget-title {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .event-widget-scroll {
        right: 15px;
        gap: 4px;
    }
    
    .event-widget-scroll-line {
        height: 25px;
    }
    
    .event-widget-scroll-text {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    
    .event-widget-scroll-arrow {
        font-size: 14px;
    }
}

/* Very Small Mobile */
@media (max-width: 400px) {
    .event-widget-banner {
        padding: 12px 15px;
        min-height: 90px;
    }
    
    .event-widget-banner::before {
        width: 60px;
    }
    
    .event-widget-play-btn {
        width: 40px;
        height: 40px;
    }
    
    .event-widget-play-icon {
        border-left: 10px solid white;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }
    
    .event-widget-title {
        font-size: 14px;
    }
    
    .event-widget-content {
        gap: 10px;
    }
}

/* Landscape Orientation untuk Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .event-widget-banner {
        min-height: 80px;
        padding: 15px 25px;
    }
    
    .event-widget-play-btn {
        width: 45px;
        height: 45px;
    }
    
    .event-widget-title {
        font-size: 18px;
    }
}

/* High Resolution Devices */
@media (min-width: 1400px) {
    .event-widget-banner {
        padding: 45px 60px;
        min-height: 160px;
    }
    
    .event-widget-title {
        font-size: 32px;
    }
    
    .event-widget-play-btn {
        width: 70px;
        height: 70px;
    }
    
    .event-widget-play-icon {
        border-left: 22px solid white;
        border-top: 14px solid transparent;
        border-bottom: 14px solid transparent;
    }
}

/*--------------------------------------------------------------
# Content Sambutan
--------------------------------------------------------------*/
/* Metode Breakout - Khusus untuk Gallery */
section.gallery-natural {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
  line-height: 0;
}

section.gallery-natural img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

/*--------------------------------------------------------------
# Layanan Service
--------------------------------------------------------------*/
/* VARIABLES & RESET - Scoped to prevent conflicts */
.madiun-services-wrapper {
            --mdun-primary: #e63946;
            --mdun-secondary: #1d3557;
            --mdun-accent: #a8dadc;
            --mdun-light: #f1faee;
            --mdun-dark: #2b2d42;
            --mdun-gray: #8d99ae;
            --mdun-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --mdun-transition: all 0.3s ease;
        }

        .madiun-services-wrapper {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: white;
            color: var(--mdun-dark);
            line-height: 1.6;
        }

        .madiun-services-wrapper *,
        .madiun-services-wrapper *::before,
        .madiun-services-wrapper *::after {
            box-sizing: border-box;
        }

        .madiun-services-wrapper .container-fluid {
            width: 100%;
            padding: 0;
            margin: 0;
        }

        /* CITY DEPARTMENT WRAP */
        .madiun-services-wrapper .city_department_wrap {
            padding: 40px 0;
            background: white;
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        /* SECTION HEADING */
        .madiun-services-wrapper .section_heading {
            text-align: center;
            margin-bottom: 40px;
            padding: 0 20px;
        }

        .madiun-services-wrapper .section_heading h2 {
            font-size: 2.5rem;
            color: var(--mdun-secondary);
            margin-bottom: 5px;
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: 0.5px;
        }

        .madiun-services-wrapper .section_heading .title-main {
            display: block;
            font-size: 1.2em;
            color: #457b9d;
        }

        .madiun-services-wrapper .section_heading .title-sub {
            display: block;
            font-size: 1em;
            margin-top: 5px;
        }

        .madiun-services-wrapper .section_heading .subtitle {
            font-size: 1.1rem;
            color: var(--mdun-gray);
            font-style: italic;
            margin-top: 15px;
            display: block;
            font-weight: 300;
        }

        /* SLIDER CONTAINER */
        .madiun-services-wrapper .slider-container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 60px;
        }

        .madiun-services-wrapper .city-department-slider {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            gap: 20px;
            padding: 0 20px 20px 20px;
            scrollbar-width: thin;
            scrollbar-color: var(--mdun-accent) #f0f0f0;
        }

        .madiun-services-wrapper .city-department-slider::-webkit-scrollbar {
            height: 8px;
        }

        .madiun-services-wrapper .city-department-slider::-webkit-scrollbar-track {
            background: #f0f0f0;
            border-radius: 10px;
        }

        .madiun-services-wrapper .city-department-slider::-webkit-scrollbar-thumb {
            background: var(--mdun-accent);
            border-radius: 10px;
        }

        .madiun-services-wrapper .city-department-slider::-webkit-scrollbar-thumb:hover {
            background: var(--mdun-secondary);
        }

        /* NAVIGATION BUTTONS */
        .madiun-services-wrapper .slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: white;
            border: 2px solid var(--mdun-accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: var(--mdun-transition);
            box-shadow: var(--mdun-shadow);
        }

        .madiun-services-wrapper .slider-nav:hover {
            background: var(--mdun-secondary);
            border-color: var(--mdun-secondary);
            color: white;
        }

        .madiun-services-wrapper .slider-nav.prev {
            left: 10px;
        }

        .madiun-services-wrapper .slider-nav.next {
            right: 10px;
        }

        .madiun-services-wrapper .slider-nav i {
            font-size: 1.2rem;
            color: var(--mdun-secondary);
        }

        .madiun-services-wrapper .slider-nav:hover i {
            color: white;
        }

        /* ITEM STYLES */
        .madiun-services-wrapper .width_control {
            min-width: 270px;
            max-width: 270px;
            flex-shrink: 0;
        }

        .madiun-services-wrapper .city_department_fig {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--mdun-shadow);
            transition: var(--mdun-transition);
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid #f0f0f0;
        }

        .madiun-services-wrapper .city_department_fig:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }

        .madiun-services-wrapper a {
            text-decoration: none;
            color: inherit;
            display: block;
            height: 100%;
        }

        /* BOX STYLES */
        .madiun-services-wrapper .box {
            position: relative;
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
            overflow: hidden;
            border-bottom: 1px solid #eaeaea;
        }

        .madiun-services-wrapper .box img {
            position: relative;
            z-index: 2;
            transition: var(--mdun-transition);
            max-width: 70px;
            max-height: 70px;
        }

        .madiun-services-wrapper .box:hover img {
            transform: scale(1.05);
        }

        .madiun-services-wrapper .paly_btn {
            position: absolute;
            bottom: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--mdun-gray);
            z-index: 3;
            transition: var(--mdun-transition);
            font-size: 0.9rem;
        }

        .madiun-services-wrapper .box:hover .paly_btn {
            background: rgba(0, 0, 0, 0.1);
            transform: scale(1.1);
        }

        /* TEXT CONTENT */
        .madiun-services-wrapper .city_department_text {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .madiun-services-wrapper .city_department_text h5 {
            font-size: 1.2rem;
            color: var(--mdun-secondary);
            margin-bottom: 8px;
            font-weight: 600;
            line-height: 1.3;
        }

        .madiun-services-wrapper .city_department_text p {
            color: var(--mdun-gray);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            margin-top: auto;
            transition: var(--mdun-transition);
        }

        .madiun-services-wrapper .city_department_text p i {
            margin-left: 5px;
            transition: var(--mdun-transition);
        }

        .madiun-services-wrapper .city_department_fig:hover .city_department_text p {
            color: var(--mdun-primary);
        }

        .madiun-services-wrapper .city_department_fig:hover .city_department_text p i {
            transform: translateX(3px);
        }

        /* RESPONSIVE DESIGN */
        @media (max-width: 768px) {
            /* Force vertical stacking on mobile */
            .madiun-services-wrapper .container-fluid {
                display: flex !important;
                flex-direction: column !important;
            }

            .madiun-services-wrapper .section_heading {
                order: 1 !important;
                margin-bottom: 30px;
                width: 100% !important;
                float: none !important;
            }

            .madiun-services-wrapper .slider-container {
                order: 2 !important;
                width: 100% !important;
                float: none !important;
                clear: both !important;
            }
            
            .madiun-services-wrapper .city_department_wrap {
                padding: 30px 0;
            }
            
            .madiun-services-wrapper .section_heading h2 {
                font-size: 1.75rem;
            }
            
            .madiun-services-wrapper .section_heading .subtitle {
                font-size: 0.95rem;
            }

            .madiun-services-wrapper .slider-container {
                padding: 0 50px;
            }

            .madiun-services-wrapper .slider-nav {
                width: 35px;
                height: 35px;
            }

            .madiun-services-wrapper .slider-nav i {
                font-size: 1rem;
            }
            
            .madiun-services-wrapper .width_control {
                min-width: 240px;
                max-width: 240px;
            }
            
            .madiun-services-wrapper .box {
                height: 120px;
            }

            .madiun-services-wrapper .box img {
                max-width: 60px;
                max-height: 60px;
            }
            
            .madiun-services-wrapper .city_department_text {
                padding: 15px;
            }
            
            .madiun-services-wrapper .city_department_text h5 {
                font-size: 1rem;
            }

            .madiun-services-wrapper .city_department_text p {
                font-size: 0.85rem;
            }
        }

        @media (max-width: 576px) {
            /* Force vertical stacking on mobile */
            .madiun-services-wrapper .container-fluid {
                display: flex !important;
                flex-direction: column !important;
            }

            .madiun-services-wrapper .section_heading {
                order: 1 !important;
                margin-bottom: 20px;
                width: 100% !important;
            }

            .madiun-services-wrapper .slider-container {
                order: 2 !important;
                width: 100% !important;
                padding: 0 45px;
            }

            .madiun-services-wrapper .city_department_wrap {
                padding: 20px 0;
            }
            
            .madiun-services-wrapper .section_heading h2 {
                font-size: 1.5rem;
            }
            
            .madiun-services-wrapper .section_heading .subtitle {
                font-size: 0.9rem;
                margin-top: 10px;
            }

            .madiun-services-wrapper .slider-nav {
                width: 32px;
                height: 32px;
            }

            .madiun-services-wrapper .slider-nav.prev {
                left: 5px;
            }

            .madiun-services-wrapper .slider-nav.next {
                right: 5px;
            }
            
            .madiun-services-wrapper .width_control {
                min-width: 220px;
                max-width: 220px;
            }
            
            .madiun-services-wrapper .box {
                height: 110px;
            }

            .madiun-services-wrapper .box img {
                max-width: 55px;
                max-height: 55px;
            }

            .madiun-services-wrapper .city_department_text {
                padding: 12px 15px;
            }

            .madiun-services-wrapper .city_department_text h5 {
                font-size: 0.95rem;
            }
        }

        @media (max-width: 400px) {
            .madiun-services-wrapper .section_heading h2 {
                font-size: 1.3rem;
            }

            .madiun-services-wrapper .section_heading .subtitle {
                font-size: 0.85rem;
            }

            .madiun-services-wrapper .width_control {
                min-width: 200px;
                max-width: 200px;
            }

            .madiun-services-wrapper .box {
                height: 100px;
            }

            .madiun-services-wrapper .box img {
                max-width: 50px;
                max-height: 50px;
            }
        }

        /* ANIMATIONS */
        @keyframes mdunFadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .madiun-services-wrapper .city_department_fig {
            animation: mdunFadeIn 0.5s ease forwards;
        }

/*--------------------------------------------------------------
# Ayo Dolan Ning Medhioen Section
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.madiun-header {
    text-align: center;
    padding: 20px 15px;
    background-image: url('../img/backpage.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100vw;
    height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.madiun-header h1 {
    font-size: 2.8em;
    margin-bottom: 5px;
    line-height: 1.2;
    padding: 0 15px;
}

.madiun-header h1 .highlight {
    color: #1a5f5f;
    font-weight: bold;
}

.madiun-header p {
    font-size: 1.1em;
    color: #666;
    letter-spacing: 2px;
    margin: 0;
    padding: 0 15px;
}

.content-section {
    width: 100%;
}

.madiun-container {
    display: flex;
    margin: 0;
    gap: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: calc(100vh - 25vh - 60px);
    width: 100%;
    position: relative;
    z-index: 2;
}

.madiun-sidebar {
    background: rgba(26, 95, 95, 0.5);
    padding: 50px 30px;
    min-width: 250px;
    z-index: 1;
    position: relative;
}

.menu-item {
    padding: 18px 0;
    border: none;
    border-bottom: 2px solid #8a9a9a !important;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, font-size 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menu-item:focus,
.menu-item:active,
.menu-item:focus-visible,
.menu-item:focus-within,
.menu-item:target {
    outline: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid #8a9a9a !important;
    background: transparent !important;
}

.menu-item.active {
    color: #fff;
    background: transparent !important;
    padding-right: 10px;
    outline: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid #8a9a9a !important;
}

.menu-item.active h2 {
    font-size: 1.8em;
}

.menu-item.active::after {
    content: '→';
    font-size: 1.3em;
    color: #fff;
    margin-left: 15px;
}

.menu-item:hover {
    color: #fff;
}

.menu-item h2 {
    font-size: 1.7em;
    font-weight: normal;
    transition: font-size 0.3s ease;
    margin: 0;
    padding: 0;
    outline: none !important;
}

.menu-item h2::first-letter {
    font-weight: bold;
    font-size: 1.1em;
}

.menu-item h2:focus,
.menu-item h2:active {
    outline: none !important;
    box-shadow: none !important;
}

.madiun-content {
    flex: 1;
    background-image: url(../img/back.jpg);
    background-size: cover;
    background-position: center;
    padding: 60px 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 5;
}

.madiun-letters-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    width: 100%;
    max-width: 1200px;
    position: relative;
    margin-top: 20px;
}

.letter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    overflow: visible;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.letter-wrapper {
    position: relative;
    width: 320px;
    height: 360px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-wrapper[style*="--bg-image"]:first-child {
    margin-left: -10px;
    margin-right: 10px;
}

.letter-clipped {
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 360px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    font-family: 'Arial Black', sans-serif;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.4));
    overflow: visible;
    transition: filter 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-wrapper:first-child .letter-clipped {
    font-size: 340px;
    margin-left: -5px;
}

.letter-wrapper:hover {
    transform: scale(1.03);
}

.letter-wrapper:active {
    transform: scale(1.01);
}

.letter-wrapper:hover .letter-clipped {
    filter: drop-shadow(6px 6px 12px rgba(0,0,0,0.6));
}

@supports not (background-clip: text) {
    .letter-clipped {
        color: white;
        background: none;
    }
    .letter-clipped::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: var(--bg-image);
        background-size: cover;
        background-position: center;
        opacity: 0.3;
        z-index: -1;
    }
}

/* PERBAIKAN: Hilangkan background putih pada teks */
.description {
    background: transparent !important;
    padding: 8px;
    text-align: center;
    min-width: 200px;
    position: relative;
    z-index: 3;
    border-radius: 0;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.description h3 {
    color: #1a5f5f;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    padding: 0 !important;
    background: transparent !important;
    margin: 0;
}

.btn-detail {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #1a5f5f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #1a5f5f;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.btn-detail:hover {
    background: transparent;
    color: #1a5f5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-detail:active {
    transform: translateY(0);
}

.side-text-box {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
}

.side-text-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.03);
}

.side-text-box:active {
    transform: translateY(-50%) scale(1.01);
}

.side-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 2em;
    color: #1a5f5f;
    letter-spacing: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.content-text {
    position: relative;
    z-index: 4;
    text-align: center;
    margin-bottom: 20px;
}

.content-text h2 {
    color: #1a5f5f;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.content-text p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop Medium */
@media (max-width: 1400px) {
    .letter-wrapper {
        width: 280px;
        height: 320px;
    }
    
    .letter-clipped {
        font-size: 320px;
    }
    
    .letter-wrapper:first-child .letter-clipped {
        font-size: 300px;
    }
    
    .madiun-letters-container {
        gap: 30px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .madiun-header {
        height: 22vh;
    }
    
    .madiun-header h1 {
        font-size: 2.2em;
    }
    
    .madiun-header p {
        font-size: 1em;
    }
    
    .madiun-container {
        flex-direction: column;
        min-height: calc(100vh - 22vh - 50px);
        position: relative;
        z-index: 2;
    }
    
    .madiun-sidebar {
        min-width: 100%;
        padding: 30px 20px;
        z-index: 3;
    }
    
    .madiun-content {
        padding: 40px 30px;
        padding-bottom: 120px;
        z-index: 2;
        margin-top: 0;
    }
    
    .side-text-box {
        position: absolute;
        right: 20px;
        bottom: 40px;
        top: auto;
        transform: none;
        z-index: 100;
    }
    
    .side-text-box:hover {
        transform: scale(1.03);
    }
    
    .side-text {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
    
    .letter-wrapper {
        width: 220px;
        height: 260px;
    }
    
    .letter-clipped {
        font-size: 260px;
    }
    
    .letter-wrapper:first-child .letter-clipped {
        font-size: 240px;
        margin-left: -3px;
    }
    
    .madiun-letters-container {
        gap: 30px;
        margin-top: 15px;
    }
    
    .letter-section {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .description {
        background: transparent !important;
        backdrop-filter: none !important;
        min-width: 180px;
    }
    
    .btn-detail {
        padding: 8px 16px;
        font-size: 0.85em;
    }
}

/* Mobile Landscape */
@media (max-width: 896px) and (min-height: 414px) {
    .madiun-header {
        height: 20vh;
        padding: 15px 10px;
    }
    
    .madiun-header h1 {
        font-size: 1.8em;
        margin-bottom: 3px;
    }
    
    .madiun-header p {
        font-size: 0.9em;
        letter-spacing: 1.5px;
    }
    
    .madiun-container {
        min-height: calc(100vh - 20vh - 40px);
    }
    
    .madiun-letters-container {
        gap: 25px;
        margin-top: 10px;
    }
    
    .letter-wrapper {
        width: 160px;
        height: 200px;
    }
    
    .letter-clipped {
        font-size: 200px;
    }
    
    .letter-wrapper:first-child .letter-clipped {
        font-size: 190px;
        margin-left: -2px;
    }
    
    .madiun-content {
        padding: 30px 20px;
        padding-bottom: 100px;
    }
    
    .side-text-box {
        right: 15px;
        bottom: 30px;
        padding: 20px 12px;
    }
    
    .side-text {
        font-size: 1.5em;
        letter-spacing: 8px;
    }
    
    .menu-item.active h2 {
        font-size: 1.6em;
    }
    
    .menu-item h2 {
        font-size: 1.5em;
    }
    
    .letter-section {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .description {
        background: transparent !important;
        backdrop-filter: none !important;
        min-width: 160px;
    }
    
    .description h3 {
        padding: 0 !important;
    }
    
    .btn-detail {
        padding: 8px 14px;
        font-size: 0.8em;
        margin-top: 8px;
    }
}

/* Mobile Portrait - IPHONE 12 PRO PORTRAIT */
@media (max-width: 430px) and (min-height: 832px) {
    .madiun-header {
        height: 18vh;
        padding: 12px 10px;
    }
    
    .madiun-header h1 {
        font-size: 1.6em;
    }
    
    .madiun-header p {
        font-size: 0.85em;
        letter-spacing: 1px;
    }
    
    .madiun-container {
        min-height: calc(100vh - 18vh - 30px);
    }
    
    .madiun-letters-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    
    .letter-section {
        gap: 10px;
        width: 100%;
        max-width: 180px;
        margin-bottom: 15px;
    }
    
    .letter-wrapper {
        width: 150px;
        height: 170px;
    }
    
    .letter-clipped {
        font-size: 170px;
    }
    
    .letter-wrapper:first-child .letter-clipped {
        font-size: 160px;
        margin-left: -1px;
    }
    
    .description {
        background: transparent !important;
        backdrop-filter: none !important;
        min-width: 140px;
    }
    
    .description h3 {
        font-size: 0.85em;
        padding: 0 !important;
    }
    
    .madiun-content {
        padding: 20px 15px;
        padding-bottom: 100px;
        min-height: 450px;
    }
    
    .side-text-box {
        right: 10px;
        bottom: 25px;
        padding: 15px 10px;
        display: block !important;
    }
    
    .side-text {
        font-size: 1.3em;
        letter-spacing: 6px;
    }
    
    .btn-detail {
        padding: 7px 14px;
        font-size: 0.75em;
        margin-top: 8px;
    }
}

/* Mobile Portrait - STANDARD */
@media (max-width: 576px) {
    .madiun-header {
        height: 18vh;
    }
    
    .madiun-header h1 {
        font-size: 1.5em;
    }
    
    .madiun-header p {
        font-size: 0.8em;
        letter-spacing: 1px;
    }
    
    .madiun-container {
        min-height: calc(100vh - 18vh - 30px);
    }
    
    .madiun-letters-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    
    .letter-section {
        gap: 10px;
        width: 100%;
        max-width: 200px;
        margin-bottom: 15px;
    }
    
    .letter-wrapper {
        width: 140px;
        height: 160px;
    }
    
    .letter-clipped {
        font-size: 160px;
    }
    
    .letter-wrapper:first-child .letter-clipped {
        font-size: 150px;
        margin-left: -1px;
    }
    
    .description {
        background: transparent !important;
        backdrop-filter: none !important;
        min-width: 150px;
    }
    
    .description h3 {
        font-size: 0.9em;
        padding: 0 !important;
    }
    
    .madiun-content {
        padding: 20px 15px;
        padding-bottom: 90px;
        min-height: 400px;
    }
    
    .side-text-box {
        right: 10px;
        bottom: 20px;
        padding: 15px 10px;
    }
    
    .side-text {
        font-size: 1.2em;
        letter-spacing: 6px;
    }
    
    .btn-detail {
        padding: 6px 12px;
        font-size: 0.75em;
        margin-top: 6px;
    }
}

/* Very Small Mobile */
@media (max-width: 400px) {
    .madiun-header {
        height: 16vh;
    }
    
    .madiun-header h1 {
        font-size: 1.3em;
    }
    
    .madiun-header p {
        font-size: 0.75em;
    }
    
    .madiun-container {
        min-height: calc(100vh - 16vh - 20px);
    }
    
    .letter-wrapper {
        width: 120px;
        height: 140px;
    }
    
    .letter-clipped {
        font-size: 140px;
    }
    
    .letter-wrapper:first-child .letter-clipped {
        font-size: 130px;
    }
    
    .madiun-content {
        padding: 15px 10px;
        padding-bottom: 80px;
        min-height: 350px;
    }
    
    .side-text-box {
        display: block !important;
        right: 8px;
        bottom: 15px;
        padding: 12px 8px;
    }
    
    .description {
        background: transparent !important;
        backdrop-filter: none !important;
        min-width: 120px;
    }
    
    .description h3 {
        padding: 0 !important;
        font-size: 0.85em;
    }
    
    .btn-detail {
        padding: 5px 10px;
        font-size: 0.7em;
    }
}

/* PERBAIKAN EXTRA */
.side-text-box * {
    pointer-events: none;
}

.side-text-box {
    pointer-events: auto;
}

.madiun-content > *:not(.side-text-box) {
    position: relative;
    z-index: auto;
}

/* FIX KHUSUS UNTUK IPHONE 12 PRO */
@media (max-width: 390px) and (min-height: 844px) {
    .side-text-box {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        right: 12px;
        bottom: 25px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(15px);
    }
    
    .madiun-content {
        padding-bottom: 100px;
        min-height: 480px;
    }
    
    .description {
        background: transparent !important;
        backdrop-filter: none !important;
    }
    
    .description h3 {
        background: transparent !important;
        padding: 0 !important;
    }
}
/*--------------------------------------------------------------
# madiun highlights
--------------------------------------------------------------*/
/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section Styles */
.madiun-highlight-section {
  background-color: #1a5f5f;
  color: #fff;
  padding: 64px 16px;
  animation: fadeIn 0.6s ease-out;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Header */
.main-title {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.1em;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #ffffff;
  animation: fadeInUp 0.8s ease-out;
}

.title-light {
  font-weight: 300;
  color: #ffffff;
}

/* Main Events Grid */
.main-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .main-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Event Card */
.event-card {
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.event-card:nth-child(1) {
  animation-delay: 0.2s;
}

.event-card:nth-child(2) {
  animation-delay: 0.3s;
}

.event-card:nth-child(3) {
  animation-delay: 0.4s;
}

.event-card:nth-child(4) {
  animation-delay: 0.5s;
}

.event-image-wrapper {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Aspect ratio 1:1 */
  background: transparent;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Link styling dalam image wrapper */
.event-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  text-decoration: none;
}

.event-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.event-image-wrapper a:hover .event-image {
  transform: scale(1.05);
}

.event-news-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 12px;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #ffffff;
}

.event-description {
  color: #d1d5db;
  line-height: 1.6;
}

/* Secondary Grid */
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .secondary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Event Card */
.small-event-card {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.small-event-card:nth-child(1) {
  animation-delay: 0.6s;
}

.small-event-card:nth-child(2) {
  animation-delay: 0.7s;
}

.small-event-card:nth-child(3) {
  animation-delay: 0.8s;
}

.small-event-card:nth-child(4) {
  animation-delay: 0.9s;
}

.small-event-card:nth-child(5) {
  animation-delay: 1s;
}

.small-event-card:nth-child(6) {
  animation-delay: 1.1s;
}

/* Link styling dalam small event card */
.small-event-card a {
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.small-event-card a:hover .small-event-image {
  transform: scale(1.05);
  opacity: 0.9;
}

.small-event-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.small-event-content {
  flex: 1;
}

.small-event-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1rem;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #ffffff;
}

.small-event-description {
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.4;
}

/* Button */
.button-wrapper {
  text-align: left;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 1.2s;
}

.btn-selengkapnya {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background-color: #fff;
  color: #000;
  font-weight: bold;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.btn-selengkapnya:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
  color: #000;
  text-decoration: none;
}

.btn-selengkapnya:active {
  transform: translateY(0);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }
  
  .event-news-title {
    font-size: 1.25rem;
  }
  
  .small-event-card {
    flex-direction: column;
    gap: 12px;
  }
  
  .small-event-image {
    width: 100%;
    height: 120px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hover effect untuk text jika diinginkan */
.event-news-title:hover,
.small-event-title:hover {
  color: #e0e0e0;
  transition: color 0.3s ease;
}

/* Atau jika ingin judul juga bisa diklik (tambahkan link di HTML) */
.event-news-title a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.event-news-title a:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Profil
--------------------------------------------------------------*/
/* Custom Profile Page Styles - Override conflicts */
    section.profile-section {
      padding: 40px 0 !important;
      background: #f8f9fa !important;
      font-family: 'Segoe UI', Arial, sans-serif !important;
    }

    section.profile-section * {
      font-family: 'Segoe UI', Arial, sans-serif !important;
    }

    .profile-section .profile-card {
      background: white !important;
      border-radius: 15px !important;
      box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1) !important;
      overflow: hidden !important;
      margin-bottom: 30px !important;
    }

    .profile-section .profile-body {
      padding: 35px !important;
    }

    .profile-section .detail-item {
      display: flex !important;
      padding: 12px 0 !important;
      border-bottom: 1px solid #e9ecef !important;
      margin: 0 !important;
    }

    .profile-section .detail-item:last-child {
      border-bottom: none !important;
    }

    .profile-section .detail-label {
      font-weight: 600 !important;
      color: #495057 !important;
      min-width: 180px !important;
      display: flex !important;
      align-items: flex-start !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    .profile-section .detail-label i {
      margin-right: 10px !important;
      color: #667eea !important;
      font-size: 18px !important;
      margin-top: 2px !important;
      flex-shrink: 0 !important;
    }

    .profile-section .detail-value {
      color: #212529 !important;
      flex: 1 !important;
      line-height: 1.6 !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    .profile-section .section-title {
      font-size: 24px !important;
      font-weight: 700 !important;
      color: #212529 !important;
      margin-bottom: 25px !important;
      margin-top: 0 !important;
      padding: 0 !important;
      border: none !important;
    }

    .profile-section .history-section {
      background: white !important;
      border-radius: 15px !important;
      padding: 35px !important;
      box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1) !important;
      margin-bottom: 30px !important;
    }

    .profile-section .history-section .section-title {
      color: #171717ff !important;
      margin-bottom: 20px !important;
    }

    .profile-section .history-text {
      text-align: justify !important;
      line-height: 1.8 !important;
      color: #495057 !important;
      font-size: 15px !important;
      margin: 0 !important;
    }

    .profile-section .history-text p {
      margin-bottom: 15px !important;
      margin-top: 0 !important;
    }

    .profile-section .pdf-viewer-section {
      background: white !important;
      border-radius: 15px !important;
      padding: 35px !important;
      box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1) !important;
      margin-bottom: 30px !important;
    }

    .profile-section .pdf-viewer-section .section-title {
      color: #171717ff !important;
      margin-bottom: 15px !important;
    }

    .profile-section .pdf-viewer-section > p {
      color: #6c757d !important;
      margin-bottom: 20px !important;
      margin-top: 0 !important;
    }

    .profile-section .pdf-container {
      width: 100% !important;
      height: 600px !important;
      border: 2px solid #e9ecef !important;
      border-radius: 10px !important;
      overflow: hidden !important;
      margin-top: 20px !important;
      background: #f8f9fa !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .profile-section .pdf-iframe {
      width: 100% !important;
      height: 100% !important;
      border: none !important;
    }

    .profile-section .pdf-list {
      display: flex !important;
      flex-direction: column !important;
      gap: 15px !important;
      margin-top: 20px !important;
      padding: 0 !important;
      list-style: none !important;
    }

    .profile-section .pdf-item {
      display: flex !important;
      align-items: center !important;
      padding: 15px !important;
      background: #f8f9fa !important;
      border-radius: 10px !important;
      transition: all 0.3s ease !important;
      cursor: pointer !important;
      border: 2px solid transparent !important;
      margin: 0 !important;
    }

    .profile-section .pdf-item:hover {
      background: #e9ecef !important;
      transform: translateX(5px) !important;
    }

    .profile-section .pdf-item.active {
      background: #1a5f5f !important;
      color: white !important;
      border-color: #1a5f5f !important;
    }

    .profile-section .pdf-item.active .pdf-size {
      color: rgba(255, 255, 255, 0.8) !important;
    }

    .profile-section .pdf-icon {
      margin-right: 15px !important;
      font-size: 28px !important;
      min-width: 40px !important;
      display: flex !important;
      justify-content: center !important;
    }

    .profile-section .pdf-info {
      flex: 1 !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    .profile-section .pdf-name {
      font-weight: 600 !important;
      margin-bottom: 5px !important;
      font-size: 15px !important;
      margin-top: 0 !important;
    }

    .profile-section .pdf-size {
      font-size: 12px !important;
      color: #6c757d !important;
      margin: 0 !important;
    }

    .profile-section .btn-download {
      display: inline-flex !important;
      align-items: center !important;
      padding: 12px 24px !important;
      background: #1a5f5f !important;
      color: white !important;
      border-radius: 8px !important;
      text-decoration: none !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      transition: all 0.3s ease !important;
      border: none !important;
      margin: 0 !important;
    }

    .profile-section .btn-download:hover {
      transform: scale(1.05) !important;
      box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
      color: white !important;
    }

    .profile-section .btn-download i {
      margin-right: 8px !important;
    }

    .profile-section .gallery-section {
      background: white !important;
      border-radius: 15px !important;
      padding: 35px !important;
      box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1) !important;
      margin-bottom: 30px !important;
    }

    .profile-section .gallery-section .section-title {
      color: #131313ff !important;
      margin-bottom: 20px !important;
    }

    .profile-section .gallery-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 20px !important;
      margin-top: 25px !important;
    }

    .profile-section .gallery-item {
      position: relative !important;
      border-radius: 12px !important;
      overflow: hidden !important;
      box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1) !important;
      transition: all 0.3s ease !important;
      aspect-ratio: 16/9 !important;
    }

    .profile-section .gallery-item:hover {
      transform: translateY(-5px) !important;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    }

    .profile-section .gallery-img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      transition: transform 0.3s ease !important;
      display: block !important;
    }

    .profile-section .gallery-item:hover .gallery-img {
      transform: scale(1.05) !important;
    }

    /* Responsive Design */
    @media (max-width: 992px) {
      .profile-section .pdf-container {
        height: 500px !important;
      }
    }

    @media (max-width: 768px) {
      .profile-section .detail-item {
        flex-direction: column !important;
        gap: 8px !important;
      }

      .profile-section .detail-label {
        min-width: auto !important;
        margin-bottom: 0 !important;
      }

      .profile-section .profile-body,
      .profile-section .history-section,
      .profile-section .pdf-viewer-section,
      .profile-section .gallery-section {
        padding: 25px 20px !important;
      }

      .profile-section .pdf-container {
        height: 400px !important;
      }

      .profile-section .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
      }

      .profile-section .section-title {
        font-size: 20px !important;
      }
    }

    @media (max-width: 576px) {
      section.profile-section {
        padding: 30px 0 !important;
      }

      .profile-section .pdf-container {
        height: 300px !important;
      }

      .profile-section .pdf-item {
        padding: 12px !important;
      }

      .profile-section .pdf-icon {
        font-size: 24px !important;
        min-width: 35px !important;
      }

      .profile-section .pdf-name {
        font-size: 14px !important;
      }

      .profile-section .profile-body,
      .profile-section .history-section,
      .profile-section .pdf-viewer-section,
      .profile-section .gallery-section {
        padding: 20px 15px !important;
      }
    }

/*--------------------------------------------------------------
# Faq
--------------------------------------------------------------*/
    .faq-section {
      padding: 60px 0;
    }
    
    .faq-categories {
      background: #f8f9fa;
      border-radius: 10px;
      padding: 30px 20px;
      height: fit-content;
    }
    
    .faq-category-item {
      padding: 15px 20px;
      margin-bottom: 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      background: transparent;
      text-align: left;
      width: 100%;
      font-weight: 500;
    }
    
    .faq-category-item:hover {
      background: #e9ecef;
    }
    
    .faq-category-item.active {
      background: #1a5f5f;
      color: white;
    }
    
    .faq-content {
      padding-left: 40px;
    }
    
    .faq-item {
      margin-bottom: 25px;
      border-bottom: 1px solid #e9ecef;
      padding-bottom: 20px;
    }
    
    .faq-item:last-child {
      border-bottom: none;
      margin-bottom: 0;
    }
    
    .faq-question {
      font-weight: 600;
      font-size: 1.1rem;
      margin-bottom: 10px;
      color: #2c3e50;
    }
    
    .faq-answer {
      color: #6c757d;
      line-height: 1.6;
    }
    
    .service-list {
      list-style-type: none;
      padding-left: 0;
      margin-top: 15px;
    }
    
    .service-list li {
      padding: 8px 0;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: flex-start;
    }
    
    .service-list li:last-child {
      border-bottom: none;
    }
    
    .service-list li:before {
      content: "•";
      color: #007bff;
      font-weight: bold;
      display: inline-block;
      width: 1em;
      margin-right: 10px;
      flex-shrink: 0;
    }
    @media (max-width: 768px) {
      .faq-section {
        padding: 30px 0; 
      }
      
      .faq-question {
        font-size: 1rem; 
      }
      
      .faq-category-item {
        padding: 12px 15px; 
        font-size: 0.9rem;
      }
    }

    @media (max-width: 576px) {
      .faq-categories {
        padding: 20px 15px; 
      }
      
      .service-list li {
        padding: 6px 0; 
      }
    }
    @media (max-width: 768px) {
      .faq-content {
        padding-left: 0;
        margin-top: 30px;
      }
      
      .faq-categories {
        margin-bottom: 20px;
      }
    }

/*--------------------------------------------------------------
# Informasi Publik
--------------------------------------------------------------*/
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

.complaint-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.complaint-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

.complaint-card:hover {
  transform: translateY(-5px);
}

/* PERBAIKAN: Gambar full tanpa terpotong */
.complaint-image-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #f1f1f1;
  /* Hapus aspect-ratio dan biarkan gambar menentukan tinggi */
}

.complaint-image {
  width: 100%;
  height: auto; /* Biarkan tinggi mengikuti proporsi asli */
  display: block;
  object-fit: contain; /* Gambar utuh tanpa terpotong */
  object-position: center;
  max-height: none; /* Hapus batasan tinggi */
}

.complaint-date {
  background-color: #f1f1f1;
  padding: 10px 20px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

.complaint-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.complaint-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}

.complaint-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.read-more-btn {
  display: inline-block;
  background-color: #1a5f5f;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.read-more-btn:hover {
  background-color: #144747;
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

/* Pagination styles */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 5px;
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  color: #1a5f5f;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: #1a5f5f;
  color: white;
  border-color: #1a5f5f;
}

.pagination .page-item.active .page-link {
  background-color: #1a5f5f;
  border-color: #1a5f5f;
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .complaint-card {
    margin-bottom: 25px;
  }
  
  .col-lg-4, .col-md-6 {
    margin-bottom: 25px;
  }
}

@media (max-width: 992px) {
  .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .complaint-section {
    padding: 50px 0;
  }
  
  .complaint-title {
    font-size: 17px;
  }
  
  .section-title {
    margin-bottom: 35px;
  }
  
  .pagination-wrapper {
    margin-top: 35px;
    margin-bottom: 35px;
  }
}

@media (max-width: 768px) {
  .col-lg-4, .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .complaint-section {
    padding: 40px 0;
  }
  
  .complaint-card {
    margin-bottom: 20px;
  }
  
  .complaint-title {
    font-size: 16px;
  }
  
  .complaint-description {
    font-size: 14px;
  }
  
  .section-title {
    margin-bottom: 30px;
    font-size: 24px;
  }
  
  .pagination-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  
  .pagination .page-link {
    padding: 6px 12px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .complaint-section {
    padding: 30px 0;
  }
  
  .complaint-card {
    margin-bottom: 15px;
  }
  
  .complaint-body {
    padding: 15px;
  }
  
  .complaint-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .complaint-description {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .read-more-btn {
    padding: 7px 16px;
    font-size: 14px;
  }
  
  .complaint-date {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .section-title {
    margin-bottom: 25px;
    font-size: 22px;
  }
  
  .pagination-wrapper {
    margin-top: 25px;
    margin-bottom: 25px;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }
  
  .pagination .page-link {
    padding: 5px 10px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .complaint-section {
    padding: 20px 0;
  }
  
  .complaint-card {
    margin-bottom: 12px;
  }
  
  .complaint-body {
    padding: 12px;
  }
  
  .section-title {
    margin-bottom: 20px;
    font-size: 20px;
  }
  
  .pagination-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .pagination .page-link {
    padding: 4px 8px;
    font-size: 12px;
  }
}
/*--------------------------------------------------------------
# Search
--------------------------------------------------------------*/
.search-event-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
  background-size: cover;
  opacity: 0.3;
}

.search-event-header .container {
  position: relative;
  z-index: 1;
}

.search-event-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Search Results Section */
.search-results-main-section {
  padding: 60px 0 80px;
  background-color: #f8f9fa;
  min-height: 60vh;
}

/* Search Info Box */
.search-info-box {
  margin-bottom: 40px;
  padding: 25px 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border-left: 4px solid #1a5f5f;
}

.search-info-box h2 {
  font-size: 26px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.search-info-box h2 .keyword-highlight {
  color: #1a5f5f;
  font-weight: 700;
}

.search-info-box p {
  color: #666;
  margin: 0;
  font-size: 15px;
}

/* News Results Grid */
.news-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* News Result Card */
.news-result-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 20px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.news-result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.2);
  border-color: #1a5f5f;
}

/* Card Image Container */
.news-result-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
}

.news-result-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-result-card:hover .news-result-card-image img {
  transform: scale(1.08);
}

/* Category Badge */
.news-result-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 140, 0, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

/* Card Content */
.news-result-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Date Info */
.news-result-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 500;
}

.news-result-card-date i {
  font-size: 16px;
  color: #ff8c00;
}

/* Card Title */
.news-result-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 57px;
  transition: color 0.3s ease;
}

.news-result-card:hover .news-result-card-title {
  color: #ff8c00;
}

/* Card Excerpt */
.news-result-card-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Card Footer */
.news-result-card-footer {
  padding-top: 16px;
  border-top: 2px solid #f0f0f0;
  margin-top: auto;
}

/* Read More Link */
.news-read-more-link {
  color: #1a5f5f;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.news-read-more-link i {
  transition: transform 0.3s ease;
}

.news-read-more-link:hover {
  gap: 12px;
  color: #e67300;
}

.news-read-more-link:hover i {
  transform: translateX(4px);
}

/* No Results Found */
.no-results-container {
  text-align: center;
  padding: 80px 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  max-width: 600px;
  margin: 0 auto;
}

.no-results-container i {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 24px;
  display: block;
}

.no-results-container h3 {
  font-size: 26px;
  color: #555;
  margin-bottom: 12px;
  font-weight: 600;
}

.no-results-container p {
  color: #888;
  font-size: 16px;
  line-height: 1.6;
}

/* Hide Search Dropdown/Suggestions */
.search-dropdown,
.search-suggestions,
[data-search-dropdown],
[data-search-suggestions] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1200px) {
  .news-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (max-width: 992px) {
  .search-event-header h1 {
    font-size: 36px;
  }

  .news-results-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .search-event-header {
    padding: 60px 0 40px;
  }

  .search-event-header h1 {
    font-size: 30px;
  }

  .search-results-main-section {
    padding: 40px 0 60px;
  }

  .search-info-box {
    padding: 20px;
    margin-bottom: 30px;
  }

  .search-info-box h2 {
    font-size: 22px;
  }

  .news-results-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-result-card-image {
    height: 200px;
  }

  .news-result-card-title {
    font-size: 17px;
  }

  .news-result-card-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .search-event-header h1 {
    font-size: 26px;
  }

  .search-info-box {
    padding: 16px;
  }

  .search-info-box h2 {
    font-size: 20px;
  }

  .news-result-card-image {
    height: 180px;
  }

  .news-result-card-content {
    padding: 16px;
  }

  .news-result-card-title {
    font-size: 16px;
    min-height: 48px;
  }

  .no-results-container {
    padding: 60px 20px;
  }

  .no-results-container i {
    font-size: 64px;
  }

  .no-results-container h3 {
    font-size: 22px;
  }
}
.starter-section {
  /* Add your styles here */
}