/* ============================================
   ZUMS Computer Society - Custom #0d6efdootstrap 5 Theme
   Aesthetic: Cyberpunk / Hacker Minimalism (Dark)
   Primary: #00ff00 | Background: #0a0a0a | Text: #e0e0e0
   ============================================ */

/* ---------- FONTS ---------- */
@font-face {
  font-family: 'Klavika';
  src: url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-medium-webfont.woff2') format('woff2'),
       url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Klavika';
  src: url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-regular-italic-webfont.woff2') format('woff2'),
       url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-regular-italic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ---------- CSS VARIABLES (Bootstrap Override) ---------- */
:root {
  --bs-primary: #00ff00;
  --bs-primary-rgb: 0, 255, 0;
  --bs-secondary: #1a1a1a;
  --bs-secondary-rgb: 26, 26, 26;
  --bs-success: #00ff00;
  --bs-success-rgb: 0, 255, 0;
  --bs-info: #00ffff;
  --bs-info-rgb: 0, 255, 255;
  --bs-warning: #ffcc00;
  --bs-warning-rgb: 255, 204, 0;
  --bs-danger: #ff3333;
  --bs-danger-rgb: 255, 51, 51;
  --bs-light: #e0e0e0;
  --bs-light-rgb: 224, 224, 224;
  --bs-dark: #0a0a0a;
  --bs-dark-rgb: 10, 10, 10;
  --bs-body-bg: #0a0a0a;
  --bs-body-color: #e0e0e0;
  --bs-border-color: #2a2a2a;
  --bs-border-radius: 1rem;
  --bs-border-radius-lg: 1.5rem;
  --bs-font-sans-serif: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bs-font-monospace: 'Courier New', monospace;
  --bs-navbar-color: #00ff00;
  --bs-navbar-hover-color: #aaffaa;
  --bs-navbar-active-color: #00ff00;
  --bs-link-color: #00ff00;
  --bs-link-hover-color: #aaffaa;
  --bs-input-bg: #141414;
  --bs-input-color: #e0e0e0;
  --bs-input-border-color: #2a2a2a;
  --bs-input-focus-border-color: #00ff00;
  --bs-input-focus-box-shadow: 0 0 0 0.25rem rgba(0, 255, 0, 0.25);
  --neon-green: #00ff00;
  --neon-green-dim: rgba(0, 255, 0, 0.4);
  --glass-bg: rgba(10, 10, 10, 0.75);
  --glass-border: rgba(0, 255, 0, 0.3);
}

/* ---------- GLOBAL RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Safety net: no media may burst out of its container and force the
   page to scroll horizontally (this is what broke the mobile layout). */
img, video, iframe, canvas, svg {
  max-width: 100%;
}

/* Long unbroken strings (emails, codes, URLs) must wrap, not overflow. */
p, li, td, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Klavika', var(--bs-font-sans-serif);
  font-weight: bold;
  letter-spacing: 0.5px;
}

a {
  color: var(--neon-green);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: #aaffaa;
  text-shadow: 0 0 6px var(--neon-green);
}

/* ---------- POINTER CANVAS (NEON PARTICLE TRAIL) ---------- */
#pointerCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

/* ---------- BOOTSTRAP COMPONENT OVERRIDES ---------- */

/* Buttons */
.btn, .join-btn, .read-more {
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.5rem;
  transition: all 0.25s ease;
}

/* Fix for Login button active state */
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
  color: #000 !important;
  box-shadow: 0 0 12px var(--neon-green);
}

.btn-primary, .bg-primary, .join-btn, .read-more {
  background-color: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
  color: #000 !important;
}

.btn-primary:hover {
  background-color: #00dd00 !important;
  border-color: #00dd00 !important;
  box-shadow: 0 0 20px var(--neon-green);
  transform: scale(1.02);
}

.btn-outline-primary, .join-btn, .read-more {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: transparent;
}

.join-btn,.read-more {
  border: none;
}

