@import url("app-font.css?v=20261030-83");
/* ============================================
   FKKG CIKAMPEK - Main Stylesheet
   Theme: Education Green + Professional Blue
   ============================================ */

:root {
  /* Modern Indigo-Violet Theme */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-pink: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #0f172a;
  --gray: #64748b;
  --light-gray: #f8fafc;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4c1d95 100%);
  --carousel-overlay: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(49,46,129,0.72) 50%, rgba(99,102,241,0.55) 100%);
  --carousel-overlay-image: linear-gradient(135deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.45) 40%, rgba(99,102,241,0.5) 100%);
  --carousel-accent: linear-gradient(90deg, #f59e0b, #ec4899);
  --gradient-card: linear-gradient(135deg, #6366f1, #8b5cf6);
  --shadow: 0 4px 24px rgba(99,102,241,0.08);
  --shadow-lg: 0 12px 40px rgba(99,102,241,0.15);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: #ffffff;
}

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

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

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

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

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #c0392b; }

.btn-success {
  background: var(--success);
  color: white;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  max-width: min(420px, 62vw);
  text-decoration: none;
}
.logo i {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.logo img.site-logo {
  flex-shrink: 0;
}
.logo strong,
.logo .logo-sub {
  color: var(--secondary);
}
.logo-text-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;
  gap: 2px;
  min-width: 0;
}
.logo-text-wrap .logo-main {
  display: block !important;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  white-space: normal;
  word-break: keep-all;
}
.logo-text-wrap .logo-sub {
  display: block !important;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: rgba(99,102,241,0.1);
}

.btn-login {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
}
.btn-login:hover {
  background: var(--primary-dark) !important;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.user-menu .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.user-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px;
  display: none;
  z-index: 100;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--dark);
  font-size: 0.9rem;
}
.user-dropdown a:hover {
  background: var(--light-gray);
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 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='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ========== STATS ========== */
.stats {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-5px);
}
.stat-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}
.stat-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ========== SECTIONS ========== */
section {
  padding: 80px 0;
}

