/* ============================================
   Bhartiya Mahila Darshnik Parishad (BMDP)
   Complete Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #C17817;
  --primary-hover: #9E5F12;
  --primary-light: #FEF3E2;
  --primary-rgb: 193, 120, 23;
  --secondary: #F5F0E8;
  --accent: #1E3A5F;
  --accent-light: #2E5A8F;
  --accent-rgb: 30, 58, 95;
  --bg: #FFFFFF;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --muted: #F9FAFB;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'DejaVu Sans', 'Liberation Sans', Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'DejaVu Sans', 'Liberation Sans', Roboto, Arial, sans-serif;
  --header-height: 200px;
  --header-height-mobile: 75px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  font-weight: 700;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
}

/* --- Header: Fixed Title + Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-main {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

@media (min-width: 768px) {
  .header-inner {
    min-height: 110px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.header-logo-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-logo-img {
    width: 190px;
    height: auto;
  }
}

.header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-title-hindi {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
  word-break: break-word;
}

@media (min-width: 768px) {
  .header-title-hindi {
    font-size: 2rem;
  }
}

.header-title-eng {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  word-break: break-word;
}

@media (min-width: 768px) {
  .header-title-eng {
    font-size: 2rem;
  }
}

/* Navigation in header (hides on scroll) */
.header-nav {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  display: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .header-nav {
    display: block;
  }
}

.header-nav.nav-hidden {
  transform: translateY(-100%);
}

.header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-nav-inner::-webkit-scrollbar {
  display: none;
}

.header-nav-inner a {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-nav-inner a:hover,
.header-nav-inner a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* --- Mobile Toggle --- */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle:hover {
  background: var(--muted);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 999;
}

.mobile-menu.open {
  display: block;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* --- Page Top: Legal + Taglines (scrollable) --- */
.page-top {
  margin-top: 75px;
}

@media (min-width: 768px) {
  .page-top {
    margin-top: 150px;
  }
}

@media (min-width: 1024px) {
  .page-top {
    margin-top: 200px;
  }
}

/* Legal Status */
.header-legal-bar {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.5rem 0;
}

.header-legal-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 768px) {
  .header-legal-text {
    font-size: 1.1rem;
  }
}

/* Main Tagline */
.header-tagline-bar {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 0.6rem 0;
}

.header-tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .header-tagline {
    font-size: 2.6rem;
  }
}

/* Sub Tagline */
.header-slogan-bar {
  background: var(--accent);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0.2rem 0 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.header-slogan {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .header-slogan {
    font-size: 1.5rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-1px);
}

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

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

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}

.badge-white {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* --- Hero Full Image --- */
.hero-full {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-full {
    height: calc(100vh - 150px);
    min-height: 500px;
  }
}

@media (min-width: 1024px) {
  .hero-full {
    height: calc(100vh - 200px);
    min-height: 550px;
  }
}

@media (max-width: 767px) {
  .hero-full {
    height: auto;
    min-height: 280px;
    max-height: 400px;
    aspect-ratio: 16/9;
  }
}

.hero-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 30%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-full-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 70%);
  }
}

.hero-full-actions {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  z-index: 2;
  width: 90%;
  max-width: 500px;
}

@media (max-width: 767px) {
  .hero-full-actions {
    bottom: 0.75rem;
    gap: 0.5rem;
    width: 96%;
  }
  .hero-full-actions .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }
}

@media (min-width: 768px) {
  .hero-full-actions {
    bottom: 4rem;
    gap: 1rem;
  }
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--secondary);
}

@media (min-width: 768px) {
  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem 4rem;
  }
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Section --- */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-alt {
  background: var(--secondary);
}

.section-dark {
  background: var(--accent);
  color: white;
}

.section-center {
  text-align: center;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header.light h2 {
  color: white;
}

.section-header.light p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.grid > * {
  min-width: 0;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Member Card --- */
.member-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

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

.member-card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--secondary);
}

