/* Critical overrides to fix scrolling and element styles - Add these at the TOP */
html, 
body {
  /* Default to auto scrolling, but allow smooth scrolling when needed */
  scroll-behavior: auto;
  overflow-anchor: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  /* Ensure no horizontal overflow */
  max-width: 100%;
  overflow-x: hidden;
}

/* Apply smooth scrolling ONLY when the class is present (from JS) */
html.smooth-scroll {
  scroll-behavior: smooth !important;
  scroll-snap-type: none !important;
}

/* Root variables */
:root {
  --primary-gradient: linear-gradient(90deg, #37A19A, #C5D69E);
  --text-primary: #333;
  --text-secondary: #555;
  --bg-white: #fff;
  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
  --button-green: #37A19A;
  --button-hover-green: #2a8c86;
}

html {
  scroll-behavior: auto !important;
  overscroll-behavior: none;
}

body {
  overflow-anchor: none;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
  /* Prevent horizontal scrolling */
  max-width: 100vw;
  overflow-x: hidden;
}

/* Critical overrides to fix scrolling and element styles */
html, 
body {
  scroll-behavior: auto !important;
  overflow-anchor: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: touch;
  /* Ensure responsive behavior */
  width: 100%;
  max-width: 100%;
}

/* Responsive Images - Ensure all images scale properly */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Videos */
video {
  max-width: 100%;
  height: auto;
}

/* Responsive Tables */
table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* Responsive Forms */
input, select, textarea, button {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Responsive Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Mobile-first responsive breakpoints */
@media (max-width: 576px) {
  .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 993px) {
  .col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  background: var(--bg-white);
  box-shadow: none;
  z-index: 1000;
  /* Ensure header doesn't cause horizontal overflow */
  max-width: 100vw;
  overflow: visible;
}

/* --- HEADER GRID LAYOUT --- */
header .navbar-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.menu-toggle {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(45deg, #37A19A, #C5D69E);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 10px;
  z-index: 1100;
  font-size: 22px;
  color: #fff;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.logo-container img {
  height: 48px;
  max-width: 120px;
  object-fit: contain;
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-admin {
  background: #8BC34A !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 8px 22px !important;
  margin-left: 12px !important;
  margin-right: 16px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 2px solid #7CB342 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
  display: inline-block !important;
}
.login-admin:hover, .login-admin:focus {
  background: #689F38 !important;
  color: #fff !important;
  border-color: #558B2F !important;
}
.contact-dropdown {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.contact-dropdown.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  z-index: 99999 !important;
  background: #fff !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  min-width: 250px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  border-radius: 12px !important;
  padding: 15px !important;
}

.contact-dropdown .contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #37A19A !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: #f7f7f7 !important;
  border-radius: 12px !important;
  padding: 6px 14px !important;
  border: 1px solid #e0e0e0 !important;
}
.contact-dropdown .contact-item i {
  color: #37A19A !important;
  font-size: 18px !important;
}

.contact-toggle {
  background: #C5D69E;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #37A19A;
  cursor: pointer;
}

/* --- MENU OVERLAY --- */
.dropdown-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px);
  transition: opacity 0.3s, transform 0.3s;
}

.dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0 0 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.dropdown-menu li a {
  font-size: 22px;
  color: #37A19A;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background: #C5D69E;
  color: #fff;
}

@media (min-width: 992px) {
  .dropdown-menu ul {
    flex-direction: row;
    gap: 32px;
    margin-top: 60px;
  }
  .dropdown-menu li a {
    font-size: 18px;
    padding: 8px 18px;
  }
}

@media (max-width: 600px) {
  .logo-container img {
    height: 36px;
    max-width: 90px;
  }
  .navbar-container {
    padding: 0 8px;
  }
  .dropdown-menu ul {
    gap: 16px;
    margin-top: 24px;
  }
}

/* Hide menu by default */
.dropdown-menu { display: none; }
.dropdown-menu.open { display: flex; }

/* Always show menu-toggle */
.menu-toggle { display: flex !important; }

/* Hide scrollbar on overlay */
.dropdown-menu::-webkit-scrollbar { display: none; }

/* Fix for overlay on mobile */
body.menu-open { overflow: hidden; }

/* Tengah: logo */
header .logo-container {
  justify-self: center;
  display: flex;
  align-items: center;
  position: relative;
  left: auto;
  transform: none;
  padding: 5px;
  z-index: 1001;
  cursor: pointer;
}
header .logo-container img {
  height: 60px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

/* Kanan: login admin + kontak */
header .contact-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  position: relative;
}
header .contact-nav a {
  color: #1565c0;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid #1565c0;
  background: #fff;
  display: inline-block;
}

.contact-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
}
.contact-toggle:hover,
.contact-toggle.active {
  background: rgba(0,0,0,0.05);
}

.contact-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  padding: 15px !important;
  min-width: 250px !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  display: none !important;
}

.contact-toggle.active + .contact-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- MENU UTAMA OVERLAY --- */
.dropdown-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 2000;
  padding: 24px 0 18px 0;
  display: block;
}
.dropdown-menu.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 40px;
  margin: 0;
  align-items: center;
  width: 100%;
  justify-content: center;
}
.dropdown-menu li {
  padding: 0;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-width: 0;
  white-space: nowrap;
  transition: none;
}
.dropdown-menu li a {
  font-size: 15px;
  font-weight: 500;
  padding: 6px 10px;
  gap: 6px;
  white-space: nowrap;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #222;
  transition: color 0.2s;
}
.dropdown-menu li a:hover {
  background: #f5f5f5 !important;
  color: #1565c0;
}
.dropdown-menu i {
  font-size: 18px;
}

@media (max-width: 991px) {
  .dropdown-menu ul {
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    align-items: flex-start;
  }
}

.free-demo-section {
  position: relative;
  margin: -2440px auto 0; /* Increased from -2240px to -2440px */
  padding-top: 2445px; /* Increased padding to match new margin */
  width: 900px;
  z-index: 20;
  box-sizing: border-box;
}

.free-demo-container {
  display: grid;
  grid-template-columns: 350px 550px !important;
  width: 900px !important;
  margin: 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}

.free-demo-image {
  width: 350px !important;
  background: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.free-demo-form {
  width: 550px !important;
  padding: 40px;
  box-sizing: border-box;
}

/* Navigation Container */
.navbar-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 20px;
  height: 150px; /* Match header height */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1000;
}

/* Left Menu */
.menu-container {
  justify-self: start;
  display: flex;
}

.menu-container ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-container a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
}

/* Center Logo */
.logo-container {
  justify-self: center;
  padding: 10px;
  cursor: pointer;
}

.logo-container img {
  height: 130px; /* Explicitly set larger size */
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

/* Right Phone */
.phone-number {
  display: none !important; /* Hide this completely */
}

/* Remove phone-container styles */
.phone-container {
  display: none;
}

/* Untuk menambahkan efek gradasi pada elemen tertentu */
.section {
  background: linear-gradient(90deg, #ffffff, #f8f9fc);
  padding: 50px 20px;
  border-radius: 10px; /* Tambahkan sudut membulat agar terlihat modern */
  margin-top: 50px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Background Container */
.background-container {
  position: relative;
  width: 100%;
  height: 500px; /* Sesuaikan tinggi background */
  overflow: hidden;
}

.background-container .background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100; /* Send to back */
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
}

.background-container .background-image {
  /* Hide the old background image now that we have a video */
  display: none;
  /* background-image: url('./images/your-background.jpg'); */
  /* background-size: cover; */
  /* background-position: center; */
  /* width: 100%; */
  /* height: 100%; */
}

/* Navbar */
.navbar {
  height: 80px; /* Sesuaikan tinggi header */
}

.navbar:hover {
  background-color: rgba(255, 255, 255, 0.9); /* Transparan saat hover */
}

/* Menu Container - Left Side */
.menu-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  margin-left: 0;
  z-index: 2; /* Ensure menu stays above */
}

.menu-container .nav-link {
  color: #333;
  font-weight: 500;
  padding: 10px 15px;
}

/* Logo Container - Center */
.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  cursor: pointer;
}

