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

/* --- CUSTOM VARIABLES --- */
:root {
  /* Fonts */
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme Core Colors */
  --primary: #0F5FFF;
  --primary-hover: #054AD1;
  --primary-rgb: 15, 95, 255;
  --secondary: #2563EB;
  --accent: #38BDF8;
  --accent-rgb: 56, 189, 248;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Light Theme Variables */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.5);
  --border-subtle: rgba(15, 95, 255, 0.08);
  --border-light: rgba(15, 95, 255, 0.05);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-light: #64748B;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 95, 255, 0.05), 0 2px 4px -1px rgba(15, 95, 255, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 95, 255, 0.08), 0 4px 6px -2px rgba(15, 95, 255, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 95, 255, 0.1), 0 10px 10px -5px rgba(15, 95, 255, 0.04);
  --glow-color: rgba(15, 95, 255, 0.08);
  --special-section-bg: radial-gradient(120% 120% at 50% 10%, #EFF6FF 0%, #F8FAFC 100%);
  --nav-bg: rgba(248, 250, 252, 0.75);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-glass: rgba(17, 24, 39, 0.65);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.03);
  --border-light: rgba(255, 255, 255, 0.02);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-light: #6B7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --glow-color: rgba(56, 189, 248, 0.15);
  --special-section-bg: radial-gradient(120% 120% at 50% 10%, #0D1E3A 0%, #0B0F19 100%);
  --nav-bg: rgba(11, 15, 25, 0.75);
}

/* --- BASICS & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

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

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

ul {
  list-style: none;
}

button, input, select {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- LOADING SCREEN --- */
#loading-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: logo-pulse 1.5s infinite alternate;
}

.loader-bar {
  width: 150px;
  height: 4px;
  background-color: var(--border-subtle);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  animation: bar-slide 1.2s infinite ease-in-out;
}

@keyframes logo-pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 1; }
}
@keyframes bar-slide {
  0% { left: -30%; width: 30%; }
  50% { width: 50%; }
  100% { left: 100%; width: 30%; }
}

/* --- DECORATIONS & BACKGROUNDS --- */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: multiply;
  animation: float-around 25s infinite alternate ease-in-out;
}

[data-theme="dark"] .floating-blob {
  opacity: 0.12;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -10%;
  left: -10%;
  animation-duration: 20s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  bottom: 10%;
  right: -10%;
  animation-duration: 30s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: 40%;
  left: 30%;
  animation-duration: 25s;
}

@keyframes float-around {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(50px, -50px) rotate(180deg) scale(1.1); }
  100% { transform: translate(-30px, 30px) rotate(360deg) scale(0.95); }
}

/* Grid background overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(15, 95, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 95, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -3;
}

[data-theme="dark"] .bg-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
}

/* --- SCROLL PROGRESS & BACK TO TOP --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  z-index: 1000;
}

#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(15, 95, 255, 0.2);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 95, 255, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 95, 255, 0.35);
}

.btn-secondary {
  background-color: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: var(--border-subtle);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* --- NAV BAR --- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 990;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color var(--transition-normal), border var(--transition-normal);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: filter var(--transition-normal), transform var(--transition-fast);
}

.logo-block:hover .logo-img {
  transform: scale(1.05);
}

.footer-brand .logo-img {
  height: 52px;
}

[data-theme="dark"] .logo-img {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45)) brightness(1.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* SQAT Certificate Portal – special external nav link */
.nav-cert-link {
  color: hsl(38, 92%, 50%) !important;
  font-weight: 600 !important;
}

.nav-cert-link i {
  margin-right: 4px;
  font-size: 0.85em;
}

.nav-cert-link:hover {
  color: hsl(38, 100%, 60%) !important;
}

.nav-cert-link::after {
  background-color: hsl(38, 92%, 50%) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background-color: var(--bg-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
}

.theme-toggle:hover {
  background-color: var(--border-subtle);
  transform: rotate(15deg);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

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

/* --- SECTIONS COMMON --- */
section {
  padding: 100px 24px;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background-color: var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* Scroll reveal triggers */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- GLOW CARDS STYLE --- */
.glow-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glow-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.3);
}

/* Glow gradient that tracks coordinates */
.glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), var(--glow-color), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.glow-card:hover::after {
  opacity: 1;
}

.glow-card > * {
  position: relative;
  z-index: 2;
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  text-align: center;
  overflow: hidden;
}

