/* 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 {
  max-height: 120px;
  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;
  transition: box-shadow 0.3s ease;
  z-index: 999;
}
.topbar.scrolled {
 box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.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;
}

.judulutama {
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: var(--spacing-lg);
  max-width: 900px;

}
h1 {
   text-align: center; 
   color: #3498f3;
   padding-bottom: 20px;
   font-size: 32px;
}

p {
    text-align: justify;
    align-items: center;
    font-size: 18px;
 
}
 
.table-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #e7f4ff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


h2 {
  text-align: center;
  font-size: var(--font-size-xl);
  color: #3498f3;
  margin-bottom: var(--spacing-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

th, td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-md);
}

th {
  background-color: var(--color-light-blue);
  color: var(--color-text-dark);
  font-weight: 600;
}

tr:hover {
  background-color: #f1f9ff;
  transition: background 0.3s ease;
}

td {
  color: var(--color-text-gray);
}

.services {
  text-align: center;
  padding: 80px 20px;
  background: #fdfdfd;
}

.section-subtitle {
  color: #3498f3;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  font-size: 25px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 40px;
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  text-align: left;
  transition: all 0.3s ease;
}

.card.tahsin {
  background-color: #2a83cb;
  color: white;
}

.card.tahfizh {
  background-color: #fff;
  border: 1px solid #eaeaea;
}

.card-icon-1 {
  font-size: 28px;
  margin-bottom: 12px;
  background-color: #C9E8F8;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.card-icon-2 {
  font-size: 28px;
  margin-bottom: 12px;
  background-color: #2a83cb;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

.card.tahfizh .card-link {
  color: #2573c2;
}

.benefits-section {
  padding: 20px 20px 120px;
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

.benefits-header {
  text-align: center;
  margin-bottom: 60px;
}

.benefit-subtitle {
  color: #2196f3;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 25px;
  text-align: center;
}

.benefit-title {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
  color: #111;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.benefit-card {
  background-color: #fdfdfd;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 
.benefit-card.blue {
  background-color: #e7f4ff;
}

.benefit-number {
  font-size: 2rem;
  font-weight: bold;
  color: #2196f3;
  margin-bottom: 12px;
}

.benefit-heading {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

.benefit-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}
.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;
}

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


@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 40px;
    text-align: center;
  }
   .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){
  .hero{
    padding-top: 20px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .start-btn, .try-btn {
    width: 100%;
    padding: 10px 16px;
  }

  .register-btn {
    width: 100%;
  }

  .navbar a, .explore-btn {
    font-size: 14px;
  }}