.member-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease-out);
}

.member-card:hover .member-card-image img {
  transform: scale(1.08);
}

.member-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-card-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.member-card-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.member-card-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.member-read-more {
  margin-top: 0.75rem;
  align-self: flex-start;
}

.member-card-city {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

/* --- Page Hero --- */
.page-hero {
  padding: calc(var(--header-height-mobile) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-hero {
    padding: calc(110px + 4rem) 0 3rem;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding: calc(150px + 4rem) 0 3rem;
  }
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(193, 120, 23, 0.08) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin: 1rem 0 0.75rem;
}

.page-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Gradient Banner --- */
.gradient-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-2xl);
  color: white;
}

.gradient-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.gradient-banner p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* --- Conference Card --- */
.conference-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  position: relative;
  transition: all var(--transition);
}

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

.conference-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.conference-date .day {
  font-size: 1.5rem;
}

.conference-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.conference-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.conference-theme {
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.conference-theme-en {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.conference-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.conf-desc-preview {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.conf-desc-full {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.conf-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: gap var(--transition);
}

.conf-read-more:hover {
  gap: 0.5rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.375rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-light);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

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

.gallery-item-title {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.gallery-item-category {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--muted);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
}

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

.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
}

.lightbox-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.05);
}

.lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-info {
  padding: 1rem 0;
  color: white;
  text-align: center;
}

.lightbox-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.lightbox-info p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.7;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

.lightbox-nav.prev {
  left: -3rem;
}

.lightbox-nav.next {
  right: -3rem;
}

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--primary);
}



/* --- Contact --- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-info-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-info-text a:hover {
  color: var(--primary);
}

.map-container {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-top: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: none;
}

/* --- Form --- */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background: var(--muted);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  outline: none;
  color: var(--text);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  background: white;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.form-success {
  display: none;
  padding: 1rem;
  background: #DCFCE7;
  color: #166534;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
}



/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  background: var(--bg);
  color: var(--text);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer .social-link {
  background: var(--secondary);
  color: var(--text-muted);
}

.footer .social-link:hover {
  background: var(--primary);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-logo-wrap img {
  width: 230px;
  height: auto;
  flex-shrink: 0;
}

.footer-logo-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.footer-logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-social {
  margin-top: 1rem;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-links a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.25rem;
}

.footer-contact p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
  display: flex;
  align-items: center;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1001;
}

.announcement-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonial-card {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  transition: all var(--transition);
}

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

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-light);
}

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

.testimonial-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
}

.testimonial-text {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s var(--ease-out);
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s var(--ease-out);
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s var(--ease-out);
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Utility --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-heading { font-family: var(--font-heading); }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.w-full { width: 100%; }
.hidden { display: none; }
.block { display: block; }

/* --- Page Content Spacing --- */
.page-content {
  min-height: 100vh;
  animation: pageIn 0.4s var(--ease-out);
}

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

/* --- Members Grid --- */
.members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .members-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Heritage Grid (About) --- */
.heritage-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .heritage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .heritage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.heritage-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  position: relative;
  transition: all var(--transition);
}

.heritage-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.heritage-year {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.heritage-content h4 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
  color: var(--accent);
}

.heritage-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Association Grid --- */
.assoc-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .assoc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .assoc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.assoc-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.assoc-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.assoc-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.assoc-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.assoc-card p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* --- President Details Grid --- */
.pres-details-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pres-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pres-detail-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pres-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pres-detail-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- President Sections Grid --- */
.pres-sections-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .pres-sections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pres-section-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.pres-section-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pres-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.35rem 0;
  line-height: 1.5;
}

.pres-list-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--primary);
}

/* --- Membership Grid --- */
.membership-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .membership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .membership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.membership-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

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

.membership-card h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.membership-fee {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.membership-benefits {
  text-align: left;
}

.membership-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  line-height: 1.5;
}