.logo-container img {
  height: 60px; /* Adjusted to fit navbar-container */
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.logo-container img {
  max-height: 300px; /* Increased from 40px */
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.navbar-nav .nav-link {
  margin-right: 15px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
}

/* Phone Number Container - Right Side */
.phone-number {
  display: none !important; /* Hide this completely */
}

/* Tombol Menu */
.menu-toggle {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #37A19A, #C5D69E);
  border: none;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.menu-toggle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #C5D69E, #37A19A);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.menu-toggle:hover::before {
  opacity: 1;
}

.menu-toggle span {
  display: none;
}

.menu-toggle .menu-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.menu-toggle .menu-icon::before {
  transform: translateY(-8px);
}

.menu-toggle .menu-icon::after {
  transform: translateY(8px);
}

.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* Dropdown Menu Styling */
.dropdown-menu {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
  z-index: 999;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0;
  margin: 0;
}

.dropdown-menu li {
  background: linear-gradient(145deg, #ffffff, #f8f9fc);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-menu li:hover {
  transform: translateY(-5px);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu i {
  font-size: 28px;
  color: #37A19A;
  transition: transform 0.4s ease;
}

.dropdown-menu li:hover i {
  transform: rotate(10deg) scale(1.2);
}

.dropdown-menu h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.dropdown-menu p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Add these styles to improve the navbar menu items */
.dropdown-menu li a div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dropdown-menu li a div h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.dropdown-menu li a div p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.dropdown-menu li a:hover div h4 {
  color: #37A19A;
}

.about-section {
  padding: 100px 20px;
  background: #fff;
  position: relative;
  z-index: 10;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  text-align: left;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 30px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: none;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    text-align: center;
  }
  
  .about-image {
    order: -1;
  }
}

/* Overview Section */
.overview-section {
  padding: 20px;
  background: #f8f9fc; /* Warna latar yang lembut */
  text-align: center;
  position: relative;
  z-index: 1;
}

.overview-section .section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: #333; /* Warna teks utama */
  margin-bottom: 20px;
}

.overview-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #555; /* Warna subjudul */
  margin-bottom: 20px;
}

.overview-section p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  max-width: 800px;
  margin: 0 auto 40px;
}

.statistics {
  display: flex;
  justify-content: space-between; /* Meratakan elemen */
  align-items: flex-start; /* Menyelaraskan elemen secara vertikal */
  margin-top: 20px;
  gap: 20px; /* Tambahkan jarak antar elemen */
}

.statistics .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1; /* Pastikan elemen memiliki lebar sama */
}

.statistics .stat-item h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin: 0;
}

.statistics .stat-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 5px 0 0;
}

/* Atur Free Demo Class */
.free-demo-section {
  position: relative;
  margin: -2440px auto 0; /* Increased from -2240px to -2440px */
  padding-top: 2445px; /* Increased padding to match new margin */
  width: 900px !important;
  z-index: 20;
  box-sizing: border-box;
}

.free-demo-container {
  display: grid;
  grid-template-columns: 350px 550px !important;
  width: 900px !important;
  margin: 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}

.free-demo-image {
  width: 350px !important;
  background: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.free-demo-form {
  width: 550px !important;
  padding: 40px;
  box-sizing: border-box;
}

.kelas-pilihan-section {
  text-align: center;
  padding: 50px 20px;
  background: #f8f9fc;
}

.kelas-pilihan-section .section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 20px;
}

.kelas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns */
  gap: 30px;
  padding: 40px 20px;
  max-width: 900px; /* Reduced max-width */
  margin: 0 auto;
}

.kelas-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.kelas-item:hover {
  transform: translateY(-10px) scale(1.02);
}

.kelas-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kelas-item:hover::before {
  opacity: 1;
}

.kelas-item h3 {
  transition: color 0.3s ease;
}

.kelas-item:hover h3 {
  color: #37A19A;
}

.kelas-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.kelas-item h3 {
  padding: 20px 20px 10px;
  font-size: 1.5rem;
  color: #333;
}

.kelas-item p {
  padding: 0 20px 20px;
  color: #666;
}

.kelas-image.small-stars {
  background-image: url('images/small-stars.jpg');
}

.kelas-image.high-flyers {
  background-image: url('images/high-flyers.jpg');
}

.kelas-image.trailblazers {
  background-image: url('images/trailblazers.jpg');
}

.kelas-image.frontrunners {
  background-image: url('images/frontrunners.jpg');
}

.kelas-item h3 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.kelas-item p {
  font-size: 1rem;
  color: #555;
}

#free-demo {
  margin-top: 0px; /* Tambahkan jarak pada keseluruhan section */
}

/* Untuk Bagian Overview Jari Aljabar */
#jari-aljabar-overview {
  padding: 50px 20px;
  background: var(--bg-light); /* Warna latar belakang */
  text-align: left; /* Atur teks menjadi rata kiri */
}

#jari-aljabar-overview .container {
  max-width: 1200px;
  margin: 0 auto; /* Pastikan elemen ada di tengah */
  text-align: left; /* Atur rata kiri */
}

#jari-aljabar-overview h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

#jari-aljabar-overview h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Untuk posisi deskripsi */
#jari-aljabar-overview p {
  text-align: left;
  margin: 0;
  padding: 0;
  max-width: 800px;
  margin-left: 0;
}

/* Untuk memastikan angka-angka sejajar */
#jari-aljabar-overview .statistics {
  display: flex;
  justify-content: space-around; /* Meratakan jarak antara elemen */
  text-align: center; /* Pastikan semua teks rata tengah */
  align-items: flex-start; /* Pastikan elemen vertikal sejajar */
  gap: 20px; /* Tambahkan jarak antar kolom */
}

#jari-aljabar-overview .section-description {
  text-align: left; /* Rata kiri */
  margin: 0; /* Hilangkan margin default */
  padding: 0; /* Hilangkan padding tambahan */
  max-width: 800px; /* Batasi lebar untuk kontrol */
  margin-left: 0; /* Pastikan margin kiri nol */
}

#jari-aljabar-overview .stat-item {
  display: flex;
  flex-direction: column; /* Mengatur elemen menjadi kolom */
  justify-content: center; /* Pastikan elemen vertikal sejajar */
  align-items: center; /* Pusatkan elemen horizontal */
}

#jari-aljabar-overview .stat-item h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 10px; /* Tambahkan jarak dengan teks di bawah */
}

#jari-aljabar-overview .stat-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0; /* Pastikan margin atas 0 untuk kesejajaran */
}

.free-demo-image img {
  max-width: 200px;
  margin-right: 20px;
}

.free-demo-form {
  width: 500px;
  padding: 40px;
  box-sizing: border-box;
}

.free-demo-form h1 {
  color: #999;
}

.terms a {
  color: #0056b3;
  text-decoration: underline;
}

.terms a:hover {
  color: #37A19A;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #555;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--button-green);  /* Changed from #555 to theme green */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--button-hover-green); /* Darker shade of theme green */
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.registration-form input,
.registration-form select {
  font-size: 1rem; /* Ukuran teks input */
  padding: 10px 15px; /* Padding input */
  border: 1px solid #ddd;
  border-radius: 5px;
}

.registration-form button {
  font-size: 1rem; /* Ukuran teks tombol */
  padding: 10px 15px;
}

.registration-form button:hover {
  background: #2a8c86; /* Use same green */
}

/* Terms */
.terms {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.terms a {
  color: #0056b3;
  text-decoration: underline;
}

.terms a:hover {
  color: var(--button-green);
}

.learning-system-section {
  padding: 80px 20px;
  background: #f8f9fc;
}

.learning-system-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.learning-diagram img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
}

.learning-description h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.learning-description p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.learning-description ul {
  list-style: none;
  padding: 0;
}

.learning-description li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 0; /* Remove left padding since we're removing the checkmark */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .learning-system-content {
    grid-template-columns: 1fr;
  }
  
  .learning-diagram {
    order: -1;
  }
  
  .learning-description {
    text-align: center;
  }
  
  .learning-description li {
    text-align: left;
  }
}

