@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2344;
  --primary-light: #2a5298;
  --primary-glow: rgba(26, 58, 107, 0.3);
  --secondary: #f5a623;
  --secondary-dark: #d4891a;
  --accent-pink: #ff6b9d;
  --accent-blue: #4ecdc4;
  --accent-orange: #ff8c42;
  --accent-purple: #a855f7;
  --bg: #ffffff;
  --bg-alt: #f0f4ff;
  --text: #1a1a2e;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(26, 58, 107, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 58, 107, 0.12);
  --shadow-glow: 0 0 30px rgba(26, 58, 107, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1400px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 25%, #dce6ff 50%, #e8eeff 75%, #f5f8ff 100%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== PAGE TRANSITIONS ===== */
.page-wrapper {
  animation: pageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Admin page transitions */
.admin-main {
  animation: adminPageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== SEARCH FORM ===== */
.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: white;
}

.search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

/* ===== FILE INPUT ===== */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.file-input-label:hover {
  border-color: var(--primary);
  background: rgba(26, 58, 107, 0.03);
  color: var(--primary);
}

.file-input:focus + .file-input-label {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.file-preview {
  position: relative;
}

.file-preview img, .file-preview video {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Staggered animations for children */
.stagger-children > * {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-shape {
  position: absolute;
  opacity: 0.03;
  animation: geoFloat 20s infinite ease-in-out;
}

.geo-shape.hex {
  width: 120px;
  height: 120px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.geo-shape.diamond {
  width: 80px;
  height: 80px;
  background: var(--secondary);
  transform: rotate(45deg);
}

.geo-shape.circle {
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary);
  border-radius: 50%;
}

.geo-shape.triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid var(--accent-blue);
  opacity: 0.04;
}

.geo-shape:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.geo-shape:nth-child(2) { top: 20%; right: 8%; animation-delay: -5s; }
.geo-shape:nth-child(3) { top: 50%; left: 15%; animation-delay: -10s; }
.geo-shape:nth-child(4) { top: 70%; right: 20%; animation-delay: -15s; }
.geo-shape:nth-child(5) { top: 85%; left: 40%; animation-delay: -3s; }
.geo-shape:nth-child(6) { top: 35%; right: 35%; animation-delay: -8s; }

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-25px) rotate(3deg); }
}

/* ===== LINKS ===== */
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===== HEADER & NAVIGATION ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1002;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 58, 107, 0.08);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: 0 4px 30px rgba(26, 58, 107, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 60px;
}

.nav-brand { display: flex; align-items: center; gap: 12px; }

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 48px;
  transition: var(--transition-bounce);
  filter: drop-shadow(0 2px 8px rgba(26, 58, 107, 0.15));
}

.logo-wrapper:hover .logo {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 4px 16px rgba(26, 58, 107, 0.25));
}

/* Animated logo ring */
.logo-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: logoRingPulse 3s infinite ease-in-out;
}

@keyframes logoRingPulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.2; transform: scale(1.1); }
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  position: relative;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-item > a:hover::after,
.nav-item > a.active::after {
  transform: scaleX(1);
}

.nav-item > a:hover,
.nav-item > a.active {
  color: var(--primary);
  background: rgba(26, 58, 107, 0.06);
}

.nav-item > a.active {
  font-weight: 600;
}

/* Dropdown arrow */
.nav-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: var(--transition-fast);
}

.nav-item:hover > a .nav-arrow {
  transform: rotate(-135deg) translateY(-2px);
}

/* Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(26, 58, 107, 0.15);
  border: 1px solid rgba(26, 58, 107, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.nav-item:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.submenu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: var(--transition-fast);
}

.submenu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  padding-left: 20px;
}

/* Nav CTA button */
.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  color: white !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(26, 58, 107, 0.3);
  transition: var(--transition) !important;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 58, 107, 0.4) !important;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%) !important;
}

/* ===== MOBILE MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  color: white;
  min-height: 100vh;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero geometric background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 166, 35, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255, 107, 157, 0.08) 0%, transparent 40%);
  animation: heroGradientMove 15s ease-in-out infinite;
}

@keyframes heroGradientMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-2%, 1%) rotate(1deg); }
  66% { transform: translate(1%, -1%) rotate(-1deg); }
}

/* Floating geometric shapes in hero — positioned inside hero-content */
.hero-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
  animation: heroShapeFloat 8s ease-in-out infinite;
  z-index: 0;
}