.membership-benefits li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}

/* --- Member Benefit Item --- */
.member-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.5rem 0;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.member-benefit-item:last-child {
  border-bottom: none;
}

.member-benefit-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--primary);
}

/* --- Process Steps --- */
.process-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.process-step:last-child {
  border-bottom: none;
}

.process-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: var(--muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--primary-light);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
  padding: 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer.show {
  max-height: 500px;
  padding: 1rem 1.25rem;
}

/* --- Conference Banner --- */
.conf-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1rem;
}

.conf-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .conf-banner img {
    height: 280px;
  }
}

.conf-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.conf-outcomes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.conf-outcomes h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.conf-outcomes ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.conf-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.conf-outcomes li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary);
}

.conf-proceedings {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.conf-proceedings svg {
  color: var(--primary);
}

.conf-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  background: #dc2626;
  border-radius: var(--radius);
  transition: background var(--transition);
  text-decoration: none;
}

.conf-pdf-link:hover {
  background: #b91c1c;
}

/* --- Premium Timeline --- */
.premium-timeline .timeline-item {
  padding-bottom: 2rem;
}

.timeline-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition);
}

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

.timeline-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.375rem;
}

.premium-timeline .timeline-year {
  font-size: 1rem;
}

/* --- Hindi Text (Bilingual Support) --- */
.mission-text-hindi {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* --- About Preview (Home) --- */
.about-preview {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-preview {
    grid-template-columns: 1fr 1fr;
  }
}

.about-preview-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-preview-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- President Preview (Home) --- */
.president-preview {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .president-preview {
    grid-template-columns: 1fr 2fr;
  }
}

.president-preview-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.president-preview-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.president-preview blockquote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  padding-left: 1.5rem;
  border-left: 4px solid var(--primary);
  margin: 1rem 0;
}

/* --- Mission Cards --- */
.mission-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition);
}

.mission-card:hover {
  box-shadow: var(--shadow-md);
}

.mission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.mission-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mission-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.mission-list-item svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