.guru-profesional-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.guru-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.guru-video {
  flex: 1;
  text-align: center;
}

.guru-video video {
  width: 100%;
  max-width: 350px; /* Reduced from 400px */
  height: auto;
  border-radius: 10px;
}

.guru-video p {
  margin-top: 10px;
  font-size: 1rem;
  color: #555;
}

.guru-certificate {
  flex: 1;
  text-align: left;
}

.guru-certificate img {
  width: 100%;
  max-width: 350px; /* Match video size */
  height: auto;
  border-radius: 10px;
}

.guru-certificate h3 {
  margin-top: 15px;
  font-size: 1.5rem;
  color: #333;
}

.guru-certificate p {
  margin: 10px 0;
  font-size: 1rem;
  color: #555;
}

.guru-certificate ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #555;
}

.guru-certificate ul li {
  margin: 5px 0;
}

/* Lokasi Strategis Section */
.strategic-section {
  padding: 50px 20px;
  background: #f8f9fc;
}

.location-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.location-text {
  flex: 1;
}

.location-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.location-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.learn-more-btn {
  padding: 10px 20px;
  background: #37A19A;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background: #2e807c;
}

.location-image {
  flex: 1;
  text-align: center;
}

.location-image img {
  width: 100%;
  border-radius: 10px;
}

/* Partners Section */
.partners-section {
  padding: 50px 20px;
  background: #fff;
  text-align: center;
}

.partners-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.partners-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.partner-item {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-item img {
  max-width: 100px;
  margin-bottom: 10px;
}

.partner-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.partner-item p {
  font-size: 1rem;
}

/* Features Section */
.features-section {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
}

.features-grid {
  grid-template-columns: 1fr; /* Satu kolom untuk layout responsif */
  display: grid; /* Pastikan menggunakan grid display */
  gap: 20px; /* Tambahkan jarak antar elemen */
  padding: 20px; /* Tambahkan padding */
}

.feature img {
  max-width: 100px;
  margin-bottom: 10px;
  width: 80px;
  border-radius: 50%;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature p {
  font-size: 1rem;
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(45deg, #37A19A, #C5D69E);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  box-shadow: none;
  z-index: 1000;
  height: 40px;
  margin-bottom: 0;
}

.sticky-footer .whatsapp-btn {
  background-color: #25d366;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  margin-left: 10px; /* Tambahkan margin kiri untuk posisi */
}

.sticky-footer .try-class-btn {
  background-color: var(--button-green);  /* Changed from #7c7c7c to theme green */
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 10px;
  cursor: pointer; /* Ensure the cursor shows it's clickable */
}

.sticky-footer .try-class-btn:hover {
  background-color: var(--button-hover-green);
  transform: translateY(-2px);
}

.sticky-footer .whatsapp-btn:hover {
  background-color: #1ebe5d;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px; /* Jarak antar ikon */
  margin-top: 10px; /* Sesuaikan jarak vertikal */
}

.footer-socials a {
  text-decoration: none;
  color: #000; /* Warna ikon */
  font-size: 20px; /* Ukuran ikon */
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #007bff; /* Warna hover */
}

/* Footer */
footer {
  background-color: #f9f9f9;
  padding: 20px 50px;
  padding-bottom: 100px; /* Naikkan footer agar tidak tertutup oleh sticky footer */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
}

.footer-column {
  flex: 1;
  padding: 0 10px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
}

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

.footer-column ul li {
  margin-bottom: 5px;
  font-size: 14px;
}

/* Animasi */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 768px) {

  .background-container {
    height: auto; /* Kurangi tinggi untuk layar kecil */
    min-height: 250px; /* Ensure video is visible on mobile */
  }

  .kelas-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    max-width: 100%;
    padding: 20px;
  }

  .statistics {
    flex-direction: column;
    gap: 10px;
  }

  .kelas-grid {
    grid-template-columns: 1fr; /* Satu kolom */
  }

  .background-container .background-image {
    object-fit: cover; /* Tetap memenuhi layar dengan proporsi yang baik */
  }

  .phone-number {
    justify-self: end;
  }

  .phone-number {
    margin-top: 14px;
  }

  .registration-form input,
  .registration-form select,
  .registration-form button {
    flex: none;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Satu kolom pada layar kecil */
    gap: 10px; /* Kurangi jarak antar elemen */
  }

  .about-section {
    background-size: cover;
    background-position: center;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-section p {
    font-size: 1rem;
  }

  header, .navbar-container {
    height: 70px;
  }

  .navbar-container {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
  }

  .menu-container,
  .logo-container,
  .phone-container {
    justify-self: center;
  }

  .menu-container ul {
    justify-content: center;
  }

  .logo-container {
    position: static;
    transform: none;
    margin: 10px 0;
  }

  .logo-container img {
    height: 200px;
  }

  .phone-container {
    justify-self: flex-end; /* Maintain right alignment */
    width: auto;
  }

  .navbar-container {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }

  .menu-container {
    justify-self: start;
  }

  .logo-container {
    justify-self: center;
  }

  .phone-number {
    justify-self: end;
    position: static;
  }

  .overview-section {
    padding-top: 150px;
    margin-top: -50px;
  }

  .guru-certificate img {
    max-width: 250px;
  }

  .guru-video video {
    max-width: 250px;
  }

  .free-demo-section {
    margin: -2040px auto 0;
    padding-top: 2045px;
    width: 90%;
  }
  
  .hero-section {
    margin-top: 30px;
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  header, .navbar-container {
    height: 70px;
  }

  .navbar-container {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
  }

  .menu-container {
    justify-self: start;
    align-items: center;
  }

  .menu-container ul {
    justify-content: flex-start;
  }

  .logo-container {
    justify-self: center;
    position: static;
    transform: none;
    margin: 0;
  }

  .logo-container img {
    height: 200px;
  }

  .phone-container {
    justify-self: end;
    width: auto;
  }

  .free-demo-section {
    margin: -2040px auto 0;
    padding-top: 2045px;
    width: 90%;
  }
  
  .hero-section {
    margin-top: 20px;
    padding: 40px 0;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  margin-top: 0px; /* Adjusted to move section higher */
  padding: 20px 0; /* Adjusted padding for better spacing */
  background: #f8f9fc;
  z-index: 10;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 60px 20px; /* Increased padding */
  max-width: 900px; /* Increased max-width */
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem; /* Increased from default */
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.4rem; /* Increased from default */
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero-background.jpg');
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 0px; /* Adjusted for mobile */
    padding: 10px 0; /* Reduced padding for mobile */
  }

  .hero-content {
    padding: 40px 20px; /* Reduced padding for mobile */
  }

  .hero-content h1 {
    font-size: 2.5rem; /* Adjusted for mobile */
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 1.1rem; /* Adjusted for mobile */
  }

  .free-demo-section {
    margin-top: 65px;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #fff;
  margin: 15% auto;
  padding: 40px;
  width: 80%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: none;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.close:hover {
  color: #666;
}

.program-registration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 50px auto;
    gap: 40px;
    padding: 20px;
}

.program-details {
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: none;
}

.program-details img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.program-details h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.age-range {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

.features-list {
    margin-top: 30px;
}

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

.features-list li {
    margin: 15px 0;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: #37A19A;
}

.registration-form {
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: none;
}

.registration-form h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.submit-btn {
    background: #37A19A;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #2a8c86;
}

.program-method-section {
  position: relative;
  padding: 80px 0;
  margin-top: 50px; /* Added margin to create space from the section above */
  background: #fff;
  z-index: 20;
}

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

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  perspective: 1000px; /* Add perspective for 3D effects */
}

.method-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 250px;
}

.method-card:hover {
  transform: translateY(-5px);
}

.method-image {
  width: 100%;
  height: 120px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-image img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.method-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.method-content h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #333;
}

.method-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
}

/* Add image optimization styles */
.method-card img {
  width: 100%;
  height: 120px; /* Match method-image height */
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast; /* Improve image sharpness */
  backface-visibility: hidden; /* Prevent image flickering */
  transform: translateZ(0); /* Enable hardware acceleration */
}

@media (max-width: 768px) {
  .methods-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.rahmat-features {
  margin-top: 60px;
  text-align: center;
}

.rahmat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.rahmat-item {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.rahmat-item:hover {
  transform: translateY(-5px);
}

.rahmat-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: #37A19A;
  color: #fff;
  border-radius: 50%;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .methods-grid {
    grid-template-columns: 1fr;
  }
  
  .rahmat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facilities-section {
  padding: 80px 0;
  background: #f8f9fc;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.facility-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Add subtle shadow on hover */
}

.facility-card i {
  font-size: 3rem;
  color: #37A19A;
  margin-bottom: 20px;
  transition: transform 0.3s ease; /* Ensure smooth transition for pulse */
}

.facility-card:hover i {
  animation: pulse 0.7s infinite; /* Apply pulse animation on hover */
}

@media (max-width: 768px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  padding: 15px !important;
  min-width: 250px !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  display: none !important;
}

.contact-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.contact-toggle:hover,
.contact-toggle.active {
  background: rgba(0,0,0,0.05);
}

.contact-toggle.active + .contact-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #f5f5f5;
}

.contact-item i {
  color: #25D366;
  font-size: 20px;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  font-size: 14px;
  font-weight: 600;
}

.contact-item span {
  font-size: 12px;
  color: #666;
}

/* ...rest of the code... */

/* Contact dropdown - Enhanced visibility styles */
/* These were previously inline in the HTML, now properly placed in CSS */
.contact-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
  pointer-events: all !important;
  z-index: 1001 !important;
}

.contact-dropdown.show .contact-item {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.contact-toggle {
  background: none !important;
  border: none !important;
  color: #333 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 15px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
}

.contact-toggle:hover,
.contact-toggle.active {
  background: rgba(0,0,0,0.05) !important;
}

/* Contact item enhanced visibility */
.contact-item i,
.contact-item div,
.contact-item strong,
.contact-item span {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure dropdown is above other elements */
header .contact-dropdown {
  z-index: 1001 !important;
}

/* Fix popup overlay styling */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  position: relative;
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}

/* Ensure the popup form has appropriate styling */
.popup-form {
  margin-top: 20px;
}

.popup-header {
  text-align: center;
  margin-bottom: 20px;
}

.popup-image {
  max-width: 150px;
  margin: 0 auto 20px;
  display: block;
}

/* Add these specific styles at the end of your CSS file to override any conflicting styles */

/* Critical contact dropdown fixes */
.contact-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  padding: 15px !important;
  min-width: 250px !important;
  z-index: 1001 !important;
  transition: all 0.3s ease !important;
}

.contact-toggle.active + .contact-dropdown,
.contact-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
  pointer-events: all !important;
}

.contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px !important;
  color: #333 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-bottom: 5px !important;
  pointer-events: all !important;
}