.hero-shape:nth-child(1) {
  top: -40%;
  left: -30%;
  width: 180px;
  height: 180px;
  border: 2px solid white;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  top: 20%;
  right: -40%;
  width: 120px;
  height: 120px;
  border: 2px solid var(--secondary);
  transform: rotate(45deg);
  animation-delay: -3s;
}

.hero-shape:nth-child(3) {
  bottom: -50%;
  left: -20%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  animation-delay: -5s;
}

@keyframes heroShapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
  50% { transform: translateY(-20px) rotate(10deg); opacity: 0.12; }
}

/* ===== HERO BACKGROUND SLIDESHOW ===== */
.hero-bg-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideFade 24s infinite;
}

.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 6s; }
.hero-bg-slide:nth-child(3) { animation-delay: 12s; }
.hero-bg-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroSlideFade {
  0%      { opacity: 0; }
  4%      { opacity: 1; }
  21%     { opacity: 1; }
  25%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* Dark overlay so text stays readable over any photo */
.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26,58,107,0.45);
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { animation: none; opacity: 0; }
  .hero-bg-slide:first-child { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  overflow: visible;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  position: relative;
  padding-bottom: 16px;
}

.hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  font-weight: 300;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 58, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 58, 107, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 10px rgba(26, 58, 107, 0.1);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 58, 107, 0.3);
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-link::after {
  content: '\2192';
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--primary-light);
  gap: 10px;
}

.btn-full { width: 100%; justify-content: center; }

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

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

.btn-small.btn-danger {
  background: #dc2626;
}
.btn-small.btn-danger:hover {
  background: #b91c1c;
}

/* Inline delete form in tables */
.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.table-actions form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* Select filter in admin */
.admin-filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-filter-row input[type="text"],
.admin-filter-row input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-alt, #f8f9fa);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.admin-filter-row input[type="text"]:focus,
.admin-filter-row input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
  background: white;
}

.admin-filter-row input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.admin-filter-row select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-alt, #f8f9fa);
  color: var(--text);
  cursor: pointer;
  min-width: 160px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-filter-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

/* Bulk select */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.bulk-bar .btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.bulk-bar .btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Checkbox in table */
.admin-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Gallery admin hover */
.gallery-admin-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-admin-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26, 58, 107, 0.15);
}

.gallery-admin-item:hover img {
  transform: scale(1.05);
}

.gallery-admin-item img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery overlay hover */
.gallery-admin-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 12px 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-admin-item:hover .gallery-admin-overlay {
  opacity: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--bg-alt);
  color: var(--text-light);
}

.btn-sm:hover {
  background: var(--primary);
  color: white;
}

.btn-sm.active, .gallery-filter.active {
  background: var(--primary);
  color: white;
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 70px 24px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-blue), var(--accent-pink), var(--primary));
  background-size: 300% 100%;
  animation: gradientSlide 4s ease infinite;
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.stat-card {
  padding: 35px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 24px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s ease-out;
}

.section-alt { background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(2px); }

.section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-dark);
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent-blue));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(26, 58, 107, 0.06);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(26, 58, 107, 0.12);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 700;
}

.card-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.card-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text);
}

.badge-planned { background: #fff3cd; color: #856404; }
.badge-in_progress { background: #cce5ff; color: #004085; }
.badge-completed { background: #d4edda; color: #155724; }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 50%, rgba(245, 166, 35, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(78, 205, 196, 0.08) 0%, transparent 40%);
  animation: heroGradientMove 12s ease-in-out infinite;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

.page-header p {
  opacity: 0.9;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* ===== SEARCH ===== */
.search-form {
  margin-bottom: 30px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: white;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-alt);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
  background: white;
}

.search-select {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-alt);
  cursor: pointer;
  min-width: 160px;
  transition: var(--transition);
}

.search-select:focus {
  outline: none;
  border-color: var(--primary);
}

.results-count {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

/* ===== PARTNERS ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}

.partner-item {
  text-align: center;
  padding: 24px 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition-bounce);
}

.partner-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

.partner-item img {
  max-height: 80px;
  max-width: 130px;
  transition: var(--transition);
}

.partner-name {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}

.partners-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.partner-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 35px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(26, 58, 107, 0.06);
}

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

.partner-logo {
  max-height: 80px;
  max-width: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover .partner-logo {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(26,58,107,0.15);
}

/* ===== MARQUEE PARTNERS ===== */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 24px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  min-width: 140px;
  height: 70px;
}
.marquee-item:hover {
  box-shadow: 0 4px 16px rgba(26,58,107,0.15);
  transform: translateY(-2px);
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 166, 35, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 40%);
  animation: heroGradientMove 20s ease-in-out infinite;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary:hover {
  background: var(--bg-alt);
  transform: translateY(-3px);
}

/* ===== DETAIL ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  animation: fadeInUp 0.5s ease-out;
}

.detail-main h2 {
  color: var(--primary-dark);
  margin-bottom: 16px;
  margin-top: 30px;
  text-align: left;
}

.detail-main h2::after { display: none; }

.detail-main p { margin-bottom: 16px; }

.info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(26, 58, 107, 0.06);
}

.info-card h3 {
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.info-card ul { list-style: none; }

.info-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.info-card li:last-child { border-bottom: none; }

/* ===== FORMS ===== */
.form-container { max-width: 700px; margin: 0 auto; animation: fadeInUp 0.5s ease-out; background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }

.form-container .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-container .btn-primary[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 12px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.08);
}

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

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  animation: fadeInUp 0.5s ease-out;
}

