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

/* ==========================================================================
   Design Tokens & Root Variables
   ========================================================================== */
:root {
  --bg-deep: #121416;
  --bg-card: #1e2124;
  --bg-nav: rgba(18, 20, 22, 0.85);
  --accent-purple: #8C64D8;
  --accent-purple-rgb: 140, 100, 216;
  --accent-lime: #B5D93E;
  --accent-lime-rgb: 181, 217, 62;
  --text-white: #ffffff;
  --text-gray: #8b8f99;
  --text-muted: #535866;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(140, 100, 216, 0.4);
  --glow-purple: rgba(140, 100, 216, 0.15);
  --font-family: 'Montserrat', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(140, 100, 216, 0.3);
}

/* ==========================================================================
   Base resets & typography
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #2e3238;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ==========================================================================
   App Layout & Structural Shell
   ========================================================================== */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  padding-top: 80px; /* Offset for sticky header */
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px !important; /* Override standard container max-width to allow more horizontal room */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent-lime);
}

.nav-links {
  display: flex;
  gap: 8px; /* Slightly tighter gap to fit all items */
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.82rem; /* Sligthly smaller font for premium snug fit */
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-gray);
  border: 1px solid transparent;
  white-space: nowrap; /* Prevent link labels from wrapping to multiple lines */
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links li.active a {
  border-color: rgba(140, 100, 216, 0.25);
  box-shadow: 0 0 10px rgba(140, 100, 216, 0.1);
}

.nav-cta {
  background: var(--accent-purple);
  color: var(--text-white) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(140, 100, 216, 0.3);
}

.nav-cta:hover {
  background: #7752bf !important;
  box-shadow: 0 4px 20px rgba(140, 100, 216, 0.5) !important;
  transform: translateY(-1px);
}

/* Dropdown Navigation Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  list-style: none;
  min-width: 200px;
  padding: 8px 0;
  box-shadow: var(--shadow-card);
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
}

.dropdown-menu li {
  width: 100%;
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text-gray) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: left;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-white) !important;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Parent Active Styling */
.nav-links li.dropdown.active > a.dropdown-toggle,
.nav-links li.dropdown.open > a.dropdown-toggle {
  color: var(--text-white);
  border-color: rgba(140, 100, 216, 0.25);
  box-shadow: 0 0 10px rgba(140, 100, 216, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

/* Mobile Dropdown styling adjustments */
@media (max-width: 1250px) {
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-left: 2px solid var(--accent-purple);
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px 0;
    width: 100%;
    transform: none !important;
    left: 0;
  }
  .dropdown-menu::before {
    display: none;
  }
  .dropdown-menu a {
    padding: 8px 16px;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    display: block;
  }
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Page Transitions & Views
   ========================================================================== */
.page-view {
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.page-view.active {
  display: block;
}

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

/* ==========================================================================
   Reusable UI Components
   ========================================================================== */
/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--accent-purple);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 15px;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Premium Card Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Glassmorphic Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-purple);
  box-shadow: 0 12px 30px rgba(140, 100, 216, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-lime));
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover::before {
  opacity: 1;
}

.card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(140, 100, 216, 0.15);
  color: var(--accent-purple);
  margin-bottom: 15px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-badge.lime {
  background: rgba(181, 217, 62, 0.15);
  color: var(--accent-lime);
}

.card-badge.gray {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-gray);
}

.card-badge.purple {
  background: rgba(140, 100, 216, 0.15);
  color: var(--accent-purple);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
}

.card-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Card Metadata list */
.card-meta-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-meta-item {
  font-size: 0.9rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-meta-item strong {
  color: var(--text-white);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-purple);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(140, 100, 216, 0.25);
}

.btn-primary:hover {
  background: #7752bf;
  box-shadow: 0 6px 20px rgba(140, 100, 216, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-lime);
  color: #121416;
  box-shadow: 0 4px 15px rgba(181, 217, 62, 0.25);
}

.btn-accent:hover {
  background: #c3e54b;
  box-shadow: 0 6px 20px rgba(181, 217, 62, 0.4);
  transform: translateY(-2px);
}

.btn-danger {
  background: #d9534f;
  color: white;
}
.btn-danger:hover {
  background: #c9302c;
  transform: translateY(-1px);
}

/* Forms */
input, select, textarea {
  width: 100%;
  background: rgba(30, 33, 36, 0.7);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(140, 100, 216, 0.25);
}

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

/* Helper details */
.brand-gradient-text {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-lime { color: var(--accent-lime); }
.text-purple { color: var(--accent-purple); }

/* Blockquote */
.brand-quote {
  border-left: 4px solid var(--accent-lime);
  padding: 15px 25px;
  background: rgba(181, 217, 62, 0.03);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 600;
  margin: 30px 0;
}

/* ==========================================================================
   Home Page Sections
   ========================================================================== */
/* Hero Section */
.hero {
  padding: 100px 0 80px;
  position: relative;
  text-align: center;
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(140, 100, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 100, 216, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  mask-image: radial-gradient(circle, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%);
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(140, 100, 216, 0.08);
  border: 1px solid rgba(140, 100, 216, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Stats Section */
.stats {
  padding: 50px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.01);
}

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

.stat-item h3 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-club-feature {
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.015);
}

.home-club-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.home-club-copy .section-title {
  margin-bottom: 18px;
}

.home-club-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-club-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(181, 217, 62, 0.28);
  border-radius: 8px;
  color: var(--text-white);
  background: rgba(181, 217, 62, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.home-club-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  aspect-ratio: 4 / 3;
}

.home-club-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .home-club-layout {
    grid-template-columns: 1fr;
  }

  .home-club-media {
    min-height: 260px;
  }
}

/* Sections Space */
.section-padding {
  padding: 80px 0;
}

/* Partners Logos */
.partners-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.partner-logo {
  height: 50px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: var(--transition-smooth);
}

.partner-logo:hover {
  opacity: 0.9;
  filter: grayscale(0);
}

.partner-item-clickable {
  cursor: pointer;
}

.partner-item-clickable:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--accent-purple) !important;
  box-shadow: 0 4px 15px rgba(140, 100, 216, 0.15);
  color: var(--text-white) !important;
}