.btn-outline-primary:hover {
  background-color: var(--neon-green);
  color: #000;
  box-shadow: 0 0 12px var(--neon-green);
}

.btn-dark {
  background-color: #111;
  border-color: #2a2a2a;
}

.join-btn:hover {
  background-color: #00dd00 !important;
  border-color: #00dd00 !important;
  box-shadow: 0 0 20px var(--neon-green);
  transform: scale(1.02);
}

.join-btn:hover {
  background-color: var(--neon-green);
  color: #000;
  box-shadow: 0 0 12px var(--neon-green);
}
.read-more:hover {
  background-color: #00dd00 !important;
  border-color: #00dd00 !important;
  box-shadow: 0 0 20px var(--neon-green);
  transform: scale(1.02);
}

.read-more:hover {
  background-color: var(--neon-green);
  color: #000;
  box-shadow: 0 0 12px var(--neon-green);
}
/* Cards */
.card {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-radius: 1.5rem;
  color: #e0e0e0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.25);
  transform: translateY(-4px);
}

.card-title {
  color: var(--neon-green);
  font-family: 'Klavika', sans-serif;
}

.card-text {
  color: #ccc;
}

.card-img-top {
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
}

/* Forms / Inputs */
.form-control, .form-select {
  background-color: #141414;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
  background-color: #141414;
  color: #e0e0e0;
  border-color: var(--neon-green);
  box-shadow: 0 0 0 0.25rem rgba(0, 255, 0, 0.25);
}

.form-control::placeholder {
  color: #777;
}

.form-label {
  color: #c0ffc0;
  font-weight: 500;
}

.input-group-text {
  background-color: #1a1a1a;
  border-color: #2a2a2a;
  color: var(--neon-green);
}

/* Fix for file input white background */
input[type="file"] {
  background-color: #141414 !important;
  color: #e0e0e0 !important;
}

input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
  background-color: #2a2a2a !important;
  border: 1px solid var(--neon-green) !important;
  border-radius: 0.5rem !important;
  color: var(--neon-green) !important;
  padding: 0.4rem 1rem !important;
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover {
  background-color: var(--neon-green) !important;
  color: #000 !important;
}

/* Check / Radio */
.form-check-input {
  background-color: #141414;
  border-color: #2a2a2a;
}

.form-check-input:checked {
  background-color: var(--neon-green);
  border-color: var(--neon-green);
}

.form-check-label {
  color: #ccc;
}

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--neon-green);
  padding: 0.75rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Klavika', sans-serif;
  color: var(--neon-green) !important;
  font-size: 1.6rem;
  font-weight: bold;
  text-shadow: 0 0 8px var(--neon-green);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 55px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--neon-green) !important;
  font-family: 'Klavika', monospace;
  font-size: 1.1rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  width: 0%;
  height: 2px;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  transition: width 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.navbar-nav .nav-link:hover::after {
  width: calc(100% - 2rem);
}

.navbar-nav .nav-link:hover {
  color: #aaffaa !important;
  text-shadow: 0 0 6px var(--neon-green);
}

.navbar .dropdown-toggle::after {
  border: none !important;
  content: '' !important;
  vertical-align: 0 !important;
}

/* ACTIVE NAV LINK */
.navbar-nav .nav-link.active-link::after {
  width: calc(100% - 2rem);
}

.navbar-nav .nav-link.active-link {
  color: #aaffaa !important;
  text-shadow: 0 0 6px var(--neon-green);
}
.navbar-toggler {
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 255, 0, 0.25);
}

.navbar-toggler-icon {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

/* Dropdown */
.dropdown-menu {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--neon-green);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.15);
}

.dropdown-item {
  color: #c0ffc0;
  font-family: 'Klavika', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(0, 255, 0, 0.15);
  color: var(--neon-green);
}

.dropdown-divider {
  border-color: #2a2a2a;
}

