@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

:root {
  --primary-blue: #0A58CA;
  --primary-hover: #084298;
  --text-dark: #0F172A;
  --text-body: #475569;
  --text-light: #94A3B8;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

[data-theme="dark"] {
  --text-dark: #F8FAFC;
  --text-body: #CBD5E1;
  --text-light: #94A3B8;
  --bg-light: #0B1120;
  --white: #1E293B;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
}

[data-theme="dark"] .navbar {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

/* --- Mega Menu Dropdown --- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-dropdown-toggle span {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle span {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 500px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
  pointer-events: none;
  border: 1px solid var(--border-color);
}

.mega-menu.wide {
  width: 900px;
  max-width: 90vw;
}

[data-theme="dark"] .mega-menu {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
  pointer-events: auto;
}

/* Invisible hover bridge */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 30px;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mega-menu-grid.four-cols {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mega-menu-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  display: block;
}

[data-theme="dark"] .mega-menu-title {
  color: #FFFFFF;
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-menu-list li a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-body);
  transition: all 0.2s ease;
  text-align: left;
}

.mega-menu-list li a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

[data-theme="dark"] .mega-menu-list li a {
  color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .mega-menu-list li a:hover {
  color: #FFFFFF;
}

.nav-action {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}
.theme-toggle:hover {
  background-color: var(--border-color);
}

.lang-select {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
}
.lang-select option {
  background-color: var(--white);
  color: var(--text-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px 0 rgba(10, 88, 202, 0.39);
}

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

.btn-white {
  background-color: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-icon:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn-white,
[data-theme="dark"] .btn-icon {
  color: #FFFFFF;
}

.expand-btn {
  width: 40px;
  border-radius: 40px;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease, box-shadow 0.3s ease;
}
.expand-btn .btn-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  transition: max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, margin 0.4s ease;
}
.expand-btn:hover {
  width: 135px;
  transform: translateX(0);
}
.expand-btn:hover .btn-text {
  max-width: 100px;
  opacity: 1;
  margin-right: 6px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 680px;
  height: 85vh;
  max-height: 860px;
  padding: 6rem 4rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/hero-bg.110d6e648182.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- Stats Overlay --- */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: -3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
  padding: 0 4rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(10, 88, 202, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon span, .stat-icon i {
  font-size: 28px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.stat-info p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.2;
}

/* --- Sections Common --- */
.section-title {
  text-align: center;
  /* Tor telefonlarda uzun so'zlar (masalan, "Образовательные") ekrandan chiqmasin */
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2rem);
  overflow-wrap: break-word;
  hyphens: auto;
  margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.section-padding {
  padding: 3rem 4rem;
}

/* --- Featured Programs --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.program-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

/* --- Featured Programs with Infinite Animated Lines & Insignia --- */
.programs-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.prog-tech-card {
  position: relative;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

[data-theme="dark"] .prog-tech-card {
  background: linear-gradient(155deg, #0F172A 0%, #0B1120 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.prog-tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -10px var(--accent-glow), 0 0 0 1px var(--accent-line-1);
}

/* 5 Distinct Academic Color Schemes */
.color-scheme-1 {
  --accent-line-1: #2563EB;
  --accent-line-2: #06B6D4;
  --accent-glow: rgba(37, 99, 235, 0.2);
}

.color-scheme-2 {
  --accent-line-1: #6366F1;
  --accent-line-2: #A855F7;
  --accent-glow: rgba(99, 102, 241, 0.2);
}

.color-scheme-3 {
  --accent-line-1: #059669;
  --accent-line-2: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.2);
}

.color-scheme-4 {
  --accent-line-1: #D97706;
  --accent-line-2: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.2);
}

.color-scheme-5 {
  --accent-line-1: #E11D48;
  --accent-line-2: #F43F5E;
  --accent-glow: rgba(225, 29, 72, 0.2);
}

/* Animated Infinite Background Waves & Lines */
.prog-card-anim-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.anim-waves-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.flow-line {
  fill: none;
  stroke: var(--accent-line-1);
  stroke-width: 1.5;
  opacity: 0.35;
}

.flow-line.line-1 {
  stroke-dasharray: 140, 30;
  animation: flowWave1 14s linear infinite;
}

.flow-line.line-2 {
  stroke: var(--accent-line-2);
  stroke-dasharray: 180, 40;
  stroke-width: 2;
  opacity: 0.45;
  animation: flowWave2 18s linear infinite reverse;
}

.flow-line.line-3 {
  stroke-dasharray: 100, 25;
  animation: flowWave1 22s linear infinite;
  opacity: 0.25;
}

.flow-line.line-grid, .flow-line.line-grid-v {
  stroke: var(--accent-line-1);
  stroke-width: 0.6;
  opacity: 0.08;
  stroke-dasharray: 4, 6;
  animation: gridBreathe 8s ease-in-out infinite;
}

[data-theme="dark"] .flow-line.line-grid, [data-theme="dark"] .flow-line.line-grid-v {
  opacity: 0.12;
}

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

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

@keyframes gridBreathe {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.16; }
}

.ambient-light-orb {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-line-1) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(24px);
  transition: all 0.5s ease;
}

.prog-tech-card:hover .ambient-light-orb {
  opacity: 0.4;
  transform: scale(1.2);
}

/* Card Header with 2D Insignia & Tag */
.prog-tech-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.prog-emblem-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-line-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

[data-theme="dark"] .prog-emblem-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.prog-emblem-box span,
.prog-emblem-box i {
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .stat-icon i,
.dark .stat-icon i {
  color: #38bdf8 !important;
}

.prog-tech-card:hover .prog-emblem-box {
  transform: scale(1.1) rotate(4deg);
  background: var(--accent-line-1);
  color: #FFFFFF;
}
.prog-tech-card:hover .prog-emblem-box i {
  color: #FFFFFF !important;
}
  border-color: var(--accent-line-1);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.prog-pill-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .prog-pill-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Card Body */
.prog-tech-body {
  position: relative;
  z-index: 1;
  margin-bottom: 1.75rem;
}

.prog-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-line-1);
  margin-bottom: 0.65rem;
}

.prog-meta-badge span {
  font-size: 16px;
}

.prog-tech-title {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

[data-theme="dark"] .prog-tech-title {
  color: #FFFFFF;
}

.prog-tech-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .prog-tech-desc {
  color: #94A3B8;
}

/* Card Footer CTA */
.prog-tech-footer {
  position: relative;
  z-index: 1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .prog-tech-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prog-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent-line-1);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

[data-theme="dark"] .prog-action-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.icon-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.prog-tech-card:hover .prog-action-btn {
  background: var(--accent-line-1);
  color: #FFFFFF;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.prog-tech-card:hover .icon-arrow {
  transform: translateX(4px);
}

/* --- High-Tech Research & Innovation Showcase Banner --- */
.research-banner-section {
  width: 100%;
  padding: 4rem 2rem;
}

.research-tech-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  border-radius: 32px;
  background: linear-gradient(135deg, #0B1120 0%, #0F172A 50%, #1E293B 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 24px 60px -15px rgba(11, 17, 32, 0.6), 0 0 40px rgba(37, 99, 235, 0.15);
  overflow: hidden;
  padding: 3.5rem 3.5rem;
}

[data-theme="light"] .research-tech-container {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.research-glow-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}

.glow-orb-1 {
  width: 350px;
  height: 350px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, #2563EB 0%, #06B6D4 100%);
}

.glow-orb-2 {
  width: 250px;
  height: 250px;
  bottom: -60px;
  left: 10%;
  background: radial-gradient(circle, #6366F1 0%, #A855F7 100%);
}

.research-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.res-flow-line {
  fill: none;
  stroke: #38BDF8;
  stroke-width: 1.5;
  stroke-dasharray: 180, 40;
  animation: flowWave1 18s linear infinite;
  opacity: 0.4;
}

.res-flow-line-2 {
  fill: none;
  stroke: #818CF8;
  stroke-width: 1.5;
  stroke-dasharray: 140, 30;
  animation: flowWave2 22s linear infinite reverse;
  opacity: 0.3;
}

.research-content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .research-content-grid {
    /* minmax(0, ...) — ustun eng keng bolaga qarab ekrandan kengayib, matn kesilib qolmasin */
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .research-tech-container {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .research-metrics-bar {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .research-badge-pill {
    max-width: 100%;
  }
}

.research-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.research-main-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.research-main-desc {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.research-metrics-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin-bottom: 2.25rem;
  max-width: 600px;
  flex-wrap: wrap;
}

.res-metric-item {
  display: flex;
  flex-direction: column;
}

.res-metric-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-heading);
}

.res-metric-label {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.res-metric-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
}

.btn-research-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 2rem;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.5);
  transition: all 0.3s ease;
}

.btn-research-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -4px rgba(37, 99, 235, 0.7);
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Right Interactive Visual Hub */
.research-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.research-interactive-card {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-orbit-center {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.3);
  animation: pulseBadge 3s infinite;
}

.floating-tech-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.floating-tech-tag:hover {
  transform: scale(1.08);
  border-color: #38BDF8;
}

.floating-tech-tag.tag-1 {
  top: 15px;
  right: -10px;
  animation: floatTag1 6s ease-in-out infinite;
}

.floating-tech-tag.tag-2 {
  bottom: 25px;
  right: 0px;
  animation: floatTag2 7s ease-in-out infinite;
}

.floating-tech-tag.tag-3 {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  animation: floatTag3 8s ease-in-out infinite;
}

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

@keyframes floatTag2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

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


/* --- Bento Box Section --- */
.bento-section {
  background: linear-gradient(135deg, #0f172a 0%, var(--primary-blue) 100%);
  color: var(--white);
}
.bento-section .section-title {
  color: #FFFFFF;
}
.bento-section .section-title::after {
  background-color: #38bdf8; /* Lighter blue underline for dark background */
}
.bento-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bento-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}
.bento-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bento-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 60%, transparent 100%);
  z-index: 1;
}
.bento-banner-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 80%;
}
.bento-badge {
  display: inline-block;
  background-color: var(--primary-blue);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.bento-banner-content h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.bento-btn-small {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.bento-btn-small:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}
.bento-philosophy {
  background-color: var(--primary-blue);
  color: #FFFFFF;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.bento-philosophy h4 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.bento-philosophy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}
.bento-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bento-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.bento-card-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.bento-card-content p {
  font-size: 0.95rem;
  color: var(--text-body);
}
.bento-stats {
  font-size: 2.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.bento-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: all 0.3s ease;
}
.bento-card:hover .bento-icon-btn {
  border-color: var(--primary-blue);
  color: #FFFFFF;
  background-color: var(--primary-blue);
}
.bento-card.highlight-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}
.bento-card.highlight-card:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

[data-theme="dark"] .bento-card.highlight-card {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.4) 0%, rgba(21, 128, 61, 0.3) 100%);
  border-color: rgba(74, 222, 128, 0.3);
}
[data-theme="dark"] .bento-card.highlight-card:hover {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.5) 0%, rgba(34, 197, 94, 0.4) 100%);
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-banner-content h3 {
    font-size: 2.2rem;
  }
}

