/* Global aggressive reset for potential line-drawing properties */
html, body {
  background-image: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: auto !important; /* Mengaktifkan scrolling */
  position: relative;
  z-index: 100;
}

/* Remove blue outline on focus */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Ensure no pseudo-elements create lines on hero section or its content */
.reading-hero::before,
.reading-hero::after,
.hero-content::before,
.hero-content::after,
.learning-stages::before,
.learning-stages::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Specific targeting for potential separator lines (hr and .section-line) */
hr,
.section-line {
  display: none !important;
  background-image: none !important;
  background: none !important;
  border: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Base styling for Baca Tulis page - Simplified, cleaner approach */
:root {
  /* Simplified color palette with more focused tones */
  --primary: #FF6B6B;
  --primary-dark: #E95252;
  --primary-rgb: 255, 107, 107; /* RGB values for primary color */
  --secondary: #4EA5D9;
  --secondary-dark: #3A8BC0;
  --accent: #FFD700;
  --accent-dark: #E6C200;
  --green: #66CC99;
  --green-dark: #4DAA7D;
  
  /* Clean, simple gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --secondary-gradient: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --green-gradient: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  
  /* Add lighter shades for waves */
  --primary-light: #FF9999;
  --secondary-light: #7DBFE8;
}

/* Clean body styling */
body.baca-tulis-page {
  font-family: 'Nunito', 'Roboto', sans-serif;
  color: #222;
  background-color: #FAFAFA !important; /* Pastikan latar belakang halaman tetap */
  overflow-x: hidden;
  overflow-y: auto !important; /* Mengaktifkan scrolling vertikal */
}

/* Subtle background pattern */
body.baca-tulis-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 15%),
    radial-gradient(circle at 80% 30%, rgba(78, 165, 217, 0.03) 0%, transparent 15%),
    radial-gradient(circle at 30% 70%, rgba(102, 204, 153, 0.03) 0%, transparent 15%),
    radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 15%);
  pointer-events: none;
  z-index: -1;
}

/* Hero section with cleaner design */
.reading-hero {
  background: var(--primary-gradient) !important; /* Memastikan background hero kembali */
  background-image: var(--primary-gradient) !important;
  min-height: 80vh;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden !important;
  border-bottom: none !important; /* Memastikan tidak ada garis bawah */
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin-bottom: 0 !important;
}

.hero-content {
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Line Cover to hide persistent blue line */
.line-cover {
  width: 100%;
  height: 2px; /* Tinggi minimal untuk menutupi garis */
  background-color: #FAFAFA !important; /* Warna latar belakang halaman */
  display: block; /* Pastikan div ditampilkan sebagai blok */
  margin: 0; /* Pastikan tidak ada margin */
  padding: 0; /* Pastikan tidak ada padding */
  position: relative; /* Posisi relatif untuk memastikan di aliran normal */
  z-index: 99999 !important; /* Tingkatkan z-index untuk memastikan di atas garis */
}

/* Learning Stages Section - Aggressive reset for top border/background */
.learning-stages {
  padding: 80px 20px;
  background-color: #f8f9fc;
  position: relative; /* Ensure positioned context for children */
  /* overflow: hidden; */ /* Removed to allow floating letters to be visible */
}

/* Styling for all card elements */
.benefit-card,
.stage-card,
.alphabet-letter,
.method-card,
.info-card {
  background-color: #FFFFFF; /* Konsisten latar belakang putih */
  border-radius: 12px; /* Sudut membulat yang konsisten */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Bayangan lembut yang konsisten */
  transition: all 0.3s ease; /* Transisi halus untuk efek hover */
}

/* Text color for card content */
.benefit-card h3, .stage-card h3, .method-card h3, .info-card h3 {
  color: #333333; /* Dark color for headings on white background */
}

.benefit-card p, .stage-card p, .method-card .method-content p, .info-card ul li {
  color: #666666; /* Slightly lighter dark color for paragraphs on white background */
}

.alphabet-letter {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white; /* Warna latar belakang awal putih */
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary); /* Warna teks awal */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* Transisi halus untuk semua properti */
}

