/* style.css - Perbaikan Responsivitas dan Gambar */
:root {
  --primary: #1a56db;
  --primary-dark: #163ea7;
  --secondary: #f5b400;
  --secondary-light: #ffcf5a;
  --accent: #e11d48;
  --light: #f8fafc;
  --dark: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --success: #0ea5e9;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Reset & Dasar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================================= */
/* 1. NAVBAR - RESPONSIF */
/* ================================================= */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Menu Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ================================================= */
/* 2. HEADER & HERO SECTION - RESPONSIF */
/* ================================================= */

header {
  background: linear-gradient(135deg, #10255c, #0d1e4d);
  color: white;
  padding: 60px 20px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.hero .left {
  flex: 1;
  min-width: 280px;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA BUTTON */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 86, 219, 0.4);
}

/* Fitur & Kartu di Header */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* Definisi .card umum untuk About, Contact, dan Sistem Kami */
.card {
  background: var(--card);
  color: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Override untuk kartu di dalam HEADER */
header .features .card,
.hero .right.card {
  background: rgba(70, 8, 227, 0.25);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(20, 126, 214, 0.1);
}

.card i, .card svg {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ================================================= */
/* 3. KONTEN UTAMA & LAYANAN - PERBAIKAN GAMBAR */
/* ================================================= */

section {
  padding: 60px 0;
}

h2 {
  margin: 0 0 20px;
  color: var(--primary-dark);
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Layanan - Perbaikan Gambar */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-icon img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-content p {
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: var(--success);
}

.service-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

/* ================================================= */
/* 4. MEMBERSHIP & ARTIKEL */
/* ================================================= */

/* Style untuk Membership Section */
.membership-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.membership-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  transition: var(--transition);
  border: 2px solid var(--light);
}

.membership-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.membership-card.premium:hover {
  border-color: var(--secondary);
}

.membership-card.premium {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  transition: var(--transition);
  border: 2px solid var(--light);
}

.membership-card.premium .price,
.membership-card.premium .features-list li i {
  color: var(--secondary);
}

.membership-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.membership-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.membership-card.premium .price {
  color: var(--secondary);
}

.membership-card .price small {
  font-size: 1rem;
  font-weight: 400;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.membership-card.premium .features-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.features-list li i {
  color: var(--success);
}

/* Style untuk Blog/Artikel Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.article-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 20px;
}

.article-content h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-content p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Tambahkan di style.css */
.select-membership {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    width: 100%;
    margin-top: auto;
}

.select-membership:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.select-membership.premium-btn {
    background: var(--secondary);
    color: var(--dark);
}

.select-membership.premium-btn:hover {
    background: var(--secondary-light);
}

/* Hapus class book-service dari styling membership */
.membership-card .book-service {
    all: unset;
}

.premium-btn {
    background: var(--secondary);
    color: var(--dark);
}

.premium-btn:hover {
    background: var(--secondary-light);
}

/* ================================================= */
/* 5. KONTAK & FOOTER - DESIGN PREMIUM */
/* ================================================= */

/* Styling for Hubungi Kami Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 30px;
}

.contact-grid > div {
  text-align: center;
  padding: 25px 20px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  background: linear-gradient(135deg, var(--card) 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.contact-grid > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 86, 219, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-grid > div:hover::before {
  left: 100%;
}

.contact-grid > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(26, 86, 219, 0.15);
  border-color: var(--primary);
}

.contact-grid i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-grid strong {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 12px;
  display: block;
  font-weight: 700;
}

.contact-grid p.muted {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Footer Premium */
footer {
  background: linear-gradient(135deg, #0a1647 0%, #1a237e 50%, #0d1e4d 100%);
  color: var(--light);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(245, 180, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 86, 219, 0.1) 0%, transparent 50%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover, cover, cover;
  background-position: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 50px;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 80px;
}

.footer-column p {
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
  color: #e0e0e0;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s ease;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links li:last-child {
  border-bottom: none;
}

.footer-links li:hover {
  transform: translateX(8px);
  color: var(--secondary-light);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.footer-links a:hover {
  color: var(--secondary-light);
}

.footer-links li i {
  color: var(--secondary);
  font-size: 1rem;
  min-width: 20px;
  transition: transform 0.3s ease;
}

.footer-links li:hover i {
  transform: scale(1.2);
}

/* Social Links Premium */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transition: all 0.4s ease;
  font-size: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 20px rgba(245, 180, 0, 0.4);
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(135deg, rgba(245, 180, 0, 0.1) 0%, rgba(26, 86, 219, 0.1) 100%);
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.newsletter h4 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(245, 180, 0, 0.2);
}

.newsletter-btn {
  background: var(--secondary);
  color: var(--dark);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 180, 0, 0.4);
}

/* Footer Bottom Premium */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #a0a0a0;
  font-size: 0.95rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-bottom-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--secondary-light);
}

.footer-bottom-links a:hover::after {
  width: 100%;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(245, 180, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary-light);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(245, 180, 0, 0.6);
}

/* ================================================= */
/* RESPONSIVE FOOTER - DESIGN PREMIUM */
/* ================================================= */

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 50px;
    padding: 0 20px 40px;
  }
  
  .footer-column {
    min-width: 100%;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links li {
    justify-content: center;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links li:hover {
    transform: translateY(-3px);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 40px 0 0;
  }
  
  .footer-content {
    padding: 0 15px 30px;
    gap: 40px;
  }
  
  .footer-column h3 {
    font-size: 1.3rem;
  }
  
  .footer-column p {
    font-size: 0.95rem;
  }
  
  .footer-links li {
    font-size: 0.95rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .footer-bottom {
    padding: 20px 15px;
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Animasi untuk footer premium */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Floating animation untuk background elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  animation-delay: 4s;
}
/* ================================================= */
/* 6. UTILITY & ANIMASI */
/* ================================================= */

/* Animasi */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background: var(--success);
  color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 1001;
  transform: translateX(150%);
  transition: transform 0.4s ease;
}

.notification.show {
  transform: translateX(0);
}

/* Animasi untuk card services */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: slideInUp 0.6s ease forwards;
  opacity: 0;
}

/* Stagger animation untuk service cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Animasi untuk hero section */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeInLeft 0.8s ease forwards;
}

/* ================================================= */
/* 7. ARTICLE DETAIL STYLES */
/* ================================================= */

.article-page {
  padding-top: 100px;
  padding-bottom: 80px;
  background: var(--light);
}

.article-content-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 0 20px;
}

.article-main-content {
  flex-grow: 1;
  max-width: 900px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 60px;
}

.article-header h1 {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--secondary-light);
  padding-bottom: 15px;
}

