  
.about{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Times New Roman', Times, serif,;
  line-height: 1.6;
}

/* --- Navbar Styling --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgb(72, 0, 255);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Logo + Nama Instansi */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Animasi Fade-in Nama Instansi */
.instansi-name {
  font-size: 22px;
  font-weight: bold;
  opacity: 0;
  animation: fadeIn 1.2s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Navigasi */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #ffdd57;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: url("background web.jpeg") no-repeat center center/cover;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.hero-content {
  max-width: 800px;
}

/* Animasi Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.3s;
}

.fade-in.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 64px; /* sebelumnya 48px */
  font-weight: bold;
  letter-spacing: 2px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px; /* lebih kecil agar responsif di HP */
  }

  .nav-links {
  flex-direction: column;
  justify-content: flex-start;
}
    
}

.btn-hero {
  display: inline-block;
  padding: 10px 20px;
  background: #0015ff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

/* About Section */
.about {
  padding: 50px;
  text-align: center;
  background: #3976f2;
  color: #fff;
}

.about h2 {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: bold;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* Gambar dengan efek filter */
.about-img {
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.about-img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Teks dibagi kolom */
.about-text {
  text-align: justify;
  column-count: 2; /* bagi teks jadi 2 kolom */
  column-gap: 30px;
  max-width: 900px;
  line-height: 1.8;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .about-text {
    column-count: 1; /* jadi 1 kolom di layar kecil */
  }
}

/* Struktur Organisasi Section */
.organization {
  padding: 50px;
  text-align: center;
  background: #f4f4f4;
  color: #333;
}

.organization h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
}

.org-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
}

.org-item {
  position: relative;
  text-align: center;
}

.org-item img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3976f2;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.org-item img:hover {
  transform: scale(1.08);
}

/* Tooltip Styling */
.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #3976f2;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.org-item:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.org-item p {
  margin-top: 10px;
  font-weight: bold;
}

/* Services Section */
.services {
  padding: 50px;
  text-align: center;
  background: #3976f2;
  color: #fff;
}

.service-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.service-box {
  flex: 1;
  padding: 20px;
  background: #3300ff;
  border-radius: 10px;
  color: #fff;
}

/* Galeri Section */
.gallery {
  padding: 50px;
  text-align: center;
  background: #ffffff;
  color: #333;
}

.gallery h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
}

/* Grid Layout */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

/* Foto Galeri */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px; /* bentuk unik */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.8));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.8));
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: sepia(20%) brightness(0.9);
}

.gallery-item:nth-child(2) img {
  filter: grayscale(60%) contrast(1.2);
}

.gallery-item:nth-child(3) img {
  filter: blur(1px) brightness(1.1);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: none;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #3976f2; /* warna tema instansi */
  --secondary-color: #3300ff;
  --text-color: #333;
  --bg-light: #f4f4f4;
}

/* ===== Berita & Artikel Section ===== */
.news {
  padding: 50px;
  text-align: center;
  background: var(--bg-light);
  color: var(--text-color);
}

.news h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--primary-color);
}

/* Multiple Columns */
.news-container {
  column-count: 2;
  column-gap: 30px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.news-container article {
  background: #fff;
  display: inline-block;
  margin: 0 0 20px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  break-inside: avoid; /* agar artikel tidak terpotong */
}

.news-container h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Pagination */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 5px;
  background: var(--secondary-color);
  color: white;
  transition: background 0.3s ease;
}

.pagination a:hover {
  background: var(--primary-color);
}

.pagination .active {
  background: var(--primary-color);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .news-container {
    column-count: 1; /* jadi 1 kolom di HP */
  }
}

/* ===== Contact Section Styling ===== */
.contact {
  padding: 50px;
  text-align: center;
  background: var(--primary-color);
  color: #fff;
}

.contact h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
}

/* Contact Form Styling */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.9);
}

.contact-form textarea {
  resize: none;
}

/* Submit Button Styling */
.btn-submit {
  background: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #2222ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
  .contact-form {
    width: 90%;
    padding: 15px;
  }

  .contact h2 {
    font-size: 24px;
  }
}
