/* ==========================================================================
   SICT CLUBS - MODERN STYLESHEET
   Trường Công nghệ Thông tin & Truyền thông - HaUI
   ========================================================================== */

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

/* --- Root Variables: Dark Mode Default --- */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette - Dark Theme */
  --bg-page: #080C14;
  --bg-surface: #0E1524;
  --bg-surface-elevated: #151F34;
  --bg-glass: rgba(14, 21, 36, 0.75);
  --bg-overlay: rgba(8, 12, 20, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.4);
  --border-hover: rgba(255, 255, 255, 0.16);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0F172A;

  --accent-primary: #3B82F6;
  --accent-primary-hover: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.25);

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.2);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light Mode Override --- */
[data-theme="light"] {
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-overlay: rgba(248, 250, 252, 0.88);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(37, 99, 235, 0.5);
  --border-hover: rgba(15, 23, 42, 0.18);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #F8FAFC;

  --accent-primary: #2563EB;
  --accent-primary-hover: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.15);

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-page);
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation Bar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  flex-wrap: nowrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo-sict {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.brand-logos-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo-sub {
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: none;
  flex-shrink: 0;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop Only Utility */
.desktop-only {
  display: flex;
}

span.desktop-only {
  display: inline;
}

@media (max-width: 992px) {
  .desktop-only, span.desktop-only {
    display: none !important;
  }
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

#themeIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  pointer-events: none;
}

.theme-toggle-btn svg,
#themeIcon svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap !important;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-nav-cta {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-nav-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* --- Hero Section --- */
.hero-section {
  padding: 64px 0 40px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.55;
  text-align: center;
  max-width: 95%;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.hero-title-highlight {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Key Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* --- Registration Countdown Timer --- */
.registration-countdown {
  margin: 26px auto 8px;
  width: fit-content;
  max-width: 100%;
  padding: 16px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all var(--transition-normal);
}

.registration-countdown:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.countdown-live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: liveDotPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes liveDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.countdown-badge-text strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.countdown-card {
  min-width: 66px;
  padding: 10px 10px 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.countdown-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.countdown-num {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.countdown-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 6px;
}

.countdown-colon {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-top: -12px;
  opacity: 0.8;
  animation: colonBlink 1s infinite;
}

@keyframes colonBlink {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}

.countdown-expired {
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-full);
}

/* --- Club Quick Switcher (Avatar Strip) --- */
.club-nav-strip {
  margin: 32px auto 20px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.club-nav-strip::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 10px;
  height: 1px;
}

.club-nav-strip::-webkit-scrollbar {
  display: none;
}

.nav-strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap !important;
  padding: 0 8px 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-strip-item span {
  white-space: nowrap !important;
}

.nav-strip-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  flex-shrink: 0;
}

.nav-strip-item:hover {
  background: var(--bg-page);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.nav-strip-item.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* --- Search & Filter Bar --- */
.filter-bar-section {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  margin-bottom: 36px;
  transition: all var(--transition-normal);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.filter-pill.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

/* --- Club Showcase List --- */
.clubs-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 80px;
}

/* Club Card Component */
.club-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  scroll-margin-top: 170px;
}

.club-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

@keyframes card-spotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.4), 0 8px 30px rgba(37, 99, 235, 0.3);
    border-color: var(--accent-primary);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.club-card.card-highlight-pulse {
  animation: card-spotlight 1.6s ease-out;
  border-color: var(--accent-primary) !important;
}

/* Dynamic Accent Glow border top */
.club-accent-bar {
  height: 4px;
  width: 100%;
}

/* Header of Club Card */
.club-header {
  padding: 28px 32px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.club-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.club-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  padding: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.club-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.club-headings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.club-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.club-category-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.club-founded-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.club-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.club-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 500;
}

.club-header-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.recruitment-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.recruitment-status-badge.open {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.recruitment-status-badge.upcoming {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Club Body: Split 2 Columns */
.club-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 28px 32px;
}

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

/* Left Column: Information */
.club-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.block-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.club-story-p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

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

.dept-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all var(--transition-fast);
}

.dept-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.dept-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dept-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Highlights List */
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.highlight-icon {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right Column: Visual Gallery */
.club-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main-view {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-main-view:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.gallery-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-main-view:hover .gallery-main-img {
  transform: scale(1.03);
}

.gallery-overlay-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-thumb {
  position: relative;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-fast);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

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

.gallery-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.gallery-thumb:hover .gallery-thumb-more {
  background: rgba(37, 99, 235, 0.75);
}

/* Club Footer Actions */
.club-actions-footer {
  padding: 20px 32px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-cta-apply:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-cta-apply.upcoming {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-cta-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0068FF;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-cta-zalo:hover {
  background: #0053cc;
  transform: translateY(-1px);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-cta-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
}

.club-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* --- Empty Search State --- */
.empty-results {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
}

.empty-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-results-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Fullscreen Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-header {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  z-index: 1010;
}

.lightbox-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
}

.lightbox-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1010;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev-btn {
  left: 24px;
}

.lightbox-next-btn {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10B981;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 38px;
  object-fit: contain;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 460px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 80;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM
   Tối ưu hóa đa độ phân giải: Tablet (768-992px), Phone (576px), Small Phone (360-380px)
   ========================================================================== */

/* --- Tablet Breakpoint (<= 992px) --- */
@media (max-width: 992px) {
  .club-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Keep Đoàn - Hội logos, hide long subtitle on tablet */
  .brand-subtitle {
    display: none !important;
  }

  .brand-divider {
    display: block !important;
    height: 22px;
  }

  .brand-logos-sub {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .brand-logo-sub {
    display: block !important;
    height: 26px;
    width: auto;
  }

  .navbar-inner {
    height: 64px;
    gap: 12px;
  }

  .brand-logo-sict {
    height: 32px;
    max-width: 170px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .btn-nav-cta {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* --- Standard Mobile & Small Tablet (<= 768px) --- */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding: 0 16px;
  }

  /* Header adjustments: show logos (SICT + Đoàn + Hội), hide brand text on mobile */
  .navbar-inner {
    height: 60px;
    gap: 10px;
  }

  .navbar-brand {
    gap: 10px;
  }

  .brand-logo-sict {
    height: 28px;
    max-width: 135px;
  }

  .brand-divider {
    display: block !important;
    height: 20px;
  }

  .brand-logos-sub {
    display: flex !important;
    align-items: center;
    gap: 7px;
  }

  .brand-logo-sub {
    display: block !important;
    height: 26px;
    width: auto;
  }

  /* Hide brand text on mobile screens as requested */
  .brand-text {
    display: none !important;
  }

  .navbar-actions {
    gap: 8px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
  }

  .btn-nav-cta {
    padding: 7px 12px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .btn-nav-cta svg {
    width: 16px;
    height: 16px;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0 28px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.6rem);
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-number {
    font-size: 1.45rem;
  }

  /* Countdown adjustments on mobile */
  .registration-countdown {
    margin: 18px auto 8px;
    padding: 12px 14px;
    width: 100%;
    max-width: 380px;
    gap: 10px;
  }

  .countdown-badge {
    font-size: 0.76rem;
    text-align: center;
  }

  .countdown-timer {
    gap: 6px;
  }

  .countdown-card {
    min-width: 52px;
    padding: 8px 4px 6px;
  }

  .countdown-num {
    font-size: 1.35rem;
  }

  .countdown-label {
    font-size: 0.62rem;
    margin-top: 4px;
  }

  .countdown-colon {
    font-size: 1.25rem;
    margin-top: -8px;
  }

  /* Quick Avatar Strip */
  .club-nav-strip {
    margin: 20px auto 16px;
    padding: 8px 10px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-strip-label {
    font-size: 0.74rem;
    padding: 0 6px 0 2px;
    gap: 4px;
  }

  .nav-strip-item {
    padding: 5px 10px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .nav-strip-item img {
    width: 20px;
    height: 20px;
  }

  /* Sticky Search & Filter Bar */
  .filter-bar-section {
    top: 64px;
    padding: 10px 0;
    margin-bottom: 24px;
  }

  .filter-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-box {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 6px;
    width: 100%;
    padding-bottom: 2px;
  }

  .filter-pill {
    padding: 6px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Club Card adjustments */
  .clubs-showcase-container {
    gap: 32px;
    padding-bottom: 40px;
  }

  .club-card {
    border-radius: var(--radius-lg);
    scroll-margin-top: 130px;
  }

  .club-header {
    padding: 18px 16px 14px;
    gap: 14px;
  }

  .club-identity {
    min-width: 0;
    width: 100%;
    gap: 14px;
  }

  .club-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    padding: 6px;
  }

  .club-name {
    font-size: 1.25rem;
  }

  .club-tagline {
    font-size: 0.84rem;
  }

  .club-header-status {
    width: 100%;
    align-items: flex-start;
    margin-top: 2px;
  }

  .club-body {
    padding: 18px 16px;
    gap: 20px;
  }

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

  .gallery-main-view {
    height: 220px;
    border-radius: var(--radius-md);
  }

  .gallery-thumb {
    height: 60px;
  }

  .club-actions-footer {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-group {
    width: 100%;
    gap: 8px;
  }

  .btn-cta-apply, .btn-cta-zalo, .btn-cta-secondary {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 10px 14px;
    text-align: center;
  }

  .club-social-links {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }

  /* Lightbox on mobile */
  .lightbox-modal {
    padding: 12px;
  }

  .lightbox-header {
    top: 14px;
    left: 16px;
    right: 16px;
  }

  .lightbox-content {
    max-width: 96vw;
    max-height: 75vh;
  }

  .lightbox-prev-btn {
    left: 8px;
    width: 40px;
    height: 40px;
  }

  .lightbox-next-btn {
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .lightbox-counter {
    bottom: 16px;
  }

  /* Scroll To Top Mobile position */
  .scroll-top-btn {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* --- Small Mobile Phones (<= 576px) --- */
@media (max-width: 576px) {
  .navbar-inner {
    height: 56px;
    gap: 8px;
  }

  .navbar-brand {
    gap: 8px;
  }

  .brand-logo-sict {
    height: 26px;
    max-width: 115px;
  }

  .brand-divider {
    display: block !important;
    height: 18px;
  }

  .brand-logos-sub {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }

  .brand-logo-sub {
    display: block !important;
    height: 24px;
    width: auto;
  }

  /* Hide text on small screens, keep logos prominent */
  .brand-text {
    display: none !important;
  }

  .navbar-actions {
    gap: 6px;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .theme-toggle-btn svg {
    width: 17px;
    height: 17px;
  }

  .btn-nav-cta {
    padding: 7px 11px;
    font-size: 0.8rem;
    gap: 5px;
    white-space: nowrap !important;
  }

  .btn-nav-cta svg {
    width: 15px;
    height: 15px;
  }

  .hero-pill {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: var(--radius-md);
  }

  /* Stack CTA buttons vertically for thumb-friendly tap targets */
  .cta-group {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-cta-apply, .btn-cta-zalo, .btn-cta-secondary {
    width: 100%;
    height: 46px;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
  }

  .gallery-main-view {
    height: 200px;
  }

  .gallery-thumb {
    height: 54px;
  }
}

/* --- Extra Small Screens (<= 380px: iPhone SE, Galaxy Fold cover) --- */
@media (max-width: 380px) {
  .container {
    padding: 0 10px;
  }

  .navbar-inner {
    height: 52px;
    gap: 6px;
  }

  .navbar-brand {
    gap: 6px;
  }

  .brand-logo-sict {
    height: 23px;
    max-width: 90px;
  }

  .brand-divider {
    display: block !important;
    height: 16px;
  }

  .brand-logos-sub {
    display: flex !important;
    align-items: center;
    gap: 5px;
  }

  .brand-logo-sub {
    display: block !important;
    height: 22px;
    width: auto;
  }

  /* Hide text on extra small screens */
  .brand-text {
    display: none !important;
  }

  .navbar-actions {
    gap: 5px;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .theme-toggle-btn svg {
    width: 15px;
    height: 15px;
  }

  .btn-nav-cta {
    padding: 6px 9px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .btn-nav-cta svg {
    display: none;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat-card {
    padding: 10px 6px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .countdown-card {
    min-width: 48px;
    padding: 6px 3px 5px;
  }

  .countdown-num {
    font-size: 1.15rem;
  }

  .countdown-label {
    font-size: 0.58rem;
  }

  .club-logo-wrap {
    width: 54px;
    height: 54px;
  }

  .club-name {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   MOBILE BOTTOM QUICK BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  z-index: 150;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px calc(env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-normal);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn svg {
  transition: transform var(--transition-fast);
}

.mobile-nav-btn:hover,
.mobile-nav-btn.active {
  color: var(--accent-primary);
}

.mobile-nav-btn.active svg {
  transform: scale(1.1);
}
