/* =============================================
   MA BAHRUL ULUM - Modern Islamic School CSS
   Aesthetic: Elegant Islamic Green + Gold
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary: #0d5c3a;
  --primary-dark: #083d27;
  --primary-light: #1a7a50;
  --secondary: #c8972b;
  --secondary-light: #e8b84b;
  --accent: #f0f7f4;
  --dark: #0f1f17;
  --text: #1e3a2f;
  --text-muted: #5a7a6a;
  --border: #d4e6dc;
  --white: #ffffff;
  --surface: #f8faf9;
  --card-bg: #ffffff;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Spacing */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(13,92,58,0.10);
  --shadow-md: 0 8px 40px rgba(13,92,58,0.15);
  --shadow-lg: 0 20px 60px rgba(13,92,58,0.20);
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 0.5rem 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(13,92,58,0.12);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-display);
  flex-shrink: 0;
  border: 2px solid var(--secondary);
}
.nav-brand-text { line-height: 1.2; }
.nav-brand-text .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.nav-brand-text .sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.navbar.scrolled .nav-brand-text .name { color: var(--primary); }
.navbar:not(.scrolled) .nav-brand-text .name { color: var(--white); }
.navbar:not(.scrolled) .nav-brand-text .sub { color: rgba(255,255,255,0.7); }
.navbar:not(.scrolled) .nav-logo { background: rgba(255,255,255,0.2); border-color: var(--secondary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover,
.nav-links a.active {
  background: var(--secondary);
  color: var(--white) !important;
}
.nav-ppdb {
  background: var(--secondary) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-ppdb:hover { background: var(--secondary-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--primary); }

/* ── HERO SECTION ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,151,43,0.25) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,151,43,0.2);
  border: 1px solid rgba(200,151,43,0.4);
  color: var(--secondary-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-title .highlight {
  color: var(--secondary-light);
  position: relative;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInUp 0.6s 0.4s ease both;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-light);
}
.stat-item .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.hero-image-side {
  position: relative;
  animation: fadeInRight 0.8s 0.2s ease both;
}
.hero-card-float {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}
.hero-card-float .arabic-calligraphy {
  font-size: 2.5rem;
  text-align: center;
  line-height: 1.8;
  color: var(--secondary-light);
  margin-bottom: 1rem;
}
.hero-card-float .quote-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}
.hero-card-float .quote-source {
  text-align: center;
  color: var(--secondary-light);
  font-size: 0.78rem;
  margin-top: 0.5rem;
  font-weight: 600;
}
.floating-badge {
  position: absolute;
  background: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.floating-badge.top-left { top: -15px; left: -20px; }
.floating-badge.bottom-right { bottom: -15px; right: -20px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,151,43,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.btn-green {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-green:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ── SECTION LAYOUT ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1rem;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 0;
  font-size: 0.82rem;
  overflow: hidden;
}
.announcement-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ann-label {
  background: var(--secondary);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}
.ann-scroll {
  overflow: hidden;
  flex: 1;
}
.ann-text {
  display: flex;
  gap: 3rem;
  animation: scrollText 30s linear infinite;
  white-space: nowrap;
}
@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13,92,58,0.2);
}
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.4rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.badge {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-green { background: var(--accent); color: var(--primary); border: 1px solid var(--border); }
.badge-gold { background: #fdf3dc; color: #92660a; border: 1px solid #f0d98a; }
.badge-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.card-title a { text-decoration: none; color: inherit; transition: var(--transition); }
.card-title a:hover { color: var(--primary); }
.card-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.card-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── FEATURES / PROGRAM ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  border: 1px solid var(--border);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}
.feature-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── NEWS GRID ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-grid .card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  font-size: 2.5rem;
}

/* ── TEACHERS ── */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.teacher-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  transition: var(--transition);
}
.teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.teacher-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
}
.teacher-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.teacher-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}
.teacher-role { color: var(--secondary); font-size: 0.8rem; font-weight: 600; }
.teacher-mapel { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.25rem; }

/* ── PRESTASI ── */
.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.prestasi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}
.prestasi-card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }
.prestasi-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: #fdf3dc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prestasi-level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.prestasi-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.93rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.prestasi-year { color: var(--text-muted); font-size: 0.8rem; }

/* ── EKSKUL ── */
.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.ekskul-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
}
.ekskul-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ekskul-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.ekskul-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; line-height: 1.5; }
.ekskul-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.2rem; }
.ekskul-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content {
  position: relative;
  text-align: center;
  color: var(--white);
}
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-content p {
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--accent);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-value { font-weight: 600; color: var(--primary-dark); font-size: 0.95rem; }

/* ── FORM ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,92,58,0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-brand .logo-icon {
  width: 44px; height: 44px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
}
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--secondary-light); }
.footer-links a::before { content: '›'; font-size: 1.1rem; color: var(--secondary); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--secondary-light); text-decoration: none; }

/* ── ALERT / FLASH ── */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 6rem 0 3rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page-header p { color: rgba(255,255,255,0.7); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--secondary-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── ADMIN ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: var(--primary-dark);
  color: var(--white);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-logo {
  width: 40px; height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sidebar-title { font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
.sidebar-subtitle { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

.sidebar-nav { padding: 1rem 0; }
.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  padding: 0.75rem 1.5rem 0.25rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-left-color: var(--secondary);
}
.sidebar-nav a .icon { font-size: 1rem; width: 20px; text-align: center; }

.admin-main {
  margin-left: 260px;
  flex: 1;
  background: #f5f7f5;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--white);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}
.admin-topbar h1 { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); }
.admin-content { padding: 2rem; }

/* Admin Cards */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.icon-green { background: var(--accent); color: var(--primary); }
.icon-gold { background: #fdf3dc; color: #92660a; }
.icon-blue { background: #eff6ff; color: #1e40af; }
.icon-purple { background: #faf5ff; color: #7c3aed; }
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); font-family: var(--font-display); line-height: 1; }
.stat-card .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Table */
.table-container { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-title { font-weight: 700; color: var(--primary-dark); font-size: 1rem; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--accent);
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem; box-shadow: var(--shadow); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; padding: 0.75rem 1rem; border-radius: 8px; }
  .hamburger { display: flex; }
  .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

/* ── UTILITIES ── */
.bg-green { background: var(--accent); }
.bg-dark { background: var(--dark); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none; }