.alphabet-letter:hover {
  transform: translateY(-8px) rotate(3deg); /* Efek hover naik dan sedikit berputar */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Bayangan lebih jelas saat hover */
  color: white; /* Warna teks menjadi putih saat hover */
}

/* Warna acak untuk setiap huruf saat di-hover */
.alphabet-letter:nth-child(6n+1):hover { background-color: #FF6347; } /* Tomato */
.alphabet-letter:nth-child(6n+2):hover { background-color: #3CB371; } /* MediumSeaGreen */
.alphabet-letter:nth-child(6n+3):hover { background-color: #4169E1; } /* RoyalBlue */
.alphabet-letter:nth-child(6n+4):hover { background-color: #FFA500; } /* Orange */
.alphabet-letter:nth-child(6n+5):hover { background-color: #8A2BE2; } /* BlueViolet */
.alphabet-letter:nth-child(6n+6):hover { background-color: #FF69B4; } /* HotPink */

/* Simple, elegant floating letters */
.floating-letters {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.letter-symbol {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  animation: floatLetter 12s ease-in-out infinite;
  opacity: 0.5;
}

/* Softer, slower floating animation */
@keyframes floatLetter {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -15px); }
}

/* Position letters with more breathing space */
.letter1 { top: 15%; left: 10%; animation-delay: 0s; }
.letter2 { top: 25%; left: 40%; animation-delay: 1s; }
.letter3 { top: 10%; right: 15%; animation-delay: 2s; }
.letter4 { top: 40%; left: 20%; animation-delay: 3s; }
.letter5 { top: 35%; right: 10%; animation-delay: 4s; }
.letter6 { top: 60%; left: 15%; animation-delay: 5s; }
.letter7 { top: 65%; right: 25%; animation-delay: 6s; }
.letter8 { top: 75%; left: 30%; animation-delay: 7s; }
.letter9 { top: 80%; right: 15%; animation-delay: 8s; }
.letter10 { top: 20%; left: 70%; animation-delay: 9s; }
.letter11 { top: 50%; left: 45%; animation-delay: 10s; }
.letter12 { top: 70%; left: 55%; animation-delay: 11s; }
.letter13 { top: 30%; right: 40%; animation-delay: 12s; }

/* Clean hero content styling */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

/* Simple badge with subtle animation */
.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  display: inline-block;
  backdrop-filter: blur(5px);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: subtle-pulse 3s infinite ease-in-out;
}

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Elegant title animation handled in JS */
.animated-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  /* border: none !important; */ /* Reverting aggressive override */
  /* box-shadow: none !important; */ /* Reverting aggressive override */
  /* background: none !important; */ /* Reverting aggressive override */
}

.animated-title::after,

.hero-subtitle {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Clean, simple benefit cards */
.benefit-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px;
  border-radius: 15px;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.card-icon {
  margin-bottom: 15px;
  font-size: 36px;
}

.benefit-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: white;
}

.benefit-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Simple, clean CTA button */
.hero-cta {
  background: white;
  color: var(--primary);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Simple ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.3);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
}

@keyframes ripple-effect {
  to { transform: scale(2.5); opacity: 0; }
}

/* Clean learning stages section */
.learning-stages {
  padding: 80px 20px;
  background-color: #f8f9fc;
}

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

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title.blue {
  color: var(--secondary);
}

.section-title.red {
  color: var(--primary);
}

.section-title.yellow {
  color: var(--accent);
}

.section-title.green {
  color: var(--green);
}

.section-line {
  width: 80px;
  height: 4px;
  background-color: #ddd;
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-title.blue + .section-line {
  background-color: var(--secondary);
}

.section-title.red + .section-line {
  background-color: var(--primary);
}

.section-title.yellow + .section-line {
  background-color: var(--accent);
}

.section-title.green + .section-line {
  background-color: var(--green);
}

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

.stages-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--secondary-light), var(--primary-light));
  z-index: 0;
  display: none; /* Hide the mysterious line */
}

