/* =============================================
   AYO NGAJI — LEARN ISLAM TOGETHER
   Brand: Ayo Ngaji (info.ayo-ngaji.my.id)
   Teal (#0D9488) Theme — Museum Quality Storytelling
   Cloned from ziarahiraq.my.id template
   ============================================= */

/* --- VARIABLES --- */
:root {
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;
  --green: #059669;
  --green-light: #34D399;
  --cream: #FEF3C7;
  
  --blue-900: #132038;
  --blue-800: #1a2d52;
  --blue-700: #2a4a7f;
  --blue-600: #3a6bb5;
  --blue-500: #5a8ad4;
  
  --dark-bg: #0f1724;
  --dark-surface: #182028;
  --dark-card: #1e2830;
  --dark-border: #2a3540;
  
  --text-primary: #e8edf2;
  --text-secondary: #a0aab8;
  --text-muted: #6b7888;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  z-index: 1000;
  padding: 0.8rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--teal-light);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span { color: var(--blue-500); font-weight: normal; }

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--teal-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blue-600);
  color: var(--blue-500);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 6px;
}

/* --- HERO NEW --- */
.hero-new {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(13,148,136,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(20,184,166,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0a0f16 0%, #111820 30%, #1a2840 60%, #111820 100%);
  position: relative;
  overflow: hidden;
}
.hero-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.hero-new::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--dark-bg), transparent);
  pointer-events: none;
}
.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  direction: rtl;
  opacity: 0.9;
}
.hero-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 800px;
}
.hero-title .hl {
  color: var(--teal-light);
  display: block;
}
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  z-index: 2;
  position: relative;
}
.hero-cta {
  font-family: 'Inter', sans-serif;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}
.hero-cta-primary {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: white;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,148,136,0.25); }
.hero-cta-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--dark-border);
}
.hero-cta-secondary:hover { border-color: var(--teal); color: var(--teal-light); }
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  z-index: 2;
  position: relative;
}
.hero-stat {
  background: rgba(30,40,48,0.9);
  padding: 1.2rem 0.8rem;
  text-align: center;
}
.hero-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal-light);
  display: block;
}
.hero-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  display: block;
}

/* --- SECTION WRAPPER --- */
.section-new {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-full {
  width: 100%;
  padding: 4rem 0;
}
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
}
.section-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
}
.section-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue-600));
  margin: 1rem 0 2rem;
}

/* --- CATEGORY CARDS (like city-grid) --- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  text-decoration: none;
  transition: transform 0.4s;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
}
.category-card:hover { transform: translateY(-4px); }
.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.category-card-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
}
.category-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.category-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.category-card-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--teal-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- PILLAR CARDS (like tokoh-grid) --- */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.pillar-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}
.pillar-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--blue-600));
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar-card:hover::before { opacity: 1; }
.pillar-num {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(13,148,136,0.12);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  line-height: 1;
}
.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.pillar-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.pillar-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--teal-light);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.pillar-hook {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.pillar-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.8rem;
  margin-right: 0.3rem;
  background: rgba(13,148,136,0.15);
  color: var(--teal-light);
}
.pillar-more {
  text-align: center;
  margin-top: 2rem;
}
.pillar-more a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--teal-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}
.pillar-more a:hover { opacity: 0.7; }

/* --- ARTICLE CARDS --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.article-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}
.article-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.article-card-body {
  padding: 1.2rem;
}
.article-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.6rem;
  background: rgba(13,148,136,0.15);
  color: var(--teal-light);
}
.article-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s;
  font-weight: 600;
}
.article-card:hover .article-card-title { color: var(--teal-light); }
.article-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--dark-border);
}
.article-more {
  text-align: center;
  margin-top: 2.5rem;
}
.article-more a {
  font-family: 'Inter', sans-serif;
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}
.article-more a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(58,107,181,0.3); }

/* --- CTA SECTION --- */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(ellipse at center, rgba(13,148,136,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark-bg), #0f1724);
  position: relative;
}
.cta-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
}
.cta-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.3); }
.cta-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}
.cta-guide:hover { border-color: var(--teal); color: var(--teal-light); }

/* --- FOOTER --- */
.footer-new {
  background: linear-gradient(180deg, #0a0f16, #0d1218);
  border-top: 1px solid var(--dark-border);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.footer-brand-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}
.footer-links a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- BLOG SECTION --- */
.blog-section {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

/* --- RESPONSIVE --- */
@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .hero-new { padding: 7rem 2rem 5rem; }
  .section-new { padding: 5rem 2rem; }
}
@media (min-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    gap: 0.8rem;
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex !important; position: static !important; background: none !important; padding: 0 !important; border: none !important; }
}

/* --- SMOOTH SCROLL --- */
html { scroll-behavior: smooth; }