/* Modal */
.modal-content {
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--neon-green);
  border-radius: 1.5rem;
  color: #e0e0e0;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #2a2a2a;
}

.modal-footer {
  border-top: 1px solid #2a2a2a;
}

.modal-title {
  color: var(--neon-green);
  font-family: 'Klavika', sans-serif;
  text-shadow: 0 0 8px var(--neon-green);
}

.btn-close {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

/* Accordion */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: #e0e0e0;
  --bs-accordion-border-color: #2a2a2a;
  --bs-accordion-btn-bg: rgba(20, 20, 20, 0.8);
  --bs-accordion-btn-color: var(--neon-green);
  --bs-accordion-active-bg: rgba(0, 255, 0, 0.08);
  --bs-accordion-active-color: var(--neon-green);
  --bs-accordion-btn-focus-border-color: var(--neon-green);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(0, 255, 0, 0.25);
}

.accordion-button:not(.collapsed) {
  text-shadow: 0 0 6px var(--neon-green);
}

.accordion-body {
  color: #ccc;
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e0e0e0;
  --bs-table-border-color: #2a2a2a;
  --bs-table-striped-bg: rgba(0, 255, 0, 0.04);
  --bs-table-hover-bg: rgba(0, 255, 0, 0.08);
}

.table thead th {
  color: var(--neon-green);
  font-family: 'Klavika', sans-serif;
  border-bottom: 2px solid var(--neon-green);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Badges */
.badge.bg-primary {
  background-color: var(--neon-green) !important;
  color: #000 !important;
}

/* Fix for table row hover - keep text readable */
.table-hover tbody tr:hover {
  background-color: rgba(0, 255, 0, 0.1) !important;
  color: #e0e0e0 !important;
}

.table-hover tbody tr:hover td {
  color: #e0e0e0 !important;
}

/* Ensure table rows never get black background */
.table tbody tr {
  background-color: transparent;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 255, 0, 0.03);
}


/* FORCE FIX for table text colors */
.table tbody td,
.table tbody td * {
  color: #e0e0e0 !important;
}

.table tbody tr:hover td,
.table tbody tr:hover td * {
  color: #e0e0e0 !important;
}

/* Fix for the badges inside tables */
.table tbody td .badge {
  color: #e0e0e0 !important;
}

.table tbody td .badge.bg-warning {
  color: #000 !important;
}

.table tbody td .badge.bg-success {
  color: #000 !important;
}

.table tbody td .badge.bg-danger {
  color: #fff !important;
}


.badge.bg-secondary {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  border: 1px solid #2a2a2a;
}

/* Breadcrumb */
.breadcrumb {
  --bs-breadcrumb-divider-color: #555;
}

.breadcrumb-item.active {
  color: #888;
}

/* ============================================
   FIX: BLOG PAGINATION COLOR ISSUES
   ============================================ */

/* Base pagination container */
.pagination {
  --bs-pagination-bg: transparent;
  --bs-pagination-border-color: #2a2a2a;
  --bs-pagination-color: var(--neon-green);
  --bs-pagination-hover-bg: rgba(0, 255, 0, 0.1);
  --bs-pagination-hover-border-color: var(--neon-green);
  --bs-pagination-hover-color: #00ff00;
  --bs-pagination-focus-bg: rgba(0, 255, 0, 0.15);
  --bs-pagination-focus-border-color: var(--neon-green);
  --bs-pagination-focus-color: #00ff00;
  --bs-pagination-active-bg: var(--neon-green);
  --bs-pagination-active-border-color: var(--neon-green);
  --bs-pagination-active-color: #000000;
  --bs-pagination-disabled-bg: rgba(20, 20, 20, 0.5);
  --bs-pagination-disabled-border-color: #2a2a2a;
  --bs-pagination-disabled-color: #666666;
}

/* Pagination links */
.pagination .page-link {
  background-color: rgba(20, 20, 20, 0.8);
  border: 1px solid #2a2a2a;
  color: var(--neon-green);
  font-weight: 500;
  transition: all 0.25s ease;
  padding: 0.5rem 1rem;
}