.stage-card {
  background-color: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

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

.stage-card .stage-number {
  background: var(--primary-gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: -50px auto 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.stage-card:nth-child(1) .stage-number {
  background: var(--primary-gradient);
}

.stage-card:nth-child(2) .stage-number {
  background: var(--secondary-gradient);
}

.stage-card:nth-child(3) .stage-number {
  background: var(--accent-gradient);
}

.stage-card:nth-child(4) .stage-number {
  background: var(--green-gradient);
}

.stage-card:nth-child(5) .stage-number {
  background: var(--primary-gradient);
}

.stage-card:nth-child(6) .stage-number {
  background: var(--secondary-gradient);
}

.stage-card:nth-child(7) .stage-number {
  background: var(--accent-gradient);
}

.stage-card:nth-child(8) .stage-number {
  background: var(--green-gradient);
}

.stage-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.stage-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.stage-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-top: 15px;
}

.alphabet-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, #f0f8ff, #e0f2f7); /* Gradien biru muda yang lembut */
  text-align: center;
  border-radius: 15px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  background-size: 200% 200%; /* Make background larger for animation */
  animation: background-pan 15s linear infinite alternate; /* Pan animation */
}

.alphabet-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Responsif */
  gap: 18px; /* Jarak antar huruf */
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.9); /* Latar belakang semi-transparan */
  border-radius: 25px; /* Sudut lebih bulat */
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  perspective: 1000px; /* Menambahkan perspektif untuk efek 3D */
}

.alphabet-letter::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.7) 0%, rgba(var(--primary-rgb), 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: radiant-burst 1.5s infinite ease-out;
  z-index: -1;
}

.alphabet-letter:nth-child(2n)::after { animation-delay: 0.1s; }
.alphabet-letter:nth-child(3n)::after { animation-delay: 0.2s; }
.alphabet-letter:nth-child(4n)::after { animation-delay: 0.3s; }
.alphabet-letter:nth-child(5n)::after { animation-delay: 0.4s; }
.alphabet-letter:nth-child(6n)::after { animation-delay: 0.5s; }
.alphabet-letter:nth-child(7n)::after { animation-delay: 0.6s; }
.alphabet-letter:nth-child(8n)::after { animation-delay: 0.7s; }
.alphabet-letter:nth-child(9n)::after { animation-delay: 0.8s; }
.alphabet-letter:nth-child(10n)::after { animation-delay: 0.9s; }
.alphabet-letter:nth-child(11n)::after { animation-delay: 1.0s; }
.alphabet-letter:nth-child(12n)::after { animation-delay: 1.1s; }
.alphabet-letter:nth-child(13n)::after { animation-delay: 1.2s; }
.alphabet-letter:nth-child(14n)::after { animation-delay: 1.3s; }
.alphabet-letter:nth-child(15n)::after { animation-delay: 1.4s; }
.alphabet-letter:nth-child(16n)::after { animation-delay: 1.5s; }
.alphabet-letter:nth-child(17n)::after { animation-delay: 1.6s; }
.alphabet-letter:nth-child(18n)::after { animation-delay: 1.7s; }
.alphabet-letter:nth-child(19n)::after { animation-delay: 1.8s; }
.alphabet-letter:nth-child(20n)::after { animation-delay: 1.9s; }
.alphabet-letter:nth-child(21n)::after { animation-delay: 2.0s; }
.alphabet-letter:nth-child(22n)::after { animation-delay: 2.1s; }
.alphabet-letter:nth-child(23n)::after { animation-delay: 2.2s; }
.alphabet-letter:nth-child(24n)::after { animation-delay: 2.3s; }
.alphabet-letter:nth-child(25n)::after { animation-delay: 2.4s; }

