/* Ebenhaezer George Renaldi Muljadi - 2702230461 */

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #FFFFFF;
  color: #2C2C2C;
}

.container {
    height: 100vh;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--main-color);
  padding: 1rem 2rem;
  position: relative;
  z-index: 3;
  border-bottom: solid #2c2c2c32 1px;

}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--main-color);
  font-weight: 500;
}

.nav-links a:hover {
  color: #D4AF37;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn{
  font-size: large;
}

.search-bar {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: var(--main-color);
  width: 250px; 
}

.mobile-search {
  display: none;
  width: 100%; 
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    display: none;
    padding: 1rem;

  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: inline-block;
  }

  .search-bar {
    display: none;
  }

  .mobile-search {
    display: block;
    margin-top: 1rem;
    width: 100%;
  }
}

.footer {
  background-color: #2C2C2C;
  color: #FFFFFF;
  padding: 3rem 2rem 1rem;
}
  
.footer-newsletter {
  text-align: center;
  margin-bottom: 3rem;
}
  
.footer-newsletter h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
}
  
.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
  
.newsletter-form input[type="email"] {
  padding: 0.7rem 1rem;
  width: 250px;
  border-radius: 5px;
  border: none;
}
  
.newsletter-form button {
  padding: 0.7rem 1.2rem;
  background-color: #ffffff;
  color: #2C2C2C;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
  
.newsletter-form button:hover {
  background-color: #ccc;
}
  
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
  
.footer-social {
  flex: 1 1 200px;
  text-align: center;
}
  
.footer-logo {
  width: 100px;
  margin-bottom: 1rem;
}
  
.social-icons a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 5px;
}
  
.footer-links {
  display: flex;
  flex: 2 1 400px;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}
  
.footer-links h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #ffffff;
}
  
.footer-links ul {
  list-style: none;
  padding: 0;
}
  
.footer-links li {
  margin-bottom: 0.5rem;
}
  
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}
  
.footer-links a:hover {
  color: #d1cfcf;
}
  
.footer-bottom {
  text-align: center;
  border-top: 1px solid #d1cfcf;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #FFFFFF;
}
  
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 80%;
    max-width: 300px;
  }
}  