:root {
  --primary: #001f3e;
  --bg: white;
  --secondary: #d0b669;
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: var(--primary);
  color: var(--bg);
}

.header-main {
  width: 100%;
}
.header-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  background: var(--primary);
}

.logo {
  height: 40px;
}
.logo2 {
  height: 40px;
  display: none;
}

/* Desktop search */
.search-container {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 25px;
  padding: 3px 6px;
}
.search-container input {
  border: none;
  outline: none;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 25px 0 0 25px;
}
.search-container button {
  border: none;
  background: var(--secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.search-container button::before {
  content: "🔍";
  font-size: 14px;
}

/* Navbar */
.navbar-main {
  background: var(--secondary);
  border-radius: 40px;
  margin-left: 95px;
  margin-right: 95px;
}
.navbar-main ul {
  list-style: none;
  display: flex;
  justify-content: center;
}
.navbar-main ul li {
  position: relative;
}
.navbar-main ul li a {
  display: block;
  padding: 14px 18px;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
}
.navbar-main ul li a:hover {
  background: var(--primary);
  color: var(--secondary);
  border-radius: 4px;
}
.navbar-main ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: var(--secondary);
  min-width: 160px;
  border-radius: 0 0 6px 6px;
}
.navbar-main ul li:hover ul {
  display: flex;
}
.navbar-main ul li ul li a {
  padding: 10px 14px;
  font-weight: normal;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
label {
  font-size: 30px;
}

#menu-checkbox {
  display: none;
}

/* Mobile search */
.search-icon {
  display: none;
  cursor: pointer;
  font-size: 22px;
}
#search-checkbox {
  display: none;
}
.mobile-search {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 10px;
  background: var(--secondary);
}
#search-checkbox:checked ~ .mobile-search {
  display: flex;
}

.highlight-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: black; /* warna background bar */
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  margin: 10px;
  margin-left: 95px;
  margin-right: 95px;
  gap: 10px;
  overflow: hidden;
}

.highlight-label {
  background: transparent;
  color: var(--secondary);
  font-weight: bold;
  white-space: nowrap;
}