/* ==========================================================================
   Specific pages and details
   ========================================================================== */
/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 30px;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--accent-purple);
  box-shadow: 0 0 15px rgba(140, 100, 216, 0.2);
}

.team-role {
  color: var(--accent-lime);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.tag.lime {
  color: var(--accent-lime);
  border-color: rgba(181, 217, 62, 0.25);
  background: rgba(181, 217, 62, 0.08);
}

.tag.gray {
  color: var(--text-gray);
}

/* ==========================================================================
   Details / Lists / Modals
   ========================================================================== */
/* Categories Filter */
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-gray);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-purple);
  color: var(--text-white);
  border-color: var(--accent-purple);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 20, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-white);
}

/* Contacts page styling */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-lime);
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-details p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form-card {
  padding: 40px;
}

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

/* ==========================================================================
   Admin Panel Design
   ========================================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  min-height: 500px;
  margin-bottom: 80px;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 10px;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-gray);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
  background: rgba(140, 100, 216, 0.1);
  color: var(--accent-purple);
}

.admin-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px;
  min-width: 0;
}

.admin-section {
  display: none;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-section.active {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 25px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-title {
  font-size: 1.6rem;
  font-weight: 800;
}

/* Admin Item Table/List */
.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  margin-top: 15px;
  table-layout: fixed;
}

.admin-table th, 
.admin-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  vertical-align: middle;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-table th {
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.admin-actions {
  display: flex;
  gap: 8px;
  min-width: 86px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

.admin-table .tag,
.admin-table .card-badge {
  display: inline-block;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 260px;
  margin-bottom: 0;
}

.admin-table .admin-thumb {
  flex: 0 0 auto;
}

.admin-action-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.035);
  border: none;
  border-radius: 8px;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.admin-action-btn.edit:hover {
  color: var(--accent-purple);
}

.admin-action-btn.view:hover {
  color: var(--accent-lime);
}

.admin-action-btn.delete:hover {
  color: #d9534f;
}

.admin-help-card {
  background: rgba(140, 100, 216, 0.07);
  border: 1px solid rgba(140, 100, 216, 0.18);
  border-radius: 10px;
  padding: 16px 18px;
  margin: -8px 0 22px;
}

.admin-help-title {
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-help-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-gray);
  font-size: 0.84rem;
  line-height: 1.55;
}

.admin-help-list li + li {
  margin-top: 4px;
}

.tag.purple,
.card-badge.purple {
  color: var(--accent-purple);
  border-color: rgba(140, 100, 216, 0.25);
  background: rgba(140, 100, 216, 0.1);
}

.tag.danger,
.card-badge.danger {
  color: #ff8d8a;
  border-color: rgba(217, 83, 79, 0.35);
  background: rgba(217, 83, 79, 0.1);
}

.tag.accent,
.card-badge.accent {
  color: var(--accent-lime);
  border-color: rgba(181, 217, 62, 0.25);
  background: rgba(181, 217, 62, 0.08);
}

.admin-table[data-admin-table="news"] th:nth-child(1),
.admin-table[data-admin-table="news"] td:nth-child(1) { width: 42%; }
.admin-table[data-admin-table="news"] th:nth-child(2),
.admin-table[data-admin-table="news"] td:nth-child(2) { width: 22%; }
.admin-table[data-admin-table="news"] th:nth-child(3),
.admin-table[data-admin-table="news"] td:nth-child(3) { width: 14%; }
.admin-table[data-admin-table="news"] th:nth-child(4),
.admin-table[data-admin-table="news"] td:nth-child(4) { width: 10%; }
.admin-table[data-admin-table="news"] th:nth-child(5),
.admin-table[data-admin-table="news"] td:nth-child(5) { width: 100px; }

.admin-table[data-admin-table="club_members"] th:nth-child(1),
.admin-table[data-admin-table="club_members"] td:nth-child(1),
.admin-table[data-admin-table="team"] th:nth-child(1),
.admin-table[data-admin-table="team"] td:nth-child(1) { width: 25%; }

.admin-table[data-admin-table="club_members"] th:nth-child(2),
.admin-table[data-admin-table="club_members"] td:nth-child(2),
.admin-table[data-admin-table="team"] th:nth-child(2),
.admin-table[data-admin-table="team"] td:nth-child(2) { width: 28%; }

.admin-table[data-admin-table="club_members"] th:nth-child(3),
.admin-table[data-admin-table="club_members"] td:nth-child(3),
.admin-table[data-admin-table="team"] th:nth-child(3),
.admin-table[data-admin-table="team"] td:nth-child(3) { width: 35%; }

.admin-table[data-admin-table="club_members"] th:nth-child(4),
.admin-table[data-admin-table="club_members"] td:nth-child(4),
.admin-table[data-admin-table="team"] th:nth-child(4),
.admin-table[data-admin-table="team"] td:nth-child(4) { width: 100px; }

.admin-table[data-admin-table="projects"] th:nth-child(1),
.admin-table[data-admin-table="projects"] td:nth-child(1),
.admin-table[data-admin-table="club_projects"] th:nth-child(1),
.admin-table[data-admin-table="club_projects"] td:nth-child(1) { width: 42%; }

.admin-table[data-admin-table="projects"] th:nth-child(2),
.admin-table[data-admin-table="projects"] td:nth-child(2),
.admin-table[data-admin-table="club_projects"] th:nth-child(2),
.admin-table[data-admin-table="club_projects"] td:nth-child(2) { width: 22%; }