.contact-toggle {
  background: none !important;
  border: none !important;
  color: #333 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 15px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
}

.contact-toggle:hover,
.contact-toggle.active {
  background: rgba(0,0,0,0.05) !important;
}

/* Override any display:none that might be hiding the dropdown */
header .contact-toggle.active + .contact-dropdown,
header .contact-dropdown.show {
  display: block !important;
}

/* Make sure body doesn't have overflow:hidden permanently applied */
body[data-scrolling="true"] {
  overflow: hidden !important;
}

/* ...rest of the code... */

/* Mobile Optimization Enhancements - Add at end of file */

/* Better touch targets */
@media (max-width: 768px) {
  /* Increase tap target sizes */
  .submit-btn, 
  .hero-cta, 
  button, 
  .back-home,
  .contact-item,
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 15px;
    margin: 5px 0;
    font-size: 16px;
  }
  
  /* Fix sticky footer */
  .sticky-footer {
    padding: 8px 10px;
    height: auto;
  }
  
  .sticky-footer .try-class-btn {
    font-size: 14px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  
  .sticky-footer .whatsapp-btn {
    margin-left: 5px;
  }
  
  /* Improved mobile grid layouts */
  .methods-grid,
  .facilities-grid,
  .contact-registration-grid,
  .location-content {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
  
  /* Fix popup on mobile */
  .popup-content {
    width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 15px;
  }
  
  .popup-body {
    flex-direction: column !important;
  }
  
  .popup-image {
    width: 100px !important;
    margin-bottom: 15px;
  }
  
  /* Adjust containers for mobile */
  .container {
    padding: 0 15px;
  }
  
  /* Fix section spacing */
  section {
    padding: 40px 0 !important;
  }
  
  /* Adjust header elements */
  header .logo-container img {
    height: 60px !important;
    max-height: 60px !important;
  }
  
  header .navbar-container {
    height: 60px !important;
  }
  
  /* Prevent text overflow */
  h1, h2, h3, p {
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Improve contact dropdown on mobile */
  .contact-dropdown {
    right: -10px !important;
    left: auto !important;
    width: 280px !important;
  }
  
  /* Fix section titles */
  .section-title {
    font-size: 1.8rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Further reduce sizing */
  .benefit-cards {
    gap: 15px;
  }
  
  .benefit-card {
    padding: 15px;
    width: 100%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem !important;
  }
  
  .hero-subtitle,
  .hero-content p {
    font-size: 1rem !important;
  }
  
  /* Simplify layouts further */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  /* Fix form elements */
  .form-group input,
  .form-group select {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
}

/* Fix text input zoom on iOS */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Clean Method Grid Fix - Add at end of file to override previous styles */
.program-method-section {
  padding: 60px 0;
  background: #fff;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.method-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.method-image {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fc;
}

.method-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.method-card:hover .method-image img {
  transform: scale(1.05);
}

.method-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.method-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #333;
}

.method-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* Add image optimization styles */
.method-card img {
  width: 100%;
  height: 120px; /* Match method-image height */
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast; /* Improve image sharpness */
  backface-visibility: hidden; /* Prevent image flickering */
  transform: translateZ(0); /* Enable hardware acceleration */
}

@media (max-width: 768px) {
  .methods-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .method-image {
    height: 200px;
  }
}

/* Add these CSS rules at the end of the file to fix method-card images */

/* Method Grid Image Fix - Reliable Implementation */
.program-method-section {
  padding: 60px 0;
  background: #fff;
}

.program-method-section .methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.program-method-section .method-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.program-method-section .method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Fixed image container with explicit dimensions */
.program-method-section .method-image {
  width: 100%;
  height: 250px; /* Fixed height */
  position: relative;
  overflow: hidden;
  background-color: #f0f4f8;
}

/* Image positioning with object-fit cover */
.program-method-section .method-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.program-method-section .method-card:hover .method-image img {
  transform: scale(1.05);
}

/* Fallback for browsers that don't support object-fit */
@supports not (object-fit: cover) {
  .program-method-section .method-image {
    background-size: cover;
    background-position: center;
  }
  
  .program-method-section .method-image img {
    opacity: 0;
  }
}

.program-method-section .method-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-method-section .method-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #333;
}

.program-method-section .method-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* Add simple image placeholder */
.program-method-section .method-image::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #f0f4f8;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .program-method-section .methods-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .program-method-section .method-image {
    height: 200px;
  }
}

