@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(black, red);
  color: #fff;
  font-family: Arial, sans-serif;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #FF0000;
  text-decoration: underline;
}

.logo-text {
  font-weight: bold;
}

.menu-icon {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}

.nav-right {
  display: flex;
  gap: 15px;
}

.nav-right.active {
  display: flex;
}

/* ---------------- FILTER ---------------- */
.filter-section {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 30px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.filter-section label {
  font-weight: 500;
}

.filter-section select,
.filter-section button {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

.filter-section select {
  background: #fff;
  color: #000;
}

.filter-section button {
  background: #e91e63;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.filter-section button:hover {
  background: #ff4081;
}

/* ---------------- ARTICLE BOX ---------------- */
.article-box {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  align-items: flex-start;  /* align text to top of media */
}

/* Wrapper follows size of child media */
.article-img {
  flex: 0 0 auto;          /* don’t let flex force the width */
  display: inline-block;   /* size = child size */
  vertical-align: top;
  border-radius: 8px;
  overflow: hidden;
  background: #000;        /* safe background */
}

/* Image/Video define the size */
.article-img img,
.article-img video {
  display: block;
  max-width: 320px;     /* kawal lebar */
  max-height: 250px;    /* had tinggi – ikut photo 2 */
  width: auto;
  height: auto;
  object-fit: contain;  /* tak crop, maintain ratio */
  border-radius: 8px;
  background: #000;
}

/* Larger variant (optional) */
.article-img.wide img,
.article-img.wide video {
  max-width: 480px;
}

/* Hidden anchors for lightbox galleries */
.lightbox-hidden {
  display: none;
}

.article-text {
  flex: 1;
}

.article-text h2 {
  margin-bottom: 10px;
  color: #fff;
}

.article-text p {
  color: #ddd;
  line-height: 1.6;
  text-align: justify;
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: #24262b;
  padding: 70px 0;
  width: 100%;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 18px;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  background: #e91e63;
  height: 2px;
  width: 50px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  color: #bbb;
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transition: 0.5s;
  margin: 0 10px 10px 0;
}

.footer-col .social-links a:hover {
  color: #24262b;
  background: #fff;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
  .footer-col {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #000;
    padding: 20px;
    text-align: center;
  }

  .nav-right a {
    margin: 10px 0;
  }

  .article-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-img img,
  .article-img video {
    max-width: 100%; /* scale media to container */
  }

  .article-text {
    width: 100%;
  }
}

@media (max-width: 574px) {
  .footer-col {
    width: 100%;
  }
}


/* Modal style */
.img-modal {
  display: none; 
  position: fixed;
  z-index: 2000; 
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9);
}

.img-modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

.img-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