/* Hover state */
.pagination .page-link:hover {
  background-color: rgba(0, 255, 0, 0.12);
  border-color: var(--neon-green);
  color: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
  transform: translateY(-1px);
}

/* Focus state (accessibility) */
.pagination .page-link:focus {
  background-color: rgba(0, 255, 0, 0.08);
  border-color: var(--neon-green);
  color: #00ff00;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 0, 0.25);
}

/* Active page */
.pagination .page-item.active .page-link {
  background-color: var(--neon-green);
  border-color: var(--neon-green);
  color: #000000;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.4);
}

/* Disabled state (Previous/Next when inactive) */
.pagination .page-item.disabled .page-link {
  background-color: rgba(10, 10, 10, 0.6);
  border-color: #2a2a2a;
  color: #555555;
  cursor: not-allowed;
  opacity: 0.6;
}

/* First and last items - ensure consistent styling */
.pagination .page-item:first-child .page-link {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.pagination .page-item:last-child .page-link {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Remove any white background from Bootstrap defaults */
.page-link,
.page-link:active,
.page-link:visited {
  background-color: rgba(20, 20, 20, 0.8) !important;
}

/* Ensure no white background appears */
.pagination .page-link {
  background-color: rgba(20, 20, 20, 0.8) !important;
}

.pagination .page-item.active .page-link {
  background-color: var(--neon-green) !important;
}

.pagination .page-item.disabled .page-link {
  background-color: rgba(10, 10, 10, 0.6) !important;
}
/* List Group */
.list-group {
  --bs-list-group-bg: rgba(20, 20, 20, 0.8);
  --bs-list-group-color: #e0e0e0;
  --bs-list-group-border-color: #2a2a2a;
  --bs-list-group-hover-bg: rgba(0, 255, 0, 0.06);
  --bs-list-group-action-hover-color: #aaffaa;
  --bs-list-group-action-active-bg: rgba(0, 255, 0, 0.1);
  --bs-list-group-action-active-color: var(--neon-green);
  --bs-list-group-active-bg: var(--neon-green);
  --bs-list-group-active-color: #000;
  --bs-list-group-active-border-color: var(--neon-green);
}

/* Progress */
.progress {
  background-color: #1a1a1a;
  border-radius: 1rem;
}

.progress-bar {
  background-color: var(--neon-green);
  color: #000;
}

/* Alerts */
.alert-primary {
  background: rgba(0, 255, 0, 0.08);
  border: 1px solid var(--neon-green);
  color: #aaffaa;
}

.alert-secondary {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #2a2a2a;
  color: #ccc;
}

/* Nav Tabs / Pills */
.nav-pills .nav-link {
  color: var(--neon-green);
  border: 1px solid transparent;
  border-radius: 40px;
  transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
  border-color: var(--neon-green);
  background: rgba(0, 255, 0, 0.08);
}

.nav-pills .nav-link.active {
  background-color: var(--neon-green);
  color: #000;
  box-shadow: 0 0 12px var(--neon-green);
}

/* Offcanvas (for mobile sidebar on admin) */
.offcanvas {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-right: 2px solid var(--neon-green);
}

.offcanvas-title {
  color: var(--neon-green);
  font-family: 'Klavika', sans-serif;
}

/* Toast */
.toast {
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neon-green);
  color: #e0e0e0;
}

.toast-header {
  background: rgba(0, 255, 0, 0.08);
  color: var(--neon-green);
  border-bottom: 1px solid #2a2a2a;
}

/* Tooltip / Popover */
.tooltip-inner {
  background: #111;
  border: 1px solid var(--neon-green);
  color: #e0e0e0;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--neon-green);
}

/* ---------- GLASSMORPHISM UTILITY ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
}

.glass-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

/* ---------- NEON GLOW UTILITIES ---------- */
.glow-text {
  text-shadow: 0 0 8px var(--neon-green);
}

.glow-border {
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-dim);
}