.admin-table[data-admin-table="projects"] th:nth-child(3),
.admin-table[data-admin-table="projects"] td:nth-child(3),
.admin-table[data-admin-table="club_projects"] th:nth-child(3),
.admin-table[data-admin-table="club_projects"] td:nth-child(3) { width: 26%; }

.admin-table[data-admin-table="projects"] th:nth-child(4),
.admin-table[data-admin-table="projects"] td:nth-child(4),
.admin-table[data-admin-table="club_projects"] th:nth-child(4),
.admin-table[data-admin-table="club_projects"] td:nth-child(4) { width: 100px; }

.registration-detail {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-gray);
  overflow-wrap: anywhere;
}

.detail-row strong {
  color: var(--text-white);
}

.detail-row span {
  white-space: pre-wrap;
}

.admin-actions-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-actions-flex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Custom Column Widths for Admin Tables */
.admin-table[data-admin-table="submissions"] th:nth-child(1),
.admin-table[data-admin-table="submissions"] td:nth-child(1) { width: 12%; }
.admin-table[data-admin-table="submissions"] th:nth-child(2),
.admin-table[data-admin-table="submissions"] td:nth-child(2) { width: 18%; }
.admin-table[data-admin-table="submissions"] th:nth-child(3),
.admin-table[data-admin-table="submissions"] td:nth-child(3) { width: 18%; }
.admin-table[data-admin-table="submissions"] th:nth-child(4),
.admin-table[data-admin-table="submissions"] td:nth-child(4) { width: 34%; }
.admin-table[data-admin-table="submissions"] th:nth-child(5),
.admin-table[data-admin-table="submissions"] td:nth-child(5) { width: 12%; }
.admin-table[data-admin-table="submissions"] th:nth-child(6),
.admin-table[data-admin-table="submissions"] td:nth-child(6) { width: 1%; white-space: nowrap; }

.admin-table[data-admin-table="registrations"] th:nth-child(1),
.admin-table[data-admin-table="registrations"] td:nth-child(1) { width: 14%; }
.admin-table[data-admin-table="registrations"] th:nth-child(2),
.admin-table[data-admin-table="registrations"] td:nth-child(2) { width: 12%; }
.admin-table[data-admin-table="registrations"] th:nth-child(3),
.admin-table[data-admin-table="registrations"] td:nth-child(3) { width: 15%; }
.admin-table[data-admin-table="registrations"] th:nth-child(4),
.admin-table[data-admin-table="registrations"] td:nth-child(4) { width: 18%; }
.admin-table[data-admin-table="registrations"] th:nth-child(5),
.admin-table[data-admin-table="registrations"] td:nth-child(5) { width: 20%; }
.admin-table[data-admin-table="registrations"] th:nth-child(6),
.admin-table[data-admin-table="registrations"] td:nth-child(6) { width: 12%; }
.admin-table[data-admin-table="registrations"] th:nth-child(7),
.admin-table[data-admin-table="registrations"] td:nth-child(7) { width: 9%; white-space: nowrap; }

/* Dynamic Forms inside Admin Panels */
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-form .form-group.full {
  grid-column: span 2;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-form button {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .admin-form {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .admin-form .form-group.full {
    grid-column: span 1 !important;
  }
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
  background: #0f1012;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
}

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

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-brand .details {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: var(--text-gray);
  font-size: 1.2rem;
}

.footer-socials a:hover {
  color: var(--accent-purple);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 1250px) {
  .navbar-container {
    position: relative;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 80px;
    left: -24px;
    width: calc(100% + 48px);
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 20px 24px;
    gap: 10px;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-form .form-group.full {
    grid-column: span 1;
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Card Images and Additional Styles
   ========================================================================== */
.card-img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.admin-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background-color: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Admin Panel Redesign
   ========================================================================== */
#view-admin {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 180px),
    var(--bg-deep);
}

#view-admin .section-padding {
  padding: 30px 0 56px;
}

#view-admin .container {
  max-width: 1480px;
}

#view-admin .section-header {
  text-align: left;
  margin: 0 0 16px !important;
  display: grid;
  gap: 6px;
}

#view-admin .section-subtitle {
  color: var(--accent-lime);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0;
}

#view-admin .section-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: 0;
  margin: 0;
}

#view-admin .section-desc {
  max-width: 920px;
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.55;
}

#view-admin .btn {
  border-radius: 6px;
  min-height: 34px;
  padding: 8px 13px;
  font-size: 0.82rem;
  letter-spacing: 0;
  box-shadow: none;
}

#view-admin .btn-sm {
  min-height: 30px;
  padding: 6px 10px;
}

.admin-layout-top {
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
  background: #171a1d !important;
  border: 1px solid var(--border-light);
  border-radius: 8px !important;
  box-shadow: none;
  gap: 14px;
  flex-wrap: wrap;
}

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

.admin-user-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-purple-rgb), 0.14);
  border: 1px solid rgba(var(--accent-purple-rgb), 0.32);
  color: var(--text-white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-user-title {
  margin: 0;
  color: var(--text-white);
  font-size: 0.92rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-user-email {
  margin: 2px 0 0;
  color: var(--text-gray);
  font-size: 0.74rem;
  line-height: 1.3;
}

.admin-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 0;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  padding: 8px;
  border-radius: 8px;
  background: #171a1d;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.admin-nav {
  gap: 3px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: #a1a6b2;
  white-space: normal;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-white);
}

.admin-nav-btn.active {
  color: var(--text-white);
  background: rgba(var(--accent-purple-rgb), 0.14);
  box-shadow: inset 3px 0 0 var(--accent-purple);
}

