/* IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS VARIABLES */
:root {
  --primary: #0077b6;
  /* Rich Sky/Ocean Blue */
  --primary-light: #00b4d8;
  /* Vibrant Light Blue */
  --accent: #d97706;
  /* Luxurious Gold */
  --accent-hover: #b45309;
  /* Deep Gold */
  --bg-light: #f0f9ff;
  /* Very Light Sky/Blue Tint Background */
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  /* Dark slate */
  --text-muted: #475569;
  /* Muted gray */
  --text-light: #f8fafc;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0, 119, 182, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 119, 182, 0.08);
  --shadow-lg: 0 20px 30px rgba(0, 119, 182, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}


body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.font-islamic {
  font-family: 'Amiri', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(0, 119, 182, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--accent);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  font-size: 28px;
  color: var(--accent);
}

.logo {
  color: var(--text-light);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: rgba(248, 250, 252, 0.9);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu li.active>a {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* DROPDOWN */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  list-style: none;
  width: 200px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
  margin-top: 0;
  /* Ubah dari 10px menjadi 0 untuk menutup celah kosong yang memicu hilangnya hover */
  border-top: 3px solid var(--accent);
  animation: fadeIn 0.3s ease;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 25px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* MOBILE TOGGLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* HERO SECTION */
.hero {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(3, 73, 115, 0.8), rgba(0, 119, 182, 0.75)), url("../img/Masjid_Agung_Solok.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--text-light);
  padding-top: 100px;
  padding-bottom: 120px;
  border-bottom: 8px solid var(--accent);
}

.hero-content {
  max-width: 800px;
  padding: 40px 20px;
}

.hero-ornament {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 35px;
  color: rgba(248, 250, 252, 0.95);
  font-weight: 300;
}

.hero-btn {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary {
  padding: 12px 30px;
  background: var(--accent);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6);
}

.btn-secondary {
  padding: 12px 30px;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 48px;
  border: 2px solid rgba(248, 250, 252, 0.7);
  border-radius: 15px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.scroll-down:hover {
  border-color: var(--accent);
}

.scroll-down::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    top: 8px;
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    top: 26px;
    opacity: 0;
  }
}

/* ABOUT SECTION */
.about {
  padding: 80px 8%;
  background: var(--bg-white);
}

.about-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-light);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.02);
}

.about-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 80px;
  height: 80px;
  border-top: 5px solid var(--accent);
  border-left: 5px solid var(--accent);
  border-top-left-radius: var(--radius-md);
  z-index: 1;
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  text-align: justify;
}

/* KEGIATAN & EVENT & KAJIAN HOME/GRID */
.kegiatan,
.kajian,
.event {
  padding: 80px 8%;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-header .ornament {
  color: var(--accent);
  font-size: 24px;
  margin: 8px 0;
  display: block;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.kegiatan-container,
.kajian-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* CARD SYSTEM */
.kegiatan-card,
.kajian-card,
.event-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}

.kegiatan-card:hover,
.kajian-card:hover,
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom: 3px solid var(--accent);
}

.kegiatan-card img,
.kajian-card img,
.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.kegiatan-card:hover img,
.kajian-card:hover img,
.event-card:hover img {
  transform: scale(1.05);
}

.card-content,
.kajian-content,
.event-content {
  padding: 25px;
}

.card-content h3,
.kajian-content h3,
.event-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.card-content p,
.event-content p {
  color: var(--text-muted);
  font-size: 14px;
}