.hero-brand-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.sqat-stylized-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 36px 10px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 32px rgba(15, 95, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: default;
}

.sqat-stylized-logo:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 40px rgba(15, 95, 255, 0.25), 0 0 24px rgba(56, 189, 248, 0.25);
  border-color: var(--primary);
}

.sqat-bug-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 95, 255, 0.12), rgba(56, 189, 248, 0.22));
  border: 1px solid rgba(15, 95, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 95, 255, 0.15);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sqat-bug-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(56, 189, 248, 0.5), transparent 60%);
  animation: bug-spin 4s linear infinite;
  opacity: 0.7;
}

@keyframes bug-spin {
  100% { transform: rotate(360deg); }
}

.sqat-bug-icon {
  font-size: 1.55rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(15, 95, 255, 0.3));
  transition: transform var(--transition-normal);
  position: relative;
  z-index: 2;
}

.sqat-stylized-logo:hover .sqat-bug-icon-wrapper {
  background: linear-gradient(135deg, rgba(15, 95, 255, 0.25), rgba(56, 189, 248, 0.4));
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(15, 95, 255, 0.3);
}

.sqat-stylized-logo:hover .sqat-bug-icon {
  transform: scale(1.18) rotate(-12deg);
}

.sqat-logo-text {
  font-family: 'Orbitron', 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 10px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary) 0%, #2563EB 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(15, 95, 255, 0.2);
  margin-right: -10px; /* Offset trailing letter spacing */
}

[data-theme="dark"] .sqat-stylized-logo {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .sqat-bug-icon-wrapper {
  background: linear-gradient(135deg, rgba(15, 95, 255, 0.25), rgba(56, 189, 248, 0.3));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .sqat-bug-icon {
  background: linear-gradient(135deg, #60A5FA, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
}

[data-theme="dark"] .sqat-logo-text {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

@media (max-width: 768px) {
  .sqat-stylized-logo {
    gap: 10px;
    padding: 8px 20px 8px 14px;
  }
  .sqat-bug-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .sqat-bug-icon {
    font-size: 1.2rem;
  }
  .sqat-logo-text {
    font-size: 2rem;
    letter-spacing: 6px;
    margin-right: -6px;
  }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  padding: 32px 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- MESSAGE FROM LEADERSHIP --- */
.leadership-spotlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--radius-xl);
}

.spotlight-header {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  align-items: center;
}

.spotlight-img-wrapper {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.spotlight-identity h4 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spotlight-position {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 2px 0 6px;
}

.spotlight-desc {
  font-size: 0.8rem;
  color: var(--text-light);
}

.spotlight-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  position: relative;
}

.spotlight-message::before {
  content: '“';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(var(--primary-rgb), 0.1);
  position: absolute;
  top: -30px; left: -10px;
  line-height: 1;
}

/* --- EXECUTIVE LEADERSHIP & SECRETARIAL TEAM --- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.board-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.board-img-wrapper {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 20px;
  border: 4px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.board-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.board-info h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.board-pos {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin: 4px 0 8px;
}

.board-detail {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

/* --- STUDENT WELFARE WING SECTION (SPECIAL HIGHLIGHT) --- */
.student-welfare-wing-section {
  background: var(--special-section-bg);
  transition: background var(--transition-normal);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Wing cards dynamic animated borders */
.animated-border-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  z-index: 1;
}

.animated-border-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-xl) + 1.5px);
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--primary));
  background-size: 300% 300%;
  z-index: -1;
  animation: border-dance 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.animated-border-card:hover::before {
  opacity: 1;
}

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

.wing-leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 80px;
}

/* Large Secretary card spanning 2 columns or centered */
.secretary-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.secretary-card {
  max-width: 500px;
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: center;
}

.secretary-card .board-img-wrapper {
  margin-bottom: 0;
  flex-shrink: 0;
}

.secretary-card .board-info {
  text-align: left;
}

/* Search and Filters */
.members-filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.filters-wrapper {
  display: flex;
  gap: 12px;
}

.filter-select {
  padding: 12px 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--primary);
}

.dynamic-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* --- ACTIVITIES SECTION --- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-img-wrapper {
  height: 200px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.activity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.activity-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.activity-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.activity-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* --- GALLERY SECTION --- */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.gallery-tab:hover, .gallery-tab.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 95, 255, 0.15);
}

.gallery-masonry {
  columns: 3 320px;
  column-gap: 24px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  position: relative;
  transition: var(--transition-normal);
}