.admin-content {
  padding: 0;
  border-radius: 8px;
  background: #171a1d;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  overflow: hidden;
}

.admin-section {
  padding-bottom: 18px;
  overflow-x: auto;
}

.admin-header {
  position: relative;
  margin: 0;
  padding: 15px 18px;
  background: #191d21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  gap: 12px;
}

.admin-title {
  font-size: 1.12rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.admin-help-card {
  margin: 12px 18px 0;
  padding: 0;
  border-radius: 8px;
  background: #14171a;
  border: 1px solid rgba(255, 255, 255, 0.075);
  overflow: hidden;
}

.admin-help-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--text-white);
  cursor: pointer;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-help-card summary::-webkit-details-marker {
  display: none;
}

.admin-help-card summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1;
}

.admin-help-card[open] summary::after {
  content: "-";
}

.admin-help-card summary small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: auto;
}

.admin-help-list {
  margin: 0;
  padding: 0 18px 14px 36px;
  color: #a1a6b2;
  font-size: 0.82rem;
  line-height: 1.55;
}

.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 18px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #14171a;
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.admin-table-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a1a6b2;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-table-meta strong {
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-lime-rgb), 0.12);
  color: var(--accent-lime);
  font-size: 0.78rem;
}

.admin-table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(360px, 100%);
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-table-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #101214;
  color: var(--text-white);
  outline: none;
  font-size: 0.84rem;
}

.admin-table-search input:focus {
  border-color: rgba(var(--accent-purple-rgb), 0.55);
}

.admin-table-search input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-section > .admin-table,
.admin-section > div > .admin-table,
#festival-sub-tab-content > .admin-table,
#festival-sub-tab-content > div > .admin-table {
  width: calc(100% - 36px);
  margin: 12px 18px 0;
}

.admin-table {
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #14171a;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  font-size: 0.84rem;
  line-height: 1.42;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101214;
  color: #8f96a3;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-table .tag,
.admin-table .card-badge {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
}

.admin-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.admin-actions {
  gap: 6px;
  min-width: 84px;
}

.admin-table td.admin-actions {
  display: table-cell !important;
  min-width: 104px;
  width: 112px;
  text-align: right !important;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table td.admin-actions br {
  display: none;
}

.admin-table td.admin-actions .btn,
.admin-table td.admin-actions .admin-action-btn {
  width: auto !important;
  margin: 0 0 0 6px !important;
  vertical-align: middle;
}

.admin-table td.admin-actions .btn {
  min-width: 88px;
  justify-content: center;
}

.admin-table td.admin-actions .admin-action-btn {
  width: 30px !important;
  height: 30px;
}

.admin-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.92rem;
}

.admin-action-btn:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}

.admin-filter-empty {
  margin: 10px 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: #14171a;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-gray);
  font-size: 0.86rem;
  text-align: center;
}

#view-admin .card {
  border-radius: 8px;
  box-shadow: none;
}

#view-admin .admin-form {
  gap: 16px;
}

#view-admin .form-group {
  margin-bottom: 0;
}

#view-admin .form-group label {
  font-size: 0.8rem;
  line-height: 1.35;
}

#view-admin input,
#view-admin select,
#view-admin textarea {
  border-radius: 6px;
}

#admin-modal .modal-content {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px !important;
  padding: 34px;
  overflow-x: hidden;
}

#admin-modal-body,
#admin-modal-body form,
#admin-modal-body .form-group {
  min-width: 0;
}

#admin-modal-title {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#admin-modal .admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

#admin-modal .admin-form .form-group {
  min-width: 0;
}

#admin-modal .admin-form input,
#admin-modal .admin-form select,
#admin-modal .admin-form textarea {
  min-width: 0;
  max-width: 100%;
}

#admin-modal .admin-form select[multiple] {
  min-height: 124px;
  overflow: auto;
}

#admin-modal .admin-form input[type="file"] {
  min-height: 44px;
  padding: 9px;
  white-space: normal;
}

#view-admin .festival-sub-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #view-admin .section-padding {
    padding-top: 20px;
  }

  .admin-layout-top {
    align-items: flex-start !important;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-header {
    padding: 13px 14px;
  }

  .admin-help-card,
  .admin-table-toolbar,
  .admin-filter-empty {
    margin-left: 14px;
    margin-right: 14px;
  }

  .admin-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table-search {
    min-width: 0;
    width: 100%;
  }

  .admin-section > .admin-table,
  .admin-section > div > .admin-table,
  #festival-sub-tab-content > .admin-table,
  #festival-sub-tab-content > div > .admin-table {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
  }

  #admin-modal .modal-content {
    width: calc(100vw - 18px);
    padding: 24px 18px;
  }

  #admin-modal .admin-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #admin-modal .admin-form .form-group.full {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Game Developers Club Section Styles
   ========================================================================== */
.club-subnav-container {
  background: rgba(20, 22, 24, 0.95);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 80px;
  z-index: 99;
}

.club-subnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
}

.club-subnav::-webkit-scrollbar {
  display: none;
}

.club-subnav-link {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--text-gray);
  border: 1px solid transparent;
  white-space: nowrap;
}

.club-subnav-link:hover,
.club-subnav-link.active {
  color: var(--text-white);
  background: rgba(140, 100, 216, 0.1);
  border-color: rgba(140, 100, 216, 0.25);
  box-shadow: 0 0 10px rgba(140, 100, 216, 0.1);
}

.club-filter-bar {
  background: rgba(30, 33, 36, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
}

/* Media Gallery & Public Upload Styles */
.media-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 25px rgba(140, 100, 216, 0.2);
}

.media-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.media-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.media-card:hover .media-thumbnail {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.media-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.play-btn-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(140, 100, 216, 0.4);
  transition: var(--transition-smooth);
  cursor: pointer;
  padding-left: 5px; /* Offset to center triangle */
}

