/* Footer Styles */
.custom-footer {
  background-color: #961b1a; /* Warna merah sesuai gambar */
  color: #ffffff;
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
}

.footer-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffd81a;
}

.footer-title.wechat {
  margin-right: auto;
}

/* Kolom Info & Alamat */
.footer-contact-info p,
.footer-address p {
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.5;
  opacity: 0.9;
}

.school-name {
  font-weight: bold;
  font-size: 1.1rem !important;
  margin-bottom: 15px !important;
}

.location-tag {
  margin-top: 20px !important;
  font-style: italic;
  opacity: 0.7 !important;
}

/* Kolom QR Code */
.qr-container.footer {
  display: flex;
  gap: 30px;
  margin-left: auto;
  width: fit-content;
}

.qr-item {
  text-align: center;
}

.qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  width: 180px;
  height: 180px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-item p {
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: left;
}

/* Copyright */
.footer-copyright {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Kolom Kanan: WeChat QR */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Map Wrapper */
.footer-map-wrapper {
  margin-top: 15px;
  width: 100%;
}

/* Responsive Map */
.footer-map {
  position: relative;
  width: 100%;
  height: 350px; /* ganti padding-bottom jadi height fixed */
  overflow: hidden;
  max-width: 500px;
  margin: 15px 0; /* tambahkan margin agar lebih rapi */
}

.footer-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.footer-map:hover iframe,
.footer-map:focus-within iframe {
  pointer-events: auto; /* aktifkan saat user hover */
}

/* Open Baidu Button */
.baidu-open-btn {
  display: inline-block;
  padding: 0px 0px 8px;
  color: white;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .qr-section {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .qr-section {
    grid-column: span 1;
  }
  .qr-container.footer {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #ffffff;
    margin: 10px auto;
  }

  .footer-map {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: none;
    height: 450px;
  }
}

@media (max-width: 900px) {
  .qr-container.footer {
    flex-direction: column;
    margin-right: auto;
    margin-left: auto;
  }
}
