body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(to left, #f0ecec, #fefefe);
  color: #1a1a1a;
}

html,
body {
  height: 100%; /* Ensure the body covers the full viewport height */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  background: linear-gradient(
    to left,
    #f0ecec,
    #fefefe
  ); /* Extend background */
}

html {
  scroll-behavior: smooth;
}

header,
nav,
main,
footer,
section {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 14px;
}

nav a {
  text-decoration: none;
  color: #333;
  margin: 0 10px;
}

nav div {
  display: flex;
  align-items: center;
  /* Pastikan elemen dalam div sejajar */
}

nav div:nth-child(2) {
  margin-left: 1rem;
  font-size: 16px;
}

nav div:nth-child(3) {
  margin-left: auto;
  /* Tombol tetap di sisi kanan */
}

nav .nav-links {
  display: flex; /* Default display for larger screens */
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block; /* Allow height to adjust dynamically */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break properly */
  padding: 12px 24px; /* Maintain consistent padding */
  line-height: 1.5; /* Adjust line height for better readability */
}

.btn-primary {
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  border: 1px solid #ccc;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.hero-text {
  flex: 1;
  max-width: 50%;
}

.hero-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto; /* Match height dynamically */
}

.card {
  /* background: #F8F7F6; */
  /* border-radius: 20px; */
  overflow: hidden;
  /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  /* width: 100%; */
  height: 100%;
}

.card img {
  /* width: 33%; */
  max-width: 800px;
  height: auto;
  display: block;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 14px;
  color: #666;
}

.info-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.info-card {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

thead {
  background: #f5f5f5;
}

th,
td {
  padding: 1rem;
  border: 1px solid #eee;
}

th {
  text-align: center;
}

td:first-child,
th:first-child {
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.product-card p {
  font-size: 0.9rem;
  color: #555;
}

.product-card small {
  display: block;
  color: #999;
  margin-top: 0.5rem;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pricing-yellow {
  background: #fff5b1;
}

.pricing-white {
  background: #fff;
}

.pricing-card h3,
.pricing-card h1 {
  margin: 0.5rem 0;
}

.pricing-buttons {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
  text-align: center;
}

.pricing-buttons button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.apple-pay {
  background: #000;
}
.prime-pay {
  background: #146eb4;
}
.shop-pay {
  background: #5a31f4;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  font-size: 0.95rem;
}

.pricing-list li {
  margin-bottom: 0.75rem;
}

.cta-section {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
  margin-right: 1rem;
}

.footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #555;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
}

.footer-links div {
  flex: 1;
  min-width: 150px;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-bottom a {
  margin: 0 5px;
}

.footer-link {
  text-decoration: none;
  color: inherit;
}

/* Testimonial styles */
.testimonial-section {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1rem 2rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  overflow: hidden;
}

.testimonial-slider-horizontal {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* padding-bottom: 1rem; */
  margin: 0 auto;
  /* Show only 3 cards at a time */
  /* max-width: 1050px; */
}
.testimonial-slider-horizontal::-webkit-scrollbar {
  display: none;
}

.testimonial-slider-horizontal .testimonial-card {
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

@media (max-width: 1100px) {
  .testimonial-slider-horizontal {
    max-width: 100vw;
    gap: 1rem;
  }
  .testimonial-slider-horizontal .testimonial-card {
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 900px) {
  .testimonial-slider-horizontal .testimonial-card {
    min-width: 220px;
    max-width: 220px;
    flex: 0 0 220px;
  }
}

@media (max-width: 768px) {
  .testimonial-section {
    max-width: 100%;
    padding: 1rem;
  }
  .testimonial-slider-horizontal {
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  .testimonial-slider-horizontal .testimonial-card {
    min-width: 80vw;
    max-width: 80vw;
    flex: 0 0 80vw;
    padding: 1rem 0.5rem;
  }
}

/* Responsive for testimonial section */
@media (max-width: 768px) {
  .testimonial-list {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  header,
  nav,
  main,
  footer,
  section {
    max-width: 100%; /* Remove max-width constraint */
    padding: 0.5rem; /* Reduce padding */
  }
  .hero {
    flex-direction: column; /* Stack vertically */
  }
  .hero-text,
  .hero-media {
    max-width: 100%;
    flex: none;
  }
  .card img {
    width: 100%; /* Make images full-width on mobile */
  }
  .hero-container {
    flex-direction: column;
    /* Stack elements vertically */
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    /* text-align: center; */
  }

  .hero-text,
  .hero-media {
    margin-left: 10px;
    margin-right: 10px;
    flex: 1 1 auto;
    /* Reset flex properties for stacking */
  }

  section {
    margin-left: 10px;
    margin-right: 10px;
  }

  .table-wrapper {
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on mobile devices */
  }

  /* Responsive table styling */
  table {
    width: 100%;
    /* Ensure it fits within the container */
    overflow-x: auto;
    /* Allow horizontal scrolling if content exceeds width */
    table-layout: auto;
    /* Adjust column widths dynamically */
  }

  th,
  td {
    word-wrap: break-word;
    /* Allow words to wrap within cells */
    white-space: normal;
    /* Prevent text from overflowing */
    text-align: left;
    /* Align text to the left */
  }

  .hamburger {
    display: flex !important; /* Ensure the hamburger menu is visible */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
  }

  nav .nav-links {
    display: none !important; /* Hide navigation links by default */
    flex-direction: column;
    align-items: flex-start;
  }

  nav .nav-links.active {
    display: flex !important; /* Show navigation links when active */
  }

  .nav-links a {
    width: 100%;
  }
}

.hero-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping on larger screens */
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 50%; /* Allow equal space sharing */
}

.hero-media {
  flex: 1 1 50%; /* Allow equal space sharing */
  text-align: center;
}

.hero-media img {
  max-width: 100%;
  height: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #908c8c;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #908c8c;
  margin-bottom: 4px;
  border-radius: 5px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.nav-links.active {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  left: 0;
  /* Center align */
  margin: 0 auto;
  /* Center align */
  max-width: 90%;
  /* Constrain width */
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.nav-links a {
  display: block;
  margin: 0;
  padding: 0rem 1rem;
  /* Add padding for better click area */
  text-align: left;
  /* Align text to the left */
  text-decoration: none;
  /* Remove underline */
}

.reference-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.reference-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}
