:root {
  --primary: #0f5132;
  --accent: #c9a227;
  --bg: #f8faf8;
  --text: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 7%;
  background: var(--primary);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000; /* Pastikan navbar selalu di depan */
}

.navbar-logo {
  color: white;
  font-size: 1.8rem;
}

.navbar-logo span {
  color: var(--accent);
}

.navbar-nav a {
  color: white;
  margin: 0 1rem;
  font-size: 1.1rem;
  text-decoration: none;
}

.navbar .dropdown {
  position: relative;
  display: inline-block;
}

.navbar .dropbtn {
  color: #f9f5f5;
  font-size: 1.1rem;
  margin: 0 1rem;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
}

.navbar .dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 150px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

.navbar .dropdown-content a {
  color: #000;
  padding: 8px 12px;
  display: block;
  font-size: 0.95rem;
  text-align: center;
}

.navbar .dropdown-content a:hover {
  background-color: #f1f1f1;
}

.navbar .dropdown:hover .dropdown-content {
  display: block;
}

.login-box {
  margin-left: 1rem;
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-box:hover {
  background: white;
  color: var(--primary);
}

/* HERO */
.hero {
  height: 100vh;
  background: url("../img/header-bg.jpeg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 70px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero .content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero span {
  color: var(--accent);
}

.cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 10px 25px;
  background: var(--accent);
  color: black;
  border-radius: 25px;
}

/* SECTION */
section {
  padding: 5rem 7%;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: var(--primary);
  color: white;
}

table td,
table th {
  padding: 10px;
  border: 1px solid #ccc;
}

/* ===== HAMBURGER ===== */
#hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  #hamburger-menu {
    display: block;
  }

  .navbar-nav {
    position: absolute;
    top: 70px;
    right: 7%;
    width: 220px;
    background: #0f5132;
    flex-direction: column;
    padding: 15px;
    display: none;
    border-radius: 10px;
    z-index: 999;
  }

  .navbar-nav.active {
    display: flex;
  }
}
/* ===== ABOUT SECTION ===== */
.about-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: f;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* BOX KANAN */
.about-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-box .box {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.about-box .box:hover {
  transform: translateY(-5px);
}

.about-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-box ul {
  padding-left: 1rem;
}

.about-box li {
  margin-bottom: 5px;
}

/* ===== PROFILE TABLE ===== */
.profile table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.profile th {
  background-color: var(--primary);
  color: white;
  padding: 12px;
}

.profile td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.profile tr:nth-child(even) {
  background-color: #f2f2f2;
}

.profile tr:hover {
  background-color: #e9f5ee;
}

/* ===== MAP SECTION ===== */
.map {
  text-align: center;
}

.map-container {
  margin-top: 1.5rem;
}

.map iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 10px;
}

/* Tombol */
.btn-map {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 25px;
  transition: 0.3s;
}

.btn-map:hover {
  background: var(--accent);
  color: black;
}

/* Sejarah Masjid */
.section-sejarah {
  padding: 6rem 10%;
  background: #f4f8f8;
  min-height: 100vh;
}

.section-sejarah .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-sejarah h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.section-sejarah p {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(15, 81, 50, 0.2);
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-item .year {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

/* Visi & Misi */
.section-visi-misi {
  padding: 6rem 10%;
  background: #fefefe;
  min-height: 100vh;
}

.section-visi-misi .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-visi-misi h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.section-visi-misi .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.section-visi-misi .card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
  max-width: 400px;
  text-align: left;
}

.section-visi-misi .card h2 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.section-visi-misi .card p,
.section-visi-misi .card ul {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.section-visi-misi .card ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  list-style: disc;
  list-style-position: inside;
}

.section-visi-misi .card ul li::before {
  content: none;
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Struktur Pengurus */
.section-struktur {
  padding: 6rem 10%;
  background: #f4f8f8;
  min-height: 100vh;
}

.section-struktur .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-struktur h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.section-struktur p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
}

/* Table Modern */
.table-wrapper {
  overflow-x: auto;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.table-wrapper table th,
.table-wrapper table td {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  color: #333;
}

.table-wrapper table th {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.table-wrapper table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table-wrapper table tr:hover {
  background-color: #e2f0e2;
  transition: 0.3s;
}

/* Section Kegiatan pesantren */

.section-kegiatan .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-kegiatan h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-kegiatan p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

/* Card Kegiatan */
.kegiatan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.kegiatan-cards .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.kegiatan-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.kegiatan-cards .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.kegiatan-cards .card-content {
  padding: 1.5rem;
}

.kegiatan-cards .card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.kegiatan-cards .card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Section Kegiatan mengaji */
.section-kegiatan {
  padding: 6rem 10%;
  background: #f8faf8;
  min-height: 100vh;
}

.section-kegiatan .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-kegiatan h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-kegiatan p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

/* Card Kegiatan */
.kegiatan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.kegiatan-cards .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.kegiatan-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.kegiatan-cards .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.kegiatan-cards .card-content {
  padding: 1.5rem;
}

.kegiatan-cards .card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.kegiatan-cards .card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Profil Section */
.section-profil {
  padding: 6rem 10%;
  background: #f8faf8;
  min-height: 100vh;
}

.section-profil .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-profil h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-profil p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

/* Card Profil */
.profil-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.profil-cards .card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.profil-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profil-cards .card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.profil-cards .card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Jadwal Sholat Section */
.section-jadwal {
  padding: 6rem 10%;
  background: #f8faf8;
  min-height: 100vh;
}

.section-jadwal .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-jadwal h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-jadwal p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

/* Jadwal Cards */
.jadwal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.jadwal-cards .card {
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.jadwal-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.jadwal-cards .card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.jadwal-cards .card p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.5;
}

/* --- dashboard_admin.php --- */
body {
  background-color: #f4f7f6;
  font-family: "Poppins", sans-serif;
}

/* --- SIDEBAR LAYOUT --- */
.sidebar {
  min-height: 100vh;
  background: #212529;
  color: white;
  position: fixed;
  width: 16.6%;
}

.main-content {
  margin-left: 16.6%;
  padding: 30px;
}

/* --- NAVIGATION LINKS --- */
.nav-link {
  color: #adb5bd;
  margin-bottom: 5px;
  border-radius: 5px;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: #0d6efd;
}

/* --- CARDS DESIGN --- */
.card-custom {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.card-custom:hover {
  transform: translateY(-5px);
}

/* --- BACKGROUND GRADIENTS --- */
.bg-gradient-green {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
}

.bg-gradient-blue {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
}

/* --- Kelola_user.php ---*/
body {
  background-color: #f4f7f6;
  font-family: "Poppins", sans-serif;
}

/* --- ELEMENT CARDS --- */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- BADGES & ROLES --- */
.badge-role {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 50px;
}

body {
  background-color: #f4f7f6;
  font-family: "Poppins", sans-serif;
}

/* --- KAS --- */
.card-ringkasan {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- WARNA SUMBER DANA --- */
.bg-tunai {
  background: #2ecc71;
  color: white;
}

.bg-bank {
  background: #3498db;
  color: white;
}

/* --- agenda --- */
body {
  background-color: #f4f7f6;
  font-family: "Poppins", sans-serif;
}

/* --- KOMPONEN KARTU --- */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- KOMPONEN TOMBOL --- */
.btn-custom {
  border-radius: 50px;
}