.media-card:hover .play-btn-icon {
  transform: scale(1.1);
  background: var(--accent-lime);
  color: #121416;
  box-shadow: 0 4px 15px rgba(181, 217, 62, 0.4);
}

.media-info {
  padding: 20px;
}

.media-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-white);
}

.media-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(18, 20, 22, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light);
}

.media-badge.photo-badge {
  color: var(--accent-lime);
  border-color: rgba(181, 217, 62, 0.3);
}

.media-badge.video-badge {
  color: var(--accent-purple);
  border-color: rgba(140, 100, 216, 0.3);
}

/* Club Leadership Highlights */
.leaders-section {
  margin-bottom: 60px;
  position: relative;
  width: 100%;
}

.leaders-section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent-purple);
  padding-left: 15px;
  color: var(--text-white);
}

.leader-card {
  border-color: rgba(140, 100, 216, 0.3) !important;
  box-shadow: 0 8px 32px rgba(140, 100, 216, 0.08) !important;
  background: linear-gradient(135deg, rgba(140, 100, 216, 0.03), rgba(30, 33, 36, 0.9)) !important;
}

.leader-card::after {
  content: 'РУКОВОДСТВО';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.65rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-lime));
  color: #121416;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.leader-card:hover {
  border-color: var(--accent-lime) !important;
  box-shadow: 0 12px 30px rgba(181, 217, 62, 0.2) !important;
}

.leader-card .team-avatar {
  border-color: var(--accent-lime) !important;
  box-shadow: 0 0 15px rgba(181, 217, 62, 0.3) !important;
}

.leader-card:hover .team-avatar {
  transform: scale(1.05);
  border-color: var(--accent-purple) !important;
  box-shadow: 0 0 20px rgba(140, 100, 216, 0.5) !important;
}

/* ==========================================================================
   Club Member Personal Cabinet Styles
   ========================================================================== */
.btn-vk {
  background: #0077FF;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.25);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 50px;
  padding: 12px 28px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-vk:hover {
  background: #0066DD;
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4);
  transform: translateY(-2px);
}

.member-vk-auth {
  width: min(100%, 380px);
  margin: 0 auto 25px;
  display: grid;
  gap: 12px;
  min-height: 44px;
}

.member-vk-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text-gray);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
}

.member-vk-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #0077FF;
}

.member-vk-consent a {
  color: var(--accent-purple);
  text-decoration: underline;
}

.member-vk-button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 8px;
}

.member-vk-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.cabinet-login-card {
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  padding: 40px;
}

.cabinet-login-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 900;
}

.cabinet-login-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.member-auth-card {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.member-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.member-auth-tab {
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text-gray);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.member-auth-tab.active {
  color: var(--text-white);
  background: rgba(140, 100, 216, 0.28);
}

.member-auth-message {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #ff4b4b;
  background: rgba(255, 75, 75, 0.1);
  color: #ff9b9b;
  font-size: 0.85rem;
  line-height: 1.4;
}

.member-auth-message[data-type="success"] {
  border-left-color: var(--accent-lime);
  background: rgba(181, 217, 62, 0.1);
  color: var(--accent-lime);
}

.member-auth-form {
  display: none;
}

.member-auth-form.active {
  display: block;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .cabinet-grid {
    grid-template-columns: 1fr;
  }
}

.cabinet-sidebar-card {
  padding: 30px;
  position: sticky;
  top: 160px;
}

.cabinet-avatar-upload {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-purple);
  box-shadow: var(--shadow-glow);
  cursor: pointer;
}

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

.cabinet-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  text-align: center;
  padding: 10px;
}

.cabinet-avatar-upload:hover .cabinet-avatar-overlay {
  opacity: 1;
}

.cabinet-projects-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.cabinet-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.cabinet-project-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.cabinet-project-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cabinet-project-info p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.cabinet-project-actions {
  display: flex;
  gap: 10px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

.btn-icon:hover {
  transform: translateY(-2px);
}

.btn-icon.edit:hover {
  background: rgba(140, 100, 216, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.btn-icon.delete:hover {
  background: rgba(217, 83, 79, 0.15);
  border-color: #d9534f;
  color: #d9534f;
}

.cabinet-section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  border-left: 4px solid var(--accent-purple);
  padding-left: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.directions-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 15px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  margin-top: 5px;
}

.directions-checkboxes label {
  font-weight: normal;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
}

.directions-checkboxes input[type="checkbox"] {
  width: auto;
}

/* ==========================================================================
   II Festival "Хыялдар ваҡыты" Page & Admin Panel Styles
   ========================================================================== */
.festival-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.festival-sub-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.festival-timeline {
  margin-top: 30px;
}

.festival-program-card {
  transition: var(--transition-smooth);
}

.festival-program-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 20px rgba(140, 100, 216, 0.15);
  transform: translateY(-2px);
}

.program-collapsible {
  transition: all 0.3s ease;
}

/* Switch styling for Admin Blocks tab */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2a2e33;
  transition: .3s;
  border-radius: 22px;
  border: 1px solid var(--border-light);
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-gray);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(181, 217, 62, 0.2);
  border-color: var(--accent-lime);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: var(--accent-lime);
}

/* Partner hover transition styling */
.partner-card:hover div {
  border-color: var(--accent-lime) !important;
  box-shadow: 0 0 15px rgba(181, 217, 62, 0.2);
  transform: scale(1.05);
}

/* ==========================================================================
   Theme toggle and Light Theme overrides
   ========================================================================== */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  font-size: 1rem;
}

