/* ==========================================================================
   Suchana Training Institution — Faculty & Staff Showroom CSS
   Clarity Liquid Blue & Soft Pearl Frosted Glassmorphism Architecture
   ========================================================================== */

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

:root {
  --font-english: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bengali: 'Hind Siliguri', 'Outfit', sans-serif;
  
  --brand-yellow: #facc15;
  --brand-gold-dark: #d97706;
  --brand-amber: #f59e0b;
  --brand-blue: #2563eb;
  --brand-cyan: #38bdf8;
  
  --glass-clarity-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.09) 100%);
  --glass-clarity-border: 1.5px solid rgba(255, 255, 255, 0.32);
  --glass-clarity-glow: 0 35px 95px rgba(3, 12, 38, 0.48), inset 0 1.5px 0 rgba(255, 255, 255, 0.65), inset 0 -1.5px 0 rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   Ambient Gradient Video Motion Background
   ========================================================================== */
.faculty-bg-video-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #030714;
  background: radial-gradient(circle at 50% 50%, #061129 0%, #030714 65%, #01040d 100%);
}

.faculty-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.faculty-bg-video-overlay {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .faculty-bg-video {
    display: none;
  }
}

body.faculty-page-body {
  background-color: #030714;
  background: radial-gradient(circle at 50% 50%, #061129 0%, #030714 65%, #01040d 100%);
  color: #ffffff;
  font-family: var(--font-english);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   Main Page Content Staging & Intro Transition
   During intro: #faculty-main-page-content is 100% invisible with zero layout clash
   After intro: smoothly reveals with cubic-bezier fade & lift
   ========================================================================== */
#faculty-main-page-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.intro-active #faculty-main-page-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(22px) scale(0.985);
}

/* ==========================================================================
   Header & Navigation (Ultra-Translucent Apple Glass)
   ========================================================================== */
.faculty-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 10, 28, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 4, 16, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.faculty-nav .brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.faculty-nav .brand-logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.4));
  transition: transform 0.3s ease;
}

.faculty-nav .brand-logo-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.faculty-nav .brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.faculty-nav .brand-name-bn {
  font-family: var(--font-bengali);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.faculty-nav .brand-name-en {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.btn-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-nav-home:hover {
  background: #ffffff;
  color: #0d2758;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.btn-nav-admission {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  color: #0b1f47;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-nav-admission:hover {
  transform: translateY(-2px) scale(1.03);
  background: #facc15;
  color: #000000;
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.5);
}

.btn-nav-add-member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.6);
  color: #fef08a;
  font-family: var(--font-english);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-nav-add-member:hover {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #0b1f47;
  border-color: #facc15;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.45);
}

.btn-nav-add-member:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   Hero Section & Section Header
   ========================================================================== */
.faculty-hero {
  padding: 16px 20px 10px;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Floating Liquid Optic Glass Capsule Card */
.faculty-hero-glass-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 30px;
  background: linear-gradient(135deg, rgba(8, 22, 54, 0.52) 0%, rgba(3, 11, 32, 0.38) 100%);
  backdrop-filter: blur(4px) saturate(125%);
  -webkit-backdrop-filter: blur(4px) saturate(125%);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  box-shadow: 
    0 20px 48px rgba(0, 6, 24, 0.4),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.faculty-hero-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 75%, transparent 100%);
  border-radius: 28px 28px 0 0;
  pointer-events: none;
  z-index: 1;
}

.faculty-hero-title {
  font-family: var(--font-bengali);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 18px rgba(0, 0, 0, 0.85);
  line-height: 1.28;
  position: relative;
  z-index: 2;
}

.faculty-hero-title .highlight-gold {
  color: #fde047;
  text-shadow: 0 1px 0 #b45309, 0 0 25px rgba(250, 204, 21, 0.85), 0 2px 6px rgba(0, 0, 0, 0.95);
  font-weight: 900;
}

.faculty-hero-subtitle {
  font-family: var(--font-bengali);
  font-size: 14.5px;
  font-weight: 600;
  color: #f8fafc;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 2px 12px rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Main Stage Layout (Sidebar + Liquid Glass Stage)
   ========================================================================== */
.faculty-stage-wrapper {
  max-width: 1520px;
  margin: 0 auto;
  padding: 8px 20px 30px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
  min-height: auto;
  z-index: 5;
  scroll-margin-top: 85px;
}

/* ==========================================================================
   Left Branch Selector Sidebar (Liquid Optic Transparent Glass)
   ========================================================================== */
.faculty-sidebar {
  position: relative;
  top: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(4px) saturate(125%);
  -webkit-backdrop-filter: blur(4px) saturate(125%);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  padding: 12px 10px;
  box-shadow: 
    0 22px 55px rgba(0, 6, 24, 0.4),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.2);
  z-index: 20;
  overflow: hidden;
}

.faculty-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 75%, transparent 100%);
  border-radius: 28px 28px 0 0;
  pointer-events: none;
  z-index: 1;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 6px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 6px;
}

.sidebar-heading h3 {
  font-family: var(--font-bengali);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-total-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.branch-nav-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar for Branch List */
.branch-nav-list::-webkit-scrollbar {
  width: 5px;
}
.branch-nav-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.branch-nav-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.branch-nav-list::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

.branch-tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-english);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.branch-tab-btn .tab-left-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-tab-btn .tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.branch-tab-btn .tab-text {
  display: flex;
  flex-direction: column;
}

