/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #003366;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: #001f4d;
  color: white;
  position: relative;
}
.navbar .logo {
  font-weight: 700;
  font-size: 1.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}
.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
}
.nav-links li a:hover,
.nav-links li a.btn-donate {
  background-color: #FFD966;
  color: #001f4d;
  border-radius: 5px;
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 20px;
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background-color: rgba(0,0,0,0.5);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.cta-buttons a {
  margin: 0 10px;
  padding: 12px 25px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background-color: #FFD966;
  color: #001f4d;
  border: none;
}
.btn-primary:hover {
  background-color: #FFC107;
}
.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}
.btn-secondary:hover {
  background-color: white;
  color: #001f4d;
}

/* Stats Section */
.stats {
  background-color: #f7f7f7;
  padding: 40px 0;
}
.stats .container {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1 1 150px;
  margin: 10px;
}
.stat-item h2 {
  font-size: 2.5rem;
}
.stat-item p {
  font-weight: 600;
  margin-top: 10px;
}

/* Progress Section */
.progress-section {
  padding: 40px 0;
  text-align: center;
}
.progress-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.progress-images img {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
}
.progress-bar {
  background-color: #ddd;
  border-radius: 30px;
  width: 80%;
  height: 25px;
  margin: 0 auto 15px auto;
}
.progress-fill {
  background-color: #003366;
  height: 100%;
  border-radius: 30px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* Programs Grid */
.programs {
  padding: 40px 0;
  text-align: center;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  margin-top: 25px;
}
.program-card {
  background-color: #fff3cc;
  border-radius: 15px;
  padding: 25px 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: #003366;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.program-card:hover {
  background-color: #ffd966cc;
}

/* Update Section */
.updates {
  padding: 40px 0;
}
.updates article {
  background-color: #f7f7f7;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.updates h3 {
  color: #003366;
}
.updates a {
  color: #003366;
  font-weight: 700;
  text-decoration: none;
}
.updates a:hover {
  text-decoration: underline;
}

/* Donasi Emosional */
.donation-appeal h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
  border-radius: 40px;
}

/* Footer */
footer {
  background-color: #001f4d;
  color: white;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.9rem;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 992px) {
  .navbar {
    flex-wrap: wrap;
  }
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .progress-images {
    flex-direction: column;
    align-items: center;
  }
  .progress-images img {
    width: 80%;
    max-width: 400px;
  }
  .program-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* Mobile */
@media (max-width: 576px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 5px;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li a {
    display: block;
    padding: 10px 15px;
    width: 100%;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    padding: 80px 15px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .cta-buttons a {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  .progress-images img {
    width: 100%;
    max-width: 100%;
  }
  .program-grid {
    grid-template-columns: 1fr;
  }
  .donation-appeal h2 {
    font-size: 1.5rem;
  }
  .btn-large {
    padding: 14px 25px;
    font-size: 1rem;
  }
}
