body {
  font-family: "Poppins", sans-serif;
  background: #23273a; /* Ubah dari #181b23 ke #23273a atau warna lain */
  color: #1a237e;
  margin: 0;
  padding: 0;
}

header {
  background: #4b1027;
  color: #23273a;
  box-shadow: 0 2px 8px rgba(4, 25, 80, 0.781);
}

.navbar {
  padding: 1rem 0;
}

.nav-link {
  color: #23273a;
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #ffd700;
}

.hero-section {
  position: relative;
  min-height: 100vh; /* Ubah dari 90vh ke 100vh agar full satu layar */
  height: 100vh; /* Tambahkan ini untuk memastikan full viewport */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 15, 0.85); /* Semakin besar, semakin gelap */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.hero-sambutan {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ffd700;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-btn {
  background: #ffd700;
  color: #10204b;
  padding: 0.8em 2.2em;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s;
}

.hero-btn:hover {
  background: #10204b;
  color: #fff;
}

section.py-5 {
  background: #fff;
  padding: 4rem 0;
}

.row.text-center {
  gap: 2rem 0;
}

.col-md-4 {
  background: #f4f6fb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(16, 32, 75, 0.06);
  padding: 2rem 1.2rem;
  margin: 0 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid #ffd700;
}

.col-md-4:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(16, 32, 75, 0.13);
  border-top: 4px solid #10204b;
}

.fw-bold {
  color: #10204b;
  font-weight: 700;
}