.glow-border-hover {
  transition: all 0.3s ease;
}

.glow-border-hover:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* ---------- SECTION UTILITIES ---------- */
section {
  scroll-margin-top: 100px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--neon-green);
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  color: #aaa;
  font-size: 1.15rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 85px;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--neon-green);
  text-shadow: 0 0 20px var(--neon-green), 0 0 40px rgba(0, 255, 0, 0.3);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero-content .lead {
  font-size: 1.4rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.hero-content .hero-cta {
  margin-top: 1rem;
}

/* ---------- WING VIDEO ---------- */
.wing-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 24px rgba(0, 255, 0, 0.08);
}

.wing-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- AUTH PAGES (Login / Register) ---------- */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 1rem 2rem;
  position: relative;
}

.auth-card {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 2rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.1);
  transition: all 0.3s ease;
}

.auth-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card .auth-logo img {
  height: 80px;
  margin-bottom: 0.5rem;
}

.auth-card h2 {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-link {
  color: #aaa;
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--neon-green);
}

/* ---------- MARQUEE / PARTNERS ---------- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 2rem 0;
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marqueeScroll 55s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 80px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  padding: 0 1.5rem;
  color: #888;
  font-family: 'Klavika', sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.marquee-item:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.marquee-item .partner-logo {
  height: 40px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- BLOG ---------- */
.blog-thumb-placeholder {
  height: 200px;
  background: linear-gradient(145deg, #1f2a1f, #0a0f0a);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 1.5rem 1.5rem 0 0;
  overflow: hidden;
}

.blog-thumb-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-thumb-placeholder .thumb-icon {
  font-size: 3rem;
  color: var(--neon-green);
  opacity: 0.7;
  text-shadow: 0 0 10px var(--neon-green);
}

.blog-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- CONTACT ---------- */
.contact-info-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #2a2a2a;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.15);
}

.contact-info-card .icon-circle {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 50%;
  border: 1px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  /* No auto margins: the card is a flex row, and `margin: 0 auto` would
     absorb the leftover space, shifting each icon by however wide its
     neighbouring text happens to be. */
  margin: 0;
  color: var(--neon-green);
  font-size: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.contact-info-card h4 {
  color: var(--neon-green);
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: #aaa;
  margin-bottom: 0;
}

/* Social Icons */
/* Social Icons - Fixed */
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.35rem;
  transition: all 0.3s ease;
  /* Spacing comes from the parent's gap utility; an extra margin here
     would double it up. */
  margin: 0;
  text-decoration: none;
  flex-shrink: 0;  /* Prevents shrinking */
}

.social-icon i {
  font-size: 1.35rem;  /* Fits inside the 44px circle without crowding */
  line-height: 1;      /* Prevents extra height from line-height */
}

.social-icon:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
  transform: translateY(-2px);
}

/* ---------- CONTACT PAGE Social Icons --------- */
.social-icon1 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.7rem;  /* Increased from 1.1rem for better visibility */
  transition: all 0.3s ease;
  margin: 0 0.25rem;
  text-decoration: none;
  flex-shrink: 0;  /* Prevents shrinking */
}

.social-icon1 i {
  font-size: 1.8rem;  /* Explicit icon size */
  line-height: 1;      /* Prevents extra height from line-height */
}

.social-icon1:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
  transform: translateY(-2px);
}


/* ---------- FORMS PAGE ---------- */
.form-section {
  padding: 120px 1rem 4rem;
  min-height: 100vh;
}

.form-card {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid #2a2a2a;
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.form-card h3 {
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--neon-green);
  margin-bottom: 1.5rem;
}

/* ---------- ADMIN DASHBOARD ---------- */
.admin-body {
  padding-top: 70px;
}

