/* === GLOBAL STYLES === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #003366;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* === HEADER === */
.main-header {
  background-color: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo img {
  height: 50px;
}

.main-nav {
  position: relative;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #003366;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0077cc;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #003366;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: #fff;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* === BERITA SECTION === */
.section-berita {
  background: #f9f9f9;
  text-align: center;
}

.section-berita h2 {
  font-size: 2.2rem;
  color: #003399;
  margin-bottom: 40px;
}

.berita-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.berita-item {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: left;
}

.berita-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.berita-item h4 {
  color: #003399;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.berita-item .tanggal {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.berita-item .deskripsi {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

.btn-berita {
  display: inline-block;
  padding: 8px 16px;
  background-color: #003399;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.btn-berita:hover {
  background-color: #001f70;
}

@media (max-width: 768px) {
  .berita-wrapper {
    grid-template-columns: 1fr;
  }

  .berita-item img {
    height: 160px;
  }
}


/* === PENGUMUMAN SECTION === */
.section-pengumuman {
  padding: 60px 20px;
  text-align: center;
  background-image: url('../img/background/bck1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #003366;
}

.section-pengumuman h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.pengumuman-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 kolom tetap */
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.pengumuman-wrapper img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  background: #fff;
  padding: 10px;
}

.pengumuman-wrapper img:hover {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .pengumuman-wrapper {
    grid-template-columns: repeat(2, 1fr);
    /* tablet: 2 kolom */
  }
}

@media (max-width: 600px) {
  .pengumuman-wrapper {
    grid-template-columns: 1fr;
    /* mobile: 1 kolom */
  }

  .section-pengumuman h2 {
    font-size: 2rem;
  }

  .pengumuman-wrapper img {
    max-height: 300px;
  }
}


.pagination{
    margin-top:30px;
    display:flex;
    justify-content:center;
    gap:10px;
}

.pagination a{
    padding:10px 15px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    color:#003399;
    text-decoration:none;
    transition:.3s;
}

.pagination a:hover{
    background:#003399;
    color:white;
}

.pagination a.active{
    background:#003399;
    color:white;
    font-weight:bold;
}


/* === FOOTER === */
.footer-bottom {
  background: #003366;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.95rem;
  margin-top: 60px;
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}