.theme-toggle-text {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.legal-back-actions {
  display: flex;
  justify-content: flex-start;
}

.legal-back-actions.top {
  margin-bottom: 24px;
}

.legal-back-actions.bottom {
  margin-top: 28px;
}

@media (max-width: 480px) {
  .navbar-actions {
    gap: 8px;
  }

  .theme-toggle {
    padding: 6px 8px;
  }

  .theme-toggle-text {
    display: none;
  }
}

/* Light Theme Variables Override */
:root[data-theme="light"] {
  --bg-deep: #f5f6f8;
  --bg-card: #ffffff;
  --bg-nav: rgba(245, 246, 248, 0.85);
  --accent-purple: #7952C4;
  --accent-purple-rgb: 121, 82, 196;
  --accent-lime: #72911b;
  --accent-lime-rgb: 114, 145, 27;
  --text-white: #121416;
  --text-gray: #535866;
  --text-muted: #8b8f99;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(121, 82, 196, 0.4);
  --glow-purple: rgba(121, 82, 196, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(121, 82, 196, 0.15);
}

/* Light Theme Element Overrides */
html[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.035);
  color: var(--text-white);
}

html[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--accent-purple);
}

html[data-theme="light"] .admin-layout-top,
html[data-theme="light"] .admin-sidebar,
html[data-theme="light"] .admin-content {
  background: var(--bg-card) !important;
}

html[data-theme="light"] .admin-header {
  background: #f0f1f4 !important;
  border-bottom: 1px solid var(--border-light);
}

html[data-theme="light"] .admin-help-card {
  background: #eaecf0 !important;
  border-color: var(--border-light);
}

html[data-theme="light"] .admin-nav-btn {
  color: var(--text-gray);
}

html[data-theme="light"] .admin-nav-btn:hover {
  background: rgba(0, 0, 0, 0.045);
  color: var(--text-white);
}

html[data-theme="light"] .admin-nav-btn.active {
  color: var(--accent-purple);
  background: rgba(121, 82, 196, 0.08);
}

html[data-theme="light"] .modal-content,
html[data-theme="light"] .admin-modal-content {
  background: var(--bg-card) !important;
  color: var(--text-white) !important;
  border: 1px solid var(--border-light);
}

html[data-theme="light"] .admin-form input,
html[data-theme="light"] .admin-form select,
html[data-theme="light"] .admin-form textarea,
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
  background: #f9fafb !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #121416 !important;
}

html[data-theme="light"] .admin-form input:focus,
html[data-theme="light"] .admin-form select:focus,
html[data-theme="light"] .admin-form textarea:focus,
html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group select:focus,
html[data-theme="light"] .form-group textarea:focus {
  border-color: var(--accent-purple) !important;
  background: #ffffff !important;
}

html[data-theme="light"] .card,
html[data-theme="light"] .news-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .club-project-item {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-card) !important;
}

html[data-theme="light"] .admin-table tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f0f1f4;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #b1b8c9;
}

/* Partners Hover Style */
.partner-item-clickable {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.partner-item-clickable:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple) !important;
  box-shadow: 0 4px 15px rgba(140, 100, 216, 0.15);
  background: rgba(140, 100, 216, 0.05) !important;
  color: var(--text-white) !important;
}


/* Club projects improved hub and catalog */
.club-project-hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 28px;
}

.club-project-hub-card {
  background: linear-gradient(135deg, rgba(140, 100, 216, 0.10), rgba(181, 217, 62, 0.04));
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 22px;
  min-height: 180px;
}

.club-project-hub-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(140, 100, 216, 0.18);
  color: var(--accent-lime);
  font-weight: 900;
  margin-bottom: 16px;
}

.club-project-hub-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.club-project-hub-card p {
  color: var(--text-gray);
  line-height: 1.55;
  font-size: 0.92rem;
}

.club-projects-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 28px;
}

.club-project-stat {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.club-project-stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent-lime);
  margin-bottom: 8px;
}

.club-project-stat span {
  color: var(--text-gray);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.club-projects-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: -14px 0 34px;
}

.club-project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.club-project-cover {
  margin: -30px -30px 20px;
  border-radius: 18px 18px 0 0;
  height: 210px;
}