.article-meta span i {
  color: var(--secondary);
  margin-right: 5px;
}

.article-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--dark);
}

.article-body h2 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: 2rem;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.article-body h3 {
  color: var(--dark);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

.article-body p {
  margin-bottom: 25px;
  text-align: justify;
}

.article-body ul, .article-body ol {
  margin-left: 20px;
  margin-bottom: 25px;
  padding-left: 15px;
}

.article-body li {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Kotak Interaktif (Tips/Warning Box) */
.tip-box {
  background: #e6f7ff;
  border-left: 6px solid var(--success);
  padding: 25px;
  margin: 35px 0;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tip-box strong {
  color: var(--primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
}

.tip-box a {
  font-weight: 600;
}

/* Sidebar Interaktif */
.sidebar-wrapper {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-article {
  position: sticky;
  top: 100px;
  padding: 25px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  margin-bottom: 30px;
}

.sidebar-article h4 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  font-size: 1.2rem;
  font-weight: 700;
}

.sidebar-article a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  transition: var(--transition);
  font-size: 0.95rem;
  border-radius: 5px;
  margin-left: -10px;
}

.sidebar-article a:hover {
  color: var(--primary);
  background: var(--light);
  transform: translateX(5px);
}

/* Call to Action (CTA) Footer Artikel */
.article-cta-footer {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  border-top: 1px dashed #ccc;
  background: var(--secondary-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-cta-footer p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--dark);
  font-weight: 600;
}

/* Popup konfirmasi */
.confirmation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.confirmation-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.confirmation-popup.active .popup-content {
  transform: scale(1);
}

.popup-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.popup-close {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: var(--transition);
}

.popup-close:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Animasi loading untuk tombol */
@keyframes buttonLoading {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.cta-button.loading {
  animation: buttonLoading 1s infinite;
  pointer-events: none;
}

/* Animasi hover untuk card */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Animasi untuk navbar */
.navbar {
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================================= */
/* 8. RESPONSIVE DESIGN - PERBAIKAN MOBILE */
/* ================================================= */

@media (max-width: 900px) {
  /* NAVIGASI MOBILE: Memastikan toggler muncul dan menu berfungsi */
  .mobile-menu-toggle {
    display: block; /* **FIX**: Menampilkan tombol toggler */
  }

  .nav-links {
    /* **FIX**: Atur menu agar tersembunyi dan di bawah navbar */
    display: none; /* Sembunyikan menu links secara default */
    position: absolute;
    top: 85px; /* Sesuaikan agar menu muncul di bawah navbar */
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--card); 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    padding: 10px 24px;
    z-index: 999;
  }
  
  .nav-links.active {
    display: flex; /* **FIX**: Menampilkan menu saat class 'active' ditambahkan oleh JS */
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  /* Lanjutkan dengan aturan responsif lain yang sudah ada di sini: */
  .hero { flex-direction: column; gap: 30px; }
  .hero .left { min-width: 100%; }
  .hero .right { min-width: 100% !important; max-width: 100% !important; }
  /* ... (Aturan lain di 900px) ... */
}

/* Tambahkan aturan untuk memastikan tampilan desktop kembali normal */
@media (min-width: 901px) {
  .nav-links {
    display: flex !important; /* Pastikan menu selalu tampil di desktop */
  }
  .mobile-menu-toggle {
    display: none !important; /* Pastikan toggler tersembunyi di desktop */
  }
}