.contact-info {
  background: var(--bg-alt);
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 58, 107, 0.06);
}

.contact-info h3 {
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 58, 107, 0.06);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}

.faq-item h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== CONTENT PAGES ===== */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.5s ease-out;
}

.content-page h2 {
  color: var(--primary-dark);
  margin: 35px 0 16px;
  text-align: left;
}

.content-page h2::after { display: none; }

.content-page ul { margin-left: 20px; margin-bottom: 16px; }
.content-page li { margin-bottom: 10px; }

/* ===== NO RESULT ===== */
.no-result {
  text-align: center;
  padding: 50px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== EMPTY STATE (polished, reusable across Projets / Actualites / Evenements) ===== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  max-width: 460px;
  margin: 0 auto;
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,58,107,0.08), rgba(245,166,35,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.empty-state .btn { margin-top: 4px; }

/* ===== EVENT ===== */
.event-date, .event-meta, .event-location {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ===== ERROR PAGE ===== */
.error-page {
  text-align: center;
  padding: 120px 24px;
  animation: fadeIn 0.6s ease-out;
}

.error-page h1 {
  font-size: 7rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* ===== ALERT ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  animation: fadeInUp 0.3s ease-out;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== FOOTER WITH ANIMATED GRADIENT ===== */
.main-footer {
  position: relative;
  color: white;
  padding: 40px 24px 20px;
  overflow: hidden;
  background: #1a1a1e;
}

/* Solid black background */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1e;
  z-index: 0;
}

.main-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-section h4 {
  margin-bottom: 12px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul { list-style: none; }

.footer-section li { margin-bottom: 6px; }

.footer-section a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  font-size: 0.88rem;
}

.footer-section a:hover {
  color: white;
  padding-left: 6px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  opacity: 0.6;
  position: relative;
  z-index: 2;
}

/* Footer floating particles */
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.footer-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: particleFloat 6s ease-in-out infinite;
}

.footer-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.footer-particle:nth-child(2) { left: 25%; animation-delay: -2s; animation-duration: 5s; }
.footer-particle:nth-child(3) { left: 40%; animation-delay: -4s; animation-duration: 8s; }
.footer-particle:nth-child(4) { left: 55%; animation-delay: -1s; animation-duration: 6s; }
.footer-particle:nth-child(5) { left: 70%; animation-delay: -3s; animation-duration: 7s; }
.footer-particle:nth-child(6) { left: 85%; animation-delay: -5s; animation-duration: 5s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

/* ===== ADMIN ===== */
.login-page {
  background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.login-card {
  background: white;
  padding: 44px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: scaleIn 0.5s ease-out;
  border: 1px solid rgba(26, 58, 107, 0.06);
}

.login-logo { height: 70px; margin-bottom: 24px; }

.login-card h1 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 28px;
  font-weight: 700;
}

.admin-body { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo { height: 38px; filter: brightness(0) invert(1); }

.sidebar-nav { padding: 12px 0; }

.sidebar-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 12px 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-left-color: var(--secondary);
  transform: translateX(3px);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--secondary);
}

.sidebar-link:hover svg, .sidebar-link.active svg {
  opacity: 1;
}

.sidebar-user {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-avatar-text {
  background: linear-gradient(135deg, var(--secondary), var(--accent-orange));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.sidebar-username {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  background: var(--bg-alt);
  min-height: 100vh;
}

.admin-header {
  background: white;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.admin-header h2 { color: var(--primary-dark); font-weight: 700; }

.admin-content { padding: 32px; }

.stat-card-admin {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card-admin:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-collapse: collapse;
  overflow: hidden;
}

.admin-table th, .admin-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary-dark);
}

.admin-table tr { transition: var(--transition-fast); }
.admin-table tr:hover { background: rgba(26, 58, 107, 0.02); }

.admin-table tr {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.admin-table tr:hover {
  box-shadow: 0 2px 8px rgba(26, 58, 107, 0.06);
}

.btn-danger {
  background: #dc2626;
  color: white;
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}
.btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* ===== ADMIN ANIMATED BACKGROUND ===== */
@keyframes adminGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.admin-body {
  background: linear-gradient(-45deg, #f0f4ff, #ffffff, #fff7ed, #fdf2f8, #f0f4ff);
  background-size: 400% 400%;
  animation: adminGradientFlow 20s ease infinite;
  position: relative;
}

.admin-body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(26, 58, 107, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 166, 35, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 157, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.admin-body > * { position: relative; z-index: 1; }

.admin-main { background: transparent; }

/* ===== ADMIN DASHBOARD REDESIGN ===== */
.admin-header { gap: 16px; }
.admin-header-left { flex: 1; }
.admin-header-subtitle { color: var(--text-light); font-size: 0.85rem; margin-top: 2px; }
.admin-header-right { display: flex; align-items: center; gap: 20px; }

.admin-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 8px;
}
.admin-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.admin-notifications {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: var(--transition-fast);
  color: var(--text-light);
}
.admin-notifications:hover { background: var(--bg-alt); color: var(--primary); }

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(26, 58, 107, 0.04);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.kpi-cooperatives::before { background: var(--primary); }
.kpi-news::before { background: var(--accent-blue); }
.kpi-events::before { background: var(--secondary); }
.kpi-messages::before { background: var(--accent-pink); }
.kpi-adhesions::before { background: var(--accent-purple); }
.kpi-partners::before { background: var(--accent-orange); }

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

.kpi-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.kpi-arrow {
  color: var(--text-light);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.kpi-link:hover .kpi-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-cooperatives .kpi-icon { background: rgba(26, 58, 107, 0.1); color: var(--primary); }
.kpi-news .kpi-icon { background: rgba(78, 205, 196, 0.12); color: var(--accent-blue); }
.kpi-events .kpi-icon { background: rgba(245, 166, 35, 0.12); color: var(--secondary); }
.kpi-messages .kpi-icon { background: rgba(255, 107, 157, 0.12); color: var(--accent-pink); }
.kpi-adhesions .kpi-icon { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); }
.kpi-partners .kpi-icon { background: rgba(255, 140, 66, 0.12); color: var(--accent-orange); }

.kpi-content { flex: 1; min-width: 0; }

.kpi-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.trend-up { color: #16a34a; background: rgba(22, 163, 74, 0.08); }

.kpi-alert {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.kpi-alert-warn { background: rgba(245, 166, 35, 0.12); color: #d97706; }

/* Dashboard Cards */
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(26, 58, 107, 0.04);
}

.card-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body { padding: 24px; }

.chart-container {
  position: relative;
  height: 280px;
}

/* Tabs */
.card-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.tab-btn:hover { background: var(--bg-alt); color: var(--text); }
.tab-btn.active { background: var(--primary); color: white; }

/* Activity Feed */
.activity-list { max-height: 340px; overflow-y: auto; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(26, 58, 107, 0.01); margin: 0 -24px; padding: 12px 24px; }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.dot-coop { background: var(--primary); }
.dot-news { background: var(--accent-blue); }
.dot-event { background: var(--secondary); }
.dot-message { background: var(--accent-pink); }

.activity-info { flex: 1; min-width: 0; }

.activity-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-email {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
}

.activity-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

.activity-msg-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Quick Actions */
.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  margin-bottom: 8px;
  color: var(--text);
}

.quick-action:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.qa-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-icon-coop { background: rgba(26, 58, 107, 0.1); color: var(--primary); }
.qa-icon-news { background: rgba(78, 205, 196, 0.12); color: var(--accent-blue); }
.qa-icon-partner { background: rgba(255, 140, 66, 0.12); color: var(--accent-orange); }
.qa-icon-user { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); }
.qa-icon-site { background: rgba(245, 166, 35, 0.12); color: var(--secondary); }

.qa-text { flex: 1; min-width: 0; }

.qa-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}

.qa-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 1px;
}

.quick-action > svg:last-child {
  color: var(--text-light);
  flex-shrink: 0;
  opacity: 0;
  transition: var(--transition-fast);
}

.quick-action:hover > svg:last-child {
  opacity: 1;
  transform: translateX(2px);
}

/* System Status */
.system-status {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
}

.status-items { display: flex; flex-direction: column; gap: 8px; }

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-ok { background: #16a34a; box-shadow: 0 0 6px rgba(22, 163, 74, 0.4); }
.status-warn { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.status-error { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }

/* ===== CHATBOT WIDGET ===== */
#g2c-assistant-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(26, 58, 107, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  touch-action: none;
  user-select: none;
}

#g2c-assistant-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(26, 58, 107, 0.5);
}

#g2c-assistant-bubble svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
}

#g2c-assistant-bubble .pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(26, 58, 107, 0.3);
  animation: bubblePulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bubblePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 0; }
}

