/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.842), rgba(0, 0, 0, 0.5)), url("img/SMMK.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  border-radius: 30px;
  max-width: 100%; /* Use full width of the screen */
  margin: 0 auto; /* Remove space at the top and bottom */
  height: 30vh; /* Set the height to take up 80% of the viewport */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 900px;
}

.hero-section h1 {
  font-size: 2.5em; /* Perbesar ukuran font */
  margin-bottom: 20px;
  line-height: 1.2em; /* Pastikan line-height yang cukup agar teks tidak bertumpuk */
  word-wrap: break-word; /* Memastikan kata bisa terpotong dengan rapi jika terlalu panjang */
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 30px; /* Atur jarak antar paragraf agar lebih rapi */
}

.shop-btn {
  background-color: #e42006;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.shop-btn:hover {
  background-color: #bf2209;
}

/* Social Media Icons */
.social-media {
  margin-top: 50px; /* Jarak antara tombol dan ikon sosial media */
}

.social-icon {
  margin: 0 10px; /* Jarak antar ikon */
  display: inline-block; /* Menampilkan ikon dalam baris yang sama */
  font-size: 40px; /* Ukuran ikon */
  color: #fff; /* Warna ikon */
  transition: transform 0.3s ease; /* Animasi saat hover */
}

.social-icon:hover {
  transform: scale(1.1); /* Besarkan ikon saat hover */
}

/* Info Section Layout */
.info-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 90%; /* Ensures the section doesn't overflow */
}

/* Common styles for all info cards */
.info-card {
  background: linear-gradient(145deg, #ff0000, #b71c1c); /* Elegant red gradient */
  color: #fff;
  text-align: center;
  padding-top: 50px;
  border-radius: 20px;
  flex: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.info-card .icon {
  font-size: 3em; /* Adjust the icon size */
  margin-bottom: 10px;
}

.info-card p {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

.info-card:hover {
  transform: translateY(-10px); /* Lift card on hover */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

/* Specific style for the location card */
.location-card {
  position: relative;
  flex: 1;
  height: auto; /* Biarkan tinggi menyesuaikan dengan konten */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Soft shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
  display: flex;
  flex-direction: column; /* Atur agar konten teratur dalam kolom */
  cursor: pointer; /* Mengubah kursor menjadi tangan */
}

.location-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.733); /* Black transparent overlay */
  z-index: 1; /* Ensures it appears above the map */
}

.location-card .content {
  position: relative;
  z-index: 2; /* Ensures text appears above the overlay */
  color: white;
  text-align: center;
  padding: 20px;
}

.location-card .icon {
  font-size: 3em; /* Icon size */
  margin-bottom: 10px;
  margin-top: 10px;
}

.location-card a {
  text-decoration: none; /* Menghilangkan garis bawah dari link */
  color: inherit; /* Memastikan teks berwarna sama dengan teks di dalam card */
  flex: 1; /* Membuat link mengisi ruang yang tersedia */
}

.location-card p {
  font-size: 10px;
  font-weight: bolder;
  color: #fff;
  padding-top: 10px;
}

.location-card:hover {
  transform: translateY(-10px); /* Slight upward movement on hover */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .info-section {
    flex-direction: column;
  }

  .location-card {
    max-width: 100%;
    height: 350px; /* Reduced height for smaller screens */
  }
}

/* Media Query untuk Responsif di bawah 800px */
/* Media Query untuk Responsif di bawah 800px */
@media (max-width: 800px) {
  .hero-section {
    margin-top: 50px;
    overflow: hidden;
    padding: 80px 10px; /* Mengurangi padding untuk lebih banyak ruang */
    height: 45vh; /* Mengubah tinggi menjadi auto agar menyesuaikan dengan konten */
  }

  .hero-section h1 {
    font-size: 2em; /* Mengurangi ukuran font untuk judul */
    margin-bottom: 15px; /* Mengurangi jarak bawah */
  }

  .hero-section p {
    font-size: 1em; /* Mengurangi ukuran font untuk paragraf */
    margin-bottom: 20px; /* Mengurangi jarak bawah */
  }

  .shop-btn {
    padding: 10px 20px; /* Mengurangi padding tombol */
    font-size: 1em; /* Mengurangi ukuran font tombol */
  }

  .social-media {
    margin-top: 30px; /* Mengurangi jarak antara tombol dan ikon sosial media */
  }

  .social-icon {
    font-size: 30px; /* Mengurangi ukuran ikon sosial media */
    margin: 0 5px; /* Mengurangi jarak antar ikon */
  }

  .info-section {
    display: flex; /* Menggunakan flex untuk layout */
    justify-content: flex-end; /* Mengatur info card ke kanan */
    flex-direction: row; /* Pastikan info card disusun ke baris */
    align-items: flex-start; /* Menyelaraskan item di atas */
    gap: 20px; /* Jarak antar kartu */
    margin: 20px auto; /* Margin atas dan bawah untuk mengatur ruang */
    max-width: 90%; /* Mengatur lebar maksimum */
  }

  .info-card {
    flex: 1; /* Memastikan semua kartu memiliki ukuran yang sama */
    min-width: 50px; /* Menetapkan lebar minimum untuk kartu */
    max-width: 150px; /* Menetapkan lebar maksimum untuk kartu */
    padding: 10px; /* Mengurangi padding dalam kartu */
  }

  .info-card p {
    font-size: 13px;
    font-weight: 300;
  }

  /* Menghilangkan elemen lokasi di bawah 800px */
  .location-card p {
    display: none; /* Menghilangkan ikon dan teks lokasi */
  }

  .location-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    border: 0;
  }

  .location-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.733); /* Black transparent overlay */
    z-index: 1; /* Ensures it appears above the map */
  }

  .location-card h2 {
    display: none;
  }

  .location-card {
    flex: 1;
    height: 100px; /* Biarkan tinggi menyesuaikan dengan konten */
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    display: flex;
    flex-direction: column; /* Atur agar konten teratur dalam kolom */
    cursor: pointer; /* Mengubah kursor menjadi tangan */
  }
}
