/* ====== STYLE UMUM ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8fdf8;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ====== NAVBAR ====== */
header {
  background-color: rgb(194, 0, 0); 
  color: #fff;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; 
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.logo div {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0; 
  line-height: 1.2;
}

.logo p {
  font-size: 0.9rem;
  color: #e0e0e0; 
  margin: 0;
  font-weight: 400; 
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  padding: 6px 12px;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2); 
}


nav ul li a.active {
  background-color: #fff;
  color:rgb(194, 0, 0); 
}

.menu-toggle {
  display: none; 
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none; 
    flex-direction: column;
    background-color: rgb(194, 0, 0);
    position: absolute;
    top: 70px; 
    left: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex;
  }
  

  .menu-toggle {
    display: block; 
  }


  nav ul li {
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    text-align: center;
    padding: 15px;
  }
  

  nav ul li a:hover,
  nav ul li a.active {
    background-color: #fff;
    color:rgb(194, 0, 0);
  }
}

.potensi-section {
  text-align: center;
  padding: 50px 20px;
}

.potensi-title {
  font-size: 30px;
  font-weight: 800;
  color: #b30000;
  margin-top: 40px;
  text-align: center;
}

.potensi-sub {
  color: #555;
  margin-bottom: 30px;
}

.potensi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
  padding: 0 30px;
}

.potensi-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.potensi-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.potensi-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.potensi-item h3 {
  padding: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

/* ====== POPUP ====== */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.popup-content {
  background: white;
  margin: 50px auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  animation: popupFade 0.3s ease;
}

.popup-content img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.popup-content h3 {
  font-size: 1.4rem;
  color: #b71c1c;
  margin-bottom: 10px;
}

.popup-content p {
  color: #444;
  line-height: 1.6;
  max-height: 250px;
  overflow-y: auto; 
  text-align: justify;
}


.close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #d32f2f;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

@keyframes popupFade {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

/* ===============================
   FOOTER
=============================== */
.footer {
  background-color: rgb(194, 0, 0); 
  color: #FFFFFF;          
  padding: 40px 20px;     
}

.footer-container {
  max-width: 1100px; 
  margin: 0 auto;   
}

.footer-top {
  display: flex;
  flex-direction: column; 
  gap: 30px;              
}

.footer-column h4 {
  font-size: 1.2rem;       
  font-weight: 700;      
  margin: 0 0 15px 0;   
}

.footer-column p {
  font-size: 0.95rem;      
  line-height: 1.6;      
  margin: 0;
}

.footer-column a {
  color: #FFFFFF;
  text-decoration: none; 
}

.footer-column a:hover {
  text-decoration: underline; 
}

.footer-divider {
  border: none; 
  border-top: 1px solid rgba(255, 255, 255, 0.3); 
  margin: 30px 0;
}

.footer-bottom {
  text-align: center; 
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;    
    justify-content: space-between; 
    gap: 40px;                
  }

  .footer-column {
    flex: 1; 
  }
}