.gallery-item-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #FFFFFF;
  z-index: 2;
}

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

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

.gallery-item-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-item-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  width: 100%;
}

.contact-info-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.contact-card {
  padding: 24px;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--border-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h5 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-details p, .contact-details a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.map-container {
  height: 100%;
  min-height: 350px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Premium iframe map styling with dark grid fallback */
.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0);
}

[data-theme="dark"] .map-iframe {
  filter: grayscale(1) invert(0.9) hue-rotate(180deg);
}

/* --- FOOTER --- */
footer {
  position: relative;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 80px 24px 80px; /* Standard bottom padding */
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}

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

.footer-brand .logo-title {
  font-size: 1.4rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-links-col h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copyright-info p {
  line-height: 1.6;
}

/* --- DEVELOPER CREDIT – COMPACT PILL CARD --- */
.footer-developer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  padding: 6px 16px 6px 6px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.footer-developer-credit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.25);
}

/* Avatar wrapper */
.dev-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

/* No spinning ring – just a clean border */
.dev-avatar-ring {
  display: none;
}

/* Profile image */
.dev-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dev-avatar-wrap:hover .dev-avatar-img,
.footer-developer-credit:hover .dev-avatar-img {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.35);
}

/* Zoom hint badge on avatar */
.dev-avatar-zoom-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-primary);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.dev-avatar-wrap:hover .dev-avatar-zoom-icon {
  transform: scale(1.2);
  opacity: 1;
}

/* Hide old badge */
.dev-avatar-badge {
  display: none;
}

/* Card text body */
.dev-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dev-card-label {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.2;
}

.footer-developer-credit .dev-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  transition: var(--transition-fast);
  line-height: 1.2;
}

.footer-developer-credit .dev-name:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dev-card-role {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.2;
}

/* Social links */
.dev-credit-socials {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  padding-left: 0;
  border-left: none;
}

.dev-credit-socials a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: var(--transition-fast);
}

.dev-credit-socials a:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 13, 26, 0.95);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

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

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -40px; right: 0;
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform var(--transition-fast);
}

.lightbox-close:hover {
  transform: scale(1.1) rotate(90deg);
}

/* --- DETAILS MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 13, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 90%;
  max-width: 450px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.modal-img-wrapper {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--border-glass);
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

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

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-pos {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.modal-body-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg-primary);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.modal-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.modal-info-label {
  color: var(--text-light);
  font-weight: 500;
}

.modal-info-val {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Lightbox Clickable Card Images Hover Styling */
.spotlight-img, .board-img {
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease !important;
}

.spotlight-img:hover, .board-img:hover {
  transform: scale(1.04) !important;
  filter: brightness(1.08) !important;
}

/* --- CHATBOT WIDGET STYLES --- */
.chatbot-wrapper {
  position: relative;
}

#chatbot-launcher {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 998;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: floatLauncher 3s ease-in-out infinite;
}

#chatbot-launcher:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.35);
}

.chatbot-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #FF4D4D;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Chat Window Panel */
#chatbot-window {
  position: fixed;
  bottom: 145px;
  right: 25px;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 160px);
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

#chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.12));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-bot-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: #2ECC71;
  border: 2px solid var(--bg-secondary);
}

.chat-bot-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.chat-bot-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

#chat-close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

#chat-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1) rotate(90deg);
}

/* Messages area */
.chat-messages {
  flex: 1 1 0%;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: var(--border-subtle);
  border-radius: 10px;
}

/* Message bubbles */
.message-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
  animation: bubbleAppear 0.25s ease-out forwards;
}

.message-bubble.bot {
  align-self: flex-start;
  background-color: rgba(var(--primary-rgb), 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-bottom-left-radius: 4px;
}

.message-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

/* Highlight links inside bubbles */
.message-bubble.bot a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.message-bubble.bot a:hover {
  color: var(--primary-hover);
}

/* Typing indicator bubble */
.message-bubble.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  background-color: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Quick Replies */
.chat-suggestions {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
  flex-shrink: 0;
  max-height: 120px;
  overflow-y: auto;
  z-index: 2;
}

.chat-chip {
  background-color: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chat-chip:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.25);
}

/* Footer Input Area */
.chat-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
  z-index: 2;
}

#chat-input {
  flex-grow: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

#chat-input:focus {
  border-color: rgba(var(--primary-rgb), 0.5);
}

#chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

#chat-send-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

/* Keyframe Animations */
@keyframes bubbleAppear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes floatLauncher {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* --- INTERACTIVE EVENT TIMELINE --- */
.timeline-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.timeline-toggle-bg {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px;
  display: flex;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.timeline-toggle-btn {
  background: none;
  border: none;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-toggle-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.timeline-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0;
  min-height: 400px;
}

/* Vertical timeline center line SVG */
.timeline-svg {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.timeline-line-bg {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2px;
}

.timeline-line-draw {
  stroke-width: 3px;
  transition: stroke-dashoffset 0.1s ease-out;
}

/* Timeline Items layout */
.timeline-item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.timeline-item {
  position: relative;
  width: 50%;
  box-sizing: border-box;
  z-index: 2;
}

/* Alternating cards side positions */
.timeline-item.left {
  left: 0;
  padding-right: 40px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
}

/* Central Node dots */
.timeline-node {
  position: absolute;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  z-index: 3;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  animation: nodePulse 2.5s infinite;
}

.timeline-item.left .timeline-node {
  right: -8px;
}

.timeline-item.right .timeline-node {
  left: -8px;
}

.timeline-node:hover {
  transform: scale(1.3);
  border-color: var(--accent);
}

/* Glassmorphic timeline event card */
.timeline-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: var(--shadow-lg), 0 10px 24px rgba(var(--primary-rgb), 0.15);
}

.timeline-card-img-wrapper {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border-glass);
  background-color: rgba(0,0,0,0.2);
}

.timeline-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.timeline-card-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.timeline-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-title);
}

.timeline-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.timeline-card-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.timeline-card:hover .timeline-card-more {
  color: var(--accent);
}

@keyframes nodePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
}

/* --- STUDENT FEEDBACK & WELFARE PORTAL FORM --- */
.contact-form-block {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  flex: 1.2;
  min-height: 480px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Progress Stepper */
.form-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.progress-step .step-num {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.progress-step.active .step-num {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.progress-step.completed .step-num {
  background-color: #2ECC71;
  border-color: #2ECC71;
  color: #FFFFFF;
}

.progress-step .step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.progress-step.active .step-label {
  color: var(--primary);
}

.progress-step.completed .step-label {
  color: #2ECC71;
}

.progress-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--border-glass);
  margin: 0 10px;
  transform: translateY(-12px);
  z-index: 1;
  transition: background-color var(--transition-fast);
}

.progress-line.completed {
  background-color: #2ECC71;
}

/* Steps content */
.form-step-content {
  display: none;
  text-align: left;
}

.form-step-content.active {
  display: block;
  animation: stepFadeIn 0.35s ease-out forwards;
}

.form-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: var(--font-title);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group textarea {
  height: 105px;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.45);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Error Validations */
.form-error-msg {
  color: #FF4D4D;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #FF4D4D !important;
  background-color: rgba(255, 77, 77, 0.04) !important;
}

/* Custom Dotted File Pick wrapper */
.file-upload-wrapper {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.01);
  position: relative;
}

.file-upload-wrapper:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  background-color: rgba(var(--primary-rgb), 0.02);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-wrapper .file-icon {
  font-size: 1.8rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.file-upload-wrapper:hover .file-icon {
  color: var(--primary);
}

.file-upload-wrapper .file-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.file-name-display {
  font-size: 0.8rem;
  color: #2ECC71;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Success Form Submission Screen Overlay */
.form-success-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 13, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  visibility: visible;
}

#confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.success-content {
  max-width: 360px;
  padding: 24px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.success-content h4 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* SVG Checkmark drawing keyframes */
.checkmark-svg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #2ECC71;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #2ECC71;
  animation: fillCheckmark .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s both;
  margin: 0 auto 20px;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #2ECC71;
  fill: none;
  animation: strokeCircle .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

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

@keyframes strokeCircle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fillCheckmark {
  100% {
    box-shadow: inset 0px 0px 0px 30px rgba(46, 204, 113, 0.1);
  }
}

@keyframes scaleCheckmark {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* --- ALUMNI TESTIMONIALS 3D CAROUSEL --- */
.testimonials-section {
  position: relative;
  background: var(--special-section-bg);
  overflow: hidden;
  padding: 100px 0;
}

.testimonials-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px auto 20px;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  perspective: 1200px;
}

.carousel-track-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* 3D Testimonial Card Styling */
.testimonial-card-3d {
  position: absolute;
  width: 540px;
  max-width: 90%;
  height: 320px;
  padding: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform var(--transition-slow), opacity var(--transition-slow), border-color var(--transition-normal), box-shadow var(--transition-slow);
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transform: translateX(0) scale(0.6) rotateY(0deg);
  z-index: 1;
  pointer-events: none;
}

/* Center Active Card */
.testimonial-card-3d.active {
  opacity: 1;
  transform: translateX(0) scale(1) rotateY(0deg);
  z-index: 10;
  pointer-events: auto;
  cursor: default;
}

/* Left Neighbor Card */
.testimonial-card-3d.prev {
  opacity: 0.55;
  transform: translateX(-42%) scale(0.82) rotateY(15deg);
  z-index: 5;
  pointer-events: auto;
}

/* Right Neighbor Card */
.testimonial-card-3d.next {
  opacity: 0.55;
  transform: translateX(42%) scale(0.82) rotateY(-15deg);
  z-index: 5;
  pointer-events: auto;
}

.testimonial-card-3d:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 30px 45px -15px rgba(15, 95, 255, 0.15);
}