/* NEW SIMPLIFIED METHOD CARD STYLES - These should override any conflicting styles */
.simple-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.simple-method-card {
  background: white;
  border-radius: 12px;
  /* overflow: hidden; */ /* Menghapus properti ini */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.simple-method-card:hover {
  transform: translateY(-5px);
}

.simple-method-image {
  width: 100%;
  height: 0; /* Mengatur tinggi ke 0 untuk padding-bottom trick */
  padding-bottom: 75%; /* Mengatur ulang ke 75% untuk rasio aspek yang umum */
  position: relative;
  background-color: #f5f5f5; /* Fallback color if image doesn't load */
}

.simple-method-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Memastikan gambar mengisi penuh kontainer */
}

.simple-method-content {
  padding: 20px;
  flex: 1;
}

.simple-method-content h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.simple-method-content p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .simple-methods-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  /* Menghapus aturan padding-bottom mobile spesifik karena sudah universal */
}

/* Add keyframes for icon pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ====== TAMPILAN MAKSUD DAN TUJUAN RUMBEL REVISI ====== */
.purpose-section {
  padding: 50px 0; /* Added padding to top and bottom */
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%); /* Gradasi oranye ke kuning */
  position: relative;
  /* overflow: hidden; */ /* Menghapus properti ini agar animasi tidak terpotong */
  margin-bottom: 50px; /* Increased space below this section */
}

.purpose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.purpose-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.purpose-section .section-title-text {
  font-size: 2.5rem;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.purpose-section .section-title {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  font-weight: 700;
  letter-spacing: -1px;
}

.purpose-section .section-description {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #34495e;
  max-width: 1000px;
  margin: 0 auto 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

.purpose-section .section-description::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 4rem;
  color: #37A19A;
  font-family: serif;
  opacity: 0.3;
}

.purpose-section .section-description::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: 30px;
  font-size: 4rem;
  color: #37A19A;
  font-family: serif;
  opacity: 0.3;
}

.purpose-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.purpose-image {
  width: 100%;
  height: 350px; /* Tinggi optimal untuk desktop */
  object-fit: contain; /* Memastikan seluruh gambar terlihat tanpa terpotong */
  border-radius: 20px; /* Sudut membulat pada gambar */
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Bayangan lembut */
  transition: all 0.4s ease;
  border: 3px solid transparent; /* Border transparan default */
  background-color: #ffffff; /* Memastikan background putih di belakang gambar */
}

.purpose-image:hover {
  transform: translateY(-5px) scale(1.02); /* Efek mengangkat dan sedikit membesar saat hover */
  box-shadow: 0 25px 50px rgba(0,0,0,0.15); /* Bayangan lebih gelap saat hover */
  border-color: #37A19A; /* Border hijau saat hover */
}

@media (max-width: 768px) {
  .purpose-section {
    padding: 30px 20px; /* Adjusted padding for mobile, added top and bottom padding */
    margin-bottom: 30px; /* Increased space below this section for mobile */
  }
  
  .purpose-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
  
  .purpose-section .section-title img {
    max-width: 80%; /* Adjusted image size for tablets */
    border-radius: 10px;
  }
  
  .purpose-section .section-description {
    font-size: 1.1rem;
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  
  .purpose-images-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
  }
  
  .purpose-image {
    height: 300px; /* Tinggi gambar untuk tablet */
    object-fit: contain; /* Memastikan seluruh gambar terlihat tanpa terpotong */
  }
}

@media (max-width: 480px) {
  .purpose-section .section-title {
    font-size: 1.8rem;
  }
  
  .purpose-section .section-title img {
    max-width: 90%; /* Adjusted image size for mobile phones */
    border-radius: 8px;
  }
  
  .purpose-section .section-description {
    font-size: 1rem;
    padding: 25px 15px;
  }
  
  .purpose-image {
    height: 250px; /* Tinggi gambar untuk mobile */
    object-fit: contain; /* Memastikan seluruh gambar terlihat tanpa terpotong */
  }
}

/* ====== END TAMPILAN MAKSUD DAN TUJUAN RUMBEL REVISI ====== */

/* Contact Registration Section */
.contact-registration-section {
  padding: 80px 0;
  background: #f8f8f8; /* Light gray background */
}

.contact-registration-section .section-title {
  font-size: 2.5rem;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.contact-registration-section .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #37A19A, #2a8c86); /* Subtle line */
  border-radius: 2px;
}

.contact-registration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Contact Info */
.contact-info {
  background: #fff; /* White card background */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Soft shadow */
  border: 1px solid #eee; /* Light border */
  text-align: center;
  transition: all 0.3s ease; /* Smooth transition for hover */
}

.contact-info:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Slightly stronger shadow on hover */
}

.contact-info h3 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #37A19A, #2a8c86);
  border-radius: 2px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
  background: #f8f9fa; /* Very light gray for individual contact cards */
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  border: 1px solid #dee2e6;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Very light shadow */
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  background: #e9ecef; /* Slightly darker on hover */
}

.contact-card i {
  font-size: 2.5rem;
  color: #37A19A;
  transition: transform 0.3s ease;
}

.contact-card:hover i {
  transform: scale(1.05); /* Slight icon scale on hover */
}

.contact-card div {
  text-align: left;
}

.contact-card div span {
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
}

/* Registration Form */
.registration-form {
  background: #fff; /* White card background */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Soft shadow */
  border: 1px solid #e8e8e8; /* Light border */
  transition: all 0.3s ease;
}

.registration-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.registration-form h3 {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.registration-form h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #37A19A, #2a8c86);
  border-radius: 2px;
}

.registration-form .form-group {
  margin-bottom: 20px;
  position: relative;
}

.registration-form input,
.registration-form select {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: #f8f9fa; /* Light background for inputs */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.registration-form input:focus,
.registration-form select:focus {
  outline: none;
  border-color: #37A19A;
  box-shadow: 0 0 0 3px rgba(55, 161, 154, 0.1);
}

.registration-form .submit-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, #37A19A 0%, #2a8c86 100%); /* Green gradient */
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.registration-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(55, 161, 154, 0.2);
  background: linear-gradient(135deg, #2a8c86 0%, #37A19A 100%); /* Reverse gradient on hover */
}

/* Responsive for Contact & Registration */
@media (max-width: 768px) {
  .contact-registration-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }
  
  .contact-info,
  .registration-form {
    padding: 30px 25px;
  }
  
  .contact-info h3,
  .registration-form h3 {
    font-size: 1.8rem;
  }
  
  .contact-card {
    padding: 20px 25px;
    max-width: 100%;
  }
  
  .contact-card i {
    font-size: 2rem;
  }
  
  .contact-card div span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.1rem !important;
  }
  .hero-content p {
    font-size: 1rem !important;
  }
}

/* Override hero content colors for specific pages */
.jari-aljabar-page .animated-title,
.baca-tulis-page .animated-title {
  color: white !important;
}

.jari-aljabar-page .hero-subtitle,
.baca-tulis-page .hero-subtitle {
  color: white !important;
}

/* Ensure hero content text is white on these pages */
.jari-aljabar-page .hero-content h1,
.baca-tulis-page .hero-content h1 {
  color: white !important;
}

.jari-aljabar-page .hero-content p,
.baca-tulis-page .hero-content p {
  color: white !important;
}

.additional-video-section {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed, similar to background-container */
  overflow: hidden;
  margin-top: 30px; /* Add some space from the section above */
  margin-bottom: 0; /* Removed space to the section below */
}

.additional-video-section .additional-video-player {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100; /* Send to back */
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
}

/* Responsive styles for the new video section */
@media (max-width: 768px) {
  .additional-video-section {
    height: auto;
    min-height: 200px; /* Adjust minimum height for mobile */
    margin-top: 20px;
    margin-bottom: 0; /* Removed space to the section below for mobile */
  }
}