/* --- Campus Life Interactive Bento Showcase --- */
.campus-showcase-section {
  width: 100%;
}

.campus-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
}

.campus-bento-card {
  position: relative;
  height: 390px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

[data-theme="dark"] .campus-bento-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.campus-bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -10px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.campus-card-img-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.campus-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.campus-bento-card:hover .campus-card-img {
  transform: scale(1.08);
}

.campus-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.6) 45%, #0F172A 100%);
  transition: opacity 0.3s ease;
}

.campus-bento-card:hover .campus-card-gradient {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.5) 40%, #0F172A 100%);
}

.campus-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.campus-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.campus-bento-card:hover .campus-badge {
  background: rgba(37, 99, 235, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.campus-card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.campus-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #FFFFFF;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0;
  transition: transform 0.3s ease;
}

.campus-btn-explore {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.campus-btn-explore:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

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

.campus-item:hover .campus-read-more {
  transform: translateY(0);
}

.campus-item:hover .campus-title {
  opacity: 0;
}

/* --- Testimonials Marquee --- */
.marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0; /* Padding for hover shadows */
}

.marquee-wrapper {
  display: flex;
  width: max-content;
}

.marquee-left {
  animation: scrollLeft 60s linear infinite;
}

.marquee-right {
  animation: scrollRight 60s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Hover behaviors for marquee */
.marquee-container:hover .marquee-wrapper {
  animation-play-state: paused;
}

/* Dim all cards when container is hovered */
.marquee-container:hover .testimonial-card {
  opacity: 0.4;
  filter: grayscale(100%);
  transform: scale(0.95);
}

/* Highlight the specific hovered card */
.marquee-container .testimonial-card:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-blue), #0ea5e9);
  color: var(--white);
  border-color: transparent;
}

