/*
Theme Name: Belajar Quran Lagi
Author: Reza
Version: 1.0
*/

/* 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: #2563eb;
  --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;
}

.contact-section {
    padding: 60px 20px;
    background: #fff;}
    
.container-contact {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
  }
    

 .contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    max-width: 578px;
    align-items: center;
    
  }
  .contact-form h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #3498f3;
  }
  .contact-form p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #444;
  }
  .form-group {
    margin-bottom: 15px;
  }
  label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
  }
  input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
		font-family: Inter;
  }
  .form-row {
    display: flex;
    gap: 15px;
  }
  .form-row .form-group {
    flex: 1;
  }
  .submit-btn {
	display: flex;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background: #3498f3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
	align-items: center;
    justify-content: center;
		
  }
  .submit-btn:hover {
    background: #2380d9;
  }
.submit-btn svg{
	margin: 0 10px;
	align-items: center;
}

.articles-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.form-group-usia, .form-group-program {
  margin-bottom: 20px;
  font-family: sans-serif;
}

.form-group-usia label, .form-group-program label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Dropdown Wrapper */
.dropdown-usia, .dropdown-program {
  position: relative;
  width: 100%;
  max-width: 250px;
}

/* Tombol Dropdown */
.dropdown-btn-usia, .dropdown-btn-program {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 15px;
  user-select: none;
  color: black;
}

/* List Dropdown */
.dropdown-list-usia, .dropdown-list-program {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 5px;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.dropdown-btn-usia:focus, .dropdown-btn-program:focus { 
	border: 2px solid #3498f3;
	border-radius: 6px;
  padding: 10px 15px;
	color: #757575;}


.dropdown-list-usia li, .dropdown-list-program li {
  padding: 10px;
  cursor: pointer;
}

.dropdown-list-usia li:hover, .dropdown-list-program li:hover {
  background: #f1f1f1;
}



/* MEDIA QUERIES UNTUK RESPONSIF */  
/* Untuk layar Full HD (1920px) */
@media (min-width: 1376px) {
   .hero {
    padding: 80px 100px;
  }
  .hero-text h1 {
    font-size: clamp(52px, 3.75vw, 72px);
  }
}

@media (max-width:1200px){
  .navbar {
    font-size: 14px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  .register-btn {
    font-size: 12px;
  }
  .logo{ 
    width : 100px;}

  .search{
    font-size : 13px;
    padding: 7px 11px;
  } 
}
@media (min-width: 981px) {
  .login-icon {
    display: none !important; 
  }

}
@media (max-width: 980px) {
  .topbar{
   padding: 10px 30px;
  }
  .login, .register-btn {
    display: none;
  }}

  .login-icon {
    display: block;
    color: #3498f3;
    width: 28px;
    height: 28px;
    justify-content: space-between;
    cursor: pointer;
  }
 
@media (min-width: 850px) and (max-width: 1376px) {
  .topbar {
   padding: 10px 20px;}

  .hero {
    padding: 80px 60px;}
  
  .hero-text h1 {
    font-size: clamp(48px, 4vw, 60px); } }


@media (max-width: 849px) { 
   .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  }
  .menu-login {
    display: flex;
  }
  .login-icon svg {
    display: none;
    color: #3498f3;
    width: 28px;
    height: 28px;
    padding-bottom: 5px;
    justify-content: space-between;
    cursor: pointer;

  }

  .logo {
    height: 90px;
    width: auto;
  }

  .search-form {
    display:none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;

  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #3498f3;
    border-radius: 3px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .sidebar {
    display: block;
    position: fixed;
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .list-program a {
    transform : translateY(-10%);
    font-size: 15px;
    display: block;
  }

  .list-program.active {
    transform: translateX(0);
  }
  .navbar {
    display: none;
  }
  .hero {
    flex-direction: column;
    padding: 60px 40px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

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

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image {
    position: relative;
    left: 0;
    margin-top: 40px;
    margin-left: 0;
    padding-left: 50px;
    width: 350px;
  }

  .hero-image img {
    width: 300px;
  }

  .badge {
    font-size: 14px;
    padding: 6px 10px;
    transform: scale(0.9);
  }

  .text-badge {
    font-size: 18px;
  }

  .icon-badge img {
    width: 50px;
    height: 50px;
  }

  .badge.mudah {
    top: 42%;
    left: -10%;
  }

  .badge.bermakna {
    top: -5%;
    right: -15%;
  }

  .badge.qurani {
    bottom: -12%;
    right: 10%;
  }

  .topbar {
    flex-wrap: wrap;
    white-space: normal;
    padding: 15px 40px;
    gap: 12px;
    max-height: unset;
    background-color: #fff;
  }

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

  .search-input {
    width: 100%;
  }

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


@media (max-width: 480px){

  
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  }

  .logo {
    height: 90px;
    width: auto;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;

  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1976d2;
    border-radius: 3px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .sidebar {
    display: block;
    position: fixed;
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .list-program a {
    transform : translateY(-10%);
    font-size: 15px;
    display: block;
  }

  .list-program.active {
    transform: translateX(0);
  }


  /* --- NAVBAR --- */
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    padding: 10px 0;
    z-index: 9998;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .navbar a, 
  .navbar .dropbtn {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .navbar.active {
    display: flex;
  }

  /* --- DROPDOWN FIX --- */
  .dropdown:hover .dropdown-content { 
    display: none; 
  }

  .dropdown.open .dropdown-content {
    display: block;
    position: relative;
    box-shadow: none;
    padding-left: 8px;
  }

  .hero-image {
    width: 280px;
    padding: 30px;
  }

  .badge.mudah {
    top: 44%;
    left: -10%;
  }

  .badge.bermakna {
    top: 5%;
    right: -5%;
  }

  .badge.qurani {
    bottom: 0%;
    right: 12%;
  }

  .section-subtitle {
    font-size: 21px;
  }

  .section-title {
    font-size: 28px;
  }

  .quote-logo {
    width: 150px;
    margin-bottom: 0px;
  }
    

  .quote-text {
    font-size: 21px;
  }
  .quote-source {
    font-size: 21px;
  }

  .footer-tagline {
    font-size : 14px;
  }
  .footer-title {
    font-size: 14px;
  }
  .footer-links a {
    font-size: 14px;
  }
  .footer-icons a{
    margin-left: 10px;
  }
  .footer-icons img {
    width: 30px;
    height: 30px;
  }
}
/* 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;
}
.site-title {
	display: none !important
}
.site-info, .footer-credits, .footer-copyright {
	display: none !important;
}