/* Adjust program-method-section for mobile */
@media (max-width: 768px) {
  .program-method-section {
    margin-top: 30px; /* Added margin for mobile to create space */
  }
}

/* Modern Popup Styles */
.popup-overlay {
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  position: fixed;
  inset: 0; /* Changed from top: 0 left: 0 right: 0 bottom: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content.modern-popup {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 32px 28px 24px 28px;
  max-width: 400px;
  width: 95%;
  animation: popupFadeIn 0.4s;
  position: relative;
}

@keyframes popupFadeIn {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-header h2 {
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e7e7e;
  letter-spacing: 0.5px;
  text-align: center;
}

.popup-header p {
  color: #666;
  font-size: 15px;
  margin-bottom: 18px;
  text-align: center;
}

.popup-image {
  display: block;
  margin: 0 auto 10px auto;
  width: 90px;
}

.popup-form-modern .form-group-modern {
  margin-bottom: 22px;
}

.popup-form-modern input,
.popup-form-modern select {
  width: 100%;
  padding: 16px 22px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  background: #f8f9fa;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 2px;
  box-sizing: border-box;
}

.popup-form-modern input:focus,
.popup-form-modern select:focus {
  border-color: #1e7e7e;
  box-shadow: 0 0 0 2px #1e7e7e22;
  outline: none;
}

.submit-btn-modern {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(90deg, #1e7e7e 60%, #2bbbad 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn-modern:hover {
  background: linear-gradient(90deg, #2bbbad 60%, #1e7e7e 100%);
  transform: translateY(-2px) scale(1.03);
}

.closePopup {
  font-size: 28px;
  color: #888;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 18px;
  transition: color 0.2s;
  z-index: 10;
}

.closePopup:hover {
  color: #1e7e7e;
}

@media (max-width: 600px) {
  .popup-content.modern-popup {
    padding: 18px 6px 18px 6px;
    max-width: 98vw;
  }
}

/* End Modern Popup Styles */

.rbd-title-with-logo {
  position: relative;
  display: block; /* Changed from inline-block to block */
  margin: 0 auto; /* Added to center the block */
  text-align: center;
  color: #ff7300;
  font-size: 3rem;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.1;
}

.logo-behind-text {
  position: absolute;
  left: 24%; /* Menggeser gambar lebih ke kiri. Anda mungkin perlu menyesuaikan nilai ini. */
  top: 32%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 110px;
  height: 110px;
  pointer-events: none;
  opacity: 0.95;
}

.logo-behind-text img {
  width: 100%;
  height: auto;
  display: block;
}

.rbd-title-text {
  position: relative;
  z-index: 3;
  background: transparent;
  padding-left: 0;
}

/* Animasi Otak-Otak */
.animated-brains-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* Mengubah lebar kontainer animasi menjadi 100% */
  height: 100%; /* Mengubah tinggi kontainer animasi menjadi 100% */
  overflow: visible;
  pointer-events: none;
  z-index: 1;
  display: block; /* Menambahkan display block */
}

