/*
Theme Name: Desa Modern
Theme URI: https://github.com/google-antigravity
Description: Tema khusus WordPress untuk Website Desa Modern dengan layout bersih, cepat, responsif, dan elegan.
Version: 1.1.0
Author: Antigravity AI
Author URI: https://github.com/google-antigravity
Text Domain: desa-modern
Tags: village, government, responsive-layout, clean, modern, custom-menu, custom-background
*/

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --primary-gradient: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); /* Premium Teal Gradient */
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);  /* Warm Golden Amber */
  --primary-color: #0d9488;      /* Vibrant Teal */
  --primary-dark: #0f766e;       /* Deep Forest Teal */
  --secondary-color: #f59e0b;    /* Golden Amber */
  --accent-emerald: #10b981;     /* Emerald Green for success/stats */
  --dark-color: #0f172a;         /* Deep Slate Dark */
  --light-color: #f8fafc;        /* Off-White Background */
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-color: rgba(15, 23, 42, 0.08);
  --text-main: #334155;          /* Body Text */
  --text-muted: #64748b;         /* Muted Subtitles */
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--light-color);
  background-image: radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.03) 0px, transparent 50%),
                    radial-gradient(at 50% 0%, rgba(245, 158, 11, 0.02) 0px, transparent 50%);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.25;
}

/* --- UTILITY COMPONENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover::before {
  opacity: 1;
}

/* --- HEADER & NAVIGATION (Glassmorphism) --- */
.site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.2);
  transition: var(--transition-smooth);
}

.site-logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.05);
}

.logo-text h1 {
  font-size: 1.4rem;
  color: var(--dark-color);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- MULTI-LEVEL DROPDOWN MENU --- */
.site-navigation {
  position: relative;
}

.site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Top-level menu */
.site-navigation > div > ul,
.site-navigation > ul.primary-menu {
  display: flex;
  gap: 5px;
  align-items: center;
}

.site-navigation li {
  position: relative;
}

.site-navigation a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 50px;
  display: block;
  transition: var(--transition-smooth);
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
  color: var(--primary-color);
  background: rgba(13, 148, 136, 0.08);
}

/* Sub-menus (Dropdown) */
.site-navigation ul.sub-menu,
.site-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
  display: block;
}

/* Show dropdown on hover */
.site-navigation li:hover > ul.sub-menu,
.site-navigation li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown items */
.site-navigation ul.sub-menu li,
.site-navigation ul ul li {
  width: 100%;
}

.site-navigation ul.sub-menu a,
.site-navigation ul ul a {
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.88rem;
  color: var(--text-main);
  text-align: left;
}

.site-navigation ul.sub-menu a:hover,
.site-navigation ul ul a:hover {
  background: rgba(13, 148, 136, 0.05);
  color: var(--primary-color);
}

/* --- HERO SECTION (Aesthetic & Rich) --- */
.hero-section {
  background-color: #0f172a;
  color: #fff;
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--light-color);
  clip-path: ellipse(60% 40px at 50% 40px);
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-section h2 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* --- INTERACTIVE CARDS SECTION --- */
.info-cards {
  max-width: 1200px;
  margin: -60px auto 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.info-card {
  background: #fff;
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.info-card:hover .card-icon {
  background: var(--primary-gradient);
  color: #fff;
  transform: scale(1.1);
}

.info-card h3 {
  font-size: 1.35rem;
  color: var(--dark-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- MAIN CONTENT & SIDEBAR GRID --- */
.main-content {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 40px;
}

.main-content.full-width {
  grid-template-columns: 1fr;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  color: var(--dark-color);
  font-weight: 800;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* --- DYNAMIC POST CARDS --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.06);
}

.post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.3;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: var(--primary-color);
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 20px;
  opacity: 0.9;
  flex-grow: 1;
}

.read-more-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more-link:hover {
  color: var(--primary-dark);
}

/* --- SIDEBAR & WIDGETS --- */
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

/* --- FOOTER DESIGN (Premium Dark) --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 24px 30px 24px;
  margin-top: 80px;
  position: relative;
  border-top: 4px solid var(--primary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget h3 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-widget p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-widget a {
  color: #e2e8f0;
  transition: var(--transition-smooth);
}

.footer-widget a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
}

/* --- DETAIL & BLOG PAGES --- */
.entry-content p {
  margin-bottom: 20px;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  font-style: italic;
  color: var(--text-muted);
  margin: 25px 0;
}

/* --- APBDES TRANSPARENCY & WIDGETS --- */
.apbdes-progress-container {
  margin-top: 15px;
}

.apbdes-progress-bar {
  background: #e2e8f0;
  border-radius: 50px;
  height: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.apbdes-progress-fill {
  background: var(--primary-gradient);
  height: 100%;
  border-radius: 50px;
  transition: width 1s ease-in-out;
}

.apbdes-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.apbdes-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.apbdes-card:hover {
  box-shadow: var(--shadow-md);
}

/* --- KEPALA DESA PROFILE WIDGET --- */
.kades-profile-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  align-items: center;
  margin-bottom: 50px;
}

.kades-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
}

.kades-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kades-quote-block h3 {
  font-size: 1.6rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.kades-title-sub {
  font-size: 0.88rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 20px;
}

.kades-quote-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  position: relative;
}

/* --- PAMONG DESA (VILLAGE APPARATUS) --- */
.pamong-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.pamong-grid {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  margin-top: 30px;
  padding: 10px 5px 25px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.pamong-grid::-webkit-scrollbar {
  height: 8px;
}

.pamong-grid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
}

.pamong-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.pamong-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.pamong-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pamong-img-wrapper {
  width: 120px;
  height: 120px;
  margin: 30px auto 20px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

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

.pamong-info {
  padding: 0 20px 30px 20px;
}

.pamong-info h4 {
  font-size: 1.1rem;
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 4px;
}

.pamong-info p {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .kades-profile-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }
  
  .kades-image-frame {
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .site-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-section h2 {
    font-size: 2.2rem;
  }
  
  .hero-section p {
    font-size: 1.05rem;
  }
  
  .info-cards {
    margin-top: -30px;
  }
}

/* --- QUICK MENU LINKS CARD SECTION --- */
.quick-links-section {
  max-width: 1200px;
  margin: 40px auto 20px auto;
  padding: 0 24px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 15px;
}

.quick-link-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.quick-link-icon-wrapper {
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--light-color);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.quick-link-card:hover .quick-link-icon-wrapper {
  background: rgba(13, 148, 136, 0.1);
}

.quick-link-card span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.quick-link-card:hover span {
  color: var(--primary-color);
}

@media (max-width: 576px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .quick-link-card {
    padding: 15px 5px;
  }
  .quick-link-icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
  .quick-link-card span {
    font-size: 0.75rem;
  }
}



