/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-footer-dark: #162238; 
  --bg-newsletter: #254dbd;
  --bg-hover1: green;
  --text-white: #ffffff;
  --text-black: black;
  --text-muted: #a3b3cc;      
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer {
  position: sticky;
  bottom: 0;
}

.footer-container {
  font-family: var(--font-main);
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 100px; 
  background-color: var(--bg-footer-dark);
}

/* ==========================================================================
   NEWSLETTER BANNER & DIV SUBSCRIBE BOX
   ========================================================================== */
.newsletter-banner {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  background-color: var(--bg-newsletter);
  border-radius: 12px;
  padding: 30px 40px;
  position: relative;
  top: -50px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.newsletter-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--bg-hover1);
  background-color: var(--bg-hover1);
  color: var(--text-black);
}

.newsletter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.newsletter-content h3 {
  color: var(--text-white);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

/* 💡 DIV Khusus Pembungkus Form Input (Mudah dimodifikasi jika butuh layout tambahan) */
.subscribe-box-wrapper {
  flex-grow: 1;
  max-width: 600px;
  display: flex;
  justify-content: flex-end;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  justify-content: flex-end;
}

.newsletter-form input[type="email"] {
  width: 100%;
  max-width: 380px;
  padding: 12px 20px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  background-color: var(--text-white);
  color: var(--bg-newsletter);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--g-color);
  background-color: var(--g-color);
  color: var(--text-black);
}

/* ==========================================================================
   MAIN FOOTER CONTENT
   ========================================================================== */
.footer-main {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding-bottom: 60px;
  margin-top: -10px; 
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  color: var(--text-white);
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
}

/* Tombol Bulat Media Sosial */
.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.icon-social {
  width: 25px;
  padding: 4px;
  margin-top: 7px;
}

/* Warna Identitas Sosial Media Baru */
.email { background-color: #ea4335; }      /* Merah khas Gmail/Email */
.instagram { background-color: #c13584; }  /* Pink Gradasi khas Instagram */
.whatsapp { background-color: #25d366; }   /* Hijau khas WhatsApp */

.social-icon:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

/* Grid Menu Navigasi */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h4 {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--text-white);
}

.copyright {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  padding-bottom: 80px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 900px) {
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .subscribe-box-wrapper, .newsletter-form {
    width: 100%;
    justify-content: center;
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-top-row {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"] {
    max-width: 100%;
  }
  
  .newsletter-form button {
    width: 100%;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