/* Chat Panel */
#g2c-assistant-panel {
  position: fixed;
  width: 360px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(26, 58, 107, 0.2);
  border: 1px solid rgba(26, 58, 107, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#g2c-assistant-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#g2c-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

#g2c-assistant-header strong {
  font-size: 0.95rem;
  font-weight: 700;
}

#g2c-assistant-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#g2c-assistant-close:hover {
  background: rgba(255,255,255,0.35);
}

#g2c-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.g2c-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.g2c-msg-bot {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.g2c-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.g2c-msg-bot a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Typing indicator */
.g2c-typing {
  align-self: flex-start;
  background: var(--bg-alt);
  padding: 14px 20px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.g2c-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.g2c-typing span:nth-child(2) { animation-delay: 0.15s; }
.g2c-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Input form */
#g2c-assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: white;
}

#g2c-assistant-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#g2c-assistant-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.08);
}

#g2c-assistant-send {
  width: 42px;
  height: 42px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

#g2c-assistant-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(26, 58, 107, 0.3);
}

/* Responsive chatbot */
@media (max-width: 480px) {
  #g2c-assistant-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
    bottom: 80px;
    right: 12px;
    border-radius: 16px;
  }
  #g2c-assistant-bubble {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 80px 24px 24px;
    z-index: 1001;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item.submenu-open > .submenu {
    max-height: 300px;
  }

  .nav-item > a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .card-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .dashboard-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .card-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 16px 60px; }
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 50px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ===== INTERACTIVE HOMEPAGE ===== */
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-top: -24px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.hero-title-animate {
  animation: heroTitleIn 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-subtitle-animate {
  animation: heroTitleIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.hero-buttons-animate {
  animation: heroTitleIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

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

.reveal-text {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(26, 58, 107, 0.04);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Card hover link */
.card-hover-link {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.card-hover-link:hover {
  color: var(--text);
}

/* Card tilt on hover */
.card-tilt {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-tilt:hover {
  transform: translateY(-6px) rotate(1deg);
}

/* Event Timeline */
.events-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent-pink));
  border-radius: 2px;
}

.event-timeline-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  position: relative;
  align-items: flex-start;
}

.event-timeline-image {
  flex-shrink: 0;
}

.event-timeline-image img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

.event-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.15);
  transition: all 0.3s ease;
}

