/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
 background: #229f9b7b;   /* putih bersih */
  color: #222;
  user-select: none;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(135deg, #0077b6, #0096c7);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navbar */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px 20px;
  flex-wrap: wrap;
}
header nav .nav-left .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}
header nav .nav-left img {
  height: 40px;
  width: auto;
}
header nav ul.menu {
  list-style: none;
  display: flex;
  gap: 15px;
}
header nav ul.menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
header nav ul.menu li a:hover {
  color: #ffd60a;
}
header nav .sosmed-nav {
  display: flex;
  gap: 10px;
}
header nav .sosmed-nav a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s;
}
header nav .sosmed-nav a:hover {
  color: #ffd60a;
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-left: 60px;
  background: url('./images/gambar4.jpg') center/cover no-repeat;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 2;
}
.hero-text {
  position: relative;
  z-index: 3;
  text-align: left;
  color: #fff;
}
.hero-text h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 5px;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.hero-text p {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Playball', cursive;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* ================= RUNNING TEXT ================= */
.running-text {
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
  color: #000;
  padding: 8px 0;
  font-weight: 600;
  font-size: 16px;
}
.running-text__inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  padding-left: 2rem;
}
.running-text:hover .running-text__inner {
  animation-play-state: paused;
}
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ================= INTRO SECTION ================= */
.intro {

  padding: 40px 20px;
  text-align: center;
}
.intro-container {
  max-width: 900px;
  margin: 0 auto;
}
.intro h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f3320c;
  margin-bottom: 15px;
}
.intro p {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
  font-family: 'Playball', cursive;
}

/* ================= KONTEN (KARTU) ================= */
/* Area konten utama */
.konten {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  justify-items: center;
  /* background dihapus agar transparan */
}

/* Kartu bulat besar */
.card {
  width: 220px;
  height: 180px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(3, 21, 225, 0.481);
  text-align: center;
  padding: 30px 20px;
  color: #0077b6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Judul dan deskripsi */
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0077b6;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  padding: 0 10px;
}

/* Efek hover */
.card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  background: #e8f4ff;
}

/* Responsif */
@media (max-width: 992px) {
  .konten {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .konten {
    grid-template-columns: 1fr;
  }
  .card {
    width: 180px;
    height: 180px;
  }
}



/* efek hover lebih dramatis */
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  border-radius: 20px;
}

/* ikon berbeda untuk tiap kartu */
.card:nth-child(1) h3::before { content: "\f19c"; } /* university */
.card:nth-child(2) h3::before { content: "\f0c0"; } /* users */
.card:nth-child(3) h3::before { content: "\f080"; } /* building */
.card:nth-child(4) h3::before { content: "\f0eb"; } /* lightbulb */
.card:nth-child(5) h3::before { content: "\f02d"; } /* car */
.card:nth-child(6) h3::before { content: "\f144"; } /* coffee */
.card:nth-child(7) h3::before { content: "\f091"; } /* shopping-cart */
.card:nth-child(8) h3::before { content: "\f4c4"; } /* book */

/* semua ikon Font Awesome */
.card h3::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.1rem;
  color: #00b4d8;
}
/* ================= FOOTER ================= */
footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}

/* ================= BERITA TERKINI ================= */
.berita {
  background: transparent;          /* hilangkan warna latar */
  padding: 30px 15px 50px 15px;
  border-top: none;
}

.berita h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #0077b6;
  letter-spacing: 2px;
  margin-bottom: 25px;
  position: relative;
}

/* container berita */
.berita-container {
  display: flex;
  flex-direction: column;
  gap: 12px; /* sedikit rapat antar berita */
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  align-items: flex-start;
  background: transparent; /* transparan total */
}

/* kartu berita */
.news-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  background: transparent; /* hilangkan warna latar kartu */
  border-radius: 12px;
  box-shadow: none;        /* hilangkan bayangan */
  transition: all 0.3s ease;
  padding: 12px 18px;
  border: 1px solid rgba(0,0,0,0.05); /* garis halus agar tetap rapi */
}

.news-card:hover {
  background: rgba(9, 107, 160, 0.378); /* efek hover lembut */
  transform: translateY(-4px);
  border-color: rgba(0,119,182,0.15);
}

/* thumbnail berita */
.news-thumb img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* isi berita */
.news-info {
  margin-left: 20px;
  flex: 1;
}
.news-info h3 {
  font-size: 1.1rem;
  color: #0077b6;
  margin-bottom: 5px;
  font-weight: 700;
}
.news-info .date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}
.news-info p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

/* tombol baca selengkapnya */
.btn-read {
  display: inline-block;
  margin-top: 8px;
  color: #fff;
  background: #0077b6;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.3s;
}
.btn-read:hover {
  background: #005f73;
}

/* Popup Detail */
.news-detail {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.news-content {
  background: #fff;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
}
.news-content h3 {
  color: #0077b6;
  margin-top: 0;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  header nav ul.menu {
    flex-direction: column;
    width: 100%;
    display: none;
    margin: 10px 0;
  }
  header nav ul.menu.show { display: flex; }
  header nav .sosmed-nav {
    margin-top: 10px;
    justify-content: center;
    width: 100%;
  }

  .hero { padding-left: 20px; height: 300px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text h2 { font-size: 1.5rem; }
  .hero-text p { font-size: 1rem; }

  .intro h2 { font-size: 1.6rem; }
  .intro p { font-size: 1rem; }

  .news-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .news-thumb img {
    width: 100%;
    height: 200px;
  }
  .news-info {
    margin-left: 0;
    padding-top: 10px;
  }
}
#particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* di belakang semua konten */
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}
/* Efek partikel di belakang semua elemen */
#particle-bg, #particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;           /* Di belakang semua konten */
  pointer-events: none;  /* Tidak menutupi klik */
}

/* Supaya konten di atas partikel */
body, header, .hero, .konten, .berita, footer {
  position: relative;
  z-index: 1;
}

/* Sembunyikan efek partikel di layar kecil */
@media (max-width: 768px) {
  #particle-bg, #particles-js {
    display: none;
  }
}