.club-project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.club-project-type {
  font-size: 0.82rem;
  color: var(--accent-purple);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

.club-project-title {
  margin-bottom: 10px;
}

.club-project-authors {
  color: var(--text-gray);
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.club-project-description {
  flex-grow: 1;
}

.club-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.club-project-meta span {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-gray);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.club-project-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.club-projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-gray);
  padding: 46px 20px;
  border: 1px dashed var(--border-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.club-project-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.club-project-detail-cover {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.club-project-detail-cover img,
.club-project-gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-project-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.club-project-gallery-strip img {
  height: 96px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.club-project-detail-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
}

.club-project-detail-section h4 {
  color: var(--accent-lime);
  margin-bottom: 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.club-project-detail-section p {
  color: var(--text-gray);
  line-height: 1.65;
}

.club-project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.club-project-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: var(--text-gray);
  font-size: 0.92rem;
}

.club-project-detail-authors {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.club-project-author-link,
.club-project-material-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.club-project-author-link {
  justify-content: flex-start;
}

.club-project-author-link img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.club-project-author-link div div {
  color: var(--text-white);
  font-weight: 800;
}

.club-project-author-link span {
  color: var(--accent-lime);
  font-size: 0.78rem;
}

.club-project-materials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.club-project-material-link span {
  color: var(--text-white);
  font-weight: 700;
}

.club-project-material-link strong {
  color: var(--accent-lime);
  font-size: 0.82rem;
}

.club-accelerator-note {
  border-style: dashed;
  border-color: rgba(140, 100, 216, 0.35);
  background: linear-gradient(135deg, rgba(140, 100, 216, 0.08), rgba(181, 217, 62, 0.03));
}

@media (max-width: 900px) {
  .club-project-hub,
  .club-projects-stats,
  .club-project-detail-grid,
  .club-project-detail-meta {
    grid-template-columns: 1fr;
  }

  .club-project-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* QA update: team categories and club project stages */
.team-category-block {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 28px;
}

.team-category-grid {
  margin-top: 20px;
}

.club-project-stage-note {
  font-size: 0.85rem;
  color: var(--text-gray);
  text-align: center;
  margin-top: -8px;
}

/* ========================================================================== 
   Admin tables stability fix: prevent narrow action columns and broken layout
   ========================================================================== */
.admin-table {
  min-width: 1040px;
}

.admin-table th:last-child,
.admin-table td:last-child,
.admin-table td.admin-actions,
.admin-table th.admin-actions {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  text-align: right;
  white-space: nowrap;
}

.admin-table td.admin-actions {
  display: table-cell !important;
  vertical-align: middle;
}

.admin-table td.admin-actions .admin-action-btn {
  margin-left: 6px;
}

.admin-table .admin-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-table .admin-row-title {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-table .admin-compact-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 100%;
  color: var(--text-gray);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-table[data-admin-table="team"] th:nth-child(1),
.admin-table[data-admin-table="team"] td:nth-child(1) { width: 27% !important; }
.admin-table[data-admin-table="team"] th:nth-child(2),
.admin-table[data-admin-table="team"] td:nth-child(2) { width: 24% !important; }
.admin-table[data-admin-table="team"] th:nth-child(3),
.admin-table[data-admin-table="team"] td:nth-child(3) { width: 16% !important; }
.admin-table[data-admin-table="team"] th:nth-child(4),
.admin-table[data-admin-table="team"] td:nth-child(4) { width: auto !important; }
.admin-table[data-admin-table="team"] th:nth-child(5),
.admin-table[data-admin-table="team"] td:nth-child(5) { width: 116px !important; }

.admin-table[data-admin-table="club_members"] th:nth-child(1),
.admin-table[data-admin-table="club_members"] td:nth-child(1) { width: 27% !important; }
.admin-table[data-admin-table="club_members"] th:nth-child(2),
.admin-table[data-admin-table="club_members"] td:nth-child(2) { width: 23% !important; }
.admin-table[data-admin-table="club_members"] th:nth-child(3),
.admin-table[data-admin-table="club_members"] td:nth-child(3) { width: 16% !important; }
.admin-table[data-admin-table="club_members"] th:nth-child(4),
.admin-table[data-admin-table="club_members"] td:nth-child(4) { width: auto !important; }
.admin-table[data-admin-table="club_members"] th:nth-child(5),
.admin-table[data-admin-table="club_members"] td:nth-child(5) { width: 116px !important; }

.admin-table[data-admin-table="club_projects"] th:nth-child(1),
.admin-table[data-admin-table="club_projects"] td:nth-child(1) { width: 36% !important; }
.admin-table[data-admin-table="club_projects"] th:nth-child(2),
.admin-table[data-admin-table="club_projects"] td:nth-child(2) { width: 21% !important; }
.admin-table[data-admin-table="club_projects"] th:nth-child(3),
.admin-table[data-admin-table="club_projects"] td:nth-child(3) { width: 21% !important; }
.admin-table[data-admin-table="club_projects"] th:nth-child(4),
.admin-table[data-admin-table="club_projects"] td:nth-child(4) { width: auto !important; }
.admin-table[data-admin-table="club_projects"] th:nth-child(5),
.admin-table[data-admin-table="club_projects"] td:nth-child(5) { width: 116px !important; }

@media (max-width: 1200px) {
  .admin-table {
    min-width: 1120px;
  }
}

/* ========================================================================
   News cards: stable site publications layout and broken-image protection
   ======================================================================== */
#news-grid.grid {
  align-items: stretch;
}

.news-card {
  padding: 0;
  min-height: 100%;
  overflow: hidden;
}

.news-card-clickable {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.news-card-clickable:hover,
.news-card-clickable:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.news-card-clickable .news-card-title {
  transition: var(--transition-smooth);
}

.news-card-clickable:hover .news-card-title,
.news-card-clickable:focus-visible .news-card-title {
  color: var(--accent-lime);
}

.news-card .card-badge {
  margin-bottom: 12px;
}

.news-media-shell,
.news-cover-button {
  display: block;
  width: 100%;
  height: 220px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(140, 100, 216, 0.08), rgba(181, 217, 62, 0.05));
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.news-media-shell.is-broken,
.news-thumb-button.is-broken,
.news-modal-image-shell.is-broken,
.news-modal-thumb.is-broken {
  display: none !important;
}

.news-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

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

.news-card-meta {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.news-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.news-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.news-thumb-button {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
}

.news-thumb-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-thumb-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-weight: 900;
}

.news-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding: 20px 26px 26px;
}

.news-modal-image-shell {
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}

.news-modal-image-shell img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.news-modal-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.news-modal-thumb.is-active {
  border: 2px solid var(--accent-purple);
}

.news-modal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .news-media-shell,
  .news-cover-button {
    height: 185px;
  }

  .news-card-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* News card fix: the card shows only one cover image; all extra photos are inside the post modal. */
.news-card {
  display: flex;
  flex-direction: column;
}

.news-card-photo-count {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ========================================================================
   News detail pages and permalink controls
   ======================================================================== */
.news-detail-back,
.news-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.news-detail-card {
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.news-detail-head {
  padding: 34px 34px 22px;
}

.news-detail-head h1 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.news-detail-cover {
  display: block;
  width: calc(100% - 68px);
  margin: 0 34px 24px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
}

.news-detail-cover img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.news-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  padding: 0 34px 24px;
}

.news-detail-card .news-full-article {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.8;
  padding: 0 34px 34px;
}

.news-detail-card .news-full-article p {
  margin-bottom: 1em;
}

.news-detail-actions {
  padding: 0 34px 34px;
}

.news-card-title a:hover {
  color: var(--accent-lime);
}

@media (max-width: 640px) {
  .news-detail-head,
  .news-detail-card .news-full-article,
  .news-detail-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-detail-cover {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .news-detail-gallery {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Admin news actions now include permalink buttons. */
.admin-table[data-admin-table="news"] th:nth-child(5),
.admin-table[data-admin-table="news"] td:nth-child(5) {
  width: 170px !important;
  min-width: 170px !important;
}

/* ========================================================================
   Project cards and detailed project pages
   ======================================================================== */
.project-card-clickable {
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-card-clickable:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 4px;
}

.project-card-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}

.project-card-cover .card-img {
  height: 100%;
  border-radius: 0;
  margin: 0;
}

.project-card-cover .card-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  margin: 0;
  backdrop-filter: blur(8px);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.project-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.project-card-direction {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
}

.project-card-title {
  margin-bottom: 12px;
}

.project-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-result {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-gray);
  font-size: 0.88rem;
  line-height: 1.55;
}

.project-card-result strong {
  color: var(--text-white);
}

.project-card-more {
  margin-top: auto;
  color: var(--accent-lime);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.project-detail-back,
.project-detail-actions,
.project-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.project-detail-card {
  border: 1px solid var(--border-light);
  border-radius: 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  padding: 38px;
  align-items: stretch;
  background:
    radial-gradient(circle at 15% 10%, rgba(140, 100, 216, 0.16), transparent 36%),
    radial-gradient(circle at 85% 15%, rgba(181, 217, 62, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-light);
}

.project-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}


.project-detail-hero-no-cover {
  grid-template-columns: 1fr;
}

.project-detail-hero-no-cover .project-detail-hero-text {
  max-width: 980px;
}

.project-detail-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 22px;
}

.project-detail-hero-text > p {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 28px;
}

.project-detail-cover {
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  min-height: 320px;
}

.project-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.project-detail-content {
  padding: 34px 38px 40px;
}

.project-detail-section {
  margin-bottom: 34px;
}

.project-detail-section h2 {
  color: var(--accent-lime);
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 14px;
}

.project-detail-section h2.is-purple {
  color: var(--accent-purple);
}

.project-detail-text {
  color: var(--text-gray);
  font-size: 1.03rem;
  line-height: 1.82;
}

.project-detail-text p,
.project-detail-text ul,
.project-detail-text ol {
  margin-bottom: 1em;
}

.project-detail-text a {
  color: var(--accent-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.project-detail-gallery-item {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.project-detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

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

@media (max-width: 900px) {
  .project-detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-card-cover {
    height: 180px;
  }

  .project-detail-hero,
  .project-detail-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-detail-cover,
  .project-detail-cover img {
    min-height: 220px;
  }
}

/* Project card gallery count */
.project-card-gallery-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(140, 100, 216, 0.28);
  background: rgba(140, 100, 216, 0.08);
  color: var(--text-gray);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-detail-gallery-note {
  margin: -6px 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-detail-gallery-section {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}


/* === Admin reliability fixes 2026-05-31 === */
.admin-table {
  min-width: 860px;
}

.admin-table th:last-child,
.admin-table td.admin-actions {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 148px;
  background: var(--dark-surface, #12151c);
  box-shadow: -14px 0 22px rgba(0, 0, 0, 0.16);
}

.admin-table td.admin-actions {
  display: table-cell;
  white-space: nowrap;
}

.admin-table td.admin-actions .admin-action-btn,
.admin-action-btn {
  cursor: pointer;
  user-select: none;
}

#admin-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#admin-modal .modal-content {
  max-height: min(92vh, 980px);
  overflow-y: auto;
}

#admin-modal .modal-close,
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
}

.admin-section.active {
  overflow-x: visible;
}

html[data-theme="light"] .admin-table th:last-child,
html[data-theme="light"] .admin-table td.admin-actions {
  background: #ffffff;
}

/* ========================================================================
   News covers: square 1:1 poster format
   ======================================================================== */
.news-media-shell,
.news-cover-button {
  aspect-ratio: 1 / 1;
  height: auto !important;
  min-height: 0;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-detail-cover {
  width: min(720px, calc(100% - 68px));
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
}

.news-detail-cover img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .news-detail-cover {
    width: calc(100% - 40px);
  }
}


/* Festival speaker cards: compact public card + biography modal */
.festival-speakers-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.festival-speaker-card {
  padding: 26px 22px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.festival-speaker-card:hover,
.festival-speaker-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(181, 217, 62, 0.45);
  box-shadow: 0 14px 36px rgba(0,0,0,0.25), 0 0 0 1px rgba(181,217,62,0.1);
  outline: none;
}

.festival-speaker-avatar {
  width: 118px !important;
  height: 118px !important;
  border-color: var(--accent-lime) !important;
  box-shadow: 0 0 10px rgba(181,217,62,0.12) !important;
}

.festival-speaker-name {
  font-size: 1.2rem !important;
  line-height: 1.2;
  margin: 0 0 12px !important;
}

.festival-speaker-topic {
  color: var(--text-white);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 14px;
}

.festival-speaker-position {
  color: var(--accent-purple);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.festival-speaker-organization {
  color: var(--text-gray);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.festival-speaker-more {
  margin-top: auto;
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
}

.festival-speaker-modal-content {
  max-width: 720px;
}

.festival-speaker-modal-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
}

.festival-speaker-modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-lime);
  box-shadow: 0 0 14px rgba(181,217,62,0.16);
}

@media (max-width: 620px) {
  .festival-speaker-modal-head {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}