.event-timeline-item:hover .event-timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(26, 58, 107, 0.2);
}

.event-timeline-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  flex: 1;
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 58, 107, 0.04);
}

.event-timeline-item:hover .event-timeline-content {
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}

.event-timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-timeline-content h3 {
  font-size: 1.1rem;
  margin: 6px 0;
  color: var(--primary-dark);
}

/* Partner card hover */
.partner-card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card-hover:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Page transitions for all pages */
.page-wrapper {
  animation: pageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== EVENT SLIDESHOW ===== */
.events-slideshow {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 400px;
}

.slideshow-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.slideshow-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.slideshow-slide:not(.active) {
  transform: translateX(-60px);
}

.slideshow-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 200% 200%;
  animation: placeholderShift 6s ease-in-out infinite;
}

@keyframes placeholderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.slideshow-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  z-index: 2;
}

.slideshow-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slideshow-info h2 {
  font-size: 1.6rem;
  margin: 8px 0;
  color: white;
}

.slideshow-info p {
  opacity: 0.85;
  font-size: 0.95rem;
}

.slideshow-counter {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(0,0,0,0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slideshow-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

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

.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

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

.slideshow-dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .slideshow-track { height: 280px; }
  .slideshow-info h2 { font-size: 1.2rem; }
  .slideshow-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* Smooth scroll reveal - bidirectional */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.scroll-hidden {
  opacity: 0;
  transform: translateY(40px);
}

/* Stagger delay for grid children */
.card-grid > *.scroll-animate:nth-child(1),
.partners-grid > *.scroll-animate:nth-child(1),
.partners-showcase > *.scroll-animate:nth-child(1),
.feature-cards > *.scroll-animate:nth-child(1) { transition-delay: 0s; }
.card-grid > *.scroll-animate:nth-child(2),
.partners-grid > *.scroll-animate:nth-child(2),
.partners-showcase > *.scroll-animate:nth-child(2),
.feature-cards > *.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.card-grid > *.scroll-animate:nth-child(3),
.partners-grid > *.scroll-animate:nth-child(3),
.partners-showcase > *.scroll-animate:nth-child(3),
.feature-cards > *.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.card-grid > *.scroll-animate:nth-child(4),
.partners-grid > *.scroll-animate:nth-child(4),
.partners-showcase > *.scroll-animate:nth-child(4),
.feature-cards > *.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.card-grid > *.scroll-animate:nth-child(5) { transition-delay: 0.4s; }
.card-grid > *.scroll-animate:nth-child(6) { transition-delay: 0.5s; }

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(26, 58, 107, 0.04);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.news-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 380px;
}

.news-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.news-card-featured .news-card-image {
  height: 100%;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.06);
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.3s;
  cursor: pointer;
}

