:root {
  --primary-color: #4a00e0;
  --secondary-color: #8e2de2;
  --text-color: #333;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
}

header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: block;
  margin-right: 10px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  margin: 0;
  animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: grey;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 40px 50px;
}

.about p {
  column-count: 1;
  column-gap: 20px;
}

.about img {
  width: 100%;
  border-radius: 10px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.about img:hover {
  filter: grayscale(0);
}

/* STRUKTUR INSTANSI */
.struktur {
  padding: 40px 50px;
}

.struktur h2 {
  margin-bottom: 20px;
}

.org {
  display: flex;
  gap: 30px;
}

.org img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 150px;
  background-color: grey;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: -40px;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* GALERI */
.gallery {
  padding: 40px 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  filter: sepia(40%);
  transition: all 0.3s ease;
}

.gallery img:hover {
  filter: sepia(0);
  transform: scale(1.05);
}

/* BERITA */
.berita {
  padding: 40px 50px;
}

.berita p {
  column-count: 2;
  column-gap: 30px;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 2px;
  background: #eee;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background: var(--secondary-color);
  color: white;
}

/* KONTAK */
.contact {
  padding: 40px 50px;
}

.contact form {
  display: grid;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

button {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

button:hover {
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }

  .org {
    flex-direction: column;
    align-items: center;
  }
}