.alphabet-letter .cantol {
  font-size: 0.9rem; /* Ukuran teks 'cantol' lebih kecil */
  color: var(--text-color);
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 5px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.alphabet-letter:hover .cantol {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary-dark);
}

/* Ensure the section title within alphabet-section is visible */
.alphabet-section .section-title {
  color: var(--primary); /* Warna judul disesuaikan */
  font-size: 3rem;
  margin-bottom: 20px;
}

.alphabet-section .section-description {
  color: #555; /* Warna deskripsi */
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Teaching Methods Section */
.teaching-methods {
  padding: 80px 20px;
  background-color: #FAFAFA; /* Same as body background */
}

.methods-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 60px auto 0;
}

.method-card {
  /* Common card styles already applied globally to .benefit-card, .stage-card, .alphabet-letter, .method-card, .info-card */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* New styles to mimic .benefit-card layout */
  padding: 25px; /* Consistent padding with benefit-card */
  display: flex !important; /* Force flexbox for internal layout */
  flex-direction: column !important; /* Force stack content vertically */
  align-items: center !important; /* Force center content horizontally */
  text-align: center !important; /* Force center text within the card */
}

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

.method-card .method-header {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 10px !important; /* Space between icon and title */
}

.method-card img {
  /* Removed as images are replaced by Font Awesome icons */
  display: none !important; /* Ensure image is hidden if it somehow persists */
}

.method-card .method-header i {
  font-size: 40px !important; /* Larger icon size */
  color: var(--primary) !important; /* Or a color that matches your design */
  margin-bottom: 10px !important; /* Space between icon and text */
}

.method-card h3 {
  font-size: 1.5rem;
  color: #333333 !important;
  margin: 0 0 10px 0 !important; /* Adjust spacing, remove side margins for centering */
}

.method-card .method-content {
  padding: 0 !important; /* Remove existing padding as overall card padding is applied */
}

.method-card .method-content p {
  font-size: 0.95rem;
  color: #666666 !important;
  line-height: 1.6;
  margin: 0 !important; /* Remove default paragraph margins */
}

/* Ensure the background image is handled as per the original design for teaching-methods */
/* This rule might be redundant if background-color is set on .teaching-methods itself */
/* If .teaching-methods needs a background-image, it should be defined here */

/* Registration Section */
.registration-section {
  padding: 80px 20px;
  background-color: #f5f5f5;
}

.registration-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: flex-start;
}

.info-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0); /* Gradien putih ke abu-abu muda */
  padding: 50px; /* Menjaga padding */
  display: flex; /* Menjaga display flex */
  flex-direction: column; /* Menjaga flex-direction */
  justify-content: center; /* Menjaga justify-content */
  align-items: flex-start; /* Menjaga align-items */
  border-radius: 20px; /* Sudut lebih membulat */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.05); /* Bayangan multi-lapisan */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transisi lebih halus dan dinamis */
  overflow: hidden; /* Memastikan konten tidak melebihi border-radius */
  position: relative; /* Untuk efek hover dan latar belakang */
}

.info-card:hover {
  transform: translateY(-8px); /* Sedikit terangkat saat hover */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.1); /* Bayangan lebih besar saat hover */
}

#registration-section .info-card h3 {
  font-size: 2.5rem; /* Ukuran font lebih besar */
  font-weight: 800; /* Lebih tebal */
  color: #333333; /* Warna teks gelap */
  margin-bottom: 25px; /* Spasi bawah lebih banyak */
  position: relative;
  display: inline-block;
  padding-bottom: 10px; /* Ruang untuk garis bawah */
}

#registration-section .info-card h3::after {
  content: '';
  position: absolute;
  left: 0; /* Mulai dari kiri */
  bottom: 0; /* Di bagian bawah teks */
  width: 100%; /* Lebar penuh */
  height: 4px; /* Ketebalan garis bawah */
  background: linear-gradient(90deg, #507D50, #7B9B7B); /* Gradien warna hijau */
  border-radius: 2px; /* Sedikit membulat */
  transform: scaleX(0); /* Awalnya tidak terlihat */
  transform-origin: bottom left;
  transition: transform 0.3s ease-out; /* Animasi saat hover */
}