.admin-sidebar {
  min-height: calc(100vh - 70px);
  background: rgba(10, 10, 10, 0.95);
  border-right: 1px solid #2a2a2a;
  padding: 1.5rem 1rem;
}

.admin-sidebar .nav-link {
  color: #aaa;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(0, 255, 0, 0.08);
  color: var(--neon-green);
}

.admin-sidebar .nav-link.active {
  border-left: 3px solid var(--neon-green);
}

.stat-card {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 0, 0.15);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.15);
  transform: translateY(-3px);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 255, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card .stat-number,
.stat-card .stat-value {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 14px rgba(0, 255, 0, 0.4);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ---------- LEGAL PAGES ---------- */
.legal-section {
  padding: 140px 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-section h1 {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  margin-bottom: 2rem;
}

.legal-section h2 {
  color: var(--neon-green);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-section p {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-section ul {
  color: #ccc;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: rgba(5, 5, 5, 0.95);
  border-top: 2px solid var(--neon-green);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer h5 {
  color: var(--neon-green);
  font-family: 'Klavika', sans-serif;
  margin-bottom: 1rem;
  text-shadow: 0 0 6px var(--neon-green);
}

.site-footer a {
  color: #aaa;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--neon-green);
}

/* `.site-footer a` (specificity 0,0,1,1) beats `.social-icon` (0,0,1,0) and
   forces display:block, which kills the flex centring of the glyph. Restore it. */
.site-footer a.social-icon {
  display: inline-flex;
  margin-bottom: 0;
}

.site-footer .footer-bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #666;
}

.text-secondary1{
  color: var(--neon-green);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.2); }
  50% { box-shadow: 0 0 25px rgba(0, 255, 0, 0.5); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ---------- RESPONSIVE ---------- */
/* SHOW DROPDOWN ON HOVER (DESKTOP) */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
  }

  .navbar .dropdown:hover .dropdown-menu {
    pointer-events: auto;
  }
}
@media (max-width: 991px) {
  /* A g-5 row (48px gutter) applies -24px side margins, which exceed the
     container's 12px padding and push the page wider than the viewport.
     Drop to a 24px gutter so the negative margins cancel exactly. */
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 2.5rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .admin-sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  .navbar-brand {
    font-size: 1.2rem;
  }
  .navbar-brand img {
    height: 42px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content .lead {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .auth-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
  .marquee-item {
    min-width: 120px;
    height: 60px;
    font-size: 0.9rem;
  }
  .marquee-item .partner-logo {
    height: 28px;
    max-width: 64px;
    margin-right: 0.4rem;
  }
  .form-card {
    padding: 1.5rem;
  }
  .pagination .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .navbar-brand {
    gap: 0.4rem;
    font-size: 1rem;
  }
  .navbar-brand img {
    height: 34px;
  }
  .navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ---------- MEMBER DASHBOARD ---------- */
.dash-nav-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.dash-nav-link:hover {
  color: var(--neon-green);
  background: rgba(0, 255, 0, 0.06);
}
.dash-nav-link.active {
  color: var(--neon-green);
  background: rgba(0, 255, 0, 0.1);
  font-weight: 600;
}
.dash-tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(0, 255, 0, 0.2);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.dash-tab.active {
  color: #000;
  background: var(--neon-green);
  border-color: var(--neon-green);
  font-weight: 600;
}
.form-check-input:checked {
  background-color: var(--neon-green);
  border-color: var(--neon-green);
}
.form-switch .form-check-input {
  cursor: pointer;
}

/* Public-page dark table (members/dashboard use Bootstrap's table-dark
   outside the admin panel, where the neon variant lives in base_admin.html) */
main .table-dark,
section .table-dark {
  --bs-table-bg: #111111;
  --bs-table-striped-bg: #161616;
  --bs-table-hover-bg: rgba(0, 255, 0, 0.04);
  --bs-table-border-color: #1f1f1f;
}

@media (max-width: 768px) {
  .glass-card {
    border-radius: 1rem;
  }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green);
}