.testimonial-card-3d.active:hover {
  transform: translateX(0) scale(1.02) rotateY(0deg);
}

.testimonial-card-3d.prev:hover {
  transform: translateX(-42%) scale(0.85) rotateY(10deg);
  opacity: 0.8;
}

.testimonial-card-3d.next:hover {
  transform: translateX(42%) scale(0.85) rotateY(-10deg);
  opacity: 0.8;
}

/* Quote Graphic Overlay */
.testimonial-quote-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 4.5rem;
  color: var(--primary);
  opacity: 0.06;
  pointer-events: none;
  font-family: serif;
}

/* Card Header Tag */
.testimonial-tag {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* Blockquote Paragraph */
.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

/* Card Footer Author Segment */
.testimonial-author-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-top: auto;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  background: var(--bg-primary);
}

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

.testimonial-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-family: var(--font-title);
  letter-spacing: -0.2px;
}

.testimonial-meta p {
  font-size: 0.76rem;
  color: var(--text-light);
}

/* Brand Company Chip */
.company-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Carousel Control Arrows */
.carousel-control {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  position: absolute;
}

.carousel-control.prev-btn {
  left: 20px;
}

.carousel-control.next-btn {
  right: 20px;
}

.carousel-control:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}

.carousel-control:active {
  transform: scale(0.95);
}

/* Indicators Grid */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  position: relative;
  z-index: 15;
}

.carousel-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--text-light);
  opacity: 0.3;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.carousel-indicator-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--primary);
  opacity: 1;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.45);
}

/* --- SQA INTERACTIVE QUIZ SECTION --- */
.quiz-section {
  position: relative;
  background: var(--bg-primary);
  padding: 100px 0;
}

.quiz-container {
  max-width: 800px;
  width: 90%;
  margin: 40px auto 0;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.quiz-view {
  animation: quizFadeIn 0.4s ease-out forwards;
}

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

/* Welcome Start Screen Styles */
.quiz-welcome-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-welcome-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.quiz-welcome-content h3 {
  font-size: 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.quiz-welcome-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.quiz-rules-list {
  text-align: left;
  max-width: 480px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--border-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  width: 100%;
}

.quiz-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.quiz-rules-list li i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 2px;
}

.btn-start-quiz {
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
  transition: all var(--transition-normal);
}

.btn-start-quiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.4);
}

/* Play View Panel Styles */
.quiz-play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.quiz-q-tracker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.quiz-timer-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.quiz-timer-block.warning {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.3);
  color: #E74C3C;
  animation: timerPulse 0.5s ease-in-out infinite alternate;
}

@keyframes timerPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.2);
  }
}

.quiz-progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-question-container {
  margin-bottom: 28px;
}