.marquee-container .testimonial-card:hover .testimonial-text,
.marquee-container .testimonial-card:hover .testimonial-author,
.marquee-container .testimonial-card:hover .testimonial-major {
  color: var(--white);
}

.marquee-container .testimonial-card:hover .stars {
  color: #FDE047;
}

.testimonial-card {
  width: 380px; /* Slightly narrower to fit new height proportions */
  margin: 0 1rem;
  background-color: rgba(0, 87, 91, 0);
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  flex-shrink: 0;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Talaba surati o'rniga ism-familiya bosh harflari */
.testimonial-initials {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: #0A58CA;
  user-select: none;
}
.testimonial-card:nth-child(4n+2) .testimonial-initials { background: #0F766E; }
.testimonial-card:nth-child(4n+3) .testimonial-initials { background: #7C3AED; }
.testimonial-card:nth-child(4n+4) .testimonial-initials { background: #B45309; }

.testimonial-content {
  display: flex;
  flex-direction: column;
}

.stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  transition: color 0.4s ease;
}

.testimonial-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  flex-grow: 1;
  transition: color 0.4s ease;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: color 0.4s ease;
}
.testimonial-major {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color 0.4s ease;
}

/* --- Footer --- */
.footer {
  background-color: var(--white);
  padding: 3rem 4rem 1.5rem 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}
.social-icons a:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 0.75rem;
}
.footer-links ul li a {
  color: var(--text-body);
  font-size: 0.95rem;
}
.footer-links ul li a:hover {
  color: var(--primary-blue);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.footer-contact li span {
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* --- Research Banner Section --- */
.research-banner-section {
  padding: 3rem 4rem;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.research-banner-container {
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  background-color: #f1f5fa;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 4rem 5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.research-banner-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(241, 245, 250, 0.96) 0%, rgba(241, 245, 250, 0.85) 45%, transparent 100%);
  z-index: 1;
}

[data-theme="dark"] .research-banner-container {
  background-color: #0f172a;
}
[data-theme="dark"] .research-banner-container::before {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.85) 50%, transparent 100%);
}
[data-theme="dark"] .research-banner-content h2 {
  color: #ffffff;
}
[data-theme="dark"] .research-banner-content p {
  color: #cbd5e1;
}

.research-banner-content {
  max-width: 580px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.research-banner-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.research-banner-content p {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.rb-btn {
  background-color: #fff;
  color: #2563eb;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.rb-btn:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}



/* Animations handled by Motion One */

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

/* --- TABLET (max-width: 992px) --- */
@media (max-width: 992px) {
  /* General Spacing */
  .section-padding, .research-section {
    padding: 4rem 2rem;
  }
  .navbar {
    width: 95%;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    grid-template-areas:
      "header header"
      "stats apply"
      "banner banner";
  }

  /* Hero Section */
  .hero h1 {
    font-size: 2.8rem;
  }

  /* Stats Container */
  .stats-container {
    width: 95%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .stat-card {
    min-width: 200px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Navbar & Mobile Menu */
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links, .nav-action {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
  }
  .nav-action {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
  }
  
  /* When Mobile Menu is Open */
  .navbar.mobile-open {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 1.25rem;
    max-height: 85vh;
    overflow-y: auto;
    width: 92%;
    left: 4%;
    transform: none;
  }
  .navbar.mobile-open .nav-links,
  .navbar.mobile-open .nav-action {
    display: flex;
  }
  .navbar.mobile-open .nav-logo {
    align-self: flex-start;
    margin-bottom: 0.75rem;
  }
  .navbar.mobile-open .mobile-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
  }

  /* Mobile Mega Menu Fix (Prevents left/right clipping) */
  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
  }

  .mega-menu, .mega-menu.wide {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.75rem 0.5rem !important;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.03) !important;
    border-radius: 12px !important;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all 0.25s ease;
    pointer-events: none;
  }

  [data-theme="dark"] .mega-menu, [data-theme="dark"] .mega-menu.wide {
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .nav-dropdown.active .mega-menu,
  .nav-dropdown:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
  }

  .mega-menu-grid, .mega-menu-grid.four-cols {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .mega-menu-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .mega-menu-list li a {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 8px !important;
    display: block !important;
    width: 100% !important;
    word-break: break-word !important;
  }

  .mega-menu-list li a:hover {
    background-color: var(--primary-blue);
    color: #FFFFFF !important;
  }


  /* Hero Section */
  .hero {
    padding: 8rem 1.5rem 3rem 1.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats Container */
  .stats-container {
    flex-direction: column;
    padding: 2rem 1.5rem;
    width: 90%;
    gap: 1.5rem;
  }

  /* Grids */
  .programs-grid, .campus-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    grid-template-areas:
      "header"
      "banner"
      "stats"
      "apply";
  }
  .bento-banner {
    min-height: 250px;
  }
  .bento-header h2 {
    font-size: 2rem;
  }
  

  


  /* Research Section */
  .research-banner-section {
    padding: 2rem 1.5rem;
  }
  .research-banner-container {
    padding: 2.5rem 1.5rem;
    background-position: left center;
  }
  .research-banner-content {
    max-width: 100%;
    text-align: center;
  }
  .research-banner-content h2 {
    font-size: 2rem;
  }
  .research-banner-content p {
    font-size: 1rem;
  }
  .rb-btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Dark Mode Enhancements: Featured Programs, Testimonials & Social Icons --- */
[data-theme="dark"] .program-card .btn-read-more,
[data-theme="dark"] .btn-read-more,
[data-theme="dark"] .btn-read-more .btn-text,
[data-theme="dark"] .btn-read-more .btn-icon,
[data-theme="dark"] .program-overlay .btn-read-more {
  color: #FFFFFF !important;
}

[data-theme="dark"] .testimonials-section {
  background-color: #0F172A !important;
}

[data-theme="dark"] .testimonials-section .section-title,
[data-theme="dark"] .marquee-container .testimonial-card,
[data-theme="dark"] .marquee-container .testimonial-card .testimonial-text,
[data-theme="dark"] .marquee-container .testimonial-card .testimonial-author {
  color: #FFFFFF !important;
}

[data-theme="dark"] .marquee-container .testimonial-card {
  background-color: #1E293B !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .marquee-container .testimonial-card .testimonial-major {
  color: #94A3B8 !important;
}

[data-theme="dark"] .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
}

.social-icons a:hover,
.social-icons a:hover span,
[data-theme="dark"] .social-icons a:hover,
[data-theme="dark"] .social-icons a:hover span {
  background-color: var(--primary-blue) !important;
  color: #FFFFFF !important;
}




/* --- Industry Partners Marquee --- */
.partners-section {
  padding: 3rem 0 3.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.partners-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.partners-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: inline-block;
}

[data-theme="dark"] .partners-section {
  background: var(--dark-surface);
  border-color: rgba(255, 255, 255, 0.08);
}

.partners-marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partners-marquee-track {
  display: flex;
  gap: 4rem;
  animation: scrollPartners 32s linear infinite;
  white-space: nowrap;
  align-items: center;
}

@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-item {
  flex-shrink: 0;
}

.partner-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo-item:hover .partner-name {
  color: var(--primary-blue);
  opacity: 1;
  transform: scale(1.06);
}