.kajian-content .ustadz {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.kajian-content .waktu,
.event-content .waktu {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
}

/* EVENT DATE BADGE */
.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.event-date .day {
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.event-date .month {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* JADWAL SHOLAT PAGE & BOX */
.jadwal {
  padding: 80px 8%;
  background: var(--bg-white);
}

.jadwal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.jadwal .card {
  background: var(--bg-light);
  border: 1px solid rgba(0, 119, 182, 0.1);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.jadwal .card:hover {
  background: var(--primary);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.jadwal .card:hover h3 {
  color: var(--accent);
}

.jadwal .card:hover p {
  color: var(--text-light);
}

.jadwal .card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary);
}

.jadwal .card p {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-light);
}

.active-sholat {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  border: 2px solid var(--accent) !important;
  transform: scale(1.05);
}

.active-sholat h3 {
  color: var(--accent) !important;
}

.active-sholat p {
  color: var(--text-light) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* SEJARAH TIMELINE */
.sejarah {
  padding: 80px 8%;
  background: var(--bg-white);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 4px;
  background: var(--primary-light);
  border-radius: 2px;
  opacity: 0.3;
}

.timeline-card {
  display: flex;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  position: relative;
  margin-left: 60px;
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.timeline-card::after {
  content: "";
  position: absolute;
  top: 30px;
  left: -40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg-white);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
  z-index: 2;
}

.timeline-card img {
  width: 200px;
  object-fit: cover;
}

.timeline-text {
  padding: 25px;
  flex: 1;
}

.timeline-text .tahun {
  display: inline-block;
  background: var(--accent);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-text h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.timeline-text p {
  color: var(--text-muted);
  font-size: 14px;
}

/* VISI & MISI */
.visi-misi {
  padding: 80px 8%;
  background: var(--bg-white);
}

.visi-box {
  max-width: 800px;
  margin: 0 auto 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-light);
  padding: 45px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-bottom: 5px solid var(--accent);
  position: relative;
}

.visi-box::before {
  content: "Visi";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-light);
  padding: 4px 24px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.visi-box p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  font-style: italic;
}

.misi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.misi-card {
  background: var(--bg-light);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary-light);
  transition: var(--transition);
}

.misi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}

.misi-card .icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

.misi-card p {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

/* STRUKTUR PENGURUS */
.struktur {
  padding: 80px 8%;
  background: var(--bg-white);
  text-align: center;
}

.ketua-card {
  background: var(--bg-light);
  padding: 35px;
  border-radius: var(--radius-lg);
  width: 280px;
  margin: 0 auto 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 119, 182, 0.1);
  border-top: 4px solid var(--accent);
  transition: var(--transition);
}

.ketua-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ketua-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.ketua-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.ketua-card span {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.pengurus-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pengurus-card {
  background: var(--bg-light);
  padding: 25px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 119, 182, 0.05);
  transition: var(--transition);
}

.pengurus-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pengurus-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--bg-white);
}

.pengurus-card h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.pengurus-card p {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* FOOTER AS EXCLUSIVE CONTACT BLOCK */
.footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 60px 8% 20px;
  border-top: 5px solid var(--accent);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 20px;
}

.footer h4 {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer p {
  color: rgba(248, 250, 252, 0.8);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(248, 250, 252, 0.8);
  font-size: 14px;
}

.footer ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(248, 250, 252, 0.9);
}

.footer-contact .icon {
  color: var(--accent);
  font-size: 16px;
}

.contact-social-footer {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.contact-social-footer a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.contact-social-footer a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.6);
}

/* ======================================================== */
/* ================== ADMIN DASHBOARD & LOGIN ============= */
/* ======================================================== */

/* ADMIN LOGIN PAGE */
.login-body {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  border-top: 5px solid var(--accent);
  animation: fadeIn 0.5s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header .icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 10px;
}

.login-header h2 {
  font-size: 22px;
  color: var(--primary);
}

.login-header p {
  color: var(--text-muted);
  font-size: 13px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 119, 182, 0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fbfcfb;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
  background: #fff;
}

.btn-admin {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
  transition: var(--transition);
}

.btn-admin:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  border-left: 4px solid;
  transition: opacity 0.5s ease;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left-color: #10b981;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left-color: #ef4444;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left-color: #f59e0b;
}

/* CUSTOM SIDEBAR ADMIN PANEL */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-light);
}

.admin-sidebar {
  width: 260px;
  background: var(--primary);
  color: var(--text-light);
  border-right: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
}

