/* Reset dan Base Styles */
* {
  margin: 0; 
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1b5e20;
  --secondary-color: #4caf50;
  --accent-color: #ffd966;
  --text-color: #333;
  --light-color: #f9f9f9;
  --dark-color: #2c3e50;
}

body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* Navbar */
header {
  background: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo { 
  display: flex; 
  align-items: center; 
  
}

.logo img { 
  width: 50px; 
  margin-right: 10px; 
}

.logo h1 {
  font-size: 1.5rem;
  color: white;
}

.nav-links { 
  list-style: none; 
  display: flex; 
}

.nav-links li a {
  color: white; 
  text-decoration: none;
  padding: 10px 15px; 
  display: block;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-links li a:hover { 
  background: var(--secondary-color); 
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6)), url('img/gapuro.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--dark-color);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
  background: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Content Sections */
.content {
  padding: 80px 0;
}

.content h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.content h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

/* Visi Misi */
.visi-misi {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  text-align: left;
}

.visi, .misi {
  flex: 1 1 300px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.visi:hover, .misi:hover {
  transform: translateY(-5px);
}

.visi h3, .misi h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.visi h3 i, .misi h3 i {
  color: var(--accent-color);
}

.misi ul {
  padding-left: 20px;
}

.misi li {
  margin-bottom: 10px;
  position: relative;
}

.misi li:before {
  content: '•';
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Struktur Desa */
.struktur {
  background: #f5f5f5;
}

.struktur-img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
}

.detail-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.detail-btn:hover {
  background: var(--secondary-color);
}

/* Profil Desa */
.profil-container {
  padding: 80px 0;
  background: white;
}

.profil-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.profil-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.profil-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.stat {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.stat h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat p {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.map-container {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Layanan */
.layanan {
  background: #f9f9f9;
}

.card-container {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px; 
  margin: 40px 0;
}

.card {
  background: white; 
  padding: 30px 20px;
  border-radius: 10px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card:hover:before {
  width: 100%;
  opacity: 0.1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.card h3 {
  margin: 15px 0;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.card p {
  margin-bottom: 20px;
  color: #666;
  position: relative;
  z-index: 1;
}

.card-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.card-link:after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.card-link:hover:after {
  transform: translateX(5px);
}

/* Galeri */
.galeri-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.galeri-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeri-item:hover {
  transform: translateY(-5px);
}

.galeri-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.galeri-item:hover img {
  transform: scale(1.1);
}

.galeri-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.galeri-item:hover .galeri-caption {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.footer-section p, .footer-section li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #ddc5c5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #4a6572;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .content {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .profil-content, .footer-content {
    flex-direction: column;
  }
  
  .visi, .misi {
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .content h2 {
    font-size: 1.5rem;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .profil-stats {
    flex-direction: column;
  }
}




/*layanan.html*/
/* Breadcrumb */
.breadcrumb {
  background: #f5f5f5;
  padding: 15px 0;
  margin-top: 80px;
}

.breadcrumb ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

.breadcrumb li:not(:last-child):after {
  content: '/';
  margin-left: 10px;
  color: #999;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* History Section */
.history-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.history-text {
  flex: 1;
  min-width: 300px;
}

.history-image {
  flex: 1;
  min-width: 300px;
}

.history-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Geografis Section */
.geografis {
  background: #f9f9f9;
}

.geografis-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.geografis-map {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.geografis-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.info-item h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item h4 i {
  color: var(--accent-color);
}

/* Demografi Section */
.demografi-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.stat-box {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-box h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-box p {
  color: #666;
  font-weight: 500;
}

.demografi-chart {
  width: 100%;
  height: 300px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Struktur Section */
.struktur-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.struktur-info {
  flex: 1;
  min-width: 300px;
}

.struktur-info ul {
  list-style: none;
  margin-top: 20px;
}

.struktur-info li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.struktur-info li:before {
  content: '•';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 10px;
}

/* Layanan Detail */
.layanan-detail {
  background: #f9f9f9;
}

.layanan-detail.umkm {
  background: white;
}

.layanan-detail.pendidikan {
  background: white;
}

.layanan-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.layanan-info, .layanan-image {
  flex: 1;
  min-width: 300px;
}

.layanan-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.layanan-info h3 {
  color: var(--primary-color);
  margin: 20px 0 10px;
}

/* Form Layanan */
.form-layanan {
  background: white;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Media Queries untuk halaman baru */
@media (max-width: 768px) {
  .history-content,
  .geografis-content,
  .layanan-content,
  .struktur-content {
    flex-direction: column;
  }
  
  .demografi-stats {
    flex-direction: column;
  }
  
  .stat-box {
    min-width: 100%;
  }
}


/**/
/* Lightbox Styles */
#lightbox {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 5px;
}

#lightbox p {
  color: white;
  margin-top: 20px;
  font-size: 1.2rem;
  text-align: center;
  max-width: 80%;
}

/* Active Navigation Item */
.nav-links a.active {
  background: var(--secondary-color);
  font-weight: bold;
}

/* Improved Card Styles */
.card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Improved Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Table Styles for Requirements */
.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.requirements-table th,
.requirements-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.requirements-table th {
  background-color: var(--primary-color);
  color: white;
}

.requirements-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Education Institutions */
.institution-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.institution-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.institution-card:hover {
  transform: translateY(-5px);
}

.institution-card h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.institution-card p {
  margin-bottom: 5px;
  color: #666;
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .profil-content, 
  .layanan-content,
  .history-content,
  .geografis-content {
    flex-direction: column;
  }
  
  .requirements-table {
    display: block;
    overflow-x: auto;
  }
  
  .institution-list {
    grid-template-columns: 1fr;
  }
}

/**/

/* Tambahkan style untuk tabel persyaratan */
.requirements-container {
  overflow-x: auto;
  margin: 20px 0;
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.requirements-table th, 
.requirements-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.requirements-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.requirements-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.requirements-table tr:hover {
  background-color: #f1f1f1;
}

/* Perbaikan responsivitas navbar */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--primary-color);
    flex-direction: column;
    transition: 0.4s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    padding: 20px 0;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Perbaikan tampilan card di layanan */
.layanan-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.layanan-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}