* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  font-family: 'Roboto', sans-serif;
}

a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: white;
}

img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}
.space-atas {
  width: 100%;
  height: 80px;
}
.space-bawah {
  width: 100%;
  height: 80px;
}

/* ================= CONTAINER ================= */
.container {
  width: 70%;
  margin: auto;
}

.head {
  width: 100%; 
  max-width: 100%; 
  height: auto;   
  padding: 20px 0; 
  background-color: #943f0b;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 2px solid;
  border-image: #943f0b 1;
  box-sizing: border-box;
  overflow: hidden;
}

.head .logo img {
  max-width: 100%; 
  height: auto;   
  display: block;
  object-fit: contain;
}

@media (max-width:600px) {
  .container,
  .head {
    width: 100%;  
  }

  .head {
    height: auto;
    padding: 30px 0;
  }

  .head .logo img {
    max-width: 90%;    
    height: auto;
  }
}



/* ================= MENU ================= */
.menu {
  width: 100%;
  text-align: center;
  background: #943f0b;
  border: 1px solid #000000;
  margin-bottom: 10px;
}
.menu a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 18px;
  color: #fff;
  border: 1px solid #000000;
}

/* ================= CONTENT ================= */
.content {
  width: 100%;
  background: #943f0b;
  border-top: 2px solid #000000;
  border-radius: 0px;
}

.content p {
  font-size: 16px;
  color: white;
  margin: 10px;
}

section {
  margin-bottom: 40px;
}

/* ================= HEADINGS ================= */
h1 { text-align: center; margin: 20px 0; color: white; }
h2, h3 { text-align: center; margin: 30px 0; font-size: 26px; color: white; }
h4 { text-align: center; margin: 25px 0; font-size: 20px; color: white; }

.title-head { font-size: 24px; color: white; }
.title-footer { font-size: 26px; color: white; }

/* ================= TABLE ================= */
.lassres { width: 70%; margin: auto; }
.lassres table { width: 100%; }
.t1 { width: 40%; padding: 5px 10px; border: 1px solid #989898; background: white; font-size: 16px; }
.t2, .t3 { width: 30%; padding: 5px 10px; border: 1px solid #989898; background: white; font-size: 16px; }

.table-container { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }

.kepala { text-align: center; font-size: 20px; background: #de0000; color: white; }

/* ================= IKLAN ================= */
.iklan { width: 100%; border: 2px solid #ff6600; }
.iklan img { width: 100%; border: 2px solid #ff6600; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .container { width: 100%; }
  .menu a { display: block; font-size: 20px; }


  h3, .title-footer { font-size: 14px; }
}
}/* ======== UMUM ======== */
.tampil {
  display: block;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  height: auto;
}

.tampil img {
  height: 110px;
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ======== FLOATING ======== */
.floating-top,
.floating-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  text-align: center;
  background: transparent;
  z-index: 1001;
  padding: 0;
}

.floating-top { top: 10px; }
.floating-bottom { bottom: 10px; }

.floating-top img,
.floating-bottom img {
  width: 728px;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}

/* ======== BANNER FLOAT BIASA ======== */
.banner-float {
  position: fixed;
  width: 100%;
  text-align: center;
  bottom: 0;
  z-index: 9999;
}

.banner-float img {
  width: 728px;
  max-width: 100%;
  height: auto;
}

/* ======== BANNER LAIN ======== */
.banner1 img {
  display: inline-block;
  width: 100%;
}

.headerbanner {
  text-align: center;
  background: #000;
}

.headerbanner img {
  width: 100%;
  height: auto;
}

.banner-top img {
  width: 728px;
  max-width: 100%;
  height: auto;
}

/* ======== RESPONSIVE UNTUK HP ======== */
@media (max-width: 768px) {
  /* floating full layar di HP */
  .floating-top,
  .floating-bottom {
    left: 0;
    transform: none;
    width: 100%;
  }

  .floating-top img,
  .floating-bottom img,
  .banner-float img,
  .banner-top img,
  .tampil img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .tampil {
    border-width: 1px;
  }

  .headerbanner {
    background: #333;
  }

  .banner-float {
    bottom: 5px;
  }
}
#popup-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
}

.popup-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px;
  background: transparent;
  border-radius: 5px;
  width: auto;
  max-width: 350px; /* KUNCI DI SINI */
}

/* === IMAGE === */
.popup-box img {
  width: 80%;
  height: auto;
  display: block;
}

.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #FFD700; /* kuning */
  color: #000; /* X hitam */
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}

.popup-close:hover {
  transform: scale(1.1);
  background: #ffeb3b;
}

/* === MOBILE === */
@media screen and (max-width: 700px) {
  .popup-box {
    width: 65%;
  }
}