.btn-link:hover {
  gap: 10px;
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card-featured { grid-template-columns: 1fr; max-height: none; }
  .news-card-featured .news-card-image { height: 220px; }
}

/* ===== PARTNER MODAL ===== */
.partner-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.partner-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.partner-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.partner-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.partner-modal-close:hover { background: #fee2e2; color: #dc2626; }

.partner-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.partner-modal-header h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 0;
}

.partner-modal-body {
  padding: 24px 28px 28px;
}

.partner-modal-section {
  margin-bottom: 20px;
}

.partner-modal-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.partner-modal-section p {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.partner-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.partner-modal-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.partner-modal-list li:last-child { border-bottom: none; }

.partner-modal-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ===== INFO CARDS ROW ===== */
.info-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.info-cards-row .info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: 14px;
  transition: transform 0.2s;
}

.info-cards-row .info-card:hover { transform: translateY(-2px); }

.info-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-cards-row .info-card strong {
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--text); }
.info-list li span { color: var(--text-light); }

/* ===== NO RESULT ===== */
.no-result {
  text-align: center;
  color: var(--text-light);
  padding: 60px 20px;
  font-size: 1.05rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 58, 107, 0.04);
}

/* ===== SOCIAL ICONS ===== */
.partner-social-links {
  display: flex;
  gap: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icon:hover { transform: translateY(-2px); opacity: 0.9; }
.social-facebook { background: #1877f2; }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-linkedin { background: #0077b5; }
.social-tiktok { background: #010101; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== FILE INPUT ===== */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
}

.file-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-light);
  font-size: 0.9rem;
}

.file-input-label:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 58, 107, 0.04);
}

