/* Reset dan Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* Definisikan variabel CSS untuk warna, spasi, dll. agar lebih konsisten */
  --color-primary-blue: #3498f3;
  --color-light-blue: #e0f2ff;
  --color-border-light: #bae6fd;
  --color-text-dark: #1f2d3d;
  --color-text-gray: #475569;
  --color-background-light: #f9fbfe;
  --color-background-gradient-start: #ffffff;
  --color-background-gradient-end: #eff6ff;

  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-xxl: 40px;

  --border-radius-sm: 8px;
  --border-radius-md: 10px;
  --border-radius-lg: 12px;
  --border-radius-full: 50%;

  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 1rem;     /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.5rem;   /* 24px */
  --font-size-xxl: 2rem;    /* 32px */
  --font-size-hero-mobile: 2.5rem; /* 40px */
  --font-size-hero-desktop: 4.5rem; /* 72px */}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fbfe;
  color: #1f2d3d;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
}

/* TOPBAR */
.topbar {
  display: flex;
  white-space: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  width: 350px;
  font-size: 16px;
}

.navbar {
  display: flex;
  padding: 0 40px;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  font-size: 17.5px;
}

.navbar a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #3498f3;
}

.navbar a.active {
  color: #3498f3;
  font-weight: 700;
}

.register-btn {
  background-color: #3498f3;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 15px;
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
  border-radius: 6px;
  top: 100%;
  left: 0;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown styling 1 */
.dropdown1 {
  position: relative;
}

.dropbtn1 {
  cursor: pointer;
}

.dropdown-content1 {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
  border-radius: 6px;
  top: 100%;
  left: 0;
  z-index: 1000;
}

.dropdown-content1 a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
}

.dropdown-content1 a:hover {
  background-color: #f0f0f0;
}

.dropdown1:hover .dropdown-content1 {
  display: block;
}

/* SECTION CARA BAYAR */
.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
}

.cara-bayar h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #3498f3;
}

.cara-bayar .intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #000;
}

/* grid layout */
.grid-metode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.metode {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.metode:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.metode .icon {
  font-size: 2rem;
  color: #3498f3;
  margin-bottom: 12px;
}

.metode h2 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #000;
}

.metode ul {
  margin: 0;
  padding-left: 20px;
}

.metode ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.note {
  margin-top: 40px;
  padding: 20px 25px;
  background: #fef9e7;
  border-left: 6px solid #f1c40f;
  border-radius: 12px;
  font-size: 1rem;
  color: #7d6608;
  line-height: 1.6;
}

.note a {
  color: #27ae60;
  font-weight: 600;
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

.site-footer {
  background-color: #0f172a;
  color: #ffffff;
  padding: 60px 20px 30px;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-brand {
  flex: 1 1 300px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex: 2 1 600px;
  justify-content: space-between;
  gap: 40px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 16px;
}

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

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

.footer-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto 0;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.footer-icons a {
  display: inline-block;
  margin-left: 20px;
}

.footer-icons img {
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-icons img:hover {
  opacity: 1;
}


/* MEDIA QUERIES UNTUK RESPONSIF */  
@media (min-width: 1024px) {
  .topbar {
    padding: 10px 45px;}  
  }  


@media (max-width: 768px) {

  .topbar {
    flex-wrap: wrap;
    padding: 15px 40px;
    gap: 12px;
  }

  .logo-search {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .search {
    width: 100%;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
  }
}


@media (max-width: 480px){
 
}

/* Agar scroll tidak menabrak sisi layar */
main {
  overflow-x: hidden;
  padding: 0 5px; /* Bisa disesuaikan jika ingin ada padding sisi */
}

/* Jika ada kontainer yang perlu di-scroll */
.scrollable-container {
  overflow-y: auto;
  max-height: 100vh;
  padding-right: 10px; /* agar scrollbar tidak menutup konten */
}

/* Hilangkan scroll horizontal pada semua elemen */
*html, body {
  overflow-x: hidden;
}