.highlight-text {
  flex: 1;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.highlight-track {
  display: inline-block;
  animation: scroll 15s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.highlight-track a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  font-size: 20px;
}

.highlight-track a:hover {
  color: var(--secondary);
}

.social-icons {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.social-icons a img {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: var(--secondary); /* Warna kuning */
  transition: left 0.3s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar.active {
  left: 0;
}

.close-btn {
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.menu li {
  margin: 15px 0;
}

.menu a {
  text-decoration: none;
  font-size: 18px;
  color: black;
  font-weight: bold;
}

.arrow {
  float: right;
  font-size: 14px;
}

/* Social Media */
.socials {
  display: flex;
  gap: 10px;
}

.socials img {
  width: 40px;
  height: 40px;
}

.copyright {
  font-size: 12px;
  color: black;
}
.submenu {
  display: none;
  list-style: none;
  padding-left: 15px;
  background-color: var(--primary);
  border-radius: 20px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.submenu a {
  color: var(--secondary);
}

.layout-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  margin-left: 95px;
  margin-right: 95px;
}
.layout-main1 {
  background: black;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.layout-main2 {
  background: black;
  border-radius: 10px;
  max-width: 600px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.thumbnail-main img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16/9;
  display: block;
}
.thumbnail img {
  width: 100%;

  display: block;
}
.titlecap {
  margin-top: 10px;
  background-color: var(--secondary);
  max-width: 300px;
  text-align: center;
  border-radius: 20px;
}
.titlecap h1 {
  color: black;
}
.titleheadline {
  padding: 10px;
}
.titleheadline h2,
a {
  font-size: 30px;
  text-decoration: none;
  color: white;
}
.titleheadline a:hover {
  color: greenyellow;
}
.spacer {
  height: 2px;
  border-radius: 10px;
  background-color: white;
  margin: 10px;
}
.point1 {
  padding: 10px;
}
.point1 p {
  color: white;
  font-size: 20px;
}
.title-feature {
  background-color: var(--secondary);
  margin-top: 20px;
  text-align: center;
  color: black;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}
.feature {
  background: var(--secondary);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.h3-feature {
  background-color: black;
  border-radius: 10px;
}
.feature h3 {
  color: rgb(255, 255, 255);
  padding: 5px;
  font-size: 20px;
}
.feature p {
  color: black;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
}
.feature:hover {
  transform: translateY(-10px);
}
.feature i {
  font-size: 2rem;
  color: black;
  margin-bottom: 10px;
}
iframe {
  width: 100%;
  height: 200px;
  padding: 20px;
  border-radius: 20px;
}
.container-fasilitas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  justify-content: center;
}
.card {
  background-color: var(--secondary);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 250px;
  text-align: center;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.card h3 {
  color: black;
  align-items: center;
  padding: 10px;
  font-size: 20px;
}
.img-wisata {
  padding: 50px;
}

.layout-main2 h1 {
  background-color: var(--secondary);
  color: black;
}
.card-count {
  padding: 20px;
}
.count-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.layout-main2 h2 {
  font-size: 40px;
}
.count-text h2 {
  font-size: 40px;
  color: var(--secondary);
}
.update-terkini {
  background-color: white;
  width: 560px;
  border-radius: 20px;
}
.update-terkini img {
  width: 100%;
  border-radius: 20px;
  height: auto;
  aspect-ratio: 16/9;
}
.update-terkini a {
  color: black;
  padding: 20px 20px;
  font-weight: bold;
  text-align: center;
}
.update-terkini a:hover {
  color: red;
}
.footer {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 40px 20px;
}
.center {
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.logo-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-footer img {
  height: 50px;
}

.footer h3 {
  margin: 0;
  font-size: 18px;
}

.footer p {
  font-size: 14px;
  margin: 5px 0;
  color: var(--secondary);
}

.social-icons-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.social-icons-footer img {
  width: 30px;
  height: 30px;
}

.map-container {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.layout-main3 {
  display: none;
}
/* Responsive */
@media (max-width: 900px) {
  .header-1 {
    background-color: var(--secondary);
  }
  .desktop-search {
    display: none;
  }
  .search-icon {
    display: block;
  }
  .menu-toggle {
    display: flex;
  }
  .navbar-main {
    display: none;
  }
  #menu-checkbox:checked ~ .navbar-main {
    display: block;
  }
  .navbar-main ul {
    flex-direction: column;
    text-align: left;
  }
  .navbar-main ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .navbar-main ul li ul {
    position: static;
    display: none;
  }
  .navbar-main ul li:hover ul {
    display: none;
  } /* disable hover */
  .navbar-main ul li:focus-within ul {
    display: flex;
  } /* klik */
  .logo {
    display: none;
  }
  .logo2 {
    display: block;
  }
  .highlight-bar {
    margin-left: 10px;
    margin-right: 10px;
  }
  .layout-main {
    margin-left: 0px;
    margin-right: 10px;
    padding: 0 20px;
    gap: 0px;
  }
  .layout-main1 {
    padding: 15px;
  }
  .layout-main2 {
    display: none;
  }
  .titlecap {
    width: 50%;
  }
  .titlecap h1 {
    font-size: 90%;
  }
  .titleheadline h2 {
    font-size: 22px;
  }
  .point1 p {
    font-size: 95%;
  }
  .card {
    width: 45%;
  }
  .card h3 {
    font-size: 90%;
  }
  .img-wisata img {
    padding: 0px;
    display: block;
    margin: 0 auto;
    height: auto;
    max-width: 100%;
  }
  .layout-main3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
  }
  .layout-main3 h1 {
    background-color: var(--secondary);
    text-align: center;
    color: black;
  }
  .layout-main3 .card-count2 {
    padding: 20px;
  }
  .layout-main3 .count-text2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  .layout-main3 .update-terkini2 {
    background-color: white;
    width: 100%;
    border-radius: 20px;
  }
  .layout-main3 .update-terkini2 img {
    width: 100%;
    border-radius: 20px;
    height: auto;
    aspect-ratio: 16/9;
  }
  .layout-main3 h2 {
    font-size: 30px;
  }
  .count-text2 h2 {
    font-size: 30px;
    color: var(--secondary);
  }
  .highlight-track {
    animation: scroll 20s linear infinite;
  }
}