.admin-logo-area {
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.admin-logo-area h2 {
  color: var(--text-light);
  font-size: 18px;
  font-weight: 700;
}

.admin-logo-area span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-user-profile {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.admin-user-profile .avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 10px;
  border: 2px solid var(--accent);
}

.admin-user-profile h4 {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 4px;
}

.admin-user-profile span {
  font-size: 11px;
  color: var(--accent);
  background: rgba(217, 119, 6, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.admin-menu {
  list-style: none;
  padding: 20px 0;
  flex: 1;
}

.admin-menu li {
  margin-bottom: 5px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 25px;
  color: rgba(248, 250, 252, 0.85);
  font-size: 14px;
  font-weight: 500;
}

.admin-menu a:hover,
.admin-menu li.active a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.admin-menu li.active a::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--accent);
  position: absolute;
  left: 0;
  border-radius: 0 4px 4px 0;
}

.admin-footer-link {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-footer-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}

.admin-footer-link a:hover {
  background: #ef4444;
  color: var(--text-light);
}

/* ADMIN CONTENT LAYOUT */
.admin-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-header {
  background: var(--bg-white);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 119, 182, 0.05);
}

.admin-header h1 {
  font-size: 20px;
  color: var(--primary);
}

.admin-header .nav-btn-home {
  background: var(--bg-light);
  border: 1px solid rgba(0, 119, 182, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.admin-header .nav-btn-home:hover {
  background: var(--primary);
  color: var(--text-light);
}

.admin-main-body {
  padding: 30px;
  flex: 1;
}

/* STATS WIDGETS */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--primary);
}

.stat-card:nth-child(2) {
  border-left-color: var(--accent);
}

.stat-card:nth-child(3) {
  border-left-color: var(--primary-light);
}

.stat-info h3 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 36px;
  color: rgba(0, 119, 182, 0.2);
}

/* DATA TABLE STYLE */
.admin-table-container {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  border: 1px solid rgba(0, 119, 182, 0.05);
}

.table-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-header-flex h2 {
  font-size: 18px;
}

.btn-add {
  background: var(--accent);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.2);
}

.btn-add:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  padding: 12px 15px;
  border-bottom: 2px solid rgba(0, 119, 182, 0.1);
}

.custom-table td {
  padding: 14px 15px;
  border-bottom: 1px solid rgba(0, 119, 182, 0.05);
  font-size: 14px;
}

.custom-table tr:hover {
  background: rgba(0, 119, 182, 0.02);
}

.table-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-action {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
}

.btn-edit {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-light);
}

.btn-edit:hover {
  background: var(--primary-light);
  color: var(--text-light);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.btn-delete:hover {
  background: #ef4444;
  color: var(--text-light);
}

/* FORM LAYOUTS FOR CREATE / EDIT */
.form-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  border: 1px solid rgba(0, 119, 182, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-full {
  grid-column: span 2;
}

.form-help {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.btn-save {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-save:hover {
  background: var(--primary-light);
}

.btn-cancel {
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-cancel:hover {
  background: #e2e8f0;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ======================================================== */
/* ================== RESPONSIVE MEDIA QUERIES ============ */
/* ======================================================== */

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }

  .footer-container>div:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {

  /* NAVBAR MOBILE */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 20px;
    transition: var(--transition);
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-top: none;
    margin-top: 5px;
    width: 100%;
  }

  .dropdown-menu li a {
    color: var(--text-light);
  }

  .dropdown:hover .dropdown-menu {
    display: none;
    /* disable hover on mobile */
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* HERO */
  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 15px;
  }

  /* ABOUT */
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* GRID RESPONSIVE */
  .kegiatan-container,
  .kajian-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  /* SHOLAT GRID */
  .jadwal-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* TIMELINE */
  .timeline::before {
    left: 20px;
  }

  .timeline-card {
    flex-direction: column;
    margin-left: 40px;
  }

  .timeline-card img {
    width: 100%;
    height: 180px;
  }

  .timeline-card::after {
    left: -30px;
    width: 16px;
    height: 16px;
    top: 25px;
  }

  /* STRUKTUR */
  .pengurus-container {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-container>div:last-child {
    grid-column: span 1;
  }

  /* ADMIN SYSTEM */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 3px solid var(--accent);
  }

  .admin-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 5px;
  }

  .admin-menu li {
    margin-bottom: 0;
  }

  .admin-menu a {
    padding: 8px 15px;
    font-size: 13px;
    border-radius: var(--radius-sm);
  }

  .admin-header {
    padding: 15px;
  }

  .admin-main-body {
    padding: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-full {
    grid-column: span 1;
  }
}