.branch-tab-btn .tab-en-name {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
}

.branch-tab-btn .tab-bn-name {
  font-family: var(--font-bengali);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.branch-tab-btn .tab-count {
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: 12px;
}

.branch-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateX(3px);
}

.branch-tab-btn:hover .tab-dot {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

/* Active State for Branch Pill */
.branch-tab-btn.active {
  background: rgba(255, 255, 255, 0.24);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.branch-tab-btn.active .tab-dot {
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
}

.branch-tab-btn.active .tab-bn-name {
  color: #ffffff;
}

.branch-tab-btn.active .tab-count {
  background: #ffffff;
  color: #0d2758;
  font-weight: 900;
}

/* ==========================================================================
   Clarity Glass Stage Frame (Liquid Optic Transparent Glass)
   ========================================================================== */
.faculty-stage-container {
  position: relative;
  top: 0;
  margin: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(4px) saturate(125%);
  -webkit-backdrop-filter: blur(4px) saturate(125%);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  padding: 14px 18px 12px;
  overflow: hidden;
  box-shadow: 
    0 28px 65px rgba(0, 6, 24, 0.4),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.2);
  min-height: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.faculty-stage-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 75%, transparent 100%);
  border-radius: 28px 28px 0 0;
  pointer-events: none;
  z-index: 1;
}

.stage-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 250px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(0, 166, 255, 0.08) 40%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Header bar inside stage */
.stage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 8px;
}

.stage-current-branch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-current-branch h2 {
  font-family: var(--font-bengali);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.stage-current-branch .branch-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 800;
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stage-stats-info {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   3D Perspective CoverFlow Slider Stage (Apple CoverFlow / Spotify Fan Style)
   ========================================================================== */
.coverflow-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 6px;
  user-select: none;
  overflow: visible;
}

.coverflow-viewport {
  position: relative;
  width: 100%;
  height: 415px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  outline: none;
}

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

/* 3D CoverFlow Individual Card (Liquid Optic Transparent Glass) */
.coverflow-card {
  position: absolute;
  width: 270px;
  height: 380px;
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.12) 0%, rgba(8, 24, 58, 0.2) 40%, rgba(3, 12, 32, 0.32) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px) saturate(125%);
  -webkit-backdrop-filter: blur(4px) saturate(125%);
  box-shadow: 
    0 22px 55px rgba(2, 8, 26, 0.5), 
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  cursor: pointer;
  transform-origin: center center;
  transition: 
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity, filter;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 10px;
}

/* ==========================================================================
   Multicolor Translucent Theme Palette for CoverFlow Cards
   ========================================================================== */