.quiz-question-container h3 {
  font-size: 1.28rem;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-btn:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.option-btn:active {
  transform: translateY(0);
}

/* Correct Selection State */
.option-btn.correct {
  background: rgba(46, 204, 113, 0.12) !important;
  border-color: #2ECC71 !important;
  color: #27AE60 !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.15);
}

[data-theme="dark"] .option-btn.correct {
  color: #2ECC71 !important;
}

/* Incorrect Selection State */
.option-btn.incorrect {
  background: rgba(231, 76, 60, 0.12) !important;
  border-color: #E74C3C !important;
  color: #C0392B !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

[data-theme="dark"] .option-btn.incorrect {
  color: #E74C3C !important;
}

/* Disabled Option States */
.option-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.option-btn.correct:disabled, .option-btn.incorrect:disabled {
  opacity: 1;
}

/* Play Footer and Feedbacks Box */
.quiz-play-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.quiz-feedback-box {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--border-light);
  border: 1px solid var(--border-subtle);
  animation: quizSlideIn 0.3s ease-out forwards;
}

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

.quiz-feedback-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.quiz-feedback-header.correct {
  color: #27AE60;
}
[data-theme="dark"] .quiz-feedback-header.correct {
  color: #2ECC71;
}

.quiz-feedback-header.incorrect {
  color: #C0392B;
}
[data-theme="dark"] .quiz-feedback-header.incorrect {
  color: #E74C3C;
}

.quiz-feedback-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.btn-next-question {
  align-self: flex-end;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
}

/* Result Card Styles */
.quiz-result-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.result-badge-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.08);
  border: 2px solid var(--border-glass);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.result-badge-icon.pass {
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.2);
  color: #2ECC71;
}

.result-badge-icon.fail {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.2);
  color: #E74C3C;
}

.quiz-result-header h3 {
  font-size: 1.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.quiz-score-circle {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  border: 4px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.quiz-score-circle::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  pointer-events: none;
}

.score-percentage {
  font-size: 2.2rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.score-ratio {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 4px;
}

.quiz-result-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
}

/* Result Review Checklist */
.quiz-review-section {
  width: 100%;
  background: var(--border-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.quiz-review-section h4 {
  font-size: 1.05rem;
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.quiz-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 6px;
}

.quiz-review-list::-webkit-scrollbar {
  width: 5px;
}

.quiz-review-list::-webkit-scrollbar-track {
  background: transparent;
}

.quiz-review-list::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-q-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.review-q-header i {
  margin-top: 2px;
  font-size: 0.95rem;
}

.review-q-header.correct i {
  color: #2ECC71;
}

.review-q-header.incorrect i {
  color: #E74C3C;
}

.review-q-explanation {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-light);
  padding-left: 20px;
}

.quiz-result-actions {
  display: flex;
  justify-content: center;
}

.quiz-result-actions .btn {
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* Achievements Section Styling */
.achievements-section {
  position: relative;
  overflow: hidden;
}

.achievements-subtitle {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  max-width: var(--container-width, 1140px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.subtitle-icon {
  color: var(--primary);
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
}

.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: var(--container-width, 1140px);
  margin: 0 auto;
}

/* Card Design */
.achievement-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  height: 100%;
  width: 100%;
  max-width: 360px;
}

.achievement-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-lg), 0 12px 28px rgba(var(--primary-rgb), 0.15);
}

/* Mouse coordinate glow effect for achievements cards */
.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(var(--primary-rgb), 0.08), transparent 80%);
  z-index: 0;
  pointer-events: none;
}



.achievement-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.achievement-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  z-index: 1;
}

.achievement-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
  z-index: 1;
}

.achievement-title-award {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
  padding: 0 8px;
  z-index: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  z-index: 1;
}

.achievement-img-link {
  display: block;
  width: 100%;
  margin: 12px 0;
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
}

.achievement-img-container {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  margin: 12px 0;
  cursor: pointer;
  z-index: 1;
}

.achievement-img-link .achievement-img-container {
  margin: 0;
}

.achievement-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.achievement-img-link:hover .achievement-img,
.achievement-img-container:hover .achievement-img {
  transform: scale(1.06);
}

.achievement-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.achievement-img-overlay i {
  font-size: 1.6rem;
  color: #1877f2;
  background: #ffffff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.5);
}

.achievement-img-link:hover .achievement-img-overlay,
.achievement-img-container:hover .achievement-img-overlay {
  opacity: 1;
}

.achievement-post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1877f2, #0d5bb5);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
  z-index: 1;
}

.achievement-post-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
  color: #ffffff;
}

/* Custom Cursor Aura */
#custom-cursor {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
  display: none;
}

#custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  display: none;
}

.cursor-hover {
  width: 60px !important;
  height: 60px !important;
  background-color: rgba(var(--primary-rgb), 0.08);
  border-color: var(--accent) !important;
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.5) !important;
}

