/* ================================  
   Tema Modern Islami - style.css  
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@600&family=Poppins:wght@400;600&display=swap');

/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark/Light Mode Variables */
:root {
  --bg1: #0b1220;
  --bg2: #08182a;
  --card-bg: rgba(255,255,255,0.05);
  --accent: #10b981;
  --accent2: #facc15;
  --text: #f1f5f9;
  --muted: #a1acbd; /* lebih kontras */
  --bg-footer: #0f172a;
  --footer-text: #e2e8f0;
}

html.light {
  --bg1: #f9fafb;
  --bg2: #f3f4f6;
  --card-bg: rgba(0,0,0,0.05);
  --accent: #059669;
  --accent2: #d97706;
  --text: #111827;
  --muted: #4b5563;
  --bg-footer: #f3f4f6;
  --footer-text: #374151;
}

/* Body */
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg1);
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  color: var(--text);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 15px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Serif', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent2);
  text-decoration: none;
}

.site-header .brand img {
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--accent);
}

.main-nav {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.main-nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}

.main-nav a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 30px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(16,185,129,0.2), rgba(250,204,21,0.15));
  margin-top: 20px;
}

.hero h1 {
  font-family: 'Noto Serif', serif;
  font-size: 28px;
  margin-bottom: 10px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
}

/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 25px;
}

/* Quote Card */
.quote {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 16px;
  transition: transform .2s;
}
.quote:hover { transform: translateY(-4px); }
.quote p {
  font-size: 20px;
  font-style: italic;
}
.quote .meta {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #04202a;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: opacity .3s;
}
.btn:hover { opacity: 0.9; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
}

/* Sidebar Cards */
.card {
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Galeri Kutipan */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
}
.gallery-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s;
}
.gallery-card:hover { transform: translateY(-4px); }
.gallery-card p {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 10px;
}
.gallery-card .meta {
  font-size: 13px;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Page Content */
.page-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-top: 25px;
}
.page-content h1 {
  font-family: 'Noto Serif', serif;
  font-size: 26px;
  margin-bottom: 15px;
  color: var(--accent2);
  text-align: center;
}
.page-content h2 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent);
}
.page-content p { margin-bottom: 12px; }
.page-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}
.page-content ul li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  background: var(--bg-footer);
  color: var(--footer-text);
  padding: 40px 20px 20px;
  margin-top: 40px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.site-footer h3.brand {
  color: var(--accent2);
  font-family: 'Noto Serif', serif;
}
.site-footer h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--accent);
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer ul li { margin-bottom: 6px; }
.site-footer ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.site-footer ul li a:hover { color: var(--accent2); }

/* Responsive */
@media(max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(-10px);
  }
  body.nav-open .main-nav {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .main-nav a {
    margin: 8px 0;
    text-align: center;
    color: var(--text);
    font-weight: 600;
  }
  body.nav-open .menu-toggle {
    transform: rotate(180deg);
  }
}

/* Menu Toggle */
.menu-toggle {
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s ease;
}
./* ===========================
   Tombol Affiliate - Santri Gabut
   =========================== */
.affiliate-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #6a9ffb);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.affiliate-btn:hover {
  background: linear-gradient(135deg, #5b89f7, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.affiliate-btn:active {
  transform: scale(0.97);
}

/* Dark Mode Support */
body.dark-mode .affiliate-btn {
  background: linear-gradient(135deg, #1f4ed8, #3b82f6);
  box-shadow: 0 2px 6px rgba(255,255,255,0.1);
}

body.dark-mode .affiliate-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 4px 10px rgba(255,255,255,0.15);
}
/* ============================
   Styling Khusus About Page
   ============================ */
.page-content {
  background: var(--card-bg);
  padding: 40px 28px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  margin-top: 30px;
  transition: all 0.3s ease;
}

.page-content:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Judul Utama */
.page-content h1 {
  font-family: 'Noto Serif', serif;
  font-size: 30px;
  color: var(--accent2);
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(250, 204, 21, 0.3);
  display: inline-block;
  padding-bottom: 6px;
}

/* Subjudul (Visi, Misi, Tagline) */
.page-content h2 {
  font-size: 22px;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

/* Paragraf */
.page-content p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* List Misi */
.page-content ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.page-content ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}
.page-content ul li::before {
  content: "🟢";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}

/* Tagline */
.page-content em {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent2);
  font-weight: 600;
  margin: 1.5rem 0;
}

/* Link Kontak */
.page-content a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.3s ease;
}
.page-content a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Animasi lembut saat scroll */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-content h1, .page-content h2, .page-content p, .page-content ul {
  animation: fadeUp 0.6s ease forwards;
}