/* 1. Teal Theme (Seafoam / Emerald Teal) */
.coverflow-card.theme-teal {
  --card-accent: #5eead4;
  --card-pill-border: rgba(45, 212, 191, 0.5);
  background: linear-gradient(170deg, rgba(20, 184, 166, 0.22) 0%, rgba(13, 148, 136, 0.1) 25%, rgba(4, 25, 42, 0.38) 60%, rgba(2, 14, 28, 0.52) 100%);
  border-color: rgba(45, 212, 191, 0.5);
}
.coverflow-card.theme-teal.is-active {
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 28px 70px rgba(2, 8, 26, 0.75), 0 0 35px rgba(45, 212, 191, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* 2. Orange Theme (Warm Coral / Tangerine) */
.coverflow-card.theme-orange {
  --card-accent: #fdba74;
  --card-pill-border: rgba(251, 146, 60, 0.5);
  background: linear-gradient(170deg, rgba(249, 115, 22, 0.22) 0%, rgba(234, 88, 12, 0.1) 25%, rgba(45, 18, 10, 0.38) 60%, rgba(24, 8, 4, 0.52) 100%);
  border-color: rgba(251, 146, 60, 0.5);
}
.coverflow-card.theme-orange.is-active {
  border-color: rgba(253, 186, 116, 0.9);
  box-shadow: 0 28px 70px rgba(2, 8, 26, 0.75), 0 0 35px rgba(249, 115, 22, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* 3. Lime Theme (Chartreuse / Aurora Lime) */
.coverflow-card.theme-lime {
  --card-accent: #bef264;
  --card-pill-border: rgba(163, 230, 53, 0.5);
  background: linear-gradient(170deg, rgba(132, 204, 22, 0.22) 0%, rgba(101, 163, 13, 0.1) 25%, rgba(22, 38, 10, 0.38) 60%, rgba(12, 22, 4, 0.52) 100%);
  border-color: rgba(163, 230, 53, 0.5);
}
.coverflow-card.theme-lime.is-active {
  border-color: rgba(190, 242, 100, 0.9);
  box-shadow: 0 28px 70px rgba(2, 8, 26, 0.75), 0 0 35px rgba(132, 204, 22, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* 4. Cyan Theme (Electric Cyan / Sky Blue) */
.coverflow-card.theme-cyan {
  --card-accent: #7dd3fc;
  --card-pill-border: rgba(56, 189, 248, 0.5);
  background: linear-gradient(170deg, rgba(56, 189, 248, 0.22) 0%, rgba(2, 132, 199, 0.1) 25%, rgba(6, 28, 58, 0.38) 60%, rgba(3, 14, 32, 0.52) 100%);
  border-color: rgba(56, 189, 248, 0.5);
}
.coverflow-card.theme-cyan.is-active {
  border-color: rgba(125, 211, 252, 0.9);
  box-shadow: 0 28px 70px rgba(2, 8, 26, 0.75), 0 0 35px rgba(56, 189, 248, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* 5. Amber Theme (Golden Amber / Gold) */
.coverflow-card.theme-amber {
  --card-accent: #fde047;
  --card-pill-border: rgba(250, 204, 21, 0.5);
  background: linear-gradient(170deg, rgba(250, 204, 21, 0.22) 0%, rgba(217, 119, 6, 0.1) 25%, rgba(38, 26, 8, 0.38) 60%, rgba(20, 14, 3, 0.52) 100%);
  border-color: rgba(250, 204, 21, 0.5);
}
.coverflow-card.theme-amber.is-active {
  border-color: rgba(253, 224, 71, 0.9);
  box-shadow: 0 28px 70px rgba(2, 8, 26, 0.75), 0 0 35px rgba(250, 204, 21, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* 6. Rose Theme (Rose / Orchid Pink) */
.coverflow-card.theme-rose {
  --card-accent: #fda4af;
  --card-pill-border: rgba(251, 133, 149, 0.5);
  background: linear-gradient(170deg, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.1) 25%, rgba(42, 12, 24, 0.38) 60%, rgba(22, 5, 12, 0.52) 100%);
  border-color: rgba(251, 113, 133, 0.5);
}
.coverflow-card.theme-rose.is-active {
  border-color: rgba(253, 164, 175, 0.9);
  box-shadow: 0 28px 70px rgba(2, 8, 26, 0.75), 0 0 35px rgba(244, 63, 94, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* 7. Violet Theme (Cosmic Violet / Purple) */
.coverflow-card.theme-violet {
  --card-accent: #d8b4fe;
  --card-pill-border: rgba(192, 132, 252, 0.5);
  background: linear-gradient(170deg, rgba(168, 85, 247, 0.22) 0%, rgba(126, 34, 206, 0.1) 25%, rgba(32, 12, 52, 0.38) 60%, rgba(16, 5, 28, 0.52) 100%);
  border-color: rgba(192, 132, 252, 0.5);
}
.coverflow-card.theme-violet.is-active {
  border-color: rgba(216, 180, 254, 0.9);
  box-shadow: 0 28px 70px rgba(2, 8, 26, 0.75), 0 0 35px rgba(168, 85, 247, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* Center Active Card Highlights */
.coverflow-card.is-active {
  box-shadow: 
    0 28px 70px rgba(2, 8, 26, 0.85),
    0 0 35px rgba(56, 189, 248, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
}

.coverflow-card:not(.is-active):hover {
  filter: brightness(1) !important;
  border-color: rgba(255, 255, 255, 0.7);
}

/* Radiant Click Glow Animation */
.coverflow-card.active-glow {
  animation: coverflowRadiantGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes coverflowRadiantGlow {
  0% {
    box-shadow: 0 28px 70px rgba(2, 8, 26, 0.8);
  }
  40% {
    box-shadow: 
      0 38px 85px rgba(14, 165, 233, 0.6),
      0 0 50px rgba(250, 204, 21, 0.65),
      0 0 0 3px #38bdf8;
  }
  100% {
    box-shadow: 
      0 28px 70px rgba(2, 8, 26, 0.8),
      0 0 30px rgba(56, 189, 248, 0.35);
  }
}

/* Photo Box Inside Card */
.coverflow-photo-box {
  width: 100%;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1e3d;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.coverflow-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverflow-card.is-active:hover .coverflow-photo {
  transform: scale(1.03);
}

/* Card Information Body (Compact Flow, High Contrast, 100% Readable) */
.coverflow-info-body {
  padding: 8px 3px 2px;
  display: flex;
  flex-direction: column;
}

.coverflow-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 5px;
  overflow: visible;
}

.coverflow-primary-name {
  font-family: var(--font-english);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.faculty-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  line-height: 1.35;
}

.coverflow-verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.coverflow-verified-icon svg {
  fill: #38bdf8;
  width: 14px;
  height: 14px;
  display: block;
}

.coverflow-bn-name {
  font-family: var(--font-bengali);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--card-accent, #38bdf8);
  margin-top: 1px;
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.9);
}

.coverflow-designation-text {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.85);
}

/* Bottom Actions Row */
.coverflow-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0;
}

.coverflow-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-pill-border, rgba(255, 255, 255, 0.3));
  padding: 4px 9px;
  border-radius: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.coverflow-branch-pill svg {
  color: var(--card-accent, #facc15);
  flex-shrink: 0;
}

/* Contact Button */
.btn-coverflow-contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-family: var(--font-english);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn-coverflow-contact:hover {
  background: #ffffff;
  color: #0b1f47;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  text-shadow: none;
}

.btn-coverflow-contact:active,
.coverflow-card.active-glow .btn-coverflow-contact {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
  transform: scale(1.08);
}

/* ==========================================================================
   CoverFlow Navigation Controls & Dots
   ========================================================================== */
.coverflow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 25px rgba(0, 0, 0, 0.35);
}

.coverflow-nav-btn.prev-btn {
  left: 6px;
}

.coverflow-nav-btn.next-btn {
  right: 6px;
}

.coverflow-nav-btn:hover {
  background: #ffffff;
  color: #081d45;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35);
}

.coverflow-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.coverflow-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Pagination Dots */
.coverflow-pagination {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.coverflow-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.coverflow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverflow-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.coverflow-dot.active {
  width: 20px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Faculty Modals Architecture (Apple VisionOS Liquid Glass Dialogs)
   ========================================================================== */
.faculty-modal-overlay,
.faculty-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 8, 24, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.faculty-modal-dialog,
.faculty-modal-card {
  background: linear-gradient(155deg, rgba(15, 28, 56, 0.92) 0%, rgba(8, 18, 38, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  box-shadow: 
    0 35px 100px -10px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(56, 189, 248, 0.2),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.7),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  width: 100%;
  position: relative;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faculty-modal-overlay.active .faculty-modal-dialog,
.faculty-modal-backdrop.active .faculty-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-icon-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-icon-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

/* ==========================================================================
   1. Admin Login Authentication Modal
   ========================================================================== */
.auth-modal-card {
  max-width: 390px;
  padding: 30px 24px 26px;
  text-align: center;
}

.auth-icon-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: rgba(250, 204, 21, 0.12);
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

.auth-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.auth-modal-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.auth-form-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-error-alert {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  animation: shakeAlert 0.3s ease-in-out;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.btn-modal-primary {
  width: 100%;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #0b1f47;
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

.btn-modal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.6);
}

/* ==========================================================================
   2. Add Member Form Modal
   ========================================================================== */
.form-modal-card {
  max-width: 530px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 24px 22px;
}

.modal-header-clean {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.modal-pill-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.form-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.add-member-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.modal-form-row {
  display: flex;
  gap: 12px;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-form-group.flex-1 {
  flex: 1;
}

.modal-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.req-star {
  color: #ef4444;
  font-weight: 900;
}

.optional-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.modal-form-group input,
.modal-form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
  color: #ffffff;
  font-family: var(--font-english);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.modal-form-group input:focus,
.modal-form-group select:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.modal-form-group select option {
  background: #081d45;
  color: #ffffff;
}

/* Phone Input Wrap */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.phone-input-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.phone-prefix {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #facc15;
  font-weight: 800;
  font-size: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.phone-input-wrap input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 9px 10px;
}

.field-hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}

/* Photo Upload Box & Cropper */
.photo-upload-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-dropzone-box {
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  background: rgba(56, 189, 248, 0.04);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.photo-dropzone-box:hover {
  background: rgba(56, 189, 248, 0.09);
  border-color: #38bdf8;
}

.photo-file-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.photo-cropped-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.preview-img-wrapper {
  position: relative;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #38bdf8;
  flex-shrink: 0;
}

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

.btn-clear-photo {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #ffffff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.preview-info-tag {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
}

/* API Settings Details */
.api-sheet-settings {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 11px;
  margin-top: 2px;
}

.api-sheet-settings summary {
  cursor: pointer;
  color: #facc15;
  font-weight: 700;
  outline: none;
  user-select: none;
}

.api-sheet-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.api-sheet-body label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.api-sheet-body input {
  font-size: 11.5px;
  padding: 6px 10px;
}

.api-hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}

/* Modal Actions */
.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-english);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-modal-submit {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #0b1f47;
  border: none;
  font-family: var(--font-english);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(250, 204, 21, 0.6);
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11, 31, 71, 0.3);
  border-top-color: #0b1f47;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State / No Staff in Branch */
.faculty-empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  position: relative;
  z-index: 5;
}

.faculty-empty-state svg {
  color: var(--brand-yellow);
  margin-bottom: 16px;
  opacity: 0.8;
}

.faculty-empty-state h3 {
  font-family: var(--font-bengali);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.faculty-empty-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   Loading Skeleton
   ========================================================================== */
.faculty-skeleton-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.skeleton-figure {
  width: 180px;
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite;
}

.skeleton-box {
  width: 260px;
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.faculty-footer {
  background: rgba(3, 7, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.faculty-footer a {
  color: var(--brand-yellow);
  text-decoration: none;
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .faculty-stage-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 10px 16px 60px;
  }

  .faculty-sidebar {
    position: static;
    top: auto;
    width: 100%;
    padding: 14px;
  }

  .branch-nav-list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 10px;
  }

  .branch-tab-btn {
    width: auto;
    min-width: 170px;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .faculty-nav .brand-name-bn {
    font-size: 16px;
  }
  
  .faculty-nav .brand-name-en {
    font-size: 9px;
  }

  .faculty-hero-title {
    font-size: 1.8rem;
  }

  .faculty-stage-container {
    padding: 20px 10px 30px;
    border-radius: 28px;
    min-height: auto;
  }

  .coverflow-viewport {
    height: 420px;
    perspective: 800px;
    -webkit-perspective: 800px;
  }

  .coverflow-card {
    width: 260px;
    height: 390px;
    border-radius: 22px;
    padding: 10px;
  }

  .coverflow-photo-box {
    height: 230px;
    border-radius: 16px;
  }

  .coverflow-primary-name {
    line-height: 1.35;
  }

  .coverflow-nav-btn {
    width: 40px;
    height: 40px;
  }

  .coverflow-nav-btn.prev-btn {
    left: 4px;
  }

  .coverflow-nav-btn.next-btn {
    right: 4px;
  }

  .modal-details-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Admin Add Member Button & Modals CSS
   ========================================================================== */

.btn-nav-add-member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22) 0%, rgba(217, 119, 6, 0.28) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.6);
  color: #fef08a;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-bengali);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-add-member:hover {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #050b1a;
  border-color: #facc15;
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.45);
  transform: translateY(-2px);
}

/* Modal Overlay */
.faculty-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: rgba(3, 10, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.faculty-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Dialog */
.faculty-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin: auto;
  box-sizing: border-box;
  background: linear-gradient(155deg, rgba(8, 20, 48, 0.97) 0%, rgba(3, 10, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 24px 24px 26px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 45px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: scale(0.95) translateY(14px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faculty-modal-overlay.active .faculty-modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.faculty-modal-dialog.admin-auth-dialog {
  max-width: 420px;
  padding: 24px 22px 26px;
  text-align: center;
}

.admin-auth-dialog .modal-header-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
}

.admin-auth-dialog .modal-header-icon svg {
  width: 26px;
  height: 26px;
}

.admin-auth-dialog .faculty-modal-title {
  font-size: 19px;
  margin-bottom: 4px;
}

.admin-auth-dialog .faculty-modal-subtitle {
  font-size: 12.5px;
  margin-bottom: 16px;
  color: #94a3b8;
}

.admin-auth-dialog .faculty-form {
  gap: 13px;
}

.admin-auth-dialog .modal-actions-row {
  display: flex;
  width: 100%;
  margin-top: 6px;
}

.admin-auth-dialog .btn-primary-action {
  width: 100%;
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 11px;
  justify-content: center;
}

/* Close Button (Universal & In-header) */
.modal-close-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* Standalone close button for dialogs without top-row actions */
.faculty-modal-dialog > .modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
}

/* Header Icons & Badges */
.modal-header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-lock-icon {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.5);
  color: #facc15;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.3);
}

/* Modal Header Bar with Zero-Overlap Flex Actions */
.modal-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 9999px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-admin-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-family: var(--font-bengali);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-admin-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.faculty-modal-title {
  font-family: var(--font-bengali);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.faculty-modal-subtitle {
  font-family: var(--font-bengali);
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.45;
}

/* Forms */
.faculty-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-bengali);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.form-label svg {
  color: #38bdf8;
}

.form-input,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-family: var(--font-bengali);
  font-size: 13.5px;
  padding: 8.5px 12px;
  border-radius: 9px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-input:hover,
.form-select:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.form-input:focus,
.form-select:focus {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.04);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.form-select option {
  background: #0b1c42;
  color: #ffffff;
}

/* Photo Upload Dropzone */
.photo-upload-container {
  position: relative;
  border: 1.5px dashed rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.02);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-upload-container:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.upload-idle-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.upload-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.photo-upload-container:hover .upload-icon-circle {
  transform: scale(1.06);
  border-color: #38bdf8;
}

.upload-primary-text {
  font-family: var(--font-bengali);
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.upload-secondary-text {
  font-family: var(--font-bengali);
  font-size: 11.5px;
  color: #94a3b8;
}

/* Auto Crop Preview Frame */
.upload-preview-view {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  position: relative;
  z-index: 3;
}

.preview-card-frame {
  width: 82px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  background: #071536;
}

.preview-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-meta-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preview-badge {
  font-family: var(--font-bengali);
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
  display: inline-flex;
  align-items: center;
}

.preview-aspect-badge {
  font-family: var(--font-bengali);
  font-size: 11.5px;
  color: #cbd5e1;
}

.btn-change-photo {
  align-self: flex-start;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #38bdf8;
  font-family: var(--font-bengali);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-photo:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
}

/* Alert Messages */
.form-alert-message {
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-bengali);
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.form-alert-message.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.form-alert-message.success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

/* Actions Row */
.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-bengali);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-primary-action {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  border: none;
  color: #050b1a;
  font-family: var(--font-bengali);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9.5px 20px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(250, 204, 21, 0.45);
  filter: brightness(1.05);
}

.btn-primary-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.faculty-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.faculty-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  background: rgba(6, 18, 48, 0.95);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  font-family: var(--font-bengali);
  font-size: 13.5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.faculty-toast.success {
  border-color: rgba(34, 197, 94, 0.6);
}

.faculty-toast.success .toast-icon {
  color: #4ade80;
}

.faculty-toast.error {
  border-color: rgba(239, 68, 68, 0.6);
}

.faculty-toast.error .toast-icon {
  color: #f87171;
}

.faculty-toast.hiding {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 640px) {
  .btn-nav-add-member span {
    display: none;
  }
  
  .btn-nav-add-member {
    padding: 8px 10px;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .faculty-modal-dialog {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   Faculty Stage Luxury Glassmorphism Live Sync Loading Page State
   ========================================================================== */

.faculty-stage-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 5;
  animation: fadeInLoader 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stage-loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  border-radius: 50%;
}

.spinner-ring.outer {
  inset: 0;
  border: 3.5px solid transparent;
  border-top-color: #facc15;
  border-right-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.35);
  animation: spinOuter 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring.inner {
  inset: 10px;
  border: 2.8px solid transparent;
  border-bottom-color: #38bdf8;
  border-left-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  animation: spinInner 0.9s linear infinite reverse;
}

.spinner-core-orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 0%, #f59e0b 60%, #2563eb 100%);
  box-shadow: 0 0 16px #facc15;
  animation: pulseCore 1.5s ease-in-out infinite alternate;
}

@keyframes spinOuter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinInner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseCore {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.loader-title {
  font-family: var(--font-bengali);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.loader-subtitle {
  font-family: var(--font-bengali);
  font-size: 14px;
  color: #93c5fd;
  max-width: 460px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.loader-shimmer-bar {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.shimmer-progress {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #38bdf8, #facc15, transparent);
  border-radius: 9999px;
  animation: shimmerMove 1.5s infinite linear;
}

@keyframes shimmerMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeInLoader {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Faculty Card Profile Avatar Fallback Box (When No Photo Uploaded)
   ========================================================================== */

.coverflow-photo-box.coverflow-avatar-box {
  background: 
    radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.28) 0%, transparent 65%),
    linear-gradient(155deg, #0d2860 0%, #081a42 50%, #030e26 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.avatar-silhouette-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  text-align: center;
  padding: 10px;
}

.avatar-icon-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(37, 99, 235, 0.25) 100%);
  border: 2px solid rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.25), inset 0 0 15px rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.coverflow-card:hover .avatar-icon-ring {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.45);
}

.avatar-user-svg {
  width: 52px;
  height: 52px;
  color: #fef08a;
}

.avatar-name-monogram {
  font-family: var(--font-english);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.avatar-role-label {
  font-family: var(--font-bengali);
  font-size: 11.5px;
  font-weight: 600;
  color: #93c5fd;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Apple VisionOS / macOS Premium Glossy Glass Footer
   ========================================================================== */

.faculty-footer {
  position: relative;
  z-index: 20;
  margin-top: 40px;
  padding: 30px 24px 36px;
  background: linear-gradient(180deg, rgba(8, 20, 42, 0.45) 0%, rgba(3, 10, 26, 0.6) 100%);
  border-top: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 -15px 45px rgba(2, 8, 26, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
}

.faculty-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-mini-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
}

.footer-brand-title {
  font-family: var(--font-bengali);
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.footer-copyright-text {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.footer-brand-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
}

.footer-brand-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  text-shadow: 0 0 10px #38bdf8;
}

.footer-contact-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.footer-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.footer-contact-pill svg {
  color: #facc15;
  flex-shrink: 0;
}

.footer-contact-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2), inset 0 1px 0 #ffffff;
}

.footer-contact-pill.highlight {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(2, 132, 199, 0.3) 100%);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
}

.footer-contact-pill.highlight:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   ORBITAL INTRO ANIMATION (Recreating video_b4cac0d9080c.mp4)
   Circular orbit tracks, real uploaded staff photos, "Suchana Staffs" center
   ========================================================================== */
.faculty-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
}

.faculty-intro-overlay.intro-leaving {
  opacity: 0;
  transform: scale(1.12);
  filter: blur(10px);
  pointer-events: none;
}

/* Skip Button */
.intro-skip-btn {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.25);
}

/* Radii & Layout Settings */
:root {
  --orbit-inner-r: clamp(190px, 26vw, 240px);
  --orbit-outer-r: clamp(290px, 42vw, 365px);
}

.intro-orbit-stage {
  position: relative;
  width: calc(var(--orbit-outer-r) * 2 + 120px);
  height: calc(var(--orbit-outer-r) * 2 + 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Orbit Ring Tracks */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.orbit-track.track-inner {
  width: calc(var(--orbit-inner-r) * 2);
  height: calc(var(--orbit-inner-r) * 2);
  margin-top: calc(-1 * var(--orbit-inner-r));
  margin-left: calc(-1 * var(--orbit-inner-r));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.06), 0 0 20px rgba(56, 189, 248, 0.04);
  animation: spin-orbit-cw 24s linear infinite;
}

.orbit-track.track-outer {
  width: calc(var(--orbit-outer-r) * 2);
  height: calc(var(--orbit-outer-r) * 2);
  margin-top: calc(-1 * var(--orbit-outer-r));
  margin-left: calc(-1 * var(--orbit-outer-r));
  border: 1px dashed rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
  animation: spin-orbit-ccw 34s linear infinite;
}

@keyframes spin-orbit-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-orbit-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Orbit Nodes (Avatars & Decorative Dots) */
.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: auto;
  will-change: transform;
}

.orbit-avatar-node.node-inner {
  width: clamp(48px, 6.5vw, 56px);
  height: clamp(48px, 6.5vw, 56px);
  margin-top: calc(-1 * clamp(48px, 6.5vw, 56px) / 2);
  margin-left: calc(-1 * clamp(48px, 6.5vw, 56px) / 2);
  transform: rotate(var(--orbit-angle)) translateX(var(--orbit-inner-r)) rotate(calc(-1 * var(--orbit-angle)));
}

.orbit-avatar-node.node-outer {
  width: clamp(54px, 7.5vw, 64px);
  height: clamp(54px, 7.5vw, 64px);
  margin-top: calc(-1 * clamp(54px, 7.5vw, 64px) / 2);
  margin-left: calc(-1 * clamp(54px, 7.5vw, 64px) / 2);
  transform: rotate(var(--orbit-angle)) translateX(var(--orbit-outer-r)) rotate(calc(-1 * var(--orbit-angle)));
}

/* Counter-spin so photos remain upright as tracks orbit */
.track-inner .orbit-avatar-wrap {
  animation: spin-orbit-ccw 24s linear infinite;
}

.track-outer .orbit-avatar-wrap {
  animation: spin-orbit-cw 34s linear infinite;
}

.orbit-avatar-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.orbit-avatar-wrap:hover {
  transform: scale(1.18);
}

.orbit-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #0f172a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.node-inner .orbit-avatar-img {
  border: 2.5px solid #38bdf8;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.45);
}

.node-outer .orbit-avatar-img {
  border: 2.5px solid #fbbf24;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(251, 191, 36, 0.45);
}

.orbit-avatar-name {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(3, 10, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Orbit Accent Dots along circular paths (like in video) */
.orbit-accent-dot {
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--dot-color, #ef4444);
  box-shadow: 0 0 12px var(--dot-color, #ef4444);
  pointer-events: none;
}

.track-inner .orbit-accent-dot {
  transform: rotate(var(--orbit-angle)) translateX(var(--orbit-inner-r));
}

.track-outer .orbit-accent-dot {
  transform: rotate(var(--orbit-angle)) translateX(var(--orbit-outer-r));
}

/* Center Hero Typography - Pure Text Glow & Shadow (No Blur Square / No Extra Box) */
.intro-center-hero {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 240px;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
  border: none;
  box-shadow: none;
  pointer-events: none;
  animation: intro-hero-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes intro-hero-reveal {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.intro-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6), inset 0 0 10px rgba(56, 189, 248, 0.2);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8), 0 2px 4px #000000;
}

.intro-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: intro-dot-pulse 1.8s infinite;
}

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

.intro-hero-title {
  margin: 0 0 4px 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 4.2vw, 2.35rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 15px rgba(255, 255, 255, 0.7),
    0 0 35px rgba(56, 189, 248, 0.8),
    0 2px 4px #000000,
    0 4px 14px rgba(0, 0, 0, 0.95);
}

.intro-accent-text {
  color: #fbbf24;
  display: inline-block;
  font-weight: 900;
  text-shadow:
    0 0 12px rgba(251, 191, 36, 0.95),
    0 0 30px rgba(245, 158, 11, 0.85),
    0 0 50px rgba(234, 88, 12, 0.7),
    0 2px 4px #000000,
    0 4px 14px rgba(0, 0, 0, 0.95);
}

.intro-hero-subtitle {
  margin: 4px auto 0 auto;
  max-width: 200px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 22px rgba(56, 189, 248, 0.6),
    0 2px 4px #000000,
    0 3px 12px rgba(0, 0, 0, 0.95);
}

@media (max-width: 640px) {
  :root {
    --orbit-inner-r: clamp(145px, 35vw, 175px);
    --orbit-outer-r: clamp(215px, 49vw, 265px);
  }

  .intro-hero-title {
    font-size: 1.65rem;
  }

  .intro-hero-subtitle {
    font-size: 0.76rem;
    max-width: 180px;
  }

  .intro-skip-btn {
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    font-size: 0.75rem;
  }
}


/* ==========================================================================
   MOBILE OPTIMIZATIONS (max-width: 480px)
   Staff Section — Mobile-Only Layout Fixes
   ========================================================================== */
@media (max-width: 480px) {

  /* ── NAV BAR ─────────────────────────────────────────────────────────── */
  .faculty-nav .nav-container {
    padding: 10px 12px;
    gap: 0;
  }

  .faculty-nav .brand-logo-img {
    height: 36px;
  }

  .faculty-nav .brand-name-bn {
    font-size: 13px;
    line-height: 1.2;
  }

  .faculty-nav .brand-name-en {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .faculty-nav .brand-logo-link {
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
  }

  .faculty-nav-actions {
    gap: 7px;
    flex-shrink: 0;
  }

  /* Hide text labels in nav buttons on very small screens */
  .btn-nav-home span,
  .btn-nav-admission span {
    display: none;
  }

  .btn-nav-home,
  .btn-nav-admission {
    padding: 8px 10px;
    min-width: 36px;
    justify-content: center;
  }

  .btn-nav-home svg,
  .btn-nav-admission svg {
    display: block;
    flex-shrink: 0;
  }

  /* Admission button: show icon only */
  .btn-nav-admission {
    font-size: 0;
    /* keep the arrow as pseudo-content fallback */
  }

  /* Add-member button: already icon-only at 640px */
  .btn-nav-add-member {
    padding: 8px 10px;
  }

  /* ── HERO SECTION ────────────────────────────────────────────────────── */
  .faculty-hero {
    padding: 10px 12px 8px;
  }

  .faculty-hero-glass-card {
    padding: 12px 16px;
    border-radius: 18px;
  }

  .faculty-hero-title {
    font-size: 1.35rem;
    margin-bottom: 5px;
    line-height: 1.3;
  }

  .faculty-hero-subtitle {
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* ── STAGE WRAPPER ───────────────────────────────────────────────────── */
  .faculty-stage-wrapper {
    grid-template-columns: 1fr;
    padding: 8px 10px 24px;
    gap: 12px;
  }

  /* ── BRANCH SIDEBAR (horizontal scroll pills) ────────────────────────── */
  .faculty-sidebar {
    padding: 10px 10px 8px;
    border-radius: 18px;
    width: 100%;
    overflow: hidden;
  }

  .sidebar-heading {
    padding: 0 2px 6px;
    margin-bottom: 6px;
  }

  .sidebar-heading h3 {
    font-size: 12.5px;
    gap: 6px;
  }

  .sidebar-total-badge {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  .branch-nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Firefox */
  }

  .branch-nav-list::-webkit-scrollbar {
    display: none;   /* Chrome / Safari */
  }

  .branch-tab-btn {
    width: auto;
    min-width: 140px;
    max-width: 200px;
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 11px;
    font-size: 11.5px;
  }

  .tab-bn-name {
    font-size: 10.5px;
  }

  .tab-count {
    font-size: 9.5px;
    padding: 1px 5px;
    min-width: 16px;
  }

  /* ── STAGE CONTAINER ─────────────────────────────────────────────────── */
  .faculty-stage-container {
    padding: 12px 8px 16px;
    border-radius: 20px;
    min-height: auto;
    overflow: visible;  /* allow 3D cards to be fully visible */
  }

  .stage-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .stage-current-branch {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .stage-current-branch h2 {
    font-size: 14px;
    line-height: 1.3;
  }

  .stage-stats-info {
    font-size: 10.5px;
    padding: 3px 10px;
  }

  /* ── 3D COVERFLOW CAROUSEL ───────────────────────────────────────────── */
  .coverflow-wrapper {
    padding: 0 0 4px;
    overflow: hidden;
  }

  .coverflow-viewport {
    height: 360px;
    perspective: 700px;
    -webkit-perspective: 700px;
  }

  /* Reduce card size to fit mobile screen comfortably */
  .coverflow-card {
    width: 200px;
    height: 310px;
    border-radius: 18px;
    padding: 8px;
  }

  .coverflow-photo-box {
    height: 180px;
    border-radius: 14px;
  }

  .coverflow-info-body {
    padding: 6px 2px 2px;
  }

  .coverflow-primary-name {
    font-size: 13px !important;
    line-height: 1.25;
  }

  .coverflow-bn-name {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .coverflow-designation-text {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .coverflow-bottom-row {
    padding-top: 5px;
    gap: 4px;
  }

  .coverflow-branch-pill {
    font-size: 10px;
    padding: 3px 7px;
    max-width: 110px;
    border-radius: 9px;
  }

  .btn-coverflow-contact {
    font-size: 10.5px;
    padding: 4px 10px;
  }

  /* Nav arrow buttons — tighter to edges */
  .coverflow-nav-btn {
    width: 34px;
    height: 34px;
  }

  .coverflow-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .coverflow-nav-btn.prev-btn {
    left: 2px;
  }

  .coverflow-nav-btn.next-btn {
    right: 2px;
  }

  /* Pagination dots */
  .coverflow-pagination {
    margin-top: 6px;
  }

  .coverflow-dot {
    width: 6px;
    height: 6px;
  }

  .coverflow-dot.active {
    width: 16px;
  }

  /* ── FOOTER ──────────────────────────────────────────────────────────── */
  .faculty-footer {
    padding: 20px 14px;
  }

  .footer-brand-title {
    font-size: 13px;
    text-align: center;
  }

  .footer-brand-line {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-mini-logo {
    height: 32px;
  }

  .footer-copyright-text {
    font-size: 12px;
  }

  .footer-contact-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .footer-contact-pill {
    justify-content: center;
    padding: 9px 16px;
    font-size: 12px;
  }

  /* ── ADD MEMBER MODAL (form grid) ────────────────────────────────────── */
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .faculty-modal-dialog {
    padding: 20px 15px 22px;
    border-radius: 18px;
    max-height: calc(100vh - 24px);
  }

  .faculty-modal-title {
    font-size: 17px;
  }

  .faculty-modal-subtitle {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .modal-header-badge-row {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .modal-admin-pill {
    font-size: 10px;
    padding: 3px 8px 3px 6px;
  }

  /* ── LOADER STATE ────────────────────────────────────────────────────── */
  .faculty-stage-loader {
    min-height: 280px;
    padding: 28px 16px;
  }

}

/* Extra narrow screens (iPhone SE, 375px and below) */
@media (max-width: 390px) {

  .faculty-nav .brand-title-wrap {
    display: none;  /* hide brand text to avoid overflow; logo stays */
  }

  .faculty-nav .brand-logo-img {
    height: 34px;
  }

  .coverflow-card {
    width: 185px;
    height: 295px;
  }

  .coverflow-photo-box {
    height: 168px;
  }

  .coverflow-viewport {
    height: 340px;
  }

  .branch-tab-btn {
    min-width: 125px;
    font-size: 11px;
  }

}