.animated-brain {
  position: absolute;
  background-image: url('images/brain_1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transform: translate(-50%, -50%);
  opacity: 1; /* Mengubah opacity awal menjadi 1 */
  will-change: transform, opacity;
  display: block; /* Menambahkan display block */
}

/* Memastikan purpose-section memiliki posisi relatif */
.purpose-section {
  position: relative;
  overflow: visible; /* Mengubah overflow menjadi visible */
  min-height: 500px; /* Menambahkan min-height */
}

/* Variasi animasi untuk setiap otak */
.brain-1 {
  animation: brain-animation-1 25s linear infinite;
  left: 15%;
  top: 10%;
  width: 40px;
  height: 40px;
  animation-delay: 0s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-2 {
  animation: brain-animation-2 30s linear infinite;
  left: 85%;
  top: 50%;
  width: 60px;
  height: 60px;
  animation-delay: 2s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-3 {
  animation: brain-animation-3 20s linear infinite;
  left: 30%;
  top: 90%;
  width: 45px;
  height: 45px;
  animation-delay: 5s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-4 {
  animation: brain-animation-4 28s linear infinite;
  left: 5%;
  top: 70%;
  width: 55px;
  height: 55px;
  animation-delay: 8s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-5 {
  animation: brain-animation-5 22s linear infinite;
  left: 95%;
  top: 20%;
  width: 50px;
  height: 50px;
  animation-delay: 10s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-6 {
  animation: brain-animation-6 26s linear infinite;
  left: 60%;
  top: 5%;
  width: 48px;
  height: 48px;
  animation-delay: 12s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-7 {
  animation: brain-animation-7 23s linear infinite;
  left: 20%;
  top: 80%;
  width: 52px;
  height: 52px;
  animation-delay: 14s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-8 {
  animation: brain-animation-8 29s linear infinite;
  left: 70%;
  top: 95%;
  width: 58px;
  height: 58px;
  animation-delay: 16s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-9 {
  animation: brain-animation-9 21s linear infinite;
  left: 40%;
  top: 0%;
  width: 43px;
  height: 43px;
  animation-delay: 18s;
  opacity: 1; /* Menambahkan opacity awal */
}

.brain-10 {
  animation: brain-animation-10 27s linear infinite;
  left: 0%;
  top: 40%;
  width: 65px;
  height: 65px;
  animation-delay: 20s;
  opacity: 1; /* Menambahkan opacity awal */
}

/* Keyframe Animasi */
@keyframes brain-animation-1 {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(-10%, 10%) scale(1.1); opacity: 1; }
  50% { transform: translate(30%, -20%) scale(0.9); opacity: 0.8; }
  75% { transform: translate(-40%, 30%) scale(1.2); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

@keyframes brain-animation-2 {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(-80%, -10%) scale(0.9); opacity: 1; }
  50% { transform: translate(-20%, 40%) scale(1.2); opacity: 0.8; }
  75% { transform: translate(-90%, -30%) scale(0.8); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes brain-animation-3 {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(20%, -60%) scale(1.2); opacity: 1; }
  50% { transform: translate(50%, 10%) scale(0.8); opacity: 0.8; }
  75% { transform: translate(-10%, -50%) scale(1.1); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

@keyframes brain-animation-4 {
  0% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(70%, 20%) scale(0.9); opacity: 1; }
  50% { transform: translate(10%, -50%) scale(1.2); opacity: 0.8; }
  75% { transform: translate(60%, -10%) scale(0.8); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

@keyframes brain-animation-5 {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(-90%, 40%) scale(1.1); opacity: 1; }
  50% { transform: translate(-30%, -60%) scale(0.9); opacity: 0.8; }
  75% { transform: translate(-80%, 10%) scale(1.2); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

@keyframes brain-animation-6 {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(-20%, 60%) scale(0.9); opacity: 1; }
  50% { transform: translate(40%, -10%) scale(1.2); opacity: 0.8; }
  75% { transform: translate(-70%, 50%) scale(0.8); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes brain-animation-7 {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(50%, -40%) scale(1.2); opacity: 1; }
  50% { transform: translate(-30%, 30%) scale(0.8); opacity: 0.8; }
  75% { transform: translate(80%, -20%) scale(1.1); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

@keyframes brain-animation-8 {
  0% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(-10%, -70%) scale(0.9); opacity: 1; }
  50% { transform: translate(60%, 20%) scale(1.2); opacity: 0.8; }
  75% { transform: translate(-50%, -10%) scale(0.8); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

@keyframes brain-animation-9 {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(90%, -30%) scale(1.1); opacity: 1; }
  50% { transform: translate(20%, 50%) scale(0.9); opacity: 0.8; }
  75% { transform: translate(-60%, 40%) scale(1.2); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

@keyframes brain-animation-10 {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  25% { transform: translate(30%, 80%) scale(0.9); opacity: 1; }
  50% { transform: translate(-40%, -30%) scale(1.2); opacity: 0.8; }
  75% { transform: translate(70%, 20%) scale(0.8); opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.program-age-section {
  padding: 80px 20px;
  background-color: #f8f9fc;
}

.program-age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.program-age-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.program-age-card:hover {
  transform: translateY(-5px);
}

.program-age-card img {
  width: 100%;
  height: 250px; /* Adjust height as needed */
  object-fit: cover;
  display: block;
}

.program-age-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: white;
  padding: 20px;
}

.program-age-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: white;
}

.program-age-overlay p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .program-age-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .program-age-card img {
    height: 200px;
  }
}

/* Removed AGGRESSIVE OVERRIDES FOR YELLOW LINE ON BACA-TULIS.HTML */
/* Removed AGGRESSIVE ADDITIONAL OVERRIDE FOR YELLOW LINE ON BACA-TULIS.HTML */
/* Removed AGGRESSIVE GLOBAL OVERRIDE FOR YELLOW LINE ON BACA-TULIS.HTML */

/* Comprehensive Mobile Responsive Design */
@media (max-width: 768px) {
  /* Header and Navigation */
  header {
    height: 60px;
  }
  
  header .navbar-container {
    height: 60px;
    padding: 0 10px;
    grid-template-columns: auto auto auto;
    gap: 10px;
  }
  
  header .logo-container {
    position: relative;
    left: auto;
    transform: none;
    justify-self: center;
  }
  
  header .logo-container img {
    height: 50px;
    max-width: 80px;
  }
  
  /* Hide desktop menu on mobile */
  header .menu-container ul {
    display: none;
  }
  
  /* Show mobile menu toggle */
  .menu-toggle {
    display: block !important;
  }
  
  /* Contact dropdown adjustments */
  header .contact-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    max-width: none;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 80px 20px 40px;
    min-height: 60vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /* Sections */
  section {
    padding: 40px 20px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* Grid layouts */
  .methods-grid,
  .facilities-grid,
  .partners-grid,
  .features-grid,
  .program-age-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Cards */
  .method-card,
  .facility-card,
  .partner-item,
  .feature,
  .program-age-card {
    margin-bottom: 20px;
  }
  
  /* Forms */
  .registration-form,
  .popup-form {
    padding: 20px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px;
  }
  
  /* Buttons */
  .submit-btn,
  .learn-more-btn,
  .contact-toggle {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* Statistics */
  .statistics {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    text-align: center;
  }
  
  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .sticky-footer {
    padding: 15px 20px;
  }
  
  .sticky-footer .try-class-btn,
  .sticky-footer .whatsapp-btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Popup */
  .popup-content {
    width: 95%;
    max-width: 400px;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Text adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Videos */
  video {
    max-width: 100%;
    height: auto;
  }
  
  /* Tables */
  .table-responsive {
    overflow-x: auto;
  }
  
  table {
    min-width: 300px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  header .navbar-container {
    padding: 0 5px;
  }
  
  header .logo-container img {
    height: 40px;
    max-width: 60px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  section {
    padding: 30px 15px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .registration-form,
  .popup-form {
    padding: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
  }
  
  .submit-btn,
  .learn-more-btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 0.9rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  header {
    height: 50px;
  }
  
  header .navbar-container {
    height: 50px;
  }
  
  header .logo-container img {
    height: 35px;
  }
  
  .hero-section {
    padding: 60px 20px 30px;
    min-height: 50vh;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  header .navbar-container {
    padding: 0 30px;
  }
  
  .methods-grid,
  .facilities-grid,
  .partners-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .statistics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 0 30px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .methods-grid,
  .facilities-grid,
  .partners-grid,
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  header,
  .sticky-footer,
  .popup-overlay {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero-section {
    page-break-after: avoid;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* --- Dropdown Menu Responsive Fix --- */
/* Default: tampilkan menu di desktop */
.dropdown-menu {
  display: flex;
  position: static;
  background: none;
  box-shadow: none;
  flex-direction: row;
  width: auto;
  padding: 0;
  margin: 0;
}

/* Mobile: sembunyikan menu, tampilkan saat .show */
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background: #fff;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex-direction: column;
    padding: 20px 0;
  }
  .dropdown-menu.show {
    display: block;
  }
}

/* Sembunyikan tombol hamburger di semua device */
.menu-toggle {
  display: none !important;
}

/* Pastikan menu navigasi selalu tampil di semua device */
@media (max-width: 768px) {
  header .menu-container ul {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: static;
    box-shadow: none;
    width: 100%;
    padding: 10px 0;
  }
}

/* Pastikan dropdown-menu selalu tampil di semua device */
.dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Rapikan menu di mobile */
@media (max-width: 768px) {
  .dropdown-menu ul {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

@media (min-width: 992px) {
  .menu-container {
    max-width: 700px;
    width: 100%;
    flex: 1 1 0%;
    justify-content: flex-start;
  }
  .dropdown-menu {
    position: static;
    display: block !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0;
    min-width: 0;
    width: 100%;
    margin-left: 0;
  }
  .dropdown-menu ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    align-items: center;
    width: 100%;
  }
  .dropdown-menu li {
    padding: 0;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0;
    white-space: nowrap;
    transition: none;
  }
  .dropdown-menu li a {
    font-size: 15px;
    font-weight: 500;
    padding: 6px 10px;
    gap: 6px;
    white-space: nowrap;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #222;
    transition: color 0.2s;
  }
  .dropdown-menu li a:hover {
    background: #f5f5f5 !important;
    color: #1565c0;
  }
  .dropdown-menu i {
    font-size: 18px;
  }
}

/* --- Navbar Modern --- */
.topnav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}
.topnav a {
  color: #37A19A;
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
  padding: 14px 18px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  position: relative;
  background: none;
  box-shadow: none;
}
.topnav a .subtext {
  font-size: 13px;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
  line-height: 1.2;
}
.topnav a:hover {
  background: #C5D69E;
  color: #fff;
}
.login-admin {
  background: #37A19A;
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 16px;
  margin-left: 12px !important;
  font-size: 15px;
}
.topnav .icon {
  display: none;
}
.logo-navbar {
  pointer-events: none;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}
.logo-navbar img {
  max-height: 48px !important;
  height: auto !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
@media (max-width: 900px) {
  .topnav a:not(:first-child):not(.icon):not(.logo-navbar) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  .logo-navbar {
    margin: 0 auto;
    justify-content: center;
  }
  .logo-navbar img {
    height: 48px;
    max-height: 60px;
    max-width: 120px;
  }
  /* Tambahkan override agar semua link di .dropdown-content tetap tampil */
  .dropdown-content a {
    display: block !important;
  }
}
@media (max-width: 900px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    align-items: flex-start;
  }
  .topnav.responsive .logo-navbar {
    justify-content: center;
    width: 100%;
    margin: 10px 0;
  }
}

/***** Dropdown Menu Modern *****/
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 9999;
  margin-right: 12px !important;
}
.dropbtn {
  background: #37A19A;
  color: #fff;
  padding: 12px 28px;
  font-size: 20px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 10000;
}
.dropbtn:hover, .dropbtn:focus {
  background: #2e8c85;
  color: #fff;
  box-shadow: 0 4px 16px rgba(55,161,154,0.12);
}
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  min-width: 240px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 12px;
  z-index: 10001;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  padding: 16px 0;
  overflow: visible;
}
.dropdown-content.show {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  visibility: visible !important;
}
.dropdown-content a {
  color: #37A19A;
  padding: 12px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  margin: 0 8px;
}
.dropdown-content a .subtext {
  font-size: 13px;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
  line-height: 1.2;
}
.dropdown-content a:hover {
  background: #C5D69E;
  color: #fff;
}

/* Navbar Layout: Dropdown kiri, logo tengah, login kanan */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative !important;
  flex-wrap: wrap;
  min-height: 70px;
  z-index: 1000;
  padding: 0 24px;
  overflow: visible;
}
.logo-navbar {
  pointer-events: none;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 18px;
  padding: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.logo-navbar img {
  height: 48px;
  max-width: 120px;
  object-fit: contain;
  vertical-align: middle;
}
.login-admin {
  background: #37A19A;
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 16px;
  margin-left: 12px !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.login-admin:hover {
  background: #2e8c85;
  color: #fff !important;
}
@media (max-width: 900px) {
  .topnav {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
  }
  .dropdown {
    width: 100%;
    justify-content: flex-start;
  }
  .dropdown-content {
    left: 0;
    right: 0;
    min-width: unset;
    width: 100vw;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px 0;
  }
  .logo-navbar {
    margin: 10px auto;
    justify-content: center;
  }
  .login-admin {
    margin: 10px auto 0 auto;
    display: block;
    width: fit-content;
  }
}

.logo-navbar {
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.logo-navbar img {
  height: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}

header, .topnav {
  height: 60px !important;
  min-height: 60px !important;
}
.logo-navbar img {
  max-height: 52px !important;
  max-width: 140px !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  padding: 0 !important;
}

.logo-navbar img {
  max-height: 56px !important;
  max-width: 180px !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  padding: 0 !important;
}
header, .topnav {
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 !important;
}

/* ====== FINAL FIXES FOR LOGO SIZE AND CONTACT DROPDOWN ====== */

/* Logo size fixes - add at the very end to override all previous rules */
.logo-navbar img {
  max-height: 70px !important;
  height: 70px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Contact dropdown fixes */
.contact-toggle {
  background: #37A19A !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  color: #fff !important;
  cursor: pointer !important;
  margin-left: 10px !important;
  transition: all 0.3s ease !important;
}

.contact-toggle:hover {
  background: #2e8c85 !important;
  transform: scale(1.1) !important;
}

.contact-toggle.active {
  background: #2e8c85 !important;
}

.contact-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  padding: 15px !important;
  min-width: 250px !important;
  z-index: 1001 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  display: none !important;
}

.contact-toggle.active + .contact-dropdown,
.contact-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
  pointer-events: all !important;
}

.contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px !important;
  color: #333 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  margin-bottom: 5px !important;
}

.contact-item:hover {
  background: #f5f5f5 !important;
  transform: translateX(5px) !important;
}

.contact-item i {
  color: #37A19A !important;
  font-size: 18px !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .logo-navbar img {
    max-height: 55px !important;
    height: 55px !important;
    max-width: 150px !important;
  }
  
  .contact-toggle {
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
  }
  
  .contact-dropdown {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .logo-navbar img {
    max-height: 45px !important;
    height: 45px !important;
    max-width: 120px !important;
  }
}

/* ====== ULTIMATE CONTACT DROPDOWN FIX ====== */
/* Override all previous contact dropdown rules */
.contact-container {
  position: relative !important;
  display: inline-block !important;
}

.contact-container .contact-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  padding: 15px !important;
  min-width: 250px !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  display: none !important;
  pointer-events: none !important;
}

.contact-container .contact-toggle.active + .contact-dropdown,
.contact-container .contact-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
  pointer-events: all !important;
}

.contact-container .contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px !important;
  color: #333 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  margin-bottom: 5px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-container .contact-item:hover {
  background: #f5f5f5 !important;
  transform: translateX(5px) !important;
}

.contact-container .contact-item i {
  color: #37A19A !important;
  font-size: 18px !important;
}

/* Mobile responsive for contact container */
@media (max-width: 768px) {
  .contact-container .contact-dropdown {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    max-width: none !important;
  }
}

/* ====== NAVBAR & LOGO CENTER FIX ====== */
.topnav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  min-height: 60px !important;
  padding: 0 16px !important;
  background: #fff;
}
.logo-navbar {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  z-index: 2;
}
.logo-navbar img {
  max-height: 60px !important;
  height: 60px !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  padding: 0 !important;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  position: relative;
  z-index: 3;
}
.contact-dropdown.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 99999 !important;
}
/* Hapus CSS debug sebelumnya dan kembalikan ke mode normal */
.contact-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 60px; /* Atur sesuai tinggi header */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 1000;
  padding: 12px 0;
  transition: opacity 0.2s;
}
.contact-dropdown.show {
  display: block;
}
.contact-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}
.contact-item:hover {
  background: #f0f0f0;
}
.contact-item i {
  margin-right: 10px;
  font-size: 18px;
}

/* --- CONTACT DROPDOWN FINAL FIX --- */
.contact-dropdown {
  display: none !important;
  position: absolute !important;
  top: 110%;
  right: 0;
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  min-width: 240px !important;
  max-width: 320px !important;
  padding: 18px 0 !important;
  z-index: 1001 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  border: none !important;
}
.contact-dropdown.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
}
.contact-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  color: #37A19A !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
  border-radius: 8px !important;
  padding: 10px 22px !important;
  border: none !important;
  margin: 0 0 4px 0 !important;
  transition: background 0.2s;
}
.contact-item:hover {
  background: #f5f5f5 !important;
}
.contact-item i {
  color: #37A19A !important;
  font-size: 20px !important;
  margin-right: 8px !important;
}

@media (max-width: 600px) {
  .contact-dropdown {
    position: fixed !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    min-width: unset !important;
    max-width: unset !important;
    width: auto !important;
    border-radius: 10px !important;
    padding: 12px 0 !important;
  }
  .contact-item {
    font-size: 15px !important;
    padding: 10px 16px !important;
  }
}

.contact-container {
  position: relative !important;
  display: inline-block !important;
}
.contact-dropdown {
  display: none !important;
  position: absolute !important;
  top: 110%;
  right: 0;
  left: auto !important;
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  min-width: 240px !important;
  max-width: 320px !important;
  padding: 18px 0 !important;
  z-index: 1001 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  border: none !important;
}
.contact-dropdown.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
}
@media (max-width: 600px) {
  .contact-dropdown {
    position: fixed !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    border-radius: 10px !important;
    padding: 12px 0 !important;
  }
}

.logo-navbar img {
  height: 70px !important;
  max-height: 70px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
@media (max-width: 768px) {
  .logo-navbar img {
    height: 50px !important;
    max-height: 55px !important;
    max-width: 120px !important;
  }
}

/* OVERRIDE: Perbesar logo navbar utama */
.logo-navbar img {
  height: 150px !important;
  max-height: 150px !important;
  max-width: 260px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Sidebar menu untuk mobile */
.menu-overlay {
  display: none;
  position: fixed;
  z-index: 99;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  transition: opacity 0.3s;
}
.menu-overlay.show {
  display: block;
}

.dropdown-content {
  position: fixed;
  left: -300px;
  top: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 100;
  transition: left 0.3s;
  border-radius: 0 20px 20px 0;
  padding-top: 60px;
  overflow-y: auto;
}
.dropdown-content.show {
  left: 0;
}

@media (min-width: 900px) {
  .dropdown-content {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    border-radius: 0;
    padding-top: 0;
    left: 0 !important;
    transition: none;
  }
  .menu-overlay {
    display: none !important;
  }
}

/* === FIX: Dropdown di Desktop Selalu di Bawah Tombol Menu === */
@media (min-width: 901px) {
  .dropdown-content {
    display: none;
    position: absolute !important;
    left: 0 !important;
    top: 110% !important;
    min-width: 240px !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    flex-direction: column !important;
    background: #fff !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10001;
    padding: 16px 0;
    transform: translateY(-10px) scale(0.98);
  }
  .dropdown-content.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
  }
  .dropbtn {
    display: flex !important;
  }
  .menu-overlay {
    display: none !important;
  }
}