#mesh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* Neon Glow Card borders */
.glow-card {
  position: relative;
  z-index: 1;
}

.glow-card::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.glow-card:hover::after {
  opacity: 0.15;
}

.glow-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3) !important;
  box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.12), 0 0 20px rgba(var(--accent-rgb), 0.15) !important;
}

/* Digital Folder Card Styling */
.folder-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg) !important;
  padding: 28px 24px 24px !important;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 15px; /* Offset for folder tab */
  width: 100%;
}

.folder-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -1px;
  width: 90px;
  height: 12px;
  background: var(--bg-glass);
  border-top: 1px solid var(--border-glass);
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  border-radius: 6px 6px 0 0;
  z-index: 2;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.folder-card:hover::before {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.45);
}

.folder-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(var(--primary-rgb), 0.45) !important;
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.15) !important;
}

/* Animated Chatbot Avatar & Suggestions */
.chat-bot-avatar i {
  animation: avatarBob 2s ease-in-out infinite alternate;
}

@keyframes avatarBob {
  from {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 2px 5px rgba(var(--primary-rgb), 0.2));
  }
  to {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 5px 12px rgba(var(--primary-rgb), 0.5));
  }
}

.chat-chip {
  animation: chipSlideIn 0.3s ease-out forwards;
  opacity: 0;
  transform: translateX(15px);
}

@keyframes chipSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  #chatbot-window {
    width: calc(100vw - 24px) !important;
    right: 12px !important;
    bottom: 95px !important;
    height: 480px !important;
  }
  .study-tools-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #custom-cursor, #custom-cursor-dot {
    display: none !important;
  }
}

/* --- HERO NOTICE BANNER & NOTICE PANEL STYLES --- */
.nav-notice-link {
  color: var(--accent) !important;
  font-weight: 700;
}

.nav-notice-icon {
  color: #ff3b30;
  animation: noticeBellRing 2s ease-in-out infinite;
}

@keyframes noticeBellRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(15deg); }
  20%, 40% { transform: rotate(-15deg); }
  50% { transform: rotate(0deg); }
}

.hero-notice-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.15);
  max-width: 90%;
  flex-wrap: wrap;
  justify-content: center;
}

.notice-pulse {
  width: 8px;
  height: 8px;
  background-color: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff3b30;
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.4; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.3); }
}

.notice-badge {
  background: linear-gradient(135deg, #ff3b30, #ff7b00);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notice-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.notice-link-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.notice-link-btn:hover {
  color: var(--accent);
  transform: translateY(2px);
}

/* Notice Panel Section */
.notice-section {
  padding: 60px 0 80px;
  position: relative;
}

.notice-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.notice-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.notice-status-badge {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.15));
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.notice-date-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.notice-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

@media (max-width: 991px) {
  .notice-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.notice-event-info {
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.notice-icon-box {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.notice-event-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.notice-organizer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.notice-contribution {
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}

.notice-event-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.detail-item i {
  font-size: 1.1rem;
  color: var(--primary);
}

.detail-item div {
  display: flex;
  flex-direction: column;
}

.detail-item strong {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Countdown Timer */
.notice-countdown-wrapper {
  margin-top: auto;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.countdown-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 54px;
}

.count-box span {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.count-box label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Speech Box */
.notice-speech-box {
  display: flex;
  flex-direction: column;
}

.speech-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.speech-avatar-group {
  display: flex;
}

.speech-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  margin-left: -12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.speech-avatar:first-child {
  margin-left: 0;
}

.speech-author-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.speech-author-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.speech-quote-container {
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  margin-bottom: 20px;
}

.quote-icon {
  font-size: 2rem;
  color: rgba(var(--primary-rgb), 0.18);
  position: absolute;
  top: 16px;
  right: 20px;
}

.speech-headline {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.4;
  padding-right: 30px;
}

.speech-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.speech-intro {
  font-size: 0.95rem !important;
  color: var(--text-primary) !important;
}

.speech-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.highlight-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: transform 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.highlight-icon {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.highlight-card h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 0.78rem !important;
  color: var(--text-secondary) !important;
  margin-bottom: 0 !important;
  line-height: 1.45 !important;
}

.speech-conclusion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
}

.wish-icon {
  font-size: 1.3rem;
  color: #2ecc71;
  margin-top: 2px;
}

.speech-conclusion p {
  font-size: 0.86rem !important;
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
  line-height: 1.5 !important;
}

.speech-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
}