.file-input:focus + .file-input-label {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger { background: #fdecea; color: #c62828; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-secondary { background: var(--bg-alt); color: var(--text-light); }

/* ===== BTN-SMALL ===== */
.btn-small {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: white;
}

.btn-small:hover { opacity: 0.85; }

.btn-danger { background: #dc2626 !important; }
.btn-danger:hover { background: #b91c1c !important; }

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s;
}

.gallery-item:hover { transform: translateY(-4px); }

.gallery-image {
  position: relative;
  padding-top: 100%;
  background: #f0f0f0;
}

.gallery-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--secondary);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gallery-overlay h4 {
  margin: 0;
  font-size: 0.95rem;
}

/* ===== NOTIFICATION BELL ===== */
.notif-link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.notification-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: #ccc;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notification-badge.active {
  background: #dc2626;
  animation: notif-pulse 2s infinite;
}

@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== SIDEBAR AVATAR ===== */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.sidebar-avatar-text {
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.sidebar-username {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-avatar-img {
  overflow: hidden;
}

.admin-user-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RICH TEXT EDITOR ===== */
.rich-editor-container {
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.rich-editor-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.ql-toolbar.ql-snow {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--bg-alt);
}

.ql-container.ql-snow {
  border: none !important;
  font-family: inherit;
  font-size: 0.95rem;
}

.ql-editor {
  min-height: 200px;
  padding: 16px;
}

.ql-editor p {
  margin-bottom: 0.5em;
}

/* ===== ADM FORM FIXES ===== */
.form-container .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

/* ===== MOBILE UTILITY CLASSES ===== */
.mobile-hide { display: none !important; }
.mobile-full { width: 100% !important; }

/* ===== TABLET & BELOW (768px) ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    padding: 80px 24px 24px;
    z-index: 1001;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .nav-menu.active .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-menu.active .nav-item.submenu-open > .submenu {
    max-height: 400px;
  }
  .nav-menu.active .nav-item > a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    padding: 90px 20px 70px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .section {
    padding: 60px 20px;
  }
  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

  .partners-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row .form-group { width: 100%; }
  .btn-group { flex-wrap: wrap; }
  .btn-group .btn { min-width: 0; flex: 1; }

  .info-list li { flex-direction: column; gap: 4px; }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-cards-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 60px 20px;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .page-header p {
    font-size: 0.95rem;
  }

  .events-timeline {
    padding-left: 40px;
  }
  .event-timeline-item {
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
  }
  .event-timeline-dot {
    position: absolute;
    left: -40px;
    top: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .partner-modal-content {
    max-width: 100%;
    margin: 0 10px;
  }
  .partner-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }
  .partner-modal-body {
    padding: 20px;
  }

  .admin-content {
    padding: 20px;
  }
  .admin-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .admin-header h2 {
    font-size: 1.1rem;
  }
  .admin-header-right { width: 100%; }
  .admin-header-right .btn { width: 100%; text-align: center; }

  .admin-sidebar {
    display: none;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 260px;
  }
  .admin-sidebar.mobile-open ~ .admin-main {
    margin-left: 0;
  }

  .admin-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
  }
  .admin-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.2s;
  }
  .admin-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .admin-mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .admin-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input,
  .search-select {
    min-width: auto;
    width: 100%;
  }

  .login-card {
    padding: 28px 24px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .error-page h1 {
    font-size: 5rem;
  }
  .error-page p {
    font-size: 1.1rem;
  }

  .cta-section {
    padding: 60px 20px;
  }
  .cta-section h2 {
    font-size: 1.8rem;
  }

  .content-page {
    padding: 0 4px;
  }

  .admin-table {
    font-size: 0.85rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table { min-width: 600px; }

  .notif-link {
    padding: 6px;
  }

  .sidebar-user {
    padding: 10px 16px;
  }
}

/* ===== PHONE (480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .hero {
    padding: 70px 12px 50px;
  }
  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section {
    padding: 40px 12px;
  }
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .page-header {
    padding: 50px 12px;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }

  .card-grid {
    gap: 16px;
  }
  .card-body {
    padding: 16px;
  }
  .card-body h3 {
    font-size: 1.05rem;
  }

  .partners-showcase {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 20px 12px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .kpi-card {
    padding: 16px;
    gap: 12px;
  }
  .kpi-icon {
    width: 40px;
    height: 40px;
  }
  .kpi-number {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .footer-content {
    gap: 24px;
  }
  .footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .footer-section a {
    font-size: 0.85rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card-featured {
    grid-template-columns: 1fr;
  }
  .news-card-featured .news-card-image {
    height: 200px;
  }
  .news-card-body {
    padding: 16px;
  }
  .news-card-body h3 {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gallery-filters {
    gap: 6px;
    margin-bottom: 20px;
  }
  .gallery-filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .gallery-overlay {
    opacity: 1;
    padding: 14px;
  }

  .events-timeline {
    padding-left: 30px;
  }
  .event-timeline-dot {
    left: -30px;
  }
  .event-timeline-content {
    padding: 14px 16px;
  }

  .search-row {
    padding: 12px;
  }
  .search-input,
  .search-select {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .faq-item {
    padding: 16px;
  }
  .faq-item h3 {
    font-size: 0.95rem;
  }

  .info-cards-row .info-card {
    padding: 12px;
    gap: 10px;
  }
  .info-card-icon {
    width: 36px;
    height: 36px;
  }

  .error-page {
    padding: 80px 16px;
  }
  .error-page h1 {
    font-size: 3.5rem;
  }
  .error-page p {
    font-size: 1rem;
  }

  .cta-section {
    padding: 40px 12px;
  }
  .cta-section h2 {
    font-size: 1.4rem;
  }
  .cta-section p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .login-container {
    padding: 12px;
  }
  .login-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .admin-content {
    padding: 16px;
  }
  .admin-header {
    padding: 12px 16px;
    gap: 10px;
  }
  .admin-header h2 {
    font-size: 1rem;
  }
  .admin-header-subtitle {
    font-size: 0.75rem;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .admin-table-responsive {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }

  .table-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .table-cards .admin-table {
    display: none;
  }
  .table-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 58, 107, 0.06);
  }
  .table-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
  }
  .table-card-row:last-child {
    border-bottom: none;
  }
  .table-card-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .partner-modal {
    padding: 10px;
  }
  .partner-modal-content {
    max-height: 90vh;
    border-radius: 16px;
  }
  .partner-modal-header {
    padding: 16px;
  }
  .partner-modal-header h2 {
    font-size: 1.1rem;
  }
  .partner-modal-body {
    padding: 16px;
  }
  .partner-modal-links {
    flex-direction: column;
  }

  .form-container {
    padding: 0;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .detail-main h2 {
    font-size: 1.3rem;
  }

  .feature-card {
    padding: 24px 20px;
  }
  .feature-icon {
    width: 52px;
    height: 52px;
  }
  .feature-card h3 {
    font-size: 1.05rem;
  }
  .feature-card p {
    font-size: 0.85rem;
  }

  .slideshow-track {
    height: 220px;
  }
  .slideshow-info {
    padding: 20px 16px 16px;
  }
  .slideshow-info h2 {
    font-size: 1.1rem;
  }
  .slideshow-info p {
    font-size: 0.85rem;
  }
  .slideshow-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .card-header {
    padding: 14px 16px;
  }
  .card-header h3 {
    font-size: 0.9rem;
  }

  .notif-link {
    padding: 4px;
  }
  .notification-badge {
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }

  .sidebar-user {
    padding: 8px 12px;
    gap: 8px;
  }
  .sidebar-avatar {
    width: 32px;
    height: 32px;
  }
  .sidebar-username {
    font-size: 0.75rem;
  }

  .admin-sidebar.mobile-open {
    width: 100%;
  }

  .rich-editor-container {
    border-radius: 8px;
  }
  .ql-editor {
    min-height: 150px;
    padding: 12px;
  }

  .btn-small {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .btn-outline {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .btn-danger {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .main-footer {
    padding: 40px 12px 16px;
  }
  .footer-bottom {
    font-size: 0.8rem;
  }

  .reveal-text {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== RESPONSIVE: LAPTOPS & LARGE SCREENS ===== */

/* Laptop landscape (1280px-1440px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container { max-width: 1200px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
  .hero { min-height: 85vh; padding: 90px 32px 70px; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.1rem; }
}

/* Desktop 2K (1440px-1920px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  :root { --max-width: 1400px; }
  .container { max-width: 1400px; padding: 0 40px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
  .hero { min-height: 90vh; padding: 100px 40px 80px; }
  .hero h1 { font-size: 3.2rem; }
  .hero p { font-size: 1.15rem; }
  .section { padding: 80px 40px; }
  .section h2 { font-size: 2.4rem; }
  .partners-marquee-wrapper { max-width: 1200px; margin: 0 auto; }
  .marquee-item { min-width: 220px; }
}

/* Large 4K (1920px+) */
@media (min-width: 1920px) {
  :root { --max-width: 1500px; }
  .container { max-width: 1500px; padding: 0 48px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
  .hero { min-height: 95vh; padding: 120px 48px 100px; }
  .hero h1 { font-size: 3.8rem; }
  .hero p { font-size: 1.3rem; }
  .section { padding: 100px 48px; }
  .section h2 { font-size: 2.8rem; }
  .main-header { padding: 14px 48px; }
  .logo { width: 140px; }
  .nav-item > a { font-size: 1rem; padding: 10px 18px; }
  .form-container { max-width: 800px; padding: 40px; }
  .partners-marquee-wrapper { max-width: 1300px; }
  .marquee-item { min-width: 240px; }
  .detail-grid { max-width: 1100px; }
  .stat-card { padding: 32px 28px; }
  .stat-card .stat-number { font-size: 2.6rem; }
}

/* Very large 4K+ (2560px+) */
@media (min-width: 2560px) {
  :root { --max-width: 1800px; }
  .container { max-width: 1800px; padding: 0 64px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 36px; }
  .hero { min-height: 100vh; padding: 140px 64px 120px; }
  .hero h1 { font-size: 4.4rem; }
  .hero p { font-size: 1.45rem; }
  .section { padding: 120px 64px; }
  .section h2 { font-size: 3.2rem; }
  .main-header { padding: 18px 64px; }
  .logo { width: 160px; }
  .marquee-item { min-width: 280px; }
  .stat-card .stat-number { font-size: 3rem; }
}

/* Laptop small / tablet landscape (1024px-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
  .hero { min-height: 80vh; padding: 85px 28px 65px; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 65px 28px; }
  .nav-item > a { font-size: 0.9rem; padding: 7px 10px; }
  .navbar { padding: 0 16px; }
  .logo { width: 110px; }
}

/* Landscape phones */
@media (max-width: 500px) and (orientation: landscape) {
  .hero { min-height: 70vh; padding: 60px 16px 40px; }
  .hero h1 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