#registration-section .info-card h3:hover::after {
  transform: scaleX(1); /* Tampil saat hover */
}

#registration-section .info-card ul {
  list-style: none; /* Hapus bullet default */
  padding-left: 0; /* Hapus padding default */
  margin-top: 20px;
}

#registration-section .info-card ul li {
  color: #404040; /* Warna teks abu-abu gelap */
  margin-bottom: 15px; /* Spasi antar item daftar */
  font-size: 1.1rem; /* Ukuran font sedikit lebih besar */
  line-height: 1.6; /* Ketinggian baris untuk keterbacaan */
  position: relative;
  padding-left: 30px; /* Ruang untuk ikon kustom */
}

#registration-section .info-card ul li::before {
  content: '\2713'; /* Simbol centang kustom */
  font-family: 'Font Awesome 5 Free'; /* Pastikan Font Awesome dimuat */
  font-weight: 900;
  color: #507D50; /* Warna hijau untuk centang */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  margin-right: 10px;
}

/* Ensure Font Awesome is loaded. If not, consider linking it in HTML head */
/* Example: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> */

.registration-form {
  padding: 40px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  outline: none;
}

.submit-btn {
  background: var(--green-gradient);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: var(--green-dark);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary-gradient);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  background: var(--secondary-dark);
}

.page-navigation {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.back-home {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-home:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.back-home i {
  margin-right: 8px;
}

/* Change wave colors from black to themed colors */
.wave-divider svg path {
  /* fill: transparent !important; */ /* Removed */
  opacity: 0.5;
  /* stroke: none !important; */ /* Removed */
}

.wave-divider svg path:nth-child(2) {
  /* fill: transparent !important; */ /* Removed */
  opacity: 0.3;
  /* stroke: none !important; */ /* Removed */
}

.wave-divider svg path:nth-child(3) {
  /* fill: transparent !important; */ /* Removed */
  opacity: 0.2;
  /* stroke: none !important; */ /* Removed */
}


.wave-separator svg .wave1 {
  /* fill: transparent !important; */ /* Removed */
  opacity: 0.8; /* Slight opacity for layered effect */
  /* stroke: none !important; */ /* Removed */
}

.wave-separator svg .wave2 {
  /* fill: transparent !important; */ /* Removed */
  opacity: 0.6; /* Slight opacity for layered effect */
  /* stroke: none !important; */ /* Removed */
}

.wave-separator svg .wave3 {
  /* fill: transparent !important; */ /* Removed */
  opacity: 0.4; /* Slight opacity for layered effect */
  /* stroke: none !important; */ /* Removed */
}

/* New animation for the SVG linear gradient */
@keyframes animateWaveGradient {
  0% { x1: 0%; x2: 200%; }
  100% { x1: -100%; x2: 100%; }
}

#waveGradient {
  animation: animateWaveGradient 15s linear infinite alternate; /* Apply animation to the gradient */
}

/* Responsive styling */
@media (max-width: 992px) {
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    row-gap: 50px; /* Slightly reduced for tablet view */
  }
  
  .registration-container {
    grid-template-columns: 1fr; /* Mengubah ke satu kolom untuk tablet */
    max-width: 600px; /* Menambah lebar maksimal kontainer */
    margin: 0 auto; /* Pusatkan kontainer */
  }

  .info-card {
    padding: 30px; /* Menyesuaikan padding kartu info */
    text-align: center; /* Pusatkan teks */
    align-items: center; /* Pusatkan item */
  }

  .info-card ul {
    text-align: left; /* Biarkan daftar tetap rata kiri */
  }
}