.section-badge {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.section-header h2 {
  flex: 1;
  font-size: 1.8rem;
  font-weight: 700;
}
.view-all {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.view-all:hover {
  gap: 8px;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
  line-height: 1.3;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 20px;
}

.feature-list {
  margin-bottom: 30px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 500;
}
.feature-list i {
  color: var(--primary);
  font-size: 1.1rem;
}

.image-placeholder {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
}
.image-placeholder i {
  font-size: 5rem;
  margin-bottom: 15px;
  opacity: 0.9;
}
.image-placeholder p {
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
  line-height: 1.35;
  max-width: 90%;
  margin: 0 auto;
}

/* ========== NEWS ========== */
.latest-news {
  background: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card .news-img {
  height: 180px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.news-card .news-body {
  padding: 20px;
}
.news-card .news-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 10px;
}
.news-card .news-meta i {
  margin-right: 4px;
}
.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card h3 a:hover {
  color: var(--primary);
}
.news-card p {
  font-size: 0.9rem;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== EVENTS ========== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-item {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}
.event-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.event-date {
  min-width: 70px;
  text-align: center;
  background: rgba(99,102,241,0.1);
  border-radius: 10px;
  padding: 12px 8px;
}
.event-date .day {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}

.event-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.event-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.event-info .event-meta {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--gray);
}
.event-info .event-meta i {
  color: var(--primary);
  margin-right: 4px;
}

/* ========== CTA ========== */
.cta {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 70px 0;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta p {
  opacity: 0.9;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: #b0b8c1;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-about .logo {
  color: white;
  margin-bottom: 15px;
}
.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact i {
  color: var(--primary-light);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.developed {
  color: var(--accent);
  font-weight: 600;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: var(--gradient-primary);
  color: white;
  padding: 140px 0 60px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.page-header p {
  opacity: 0.9;
  font-size: 1.05rem;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.breadcrumb a:hover { color: var(--accent); }

/* ========== PROFILE PAGE ========== */
.profil-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.profil-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.profil-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profil-card p {
  color: var(--gray);
  line-height: 1.8;
}

.visi-misi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}
.visi-box, .misi-box {
  background: white;
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.misi-box { border-top-color: var(--secondary); }
.visi-box h3, .misi-box h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.misi-box ol {
  padding-left: 20px;
  color: var(--gray);
}
.misi-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

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

/* ========== NAV DROPDOWN (Profil submenu) ========== */
.nav-menu li.has-dropdown {
  position: relative;
}
.nav-menu li.has-dropdown > a.nav-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-menu li.has-dropdown > a .dropdown-icon {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.nav-menu li.has-dropdown.open > a .dropdown-icon {
  transform: rotate(180deg);
}
.nav-menu li.has-dropdown.active-parent > a.nav-parent-link,
.nav-menu li.has-dropdown > a.nav-parent-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}
.nav-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 8px;
  z-index: 1100;
  list-style: none;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.nav-menu li.has-dropdown.open > .dropdown-menu {
  display: block;
  animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-menu .dropdown-menu li {
  margin: 0;
  list-style: none;
}
.nav-menu .dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--gray);
  white-space: nowrap;
}
.nav-menu .dropdown-menu a:hover,
.nav-menu .dropdown-menu a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}
/* Mobile: nested submenu inside hamburger */
@media (max-width: 768px) {
  .nav-menu li.has-dropdown {
    width: 100%;
  }
  .nav-menu li.has-dropdown > a.nav-parent-link {
    width: 100%;
    justify-content: space-between;
  }
  .nav-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #f1f5f9;
    margin: 4px 0 8px;
    display: none;
    min-width: 0;
    padding: 6px;
    border-radius: 8px;
  }
  .nav-menu li.has-dropdown.open > .dropdown-menu {
    display: block;
    animation: none;
  }
}

/* Profil sub-nav tabs (on profil pages) */
.profil-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px;
  background: #f1f5f9;
  border-radius: 12px;
}
.profil-subnav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}
.profil-subnav a:hover {
  background: #fff;
  color: var(--primary);
}
.profil-subnav a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
@media (max-width: 600px) {
  .profil-subnav {
    gap: 6px;
  }
  .profil-subnav a {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 10px 8px;
    font-size: 0.8rem;
  }
}

/* Photo avatars */
.struktur-avatar img,
.anggota-avatar img,
.user-foto-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.struktur-avatar.has-photo,
.anggota-avatar.has-photo {
  background: transparent;
  overflow: hidden;
  padding: 0;
}
.anggota-avatar.has-photo {
  border: 2px solid #e2e8f0;
}
.foto-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  display: block;
  margin-bottom: 8px;
}
.table-foto {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}
.table-foto-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Hierarchical Org Chart */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 10px 0 30px;
}
.org-level-label {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 12px;
  font-weight: 500;
}
.org-level {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.org-level-1 .struktur-card {
  border: 2px solid var(--primary);
  min-width: 240px;
}
.org-level-1 .struktur-avatar {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  width: 90px;
  height: 90px;
  font-size: 2rem;
}
.org-level-2 .struktur-card {
  border: 2px solid #818cf8;
  min-width: 220px;
}
.org-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, var(--primary), #c7d2fe);
  margin: 4px auto;
  position: relative;
}
.org-connector::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #c7d2fe;
}
.struktur-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  min-width: 200px;
  max-width: 260px;
}
.struktur-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.struktur-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 15px;
  font-weight: 600;
}
.struktur-card h4 {
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.struktur-card .jabatan {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}
@media (max-width: 600px) {
  .struktur-card { min-width: 160px; max-width: 100%; padding: 20px 14px; }
  .org-level-1 .struktur-avatar { width: 70px; height: 70px; font-size: 1.5rem; }
}

/* ========== LOGIN ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d7377 0%, #1a5276 100%);
  padding: 20px;
}
.login-box {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-box .logo {
  justify-content: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.25;
}
.login-box h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.5rem;
}
.login-box .subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 0.9rem;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e5e8;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--light-gray);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.form-group .input-icon {
  position: relative;
}
.form-group .input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}
.form-group .input-icon input {
  padding-left: 42px;
}
.login-box .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  margin-top: 10px;
}
.login-demo {
  margin-top: 25px;
  padding: 15px;
  background: var(--light-gray);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--gray);
}
.login-demo strong {
  color: var(--dark);
}
.login-error {
  background: #fdecea;
  color: var(--danger);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  display: none;
}
.back-home {
  text-align: center;
  margin-top: 20px;
}
.back-home a {
  color: var(--primary);
  font-size: 0.9rem;
}
.back-home a:hover {
  text-decoration: underline;
}

/* ========== DASHBOARD ========== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: var(--dark);
  color: #b0b8c1;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header .logo {
  color: white;
  font-size: 1.1rem;
}
.sidebar-user {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.sidebar-user .info h4 {
  color: white;
  font-size: 0.95rem;
}
.sidebar-user .info span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-light);
}
.sidebar-menu {
  padding: 15px 10px;
}
.sidebar-menu .menu-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 14px 6px;
  color: #64748b;
  font-weight: 600;
}
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #b0b8c1;
  margin-bottom: 2px;
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(99,102,241,0.3);
  color: white;
}
.sidebar-menu a i {
  width: 20px;
  text-align: center;
}
.sidebar-menu a.logout {
  color: #e74c3c;
  margin-top: 15px;
}
.sidebar-menu a.logout:hover {
  background: rgba(231,76,60,0.15);
}

.main-content {
  flex: 1;
  margin-left: 260px;
  background: var(--light-gray);
  min-height: 100vh;
}
.topbar {
  background: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar h2 {
  font-size: 1.3rem;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.dashboard-body {
  padding: 30px;
}

/* Statistik dashboard — 1 baris di desktop */
.dash-stats,
#dash-stats {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.dash-stat-card {
  background: white;
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
  min-width: 0;
  transition: var(--transition);
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.dash-stat-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.dash-stat-card .icon.green,
.dash-stat-card .icon.icon-berita { background: #9f1239; }
.dash-stat-card .icon.blue,
.dash-stat-card .icon.icon-kegiatan { background: #3b0764; }
.dash-stat-card .icon.orange,
.dash-stat-card .icon.icon-anggota { background: #eab308; }
.dash-stat-card .icon.red,
.dash-stat-card .icon.icon-galeri { background: #ef4444; }
.dash-stat-card .icon.icon-sekolah { background: #4c1d95; }
.dash-stat-card .icon.icon-pesan { background: #f43f5e; }
.dash-stat-card .dash-stat-text {
  min-width: 0;
}
.dash-stat-card h3 {
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}
.dash-stat-card p {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1200px) {
  .dash-stats,
  #dash-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  .dash-stats,
  #dash-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .dash-stat-card {
    padding: 12px 10px !important;
    border-radius: 14px;
    gap: 10px;
    flex-direction: row !important;
    width: auto !important;
    max-width: none !important;
  }
  .dash-stat-card .icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  .dash-stat-card h3 {
    font-size: 1.15rem;
  }
  .dash-stat-card p {
    font-size: 0.68rem;
  }
}

.dash-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}
.dash-card-header {
  padding: 18px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-card-header h3 {
  font-size: 1.05rem;
}
.dash-card-body {
  padding: 25px;
}

.table-responsive {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
table th {
  background: var(--light-gray);
  font-weight: 600;
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table tr:hover {
  background: rgba(99,102,241,0.04);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #d5f5e3; color: #1e8449; }
.badge-warning { background: #fef9e7; color: #b7950b; }
.badge-danger { background: #fadbd8; color: #c0392b; }
.badge-info { background: #d6eaf8; color: #2471a3; }
.badge-primary { background: #d1f2eb; color: #0e6655; }

.action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
}
.action-btns button,
.action-btns a.btn-edit,
.action-btns a.btn-delete,
.action-btns a.btn-view {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.85rem;
  text-decoration: none;
  box-sizing: border-box;
  pointer-events: auto;
  flex-shrink: 0;
}
.btn-edit { background: #d6eaf8; color: #2471a3; }
.btn-edit:hover { background: #2471a3; color: white; }
.btn-delete { background: #fadbd8; color: #c0392b; }
.btn-delete:hover { background: #c0392b; color: white; }
.btn-view { background: #d5f5e3; color: #1e8449; }
.btn-view:hover { background: #1e8449; color: white; }

/* Modal — di atas bottom-nav & overlay lain */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.15rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray);
}
.modal-body { padding: 25px; }
.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========== GALERI ========== */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.galeri-item {
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.galeri-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.galeri-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 15px 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== ANGGOTA ========== */
.anggota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}
.anggota-card {
  background: white;
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.anggota-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.anggota-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 auto 15px;
}
.anggota-card h4 { margin-bottom: 4px; }
.anggota-card .sekolah {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.anggota-card .mapel {
  color: var(--gray);
  font-size: 0.85rem;
}

/* ========== KONTAK ========== */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.kontak-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.kontak-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.kontak-item .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.kontak-item h4 {
  margin-bottom: 4px;
}
.kontak-item p {
  color: var(--gray);
  font-size: 0.9rem;
}
.kontak-form {
  background: white;
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
}

/* ========== FILTER / SEARCH ========== */
.filter-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-bar input,
.filter-bar select {
  padding: 10px 16px;
  border: 1.5px solid #e0e5e8;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: white;
}
.filter-bar input {
  flex: 1;
  min-width: 200px;
}
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination button {
  width: 40px;
  height: 40px;
  border: 1.5px solid #e0e5e8;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: var(--transition);
}
.pagination button:hover,
.pagination button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profil-content, .visi-misi, .kontak-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

@media (max-width: 768px) {
  /* Burger disembunyikan — navigasi pakai bottom nav */
  .hamburger { display: none !important; }
  .nav-menu { display: none !important; }
  .hero-content h1 { font-size: 1.55rem; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }
  .event-item { flex-direction: column; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 1.35rem; }
  section { padding: 28px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .login-box { padding: 30px 20px; }
}

/* ========== LOGO ========== */
.logo img.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ========== CAROUSEL ========== */
.carousel-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 70px;
  height: calc(100vh - 70px);
  min-height: 480px;
  overflow: hidden;
  background: var(--gradient-hero);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--carousel-overlay);
  z-index: 0;
}

.carousel-slide.has-image::before {
  background: var(--carousel-overlay-image);
}

/* Slide tanpa gambar: background penuh mengikuti tema */
.carousel-slide:not(.has-image) {
  background: var(--gradient-hero) !important;
  background-size: cover !important;
}
.carousel-slide:not(.has-image)::before {
  background: var(--carousel-overlay);
  opacity: 0.85;
}

.carousel-slide > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  text-align: left;
}

.carousel-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: min(640px, 100%);
  width: 100%;
  padding: 24px 0 56px;
  animation: slideUp 0.75s ease;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--primary) 40%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--primary-light) 45%, transparent);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.carousel-content h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  word-wrap: break-word;
  text-align: left;
}

.carousel-content h1 span {
  background: var(--carousel-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-content p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  opacity: 0.92;
  margin-bottom: 22px;
  max-width: 520px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  text-align: left;
}

.carousel-content .hero-buttons {
  justify-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.carousel-content .hero-buttons .btn {
  white-space: nowrap;
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(6px);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: white;
  width: 28px;
  border-radius: 6px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* Tablet */
@media (max-width: 992px) {
  .carousel-section {
    height: clamp(380px, 58vh, 560px);
  }
  .carousel-slide > .container {
    padding: 0 56px;
  }
  .carousel-content {
    max-width: 100%;
    padding: 20px 0 52px;
  }
  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }
}

/* Mobile — carousel ringkas */
@media (max-width: 768px) {
  .carousel-section {
    width: 100%;
    height: min(48vh, 360px);
    min-height: 260px;
    max-height: 400px;
    aspect-ratio: auto;
    margin-top: 56px;
  }
  .carousel-slide {
    align-items: flex-end;
  }
  .carousel-slide > .container {
    padding: 0 14px;
    align-items: flex-end;
  }
  .carousel-content {
    max-width: 100%;
    padding: 16px 0 48px;
    text-align: left;
  }
  .carousel-content h1 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    line-height: 1.25;
  }
  .carousel-content p {
    font-size: 0.82rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
  }
  .carousel-badge {
    font-size: 0.62rem;
    margin-bottom: 8px;
    padding: 4px 10px;
  }
  .carousel-content .hero-buttons {
    gap: 8px;
    flex-wrap: wrap;
  }
  .carousel-content .hero-buttons .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    bottom: 14px;
    top: auto;
    transform: none;
  }
  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }
  .carousel-nav {
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .carousel-section {
    width: 100%;
    height: min(42vh, 300px);
    min-height: 220px;
    max-height: 320px;
  }
  .carousel-content {
    padding: 12px 0 42px;
  }
  .carousel-content h1 {
    font-size: 1.2rem;
  }
  .carousel-content p {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .carousel-content .hero-buttons .btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

/* ========== WELCOME SECTION ========== */
.welcome-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.welcome-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.welcome-box .welcome-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(99,102,241,0.3);
}

.welcome-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-box p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ========== STATS MODERN ========== */
.stats {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  padding-bottom: 20px;
}

.stat-card {
  border: 1px solid rgba(99,102,241,0.08);
}

.stat-card i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== RESPONSIVE CAROUSEL ========== */
@media (max-width: 768px) {
.welcome-box h2 { font-size: 1.5rem; }
}

/* ========== UPLOAD PREVIEW ========== */
.upload-preview {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px dashed #e0e5e8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  overflow: hidden;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-preview {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--light-gray);
  padding: 8px;
}

/* ========== SIDEBAR COLOR VARS ========== */
:root {
  --sidebar-bg: #0f172a;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: rgba(99, 102, 241, 0.25);
  --sidebar-label: #64748b;
  --sidebar-border: rgba(255,255,255,0.08);
}

.sidebar {
  background: var(--sidebar-bg) !important;
  color: var(--sidebar-text);
}
.sidebar-header {
  border-bottom-color: var(--sidebar-border) !important;
}
.sidebar-user {
  border-bottom-color: var(--sidebar-border) !important;
}
.sidebar-user .info h4 {
  color: var(--sidebar-text-active) !important;
}
.sidebar-user .info span {
  color: var(--primary-light) !important;
}
.sidebar-menu .menu-label {
  color: var(--sidebar-label) !important;
}
.sidebar-menu a {
  color: var(--sidebar-text) !important;
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--sidebar-hover) !important;
  color: var(--sidebar-text-active) !important;
}
.sidebar-menu a.logout {
  color: #f87171 !important;
}

/* ========== BOTTOM NAVIGATION (MOBILE) ========== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 6px 4px;
  color: var(--gray);
  font-size: 0.65rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  min-width: 0;
  border-radius: 10px;
  margin: 0 2px;
}

.bottom-nav a i {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-nav a span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav a.active {
  color: var(--primary);
  background: rgba(99,102,241,0.08);
}

.bottom-nav a.active i {
  transform: scale(1.1);
}

.bottom-nav a:active {
  transform: scale(0.95);
}

/* Dashboard bottom nav — samakan dengan beranda/public */
.bottom-nav.dash-nav {
  background: var(--white) !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
}
.bottom-nav.dash-nav a {
  color: var(--gray) !important;
}
.bottom-nav.dash-nav a.active {
  color: var(--primary) !important;
  background: rgba(99,102,241,0.08) !important;
}
.bottom-nav.dash-nav a.active i {
  transform: scale(1.1);
}
.bottom-nav.dash-nav a:active {
  transform: scale(0.95);
}

/* ========== MOBILE CONTENT ADAPT ========== */
@media (max-width: 768px) {
  /* Bottom nav saja — sembunyikan burger menu */
  .bottom-nav {
    display: flex;
  }
  .hamburger {
    display: none !important;
  }
  .nav-menu {
    display: none !important;
  }

  body {
    padding-bottom: 72px;
    font-size: 15px;
    line-height: 1.55;
  }
  h1 { font-size: 1.35rem !important; }
  h2 { font-size: 1.2rem !important; }
  h3 { font-size: 1.05rem !important; }
  p, li, .event-meta, .news-meta {
    font-size: 0.9rem !important;
  }
  .page-header {
    padding: 28px 0 20px !important;
  }
  .page-header p {
    font-size: 0.88rem !important;
  }
  section {
    padding: 36px 0 !important;
  }

  .dashboard-layout .main-content {
    padding-bottom: 80px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }

  .dashboard-body {
    padding: 14px !important;
  }

  .topbar {
    padding: 12px 14px !important;
  }

  .topbar h2 {
    font-size: 1.05rem !important;
  }

  .sidebar {
    transform: translateX(-100%) !important;
  }
  .sidebar.open {
    transform: translateX(0) !important;
    z-index: 1100;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .dash-card, .news-card, .event-item, .stat-card, .anggota-card {
    width: 100%;
  }

  /* Stats: WAJIB 2 kolom */
  .dash-stats,
  #dash-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .dash-stat-card {
    padding: 12px 10px !important;
    flex-direction: row !important;
    text-align: left !important;
    gap: 10px !important;
    width: auto !important;
    max-width: none !important;
  }
  .dash-stat-card .icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
  }
  .dash-stat-card h3 { font-size: 1.15rem !important; }
  .dash-stat-card p { font-size: 0.68rem !important; }

  /* Hilangkan hamburger / sidebar mobile */
  #sidebar-toggle { display: none !important; }
  .sidebar { display: none !important; }

  /* Menu cepat 4 kolom */
  #quick-links,
  .dash-quick-menu { display: block !important; }
  .dash-app-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .dash-app-grid a,
  .dash-app-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 12px 6px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #eef2f7 !important;
    box-shadow: 0 2px 10px rgba(15,23,42,0.06) !important;
    text-decoration: none !important;
    color: inherit !important;
  }
  .dash-app-grid a > div:first-child,
  .dash-app-icon {
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
  }
  .dash-app-label { font-size: 0.65rem !important; font-weight: 600 !important; line-height: 1.2 !important; }
  .dash-app-sub { display: none !important; }

  .topbar-right > a.btn { display: none !important; }

  .dash-two-col {
    grid-template-columns: 1fr !important;
  }

  .table-responsive {
    margin: 0 -4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 500px;
  }

  .modal {
    max-width: calc(100vw - 24px) !important;
    margin: 12px;
    max-height: 85vh;
  }

  .news-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .stat-card {
    padding: 16px 12px !important;
  }
  .stat-card h3 {
    font-size: 1.3rem !important;
  }
  .stat-card p {
    font-size: 0.75rem !important;
  }

  .about-grid, .kontak-grid, .profil-content, .visi-misi {
    grid-template-columns: 1fr !important;
  }

  /* Footer ringkas di mobile (hilangkan navigasi ganda — sudah ada bottom nav) */
  .footer {
    padding: 28px 0 16px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .footer-links {
    display: none !important;
  }
  .footer-about p {
    font-size: 0.82rem !important;
    margin-top: 8px;
  }
  .footer-contact h4,
  .footer-about .logo {
    margin-bottom: 8px;
  }
  .footer-contact p {
    font-size: 0.82rem !important;
    margin-bottom: 6px !important;
  }
  .footer-bottom {
    padding-top: 12px !important;
    font-size: 0.75rem !important;
  }
  #footer-social {
    display: none !important;
  }

  .nav-container {
    height: 56px;
  }

  .logo .site-logo {
    height: 36px !important;
  }

  .logo {
    font-size: 0.7rem !important;
    gap: 8px !important;
    max-width: calc(100vw - 24px);
    line-height: 1.15;
  }
  .logo-text-wrap .logo-main {
    font-size: 0.68rem !important;
    white-space: normal !important;
  }
  .logo-text-wrap .logo-sub {
    font-size: 0.6rem !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
  }

  /* Event items stack better */
  .event-item {
    flex-wrap: wrap;
  }

  /* ===== BERANDA MOBILE RINGKAS ===== */
  body {
    font-size: 14.5px;
  }
  section {
    padding: 22px 0 !important;
  }

  /* Stats overlapping carousel — compact 2x2 grid */
  .stats {
    margin-top: -24px !important;
    padding: 0 0 4px !important;
    position: relative;
    z-index: 5;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    text-align: center;
  }
  .stat-card i {
    font-size: 1.1rem !important;
    margin-bottom: 4px !important;
  }
  .stat-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 2px;
  }
  .stat-card p {
    font-size: 0.68rem !important;
    line-height: 1.25;
  }

  /* Welcome */
  .welcome-section {
    padding: 20px 0 !important;
  }
  .welcome-box .welcome-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.05rem !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }
  .welcome-box h2 {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
  }
  .welcome-box p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  /* About — teks ringkas, media lebih kecil */
  .about-preview {
    padding: 22px 0 !important;
  }
  .about-grid {
    gap: 16px !important;
  }
  .about-text .section-badge {
    font-size: 0.68rem !important;
  }
  .about-text h2 {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .about-text p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .feature-list {
    margin: 10px 0 !important;
    gap: 6px;
  }
  .feature-list li {
    font-size: 0.82rem !important;
  }
  .about-image,
  .about-media-default {
    max-height: 180px;
    overflow: hidden;
    border-radius: 14px;
  }
  .about-default-logo {
    max-height: 80px !important;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 12px !important;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .section-header h2 {
    font-size: 1.1rem !important;
  }
  .section-badge {
    font-size: 0.68rem !important;
  }
  .view-all {
    font-size: 0.8rem !important;
  }

  /* News cards */
  .latest-news {
    padding: 22px 0 !important;
  }
  .news-grid {
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }
  .news-card {
    border-radius: 12px !important;
    display: flex;
    flex-direction: row;
    overflow: hidden;
  }
  .news-card .news-img,
  .news-card > img,
  .news-card .news-image {
    width: 110px !important;
    min-width: 110px !important;
    height: 96px !important;
    object-fit: cover;
    border-radius: 0 !important;
  }
  .news-card .news-body,
  .news-card .news-content {
    padding: 10px 12px !important;
    flex: 1;
    min-width: 0;
  }
  .news-card h3 {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-card p {
    display: none !important; /* ringkas: sembunyikan excerpt di mobile */
  }
  .news-meta {
    font-size: 0.72rem !important;
  }

  /* Events */
  .upcoming-events {
    padding: 22px 0 !important;
  }
  .event-item {
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }
  .event-date {
    min-width: 48px !important;
    padding: 6px !important;
  }
  .event-date .day {
    font-size: 1.1rem !important;
  }
  .event-date .month {
    font-size: 0.65rem !important;
  }
  .event-info h4 {
    font-size: 0.88rem !important;
  }
  .event-info p,
  .event-meta {
    font-size: 0.75rem !important;
  }

  /* CTA */
  .cta {
    padding: 28px 0 !important;
  }
  .cta h2 {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
  }
  .cta p {
    font-size: 0.82rem !important;
    margin-bottom: 12px !important;
  }
  .cta .btn {
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
  }

  .page-header {
    padding: 72px 0 24px !important;
  }
  .page-header h1 {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .dash-stats,
  #dash-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dash-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .bottom-nav a span {
    font-size: 0.58rem;
  }
  .bottom-nav a i {
    font-size: 1.1rem;
  }
  .btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
  /* News horizontal tetap di layar kecil */
  .news-card .news-img,
  .news-card > img,
  .news-card .news-image {
    width: 96px !important;
    min-width: 96px !important;
    height: 88px !important;
  }
}

/* Overlay when sidebar open on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
}
.sidebar-overlay.show {
  display: block;
}

/* ========== TOPBAR PROFILE MENU ========== */
.topbar-profile-wrap {
  position: relative;
  margin-left: 8px;
}
.topbar-avatar-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}
.topbar-avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.topbar-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.15);
  border: 1px solid #e2e8f0;
  padding: 8px;
  z-index: 1200;
}
.topbar-profile-menu[hidden] {
  display: none !important;
}
.topbar-profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
}
.topbar-profile-head strong {
  font-size: 0.9rem;
  color: #0f172a;
}
.topbar-profile-head small {
  color: #64748b;
  text-transform: capitalize;
  font-size: 0.75rem;
}
.topbar-profile-menu a,
.topbar-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.topbar-profile-menu a:hover,
.topbar-logout-btn:hover {
  background: #f8fafc;
  color: var(--primary);
}
.topbar-logout-btn {
  color: #dc2626;
}
.topbar-logout-btn:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== FLOAT BOTTOM NAV ========== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px 6px;
  justify-content: space-around;
  align-items: center;
  right: auto;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 8px 4px;
  color: var(--gray);
  font-size: 0.62rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 0;
  border-radius: 14px;
  margin: 0 1px;
}

.bottom-nav a i {
  font-size: 1.2rem;
  line-height: 1;
}

.bottom-nav a.active {
  color: var(--primary);
  background: rgba(99,102,241,0.1);
}

.bottom-nav a[data-nav="login"] {
  color: var(--primary);
}
.bottom-nav a[data-nav="login"] i,
.bottom-nav a[data-nav="akun"] i {
  font-size: 1.3rem;
}

.bottom-nav.dash-nav {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}
.bottom-nav.dash-nav a {
  color: var(--sidebar-text, #94a3b8);
}
.bottom-nav.dash-nav a.active {
  color: #fff;
  background: var(--sidebar-hover, rgba(99,102,241,0.3));
}

/* Sidebar text always readable */
.sidebar-header .logo {
  color: var(--sidebar-text-active, #ffffff) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-header .logo span,
.sidebar-header .logo strong {
  color: var(--sidebar-text-active, #ffffff) !important;
  font-weight: 600;
}
.sidebar-header .logo .site-logo {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.sidebar-header .logo span,
.sidebar-header .logo .logo-text-wrap {
  font-size: 0.7rem;
  letter-spacing: 0.2px;
  white-space: normal;
  line-height: 1.15;
  overflow: hidden;
}
.sidebar-header .logo .logo-main {
  font-size: 0.68rem;
  color: var(--sidebar-text-active, #ffffff) !important;
}
.sidebar-header .logo .logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.85) !important;
}

/* Light sidebar text adjustment */
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 90px;
  }
  .dashboard-layout .main-content {
    padding-bottom: 100px;
  }

  /* Stats: always min 2 columns on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .stat-card {
    padding: 18px 12px !important;
  }
  .stat-card h3 {
    font-size: 1.4rem !important;
  }
  .stat-card p {
    font-size: 0.75rem !important;
  }
  .stat-card i {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bottom-nav {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 6px 4px;
  }
  .bottom-nav a span {
    font-size: 0.58rem;
  }
}

/* ========== SOCIAL LINKS ========== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.social-links a.social-link,
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155 !important;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid rgba(0,0,0,0.06);
}
.social-links a.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  background: white;
}
.footer .social-links a.social-link {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: #fff !important;
}
.footer .social-links a.social-link:hover {
  background: var(--primary);
  color: #fff !important;
}
#kontak-social .social-links {
  margin-top: 8px;
}
#kontak-social h4 {
  margin-bottom: 10px;
}

/* ========== MOBILE CLEAN CARDS + FOOTER ========== */
@media (max-width: 768px) {
  /* Carousel full width, image not stretched beyond cover */
  .carousel-section {
    width: 100% !important;
    max-width: 100vw;
  }
  .carousel-slide {
    background-size: cover !important;
    background-position: center center !important;
  }

  /* Berita cards - cleaner */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .news-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
  }
  .news-card .news-img {
    width: 110px;
    min-width: 110px;
    height: auto;
    min-height: 100px;
    border-radius: 0;
    flex-shrink: 0;
  }
  .news-card .news-body {
    padding: 12px 14px;
    flex: 1;
    min-width: 0;
  }
  .news-card h3 {
    font-size: 0.92rem !important;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-card p {
    font-size: 0.8rem !important;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--gray);
  }
  .news-card .news-meta {
    font-size: 0.72rem;
    margin-bottom: 4px;
    gap: 8px;
  }

  /* Agenda / event - cleaner */
  .event-item {
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 14px !important;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  }
  .event-item .event-date {
    min-width: 52px;
    padding: 8px 6px;
  }
  .event-item .event-date .day {
    font-size: 1.25rem;
  }
  .event-item .event-info h3 {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }
  .event-item .event-info p {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .event-item .event-meta {
    font-size: 0.72rem;
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .event-item img,
  .event-item > div[style*="min-width"] {
    display: none !important; /* hide photo on mobile for cleaner agenda */
  }

  /* Footer columns */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-about,
  .footer-links,
  .footer-contact {
    width: 100%;
  }
  .footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  /* Social once */
  #footer-social .social-links {
    justify-content: flex-start;
  }
  .footer-contact .social-links {
    display: none !important; /* prevent double if any leftover */
  }
}

@media (max-width: 480px) {
  .news-card .news-img {
    width: 96px;
    min-width: 96px;
  }
  .news-card h3 {
    font-size: 0.88rem !important;
  }
}

/* WYSIWYG content display */
#article-body, #about-text, #profil-sejarah, #profil-visi, #welcome-text {
  line-height: 1.75;
}
#article-body p, #profil-sejarah p, #about-text p {
  margin-bottom: 1em;
}
#article-body ul, #article-body ol,
#profil-sejarah ul, #about-text ul {
  margin: 0.75em 0 0.75em 1.25em;
}
#article-body h1, #article-body h2, #article-body h3 {
  margin: 1.2em 0 0.5em;
  line-height: 1.3;
}
#article-body a {
  color: var(--primary);
  text-decoration: underline;
}
#article-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin: 1em 0;
  color: var(--gray);
  font-style: italic;
}

/* About media (image / video / youtube / logo) */
.about-image {
  width: 100%;
}
.about-media-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(99,102,241,0.2);
  background: var(--gradient-primary);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-media-frame img,
.about-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-media-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.about-media-default {
  width: 100%;
  min-height: 280px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 32px 24px;
  background: var(--gradient-primary);
  box-shadow: 0 12px 40px rgba(99,102,241,0.2);
}
.about-media-default .about-default-logo {
  display: block;
  max-width: 140px;
  max-height: 140px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.about-media-default p {
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 auto;
  padding: 0 12px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}
@media (max-width: 768px) {
  .about-media-frame {
    aspect-ratio: 16 / 9;
  }
  .about-media-default {
    min-height: 200px;
  }
}

/* Galeri media */
.galeri-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e5e7eb;
}
.galeri-item img,
.galeri-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.galeri-item .galeri-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9ca3af;
}
.galeri-item.is-video::after {
  content: '\f04b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  pointer-events: none;
  z-index: 2;
}

/* Portal anggota — konten berada dalam shell dashboard */
.member-content .page-header {background:transparent;color:var(--dark);padding:8px 0 24px;text-align:left;margin:0;}
.member-content .page-header h1 {font-size:clamp(1.5rem,3vw,2.1rem);color:var(--dark);}
.member-content .page-header p,.member-content .breadcrumb {color:var(--gray);}
.member-content section {padding:0 0 24px;}
.member-content .container {width:100%;max-width:100%;padding:0;}
.member-content .filter-bar {gap:12px;flex-wrap:wrap;}
.member-content .news-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));}
.member-content .event-item {flex-wrap:wrap;}
.sidebar-header .logo {gap:10px;}
.topbar-right {display:flex;align-items:center;gap:12px;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {outline:3px solid #818cf8;outline-offset:3px;}
@media(max-width:768px){.member-content .filter-bar input,.member-content .filter-bar select{width:100%;}.member-content .keg-meta{gap:10px;}.member-content .reg-box{padding:16px;}}
