/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #0077b6;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #90e0ef;
}

/* Section umum */
section {
  padding: 3rem;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(221, 12, 12, 0.1);
}

/* About */
.about {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-img {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
}

.about-content {
  flex: 2 1 400px;
}

/* Tim Kami */
.organization h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.org-list {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.org-item {
  text-align: center;
  position: relative;
  cursor: pointer;
  list-style: none;
}

.org-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0077b6;
  transition: transform 0.3s ease;
}

.org-item:hover .org-photo {
  transform: scale(1.05);
}

/* Tooltip */
.org-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0077b6;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Gallery */
.gallery-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  flex: 1 1 180px;
  max-width: 180px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* News */
.news h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.news-content {
  min-height: 200px;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

.article {
  margin-bottom: 1.5rem;
}

.article h3 {
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.article p {
  font-size: 0.95rem;
  color: #555;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 1rem;
}

.page-btn {
  background-color: #90e0ef;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.3rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-btn:hover {
  background-color: #0077b6;
  color: #fff;
}

.page-btn.active {
  background-color: #0077b6;
  color: white;
}

/* Contact */
.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #0077b6;
  outline: none;
}

button[type="submit"] {
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #023e8a;
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .org-list {
    flex-direction: column;
    align-items: center;
  }

  .gallery {
    justify-content: center;
  }
}

/*Footer*/
.footer {
  text-align: center;
  background-color: #0077b6;
  color: white;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
}