@media (max-width: 768px) {
  .hero-line {
    display: none;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .benefit-cards {
    flex-direction: column;
    gap: 20px;
  }
  
  .benefit-card {
    width: 100%;
    max-width: 250px;
  }
  
  .methods-container {
    grid-template-columns: 1fr;
  }
  
  .stages-grid {
    gap: 40px;
  }
  
  .animated-title {
    font-size: 2.6rem !important;
    margin-bottom: 10px;
  }
  
  .hero-line {
    margin: 10px auto;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 20px;
  }
  
  /* Stack benefit cards */
  .benefit-cards {
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
  }
  
  .benefit-card {
    width: 90%;
    margin: 0 auto;
  }
  
  /* Learning stages section */
  .learning-stages {
    padding: 40px 15px;
  }
  
  .stages-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  
  .stage-card {
    padding: 25px 15px 20px;
  }
  
  /* Alphabet section */
  .alphabet-container {
    gap: 10px;
  }
  
  .alphabet-letter {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  /* Methods section */
  .methods-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .method-card {
    margin-bottom: 15px;
  }

  .registration-container {
    grid-template-columns: 1fr; /* Pastikan satu kolom untuk mobile */
    max-width: 90%; /* Sesuaikan lebar agar tidak terlalu besar */
  }

  .info-card {
    padding: 25px; /* Kurangi padding untuk mobile */
  }
}

@media (max-width: 480px) {
  .alphabet-letter {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }
  
  .animated-title {
    font-size: 2.2rem;
  }
  
  .stage-card .stage-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Mobile-specific optimizations - Add at end of file */

@media (max-width: 768px) {
  /* Letter symbols positioning adjustment */
  .letter-symbol {
    font-size: 2rem; /* Smaller size */
    opacity: 0.3; /* More subtle */
  }
  
  /* Better positioned letters */
  .letter1 { top: 5%; left: 10%; }
  .letter2 { top: 15%; left: 30%; }
  .letter3 { top: 8%; right: 15%; }
  .letter4 { top: 25%; left: 20%; }
  .letter5 { top: 20%; right: 10%; }
  .letter6 { top: 40%; left: 15%; }
  .letter7 { top: 35%; right: 25%; }
  .letter8 { top: 55%; left: 30%; }
  .letter9 { top: 60%; right: 15%; }
  .letter10 { top: 15%; left: 70%; }
  .letter11 { top: 70%; left: 45%; }
  .letter12 { top: 50%; left: 55%; }
  .letter13 { top: 30%; right: 40%; }
  
  /* Fix hero content */
  .animated-title {
    font-size: 2.6rem !important;
    margin-bottom: 10px;
  }
  
  .hero-line {
    margin: 10px auto;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 20px;
  }
  
  /* Stack benefit cards */
  .benefit-cards {
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
  }
  
  .benefit-card {
    width: 90%;
    margin: 0 auto;
  }
  
  /* Learning stages section */
  .learning-stages {
    padding: 40px 15px;
  }
  
  .stages-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  
  .stage-card {
    padding: 25px 15px 20px;
  }
  
  /* Alphabet section */
  .alphabet-container {
    gap: 10px;
  }
  
  .alphabet-letter {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  /* Methods section */
  .methods-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .method-card {
    margin-bottom: 15px;
  }
}

@keyframes background-pan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* --- FORCING WAVE SEPARATOR VISIBILITY --- */
/* This section is added to aggressively override conflicting styles that hide the wave separator. */
.wave-separator,
.wave-separator svg,
.wave-separator svg path {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  fill: url(#waveGradient) !important; /* Ensure gradient is applied */
  stroke: none !important; /* Ensure no stroke interferes */
}

.wave-separator {
  /* Removed previous background, background-size, animation properties */
  margin: 0 !important; /* Remove any external margins */
  padding: 0 !important; /* Remove any external padding */
  position: relative !important; /* Ensure it respects document flow */
  z-index: 10 !important; /* Place it above regular content */
}

/* Comprehensive Mobile Responsive Design for Baca Tulis Page */
@media (max-width: 768px) {
  /* Hero Section */
  .reading-hero {
    padding: 60px 20px 40px;
    min-height: 70vh;
  }
  
  .hero-content {
    text-align: center;
    padding: 20px;
  }
  
  .animated-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
  }
  
  /* Benefit Cards */
  .benefit-cards {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .benefit-card {
    width: 100%;
    padding: 20px;
  }
  
  .benefit-card h3 {
    font-size: 1.3rem;
  }
  
  .benefit-card p {
    font-size: 0.9rem;
  }
  
  /* Hero CTA Button */
  .hero-cta {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
  }
  
  /* Navigation */
  .page-navigation {
    padding: 10px 20px;
  }
  
  .back-home {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  /* Learning Stages */
  .learning-stages {
    padding: 40px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .stages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stage-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .stage-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  .stage-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Registration Section */
  .registration-section {
    padding: 40px 20px;
  }
  
  .registration-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .registration-info,
  .registration-form {
    width: 100%;
  }
  
  .registration-form {
    padding: 20px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 12px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
  }
  
  /* Floating Letters - Reduce on mobile for performance */
  .floating-letters {
    display: none;
  }
  
  /* Wave Separator */
  .wave-separator {
    height: 60px;
  }
  
  .wave-separator svg {
    height: 60px;
  }
  
  /* Text adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Container */
  .container {
    padding: 0 15px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .reading-hero {
    padding: 50px 15px 30px;
    min-height: 60vh;
  }
  
  .hero-content {
    padding: 15px;
  }
  
  .animated-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .benefit-card {
    padding: 15px;
  }
  
  .benefit-card h3 {
    font-size: 1.1rem;
  }
  
  .benefit-card p {
    font-size: 0.8rem;
  }
  
  .hero-cta {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .page-navigation {
    padding: 8px 15px;
  }
  
  .back-home {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .learning-stages {
    padding: 30px 15px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stage-card {
    padding: 15px;
  }
  
  .stage-card h3 {
    font-size: 1.1rem;
  }
  
  .stage-card p {
    font-size: 0.8rem;
  }
  
  .registration-section {
    padding: 30px 15px;
  }
  
  .registration-form {
    padding: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px;
  }
  
  .submit-btn {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .wave-separator {
    height: 40px;
  }
  
  .wave-separator svg {
    height: 40px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  .container {
    padding: 0 10px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .reading-hero {
    padding: 40px 20px 20px;
    min-height: 50vh;
  }
  
  .animated-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .benefit-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .benefit-card {
    flex: 1;
    min-width: 200px;
  }
  
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .reading-hero {
    padding: 80px 40px 60px;
  }
  
  .animated-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .benefit-cards {
    gap: 25px;
  }
  
  .benefit-card {
    padding: 25px;
  }
  
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .stage-card {
    padding: 25px;
  }
  
  .registration-container {
    gap: 40px;
  }
  
  .container {
    padding: 0 30px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .reading-hero {
    padding: 100px 60px 80px;
  }
  
  .animated-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .benefit-cards {
    gap: 30px;
  }
  
  .benefit-card {
    padding: 30px;
  }
  
  .stages-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
  
  .stage-card {
    padding: 30px;
  }
  
  .registration-container {
    gap: 50px;
  }
  
  .container {
    max-width: 1400px;
    padding: 0 40px;
  }
}

/* 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 {
  .page-navigation,
  .hero-cta,
  .floating-letters,
  .wave-separator {
    display: none !important;
  }
  
  .reading-hero {
    padding: 20px;
    min-height: auto;
  }
  
  .benefit-cards {
    flex-direction: column;
  }
  
  .stages-grid {
    grid-template-columns: 1fr;
  }
  
  .registration-container {
    flex-direction: column;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .reading-hero {
    page-break-after: avoid;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .floating-letters,
  .animated-title,
  .stage-card,
  .benefit-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .reading-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffffff;
  }
  
  .stage-card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  
  .benefit-card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
}

