/* ==========================================================================
   Dr. Anupama Biochemistry & Biotechnology Hub - Design System
   Modern Academic & Clinical Medical Palette
   ========================================================================== */

:root {
  /* Brand Color Tokens */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #d1fae5;
  --primary-glow: rgba(5, 150, 105, 0.18);
  
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --secondary-light: #e0f2fe;
  
  --accent: #d97706;
  --accent-light: #fef3c7;
  
  /* Neutral Dark/Light Tokens (Default Light) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-focus: #10b981;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --header-height: 72px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-surface-subtle: #1e293b;
  --bg-card: #131d31;
  --bg-card-hover: #1e293b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-subtle: #1e293b;
  --border-focus: #34d399;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.35);
  
  --primary-light: rgba(16, 185, 129, 0.15);
  --secondary-light: rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

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

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.85);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #059669, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-theme-toggle {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.btn-primary {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857, #059669);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--text-muted);
  color: var(--primary);
}

/* ==========================================================================
   Hero Section & Portrait
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, var(--primary-glow) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.12) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-portrait-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.4), rgba(2, 132, 199, 0.4));
  box-shadow: 0 20px 40px -15px rgba(5, 150, 105, 0.35), var(--shadow-xl);
  transition: transform var(--transition-normal);
}

.portrait-frame:hover {
  transform: translateY(-6px);
}

.portrait-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius-xl) - 6px);
  display: block;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.portrait-badge-overlay {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.2rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.badge-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   Search & Filter Section
   ========================================================================== */

.search-section {
  padding: 1.5rem 0 2rem;
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  background: var(--bg-body);
  transition: background var(--transition-normal);
}

.search-bar-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.4rem;
  font-size: 1.05rem;
  font-family: inherit;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 1.25rem;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.pill-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

/* ==========================================================================
   Spotlight Section (Textbooks & Dissertations)
   ========================================================================== */

.spotlight-section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #059669, #0284c7);
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.spotlight-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.spotlight-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.file-meta-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
}

/* ==========================================================================
   Modules & Curriculum Accordion Section
   ========================================================================== */

.modules-section {
  padding: 3rem 0 5rem;
}

.categories-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-header {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: var(--bg-card);
  transition: background var(--transition-fast);
}

.category-header:hover {
  background: var(--bg-card-hover);
}

.cat-title-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.cat-name {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.cat-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.cat-toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.category-card.active .cat-toggle-icon,
.category-card.expanded .cat-toggle-icon,
.category-card.active .category-toggle-icon,
.category-card.expanded .category-toggle-icon {
  transform: rotate(180deg);
  background: var(--primary-light);
  color: var(--primary);
}

.category-body {
  display: none;
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.category-card.active .category-body,
.category-card.expanded .category-body {
  display: block !important;
}

.category-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.25rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.topic-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

.topic-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.topic-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.topic-icon {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.2rem;
}

.topic-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.file-item-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.file-btn-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ext-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ext-pdf { background: #fee2e2; color: #dc2626; }
.ext-pptx, .ext-ppt { background: #ffedd5; color: #ea580c; }
.ext-docx, .ext-doc { background: #dbeafe; color: #2563eb; }
.ext-jpg, .ext-png { background: #f3e8ff; color: #9333ea; }

/* ==========================================================================
   About & Contact Section
   ========================================================================== */

.about-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.avatar-wrapper {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(135deg, #059669, #0284c7);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-full);
  display: block;
}

.profile-name {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.profile-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.profile-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-subtle);
}

.contact-detail-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 2.5rem 0;
  background: var(--bg-body);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Document Modal / Viewer
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
}

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

.modal-body {
  flex-grow: 1;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .contact-cards-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   YouTube Lectures E-Learning Hub (Premium Dark Dashboard Aesthetic)
   ========================================================================== */

.videos-section {
  position: relative;
  padding: 5.5rem 0;
  background: radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
              #090d16;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.videos-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.videos-section .section-title {
  color: #ffffff;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.videos-section .section-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
}

.video-search-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto 1.75rem auto;
}

.video-search-input {
  width: 100%;
  padding: 1rem 3.25rem 1rem 3.5rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
}

.video-search-input::placeholder {
  color: #64748b;
}

.video-search-input:focus {
  outline: none;
  border-color: #ef4444;
  background: rgba(30, 41, 59, 1);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25), 0 10px 25px rgba(0, 0, 0, 0.4);
}

.video-search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  font-size: 1.15rem;
}

.video-clear-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-clear-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  color: #ffffff;
}

.video-pills-wrap {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.video-pill-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.video-pill-btn:hover {
  background: rgba(51, 65, 85, 1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.video-pill-btn.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.video-pill-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.video-section-group {
  margin-bottom: 4rem;
}

.video-section-group:last-child {
  margin-bottom: 0;
}

.video-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.video-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.video-section-title-wrap i {
  font-size: 1.4rem;
  color: #ef4444;
}

.video-section-title {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.video-count-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.9);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #131d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: #ef4444;
  box-shadow: 0 20px 35px -10px rgba(239, 68, 68, 0.35), 0 0 20px rgba(239, 68, 68, 0.2);
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #0b1329;
  overflow: hidden;
}

.video-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.08);
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(239, 68, 68, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.9);
}

.video-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.video-subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 0.6rem;
}

.video-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ef4444;
  transition: color var(--transition-fast);
}

.video-card:hover .video-yt-btn {
  color: #ff4d4d;
}


/* ==========================================================================
   Spotify Podcast Hub (Biotalks with Anupama)
   ========================================================================== */

.spotify-section {
  position: relative;
  padding: 2.5rem 0 5rem;
  background: radial-gradient(circle at 10% 10%, rgba(30, 215, 96, 0.09) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
              #070d14;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spotify-search-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
}

.spotify-search-input {
  width: 100%;
  padding: 1rem 3.25rem 1rem 3.5rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(18, 28, 43, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
}

.spotify-search-input:focus {
  outline: none;
  border-color: #1ed760;
  background: rgba(18, 28, 43, 1);
  box-shadow: 0 0 0 4px rgba(30, 215, 96, 0.25), 0 10px 25px rgba(0, 0, 0, 0.4);
}

.spotify-search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: #1ed760;
  font-size: 1.15rem;
}

.spotify-pills-wrap {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.spotify-pill-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(18, 28, 43, 0.85);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.spotify-pill-btn:hover {
  background: rgba(30, 41, 59, 1);
  color: #ffffff;
  border-color: rgba(30, 215, 96, 0.4);
  transform: translateY(-2px);
}

.spotify-pill-btn.active {
  background: #1ed760;
  color: #050b11;
  border-color: #1ed760;
  box-shadow: 0 6px 16px rgba(30, 215, 96, 0.4);
  font-weight: 700;
}

.spotify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.spotify-card {
  background: #111a28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-normal);
}

.spotify-card:hover {
  transform: translateY(-5px);
  border-color: #1ed760;
  box-shadow: 0 18px 30px -10px rgba(30, 215, 96, 0.25), 0 0 15px rgba(30, 215, 96, 0.15);
}

.spotify-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.spotify-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.15);
  color: #1ed760;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.spotify-card:hover .spotify-icon-badge {
  transform: scale(1.1) rotate(10deg);
  background: #1ed760;
  color: #050b11;
}

.spotify-ep-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.spotify-ep-subject {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1ed760;
  margin-bottom: 0.45rem;
}

.spotify-ep-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f8fafc;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotify-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1ed760;
  transition: color var(--transition-fast);
}

.spotify-card:hover .spotify-btn {
  color: #4ade80;
}