/* --- Two Column Layout (Inner Pages) --- */
.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.two-col-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.two-col-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* --- Responsive tables --- */
@media (max-width: 639px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .hide-desktop {
    display: none !important;
  }
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
/* ============================================
   ADMIN PANEL — Dark vibrant w/ live gradient
   ============================================ */

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

.admin-wrap {
  min-height: 100vh;
  background: var(--adm-grad, linear-gradient(-45deg, #0f0a2a, #1a0a1a, #0a1a2a, #1a0a2e, #0a1a1a, #2a0a1a));
  background-size: 400% 400%;
  animation: admGrad 20s ease infinite;
  color: #e0e0e0;
  font-size: 0.875rem;
}
.admGrad1 { --adm-grad: linear-gradient(-45deg, #0f0a2a, #1a0a1a, #0a1a2a, #1a0a2e, #0a1a1a, #2a0a1a); }
.admGrad2 { --adm-grad: linear-gradient(-45deg, #1a0a0a, #2a0a1a, #1a0a2a, #0a0a1a, #0a1a1a, #1a0a0a); }
.admGrad3 { --adm-grad: linear-gradient(-45deg, #0a0a2a, #0a1a2a, #0a2a1a, #0a202a, #0a1a2a, #0a0a1a); }
.admGrad4 { --adm-grad: linear-gradient(-45deg, #0a1a0a, #0a2a0a, #1a2a0a, #0a1a0a, #0a2a0a, #1a1a0a); }
.admGrad5 { --adm-grad: linear-gradient(-45deg, #0a0a0a, #1a0a1a, #0a1a1a, #1a1a0a, #0a0a0a, #1a0a0a); }
.admGrad6 { --adm-grad: linear-gradient(-45deg, #0a1a2a, #0a2a2a, #1a2a2a, #0a2a1a, #0a1a2a, #1a1a2a); }
.admGrad7 { --adm-grad: linear-gradient(-45deg, #1a0a2a, #0a0a2a, #1a0a1a, #2a0a2a, #0a0a1a, #1a0a2a); }
.admGrad8 { --adm-grad: linear-gradient(-45deg, #1a1a0a, #2a1a00, #1a0a00, #2a2a0a, #1a1a0a, #0a1a00); }
.admGrad9 { --adm-grad: linear-gradient(-45deg, #0a1a2a, #0a0a2a, #1a1a2a, #0a2a2a, #0a1a1a, #0a0a1a); }
.admGrad10 { --adm-grad: linear-gradient(-45deg, #2a0000, #1a0000, #2a0a00, #1a0a00, #0a0000, #2a000a); }
.admGrad11 { --adm-grad: linear-gradient(-45deg, #2a0a1a, #1a0a1a, #2a1a1a, #1a0a0a, #2a0a0a, #1a0a1a); }
.admGrad12 { --adm-grad: linear-gradient(-45deg, #0a0a1a, #1a0a2a, #0a1a2a, #1a0a1a, #0a0a2a, #1a1a2a); }

/* Header bar (replaces sidebar) */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(10,8,20,0.5);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #f472b6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Section dropdown */
#adminSectionSelect {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.8);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  min-width: 180px;
  transition: all 0.15s;
}

#adminSectionSelect:hover {
  background: rgba(255,255,255,0.07);
}

#adminSectionSelect:focus {
  border-color: rgba(192,132,252,0.4);
  background: rgba(255,255,255,0.07);
}

#adminSectionSelect option {
  background: #1a1a2e;
  color: #e0e0e0;
}

/* Body — no sidebar, full width */
.admin-body {
  padding: 2rem 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Main form glass card */
#adminForm {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Section header with colored underline */
.admin-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
}

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

.admin-section-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding-left: 0;
  border-left: none;
}

/* Color dots for each section */
.dot-purple { background: #c084fc; box-shadow: 0 0 6px #c084fc; }
.dot-pink { background: #f472b6; box-shadow: 0 0 6px #f472b6; }
.dot-amber { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.dot-blue { background: #60a5fa; box-shadow: 0 0 6px #60a5fa; }
.dot-teal { background: #2dd4bf; box-shadow: 0 0 6px #2dd4bf; }
.dot-rose { background: #fb7185; box-shadow: 0 0 6px #fb7185; }
.dot-emerald { background: #34d399; box-shadow: 0 0 6px #34d399; }
.dot-orange { background: #fb923c; box-shadow: 0 0 6px #fb923c; }
.dot-indigo { background: #818cf8; box-shadow: 0 0 6px #818cf8; }
.dot-cyan { background: #22d3ee; box-shadow: 0 0 6px #22d3ee; }
.dot-lime { background: #a3e635; box-shadow: 0 0 6px #a3e635; }
.dot-red { background: #f87171; box-shadow: 0 0 6px #f87171; }

/* Color badges for list types */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.4rem;
}

.badge-purple { background: rgba(192,132,252,0.15); color: #c084fc; }
.badge-pink { background: rgba(244,114,182,0.15); color: #f472b6; }
.badge-amber { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-blue { background: rgba(96,165,250,0.15); color: #60a5fa; }
.badge-teal { background: rgba(45,212,191,0.15); color: #2dd4bf; }
.badge-rose { background: rgba(251,113,133,0.15); color: #fb7185; }
.badge-emerald { background: rgba(52,211,153,0.15); color: #34d399; }
.badge-orange { background: rgba(251,146,60,0.15); color: #fb923c; }
.badge-indigo { background: rgba(129,140,248,0.15); color: #818cf8; }
.badge-cyan { background: rgba(34,211,238,0.15); color: #22d3ee; }
.badge-lime { background: rgba(163,230,53,0.15); color: #a3e635; }

/* Main */
.admin-main {
  flex: 1;
  padding: 2rem 2.5rem;
  min-width: 0;
  max-width: 1200px;
}

.admin-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  line-height: 1.4;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.admin-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: transparent;
}

.admin-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(193,120,23,0.3);
  transform: translateY(-1px);
}

.admin-btn-outline {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.02);
}

.admin-btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.admin-btn-icon {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; font-size: 1.05rem;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}
.admin-btn-icon:hover {
  background: rgba(255,255,255,0.06);
}

/* Tab panels */
.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-tab-content > h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 0.5rem;
}

.admin-tab-content > h2::before {
  content: '';
  width: 3px; height: 1.1em;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.admin-tab-content > h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--primary);
}

.admin-tab-content > h5 {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin: 0.75rem 0 0.4rem;
  font-weight: 600;
}

/* Form fields */
.af {
  margin-bottom: 1rem;
}

.af label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}

.af input,
.af select,
.af textarea,
.admin-list-item input,
.admin-list-item textarea,
.admin-nested-item input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  color: #e0e0e0;
}

.af input:focus,
.af select:focus,
.af textarea:focus,
.admin-list-item input:focus,
.admin-list-item textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193,120,23,0.08), 0 2px 8px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.05);
}

.af input::placeholder,
.af textarea::placeholder {
  color: rgba(255,255,255,0.15);
}

.af textarea {
  resize: vertical;
  min-height: 64px;
}

/* Short/medium width helpers */
.af-short { max-width: 140px !important; }
.af-med { max-width: 280px !important; }
.af-num { max-width: 90px !important; }

/* Image row (afImg) */
/* Color picker row */
.af-color-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.af-color-row input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  flex-shrink: 0;
}

.af-color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.af-color-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.af-color-text {
  flex: 1;
  min-width: 120px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: #e0e0e0;
  font-family: monospace;
  outline: none;
  transition: border-color 0.15s;
}

.af-color-text:focus {
  border-color: rgba(192,132,252,0.4);
}

.af-img-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.af-img-row input {
  flex: 1;
  min-width: 180px;
}

/* Preview thumbnails */
.af-img-preview {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.af-img-preview:hover {
  transform: scale(4) translateY(-10%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 100;
  border-radius: 8px;
}

.af-preview-sm {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.af-preview-sm:hover {
  transform: scale(5) translateY(-15%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 100;
  border-radius: 6px;
}

/* Inline image row */
.af-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.af-inline input {
  flex: 1;
  min-width: 150px;
}

.af-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.af-file-link:hover {
  background: rgba(220, 38, 38, 0.2);
}

/* Buttons */
.admin-upload-btn,
.admin-browse-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s;
  line-height: 1.4;
  border: none;
}

.admin-upload-btn {
  color: #fff;
  background: var(--primary);
}

.admin-upload-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.admin-browse-btn {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.admin-browse-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* List items */
.admin-list-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  transition: all 0.2s;
}

.admin-list-item:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.admin-list-item:has(input:focus) {
  border-color: rgba(193,120,23,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.admin-list-item input,
.admin-list-item textarea {
  flex: 1;
  min-width: 130px;
  margin: 0;
}

.admin-list-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.2);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-list-remove:hover {
  background: rgba(239,68,68,0.12);
  color: #f87171;
}

.admin-list-move {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.15);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-list-move:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
}

.admin-list-move.move-up:hover { color: #60a5fa; }
.admin-list-move.move-down:hover { color: #fbbf24; }

.admin-list-actions {
  display: flex;
  gap: 0.15rem;
  flex-shrink: 0;
}

.admin-list-add {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: none;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.4rem;
}

.admin-list-add:hover {
  background: rgba(193,120,23,0.05);
  border-color: rgba(193,120,23,0.2);
  color: #d4943a;
}

/* Nested */
.admin-nested-item {
  padding: 0.85rem;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

.admin-nested-item > input {
  margin-bottom: 0.4rem;
}

.admin-nested-item .admin-list-item {
  background: rgba(255,255,255,0.02);
}

.sub-item {
  margin-left: 1.5rem;
}

.sub-add {
  margin-left: 1.5rem;
}

.main-remove {
  margin-top: 0.4rem;
  width: auto;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.member-form, .conf-form {
  flex-wrap: wrap;
}

.member-form input,
.member-form textarea,
.conf-form input,
.conf-form textarea {
  min-width: 160px;
}

/* Toast */
.admin-toast {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  background: rgba(66,133,244,0.08);
  backdrop-filter: blur(12px);
  color: #8ab4f8;
  border: 1px solid rgba(66,133,244,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.admin-toast.success {
  background: rgba(52,168,83,0.08);
  color: #81c995;
  border-color: rgba(52,168,83,0.12);
}

.admin-toast.error {
  background: rgba(234,67,53,0.08);
  color: #f28b82;
  border-color: rgba(234,67,53,0.12);
}

/* ============================================
   IMAGE BROWSER MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.modal-panel {
  background: rgba(20,15,30,0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: modalSlide 0.2s ease;
}
@keyframes modalSlide { from { opacity:0; transform:scale(0.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.06);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.modal-loading,
.modal-empty,
.modal-error {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.modal-error {
  color: #f28b82;
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.image-grid-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.image-grid-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(193,120,23,0.12);
  transform: translateY(-2px);
}

.image-grid-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.image-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-grid-name {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-grid-item .img-delete-btn {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239,68,68,0.85);
  color: white;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.image-grid-item {
  position: relative;
}

.image-grid-item:hover .img-delete-btn {
  display: flex;
}

.image-grid-item .img-delete-btn:hover {
  background: #dc2626;
}

/* Responsive */
@media (max-width: 600px) {
  .login-card { max-width: 300px; padding: 2rem 1.25rem 1.5rem; border-radius: 16px; }
  .login-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
  .login-username { font-size: 0.95rem; }
  .login-pass-input { padding: 0.65rem 0.85rem; font-size: 0.85rem; }
  .login-pass-arrow { width: 38px; font-size: 0.8rem; }
  .login-actions-bar { bottom: 0.5rem; left: 0.5rem; }
  .login-action-btn { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 6px; }
}

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

@media (max-width: 900px) {
  .admin-body { padding: 1.5rem; }
  .af-img-preview { width: 90px; height: 68px; }
  .af-preview-sm { width: 60px; height: 45px; }
}

@media (max-width: 768px) {
  .admin-header {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
  }
  .admin-header-left {
    flex: 1;
    min-width: 0;
    gap: 0.5rem;
  }
  .admin-logo { font-size: 0.9rem; }
  #adminSectionSelect {
    min-width: 80px;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
  .admin-toolbar-actions { gap: 0.3rem; }
  .admin-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
  .admin-body { padding: 0.75rem; }
  .admin-tab-content.active { padding: 0.75rem; }
  .admin-tab-content > h2 { font-size: 0.95rem; }
  .admin-section-header h4 { font-size: 0.8rem; }
  .af { margin-bottom: 0.65rem; }
  .af label { font-size: 0.65rem; }
  .af input, .af textarea,
  .admin-list-item input, .admin-list-item textarea {
    padding: 0.45rem 0.55rem;
    font-size: 0.8rem;
  }
  .af-img-preview { width: 70px; height: 52px; }
  .af-preview-sm { width: 48px; height: 36px; }
  .af-img-row { flex-wrap: wrap; }
  .af-img-row input { min-width: 120px; }
  .af-color-row input[type="color"] { width: 36px; height: 30px; }
  .af-color-text { font-size: 0.75rem; padding: 0.4rem 0.5rem; }
  .admin-list-item {
    padding: 0.5rem;
    gap: 0.3rem;
  }
  .admin-list-item input,
  .admin-list-item textarea { min-width: 80px; }
  .admin-list-add { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .admin-list-remove { width: 24px; height: 24px; font-size: 0.95rem; }
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
  }
  .image-grid-name { font-size: 0.65rem; padding: 0.3rem 0.4rem; }
  .modal-overlay { padding: 0.5rem; }
  .modal-panel { max-height: 92vh; border-radius: 8px; }
  .modal-header { padding: 0.75rem 1rem; }
  .modal-header h3 { font-size: 0.85rem; }
  .modal-body { padding: 0.75rem; }
  .modal-close { width: 28px; height: 28px; font-size: 1.1rem; }
  .admin-nested-item { padding: 0.6rem; }
  .member-form input, .member-form textarea,
  .conf-form input, .conf-form textarea { min-width: 100px; }
}

@media (max-width: 480px) {
  .admin-header-left { flex-wrap: wrap; }
  #adminSectionSelect { min-width: 100%; }
  .admin-toolbar-actions { width: 100%; justify-content: flex-end; }
  .admin-body { padding: 0.5rem; }
  .admin-tab-content.active { padding: 0.5rem; }
  .af-img-preview { width: 60px; height: 45px; }
  .af-preview-sm { width: 40px; height: 30px; }
  .af-color-row { flex-wrap: wrap; }
  .af-color-row input[type="color"] { width: 32px; height: 28px; }
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .admin-list-item { flex-direction: column; align-items: stretch; }
  .admin-list-item input,
  .admin-list-item textarea { min-width: 0; }
  .admin-list-remove { align-self: flex-end; }
  .af-inline { flex-wrap: wrap; }
  .af-inline input { min-width: 100px; }
}

/* --- Login Screen (Modern Glassy) --- */
.login-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: url('/images/bg.jpeg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.login-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.login-loading {
  position: relative; z-index: 1; color: rgba(255,255,255,0.7);
  font-size: 1rem; text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.login-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 340px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 2.5rem 2rem 2rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: loginFadeIn 0.5s ease;
}
@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 600; color: white;
  margin-bottom: 0.75rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.login-username {
  font-size: 1.1rem; font-weight: 500; color: white;
  margin-bottom: 1.25rem; text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}
.login-pass-row {
  display: flex; width: 100%; gap: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
  transition: all 0.25s;
}
.login-pass-row:focus-within {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.login-pass-input {
  flex: 1; padding: 0.75rem 1rem;
  background: transparent; border: none;
  color: white; font-size: 0.9rem; outline: none;
}
.login-pass-input::placeholder { color: rgba(255,255,255,0.3); }
.login-pass-arrow {
  width: 44px; border: none; background: transparent;
  color: rgba(255,255,255,0.3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all 0.2s; font-family: inherit;
}
.login-pass-arrow:hover { color: white; background: rgba(255,255,255,0.06); }
.login-pass-arrow:disabled { opacity: 0.15; cursor: default; }
.login-error {
  background: rgba(255,60,60,0.12); color: #ff8a8a; padding: 0.5rem 0.75rem;
  border-radius: 10px; font-size: 0.8rem; margin-bottom: 0.75rem; width: 100%;
  text-align: center; display: none;
  backdrop-filter: blur(4px); border: 1px solid rgba(255,60,60,0.08);
}
.login-actions-bar {
  position: absolute; bottom: 0.75rem; left: 0.75rem; z-index: 1;
  display: flex; gap: 0.35rem;
}
.login-action-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; color: rgba(255,255,255,0.4); cursor: pointer;
  transition: all 0.2s; font-family: inherit; font-size: 0.85rem;
  backdrop-filter: blur(4px);
}
.login-action-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }

/* --- Toggle Switch --- */
.af-toggle { display: flex; align-items: center; justify-content: space-between; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: rgba(255,255,255,0.12); border-radius: 24px; transition: 0.25s;
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  background: rgba(255,255,255,0.5); border-radius: 50%; transition: 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: #C17817; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: white; }

/* --- Gradient Preset Selector --- */
.gradient-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.grad-preset {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.75rem 0.5rem; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s; font-size: 0.75rem; color: rgba(255,255,255,0.5);
}
.grad-preset:hover { background: rgba(255,255,255,0.06); }
.grad-preset.selected { border-color: #C17817; background: rgba(193,120,23,0.1); color: rgba(255,255,255,0.85); }
.grad-preview { width: 100%; height: 40px; border-radius: 6px; }

/* --- Admin Settings Icon --- */
.admin-btn-icon {
  width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px;
  color: rgba(255,255,255,0.5); font-size: 1.1rem; cursor: pointer; transition: all 0.2s;
  line-height: 1;
}

/* --- Contact Submissions Admin Tab --- */
.contact-submission {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: all 0.15s;
}
.contact-submission:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.07);
}
.contact-sub-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.contact-sub-date {
  font-size: 0.75rem; color: var(--text-muted);
}
.contact-sub-detail {
  font-size: 0.8125rem; color: rgba(255,255,255,0.6);
  margin-bottom: 0.15rem;
}
.contact-sub-detail a { color: var(--primary); }
.contact-sub-msg {
  margin-top: 0.5rem; padding: 0.75rem;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 0.85rem; line-height: 1.5;
  white-space: pre-wrap;
}
.admin-contacts-tab .admin-tab-header {
  display: flex; justify-content: space-between; align-items: center;
}
.admin-btn-icon:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }

/* Scrollbar */
.admin-body::-webkit-scrollbar,
.modal-body::-webkit-scrollbar { width: 6px; }
.admin-body::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track { background: transparent; }
.admin-body::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }
.admin-body::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* --- File Manager --- */
.fm-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.fm-header h2 { margin: 0; }
.fm-actions { display: flex; gap: 0.5rem; }
.fm-breadcrumb { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 0.75rem; font-size: 0.85rem; }
.fm-crumb { cursor: pointer; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.fm-crumb:hover { color: var(--primary); }
.fm-crumb.active { color: rgba(255,255,255,0.8); cursor: default; }
.fm-crumb-sep { color: rgba(255,255,255,0.15); margin: 0 0.2rem; }
.fm-grid { display: flex; flex-direction: column; gap: 2px; }
.fm-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.02); border-radius: 6px; cursor: default; transition: background 0.15s; }
.fm-item:hover { background: rgba(255,255,255,0.05); }
.fm-dir { cursor: pointer; }
.fm-dir:hover .fm-name { color: var(--primary); }
.fm-icon { flex-shrink: 0; width: 1.5rem; text-align: center; font-size: 1.1rem; }
.fm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
.fm-name-text { vertical-align: middle; }
.fm-rename-input { width: 70%; padding: 0.2rem 0.4rem; font-size: 0.875rem; background: rgba(0,0,0,0.3); border: 1px solid var(--primary); border-radius: 4px; color: white; outline: none; }
.fm-size { width: 80px; flex-shrink: 0; text-align: right; font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.fm-date { width: 90px; flex-shrink: 0; text-align: right; font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.fm-item .fm-actions { display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.15s; }
.fm-item:hover .fm-actions { opacity: 1; }
.fm-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: all 0.15s; padding: 0; line-height: 1; }
.fm-btn:hover { background: rgba(255,255,255,0.08); }
.fm-btn-del:hover { background: rgba(255,60,60,0.15); color: #ff6b6b; }
.fm-btn-rename:hover { background: rgba(255,193,7,0.12); color: #ffc107; }
.fm-btn-view:hover { background: rgba(0,200,255,0.12); color: #4dc9f6; }
.fm-empty { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.875rem; }
.fm-loading { text-align: center; padding: 2rem; color: var(--text-muted); }
.fm-error { text-align: center; padding: 2rem; color: #ff6b6b; }