.animate-fade {
  animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero .container {
    padding: 2rem 0.5rem;
  }
  .text-highlight {
    font-size: 1.3rem;
  }
  .col-md-4 {
    margin-bottom: 1.5rem;
  }
  .sambutan-ketua-text,
  .sambutan-isi {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.sambutan-ketua {
  background: #181b23;
  padding: 3rem 0 2rem 0;
  display: flex;
  justify-content: center;
}

.container-sambutan {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.sambutan-ketua-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
}

.ornamen-svg {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.sambutan-ketua-img {
  width: 100%px;
  height: 300px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 20px;
  background: transparent;
  z-index: 2;
  position: relative;
  margin-top: 10px;
  box-shadow: 0 4px 24px rgba(16, 32, 75, 0.1);
}

.sambutan-ketua-identitas {
  background: #162447;
  color: #ffffff;
  border-radius: 14px;
  padding: 0.8rem 1.5rem 0.7rem 1.5rem;
  margin-top: -40px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(16, 32, 75, 0.13);
  z-index: 3;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

.sambutan-nama {
  font-weight: 700;
  font-size: 0.91rem;
  color: #ffd700;
}

.sambutan-jabatan {
  font-size: 0.9rem;
  color: #ffffff;
  margin-top: 2px;
}

.sambutan-ketua-text {
  flex: 1;
  color: #fff;
  margin-left: 1rem;
}

.sambutan-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.sambutan-isi {
  color: #e0e6ed;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: justify;
}

.berita-terbaru {
  background: #181b23;
  padding: 3rem 0 2.5rem 0;
}

.container-berita {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.berita-title {
  color: #ffd700;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 1px;
}

.berita-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.berita-card {
  background: #232733;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(16, 32, 75, 0.1);
  overflow: hidden;
  width: 320px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}

.berita-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.13);
}

.berita-img-wrap {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #10131a;
}

.berita-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.berita-info {
  padding: 1.1rem 1.2rem 1rem 1.2rem;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.berita-meta {
  font-size: 0.93rem;
  color: #ffd700;
  margin-bottom: 0.4rem;
}

.berita-judul {
  font-size: 1.13rem;
  font-weight: 700;
  color: #ffd700;
  text-decoration: none;
  margin-bottom: 0.4rem;
  display: block;
  transition: color 0.2s;
}

.berita-judul:hover {
  color: #fff;
  text-decoration: underline;
}

.berita-snippet {
  font-size: 0.97rem;
  color: #e0e6ed;
  margin-top: 0.2rem;
  flex: 1;
}

.berita-more {
  text-align: center;
  margin-top: 1.5rem;
}

.berita-btn {
  background: #ffd700;
  color: #162447;
  padding: 0.7em 2em;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(16, 32, 75, 0.1);
}

.berita-btn:hover {
  background: #162447;
  color: #ffd700;
}

.aspirasi-section {
  background: #181b23;
  padding: 3rem 0 2.5rem 0;
  text-align: center;
}

.container-aspirasi {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.aspirasi-title {
  color: #ffd700;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.aspirasi-desc {
  color: #e0e6ed;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.aspirasi-btn {
  background: #ffd700;
  color: #162447;
  padding: 0.7em 2em;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(16, 32, 75, 0.1);
  display: inline-block;
}

.aspirasi-btn:hover {
  background: #162447;
  color: #ffd700;
}

/* Responsive */
@media (max-width: 900px) {
  .berita-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .berita-card {
    width: 95%;
    max-width: 400px;
  }
}

/* Tambahan responsive untuk hero, sambutan, dan navbar */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    height: auto;
    padding-top: 80px;
  }
  .hero-content {
    padding: 1.2rem 0.5rem;
  }
  .hero-title,
  .hero-title2 {
    font-size: 1.05rem;
    line-height: 1.2;
  }
  .hero-sub {
    font-size: 0.93rem;
  }
  .hero-sambutan {
    font-size: 1rem;
  }
  .hero-btn {
    font-size: 1rem;
    padding: 0.7em 1.5em;
  }
  .sambutan-ketua {
    padding: 2rem 0 1rem 0;
  }
  .container-sambutan {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }
  .sambutan-ketua-img-wrap {
    margin-bottom: 1.2rem;
    align-items: center !important;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
  }
  .sambutan-ketua-img {
    width: 400px; /* tambahkan ini untuk lebar tetap */
    height: 400px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  .sambutan-ketua-identitas {
    margin-bottom: 20px;
    padding: 0.7rem 0.7rem 0.6rem 0.7rem;
    font-size: 0.93rem;
    margin-left: auto;
    margin-right: auto;
  }
  .sambutan-title {
    font-size: 1.05rem;
  }
  .sambutan-isi {
    font-size: 0.93rem;
  }
  .berita-title,
  .aspirasi-title {
    font-size: 1.2rem;
  }
  .container-berita,
  .container-aspirasi {
    padding: 0 0.3rem;
  }
  .berita-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .berita-img-wrap {
    height: 120px;
  }
}

@media (max-width: 500px) {
  .navbar-brand .bem-title-navbar.d-none.d-md-block {
    display: none !important;
  }
  .navbar-brand .bem-title-navbar.d-block.d-md-none {
    display: block !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
  }
  .navbar-brand img.navbar-logo {
    width: 38px;
    height: 38px;
  }
  .hero-content {
    padding: 0.7rem 0.2rem;
  }
  .hero-title,
  .hero-title2 {
    font-size: 0.93rem;
  }
  .hero-sub {
    font-size: 0.85rem;
  }
  .sambutan-title {
    font-size: 0.93rem;
  }
  .sambutan-isi {
    font-size: 0.89rem;
  }
  .sambutan-ketua-img {
    width: 300px; /* samakan dengan desktop, misal 300px */
    height: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
  }
  .sambutan-ketua-img-wrap {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    width: 100%;
  }
}

/* Navbar collapse fix for mobile */
@media (max-width: 991.98px) {
  .navbar .container {
    flex-direction: row;
    gap: 0.5rem;
  }
  .navbar-nav {
    background: #162447;
    border-radius: 0 0 12px 12px;
    padding: 0.7rem 0.5rem;
  }
  .nav-link,
  .dropdown-item {
    color: #ffd700 !important;
    font-size: 1rem;
    margin: 0.2rem 0;
  }
  .nav-link.active,
  .dropdown-item.active {
    color: #fff !important;
    background: #ffd70033 !important;
    border-radius: 6px;
  }
}

/* Footer responsive */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
  }
  .footer-logo img {
    width: 38px;
    height: 38px;
  }
}
