/* =============================================================
   KCCP AFRICA 2025 — Final Clean & Conflict-Free Stylesheet
   Modern • Polished • Responsive • Conflicts Resolved
   ============================================================= */

/* ---------------------------
   1) CSS VARIABLES (Design Tokens)
   --------------------------- */
:root {
  /* Brand Colors */
  --primary: #3b82f6;
  --primary-500: #60a5fa;
  --secondary: #22c55e;
  --accent: #eab308;
  --success: #34d399;
  --danger: #f87171;

  /* Grays */
  --dark: #0f172a;
  --light: #f9fafb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --gradient-success: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  --gradient-accent: linear-gradient(135deg, #eab308 0%, #fde047 100%);
  --gradient-cta: linear-gradient(120deg, #3b82f6 0%, #22c55e 70%, #eab308 100%);

  /* Shadows */
  --shadow-xs: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.14);
  --shadow-lg: 0 18px 42px rgba(0,0,0,0.18);
  --shadow-xl: 0 28px 70px rgba(0,0,0,0.22);

  /* Border Radius */
  --radius-sm: 0.6rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.35rem;
  --radius-xl: 2.25rem;
  --radius-full: 999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------------------------
   2) RESET & BASE TYPOGRAPHY
   --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding-top: 76px;
  background: var(--light);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--dark);
}
.display-4 { font-size: clamp(2.9rem, 7vw, 5rem); }
.display-5 { font-size: clamp(2.3rem, 6vw, 3.7rem); }

/* ---------------------------
   3) NAVBAR — Glassmorphism
   --------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-xs);
  padding: 0.85rem 0;
}
.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nav-link {
  color: var(--gray-600);
  font-weight: 600;
  padding: 0.75rem 1.1rem !important;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 991px) {
  .navbar-collapse {
    background: #fff;
    padding: 1.5rem;
    margin-top: 0.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
}

/* ---------------------------
   4) HERO SECTION & CAROUSEL (Consolidated & Conflict-Free)
   --------------------------- */
.hero {
  height: 100vh;
  height: 100dvh; /* iOS dynamic viewport fix */
  min-height: 620px;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.5) 60%, transparent);
  z-index: 1;
}
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.85;
  filter: brightness(1.1);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { text-shadow: 0 8px 26px rgba(0,0,0,0.45); }

/* Swiper Integration */
.heroSwiper,
.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
  height: 100% !important;
  width: 100% !important;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: transform 14s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}

/* First slide focus (Professor Banda) */
.heroSwiper .swiper-slide:first-child .hero-slide-bg {
  background-position: center 25%;
}

/* Swiper Navigation */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
}
.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.15);
}
.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
  font-size: 22px;
  color: white;
  font-weight: bold;
}

/* Pagination */
.heroSwiper .swiper-pagination-bullet {
  width: 13px;
  height: 13px;
  background: rgba(255,255,255,0.5);
}
.heroSwiper .swiper-pagination-bullet-active {
  background: #22c55e;
  transform: scale(1.4);
}

/* Responsive Hero Adjustments */
@media (max-width: 576px) {
  .hero .display-5 { font-size: 2.2rem !important; }
  .hero .fs-4 { font-size: 1.4rem !important; }
  .hero .lead { font-size: 1.1rem !important; }
  .hero img.rounded-circle { width: 140px !important; height: 140px !important; }
}
@media (max-width: 480px) {
  .heroSwiper .swiper-button-next,
  .heroSwiper .swiper-button-prev { display: none; }
}

/* ---------------------------
   5) BUTTONS — Unified
   --------------------------- */
.btn {
  border-radius: var(--radius-full);
  font-weight: 600;
  padding: 0.85rem 2rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--gradient-primary); color: #fff; }
.btn-success { background: var(--gradient-success); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.hero .btn,
.final-cta .btn-light {
  padding: 1rem 2.4rem;
  box-shadow: var(--shadow-md);
  font-weight: 800;
}
.hero .btn:hover,
.final-cta .btn-light:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.btn-outline-primary { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-info { border: 1.5px solid var(--primary-500); color: var(--primary-500); }
.btn-outline-danger { border: 1.5px solid var(--danger); color: var(--danger); }
.btn:focus-visible {
  outline: 3px solid rgba(59,130,246,0.2);
  outline-offset: 2px;
}

/* Button Enhancements */
.btn-glow {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}
.btn-glow:hover::before {
  width: 320px; height: 320px;
}
.btn-pulse { animation: pulseBtn 2.6s infinite; }
@keyframes pulseBtn {
  0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,.5); }
  70% { box-shadow: 0 0 0 14px rgba(59,130,246,0); }
}

/* ---------------------------
   6) FORM CONTROLS
   --------------------------- */
.form-control,
.form-select,
textarea.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  font-size: 0.95rem;
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,64,175,0.12);
  outline: none;
}
.modal .form-control,
.modal .form-select,
.modal textarea {
  padding: 0.56rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.modal textarea { min-height: 72px; resize: vertical; }
.is-invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 4px rgba(225,29,72,0.08);
}
.invalid-feedback {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

/* ---------------------------
   7) CARDS & CHALLENGE CARDS
   --------------------------- */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.challenge-card {
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.challenge-card:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: var(--shadow-xl) !important;
}
.card-img-wrapper {
  position: relative;
  overflow: hidden;
}
.card-img-wrapper img {
  transition: transform 14s ease-out;
}
.challenge-card:hover .card-img-wrapper img {
  transform: scale(1.3);
}
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.challenge-card:hover .img-overlay { opacity: 1; }

/* Rainbow border on hover */
.challenge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 4px;
  background: linear-gradient(45deg,#3b82f6,#22c55e,#eab308,#f871f1);
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 2;
}
.challenge-card:hover::before {
  opacity: 1;
  animation: rotateHue 9s linear infinite;
}
@keyframes rotateHue { to { filter: hue-rotate(360deg); } }

/* Shine effect */
.shine-effect {
  position: absolute;
  top: -110%;
  left: -110%;
  width: 50%;
  height: 220%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: rotate(30deg);
}
.challenge-card:hover .shine-effect {
  animation: shine 1.6s ease-in-out;
}
@keyframes shine {
  100% { transform: translateX(300%) translateY(300%) rotate(30deg); }
}

/* Title badge */
.title-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30,64,175,0.9);
  backdrop-filter: blur(12px);
  padding: 14px 36px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.2);
  animation: bounceIn 1.2s ease-out, badgeFloat 7s ease-in-out infinite;
}
.challenge-card:nth-child(2) .title-badge { background: rgba(34,197,94,0.9); }
.challenge-card:nth-child(3) .title-badge { background: rgba(234,179,8,0.9); }
.challenge-card:nth-child(4) .title-badge { background: rgba(220,53,69,0.9); }
.challenge-card:nth-child(5) .title-badge { background: rgba(15,23,42,0.95); }
.challenge-card:nth-child(6) .title-badge { background: rgba(14,165,233,0.9); }
@keyframes bounceIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  60% { transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes badgeFloat {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50% { transform: translate(-50%,-50%) translateY(-14px); }
}

/* Floating blobs */
#stem-challenges .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: float 24s infinite ease-in-out;
}
#stem-challenges .blob-1 {
  width: 700px; height: 700px;
  background: var(--primary);
  top: -20%; left: -10%;
}
#stem-challenges .blob-2 {
  width: 900px; height: 900px;
  background: var(--secondary);
  bottom: -25%; right: -15%;
  animation-delay: 12s;
}
@keyframes float {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(140px,-140px) rotate(180deg); }
}

/* Pulse dot */
.pulse-dot {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 14px;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.5); }
}

/* Check slide animation */
.check-slide li {
  opacity: 0;
  transform: translateX(-40px);
}
.challenge-card.animated .check-slide li:nth-child(1) { animation: slideInLeft 0.8s 0.3s forwards; }
.challenge-card.animated .check-slide li:nth-child(2) { animation: slideInLeft 0.8s 0.5s forwards; }
.challenge-card.animated .check-slide li:nth-child(3) { animation: slideInLeft 0.8s 0.7s forwards; }
@keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }

/* ---------------------------
   8) AFRICA MAP SECTION
   --------------------------- */
#africa-map {
  padding: 4rem 0;
  background: var(--gray-50);
  text-align: center;
}
#africa-map h2 {
  margin-bottom: 2rem;
  color: var(--dark);
}
#map-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
svg {
  width: 100%;
  height: auto;
}
svg path {
  transition: transform 0.22s ease, stroke 0.22s ease;
}
svg path:hover {
  transform: scale(1.02);
  stroke: #1e40af;
  stroke-width: 2;
  cursor: pointer;
}
svg #country-labels text {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: #0f172a;
  opacity: 0.95;
  paint-order: stroke fill;
  stroke: white;
  stroke-width: 3px;
  stroke-linejoin: round;
}
svg #country-labels text.small {
  font-size: 10px;
  opacity: 0.9;
}
@media (max-width: 900px) {
  svg #country-labels { display: none; }
}
@media (min-width: 901px) {
  svg #country-labels text {
    fill: white;
    stroke: #000;
    stroke-width: 4px;
    paint-order: stroke fill;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
  }
}

/* ---------------------------
   9) CONCEPT NODES & TREE
   --------------------------- */
.concept-tree-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.concept-node {
  position: relative;
  padding: 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  overflow: hidden;
  min-width: 0;
}
.concept-node:hover,
.concept-node:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.concept-node::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 4px;
  height: calc(100% - 16px);
  background: linear-gradient(180deg, rgba(30,64,175,0.15), rgba(16,185,129,0.12));
  border-radius: 3px;
  opacity: 0.9;
  pointer-events: none;
}
.concept-node:not(.bg-light-subtle)::before { display: none; }
.concept-node[data-id] { padding-left: 1.15rem; }

/* ---------------------------
   10) MODALS
   --------------------------- */
.modal-content {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-dialog {
  max-width: 720px;
  margin: 1.75rem auto;
}
@media (max-width: 767.98px) {
  .modal-dialog { max-width: 94%; margin: 1rem auto; }
}
.modal-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(90deg, rgba(30,64,175,0.02), rgba(22,163,74,0.02));
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

/* ---------------------------
   11) FOOTER & FINAL CTA
   --------------------------- */
footer {
  margin-top: 6rem;
  padding: 3.8rem 1rem;
  background: linear-gradient(180deg, #0c121f, #111827);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #cbd5e1;
}
.final-cta {
  background: var(--gradient-cta);
  color: #fff;
  padding: 3.5rem 1rem;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.final-cta:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* ---------------------------
   12) PROFESSOR BANDA ORBIT LAYOUT
   --------------------------- */
.banda-orbit {
  position: relative;
  width: min(100%, 960px);
  height: 560px;
  margin: auto;
}
.banda-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.banda-center::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.25), transparent 70%);
  z-index: -1;
}
.orbit-quote {
  position: absolute;
  max-width: 300px;
  padding: 1.8rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  z-index: 2;
  animation: floatQuote 8s ease-in-out infinite;
}
.orbit-top-left { top: 0; left: 0; animation-delay: 0s; }
.orbit-top-right { top: 0; right: 0; animation-delay: 2s; }
.orbit-bottom { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 4s; }
.glass-quote {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.speech-quote {
  background: #ffffff;
  color: #111;
}
.speech-quote::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 32px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 16px solid #ffffff;
}
.ribbon-quote {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}
.orbit-quote:hover {
  transform: scale(1.05);
  z-index: 5;
}
@keyframes floatQuote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 768px) {
  .banda-orbit { height: auto; }
  .orbit-quote,
  .banda-center {
    position: static;
    transform: none;
    max-width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .speech-quote::after { display: none; }
}

/* ---------------------------
   13) UTILITIES & ANIMATIONS
   --------------------------- */
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}
.text-shadow-lg { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); }
.animate-on-scroll { opacity: 0; transform: translateY(60px); transition: all 0.9s cubic-bezier(0.22,1,0.36,1); }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* Hero branding */
.hero-brand { text-shadow: 0 4px 12px rgba(0,0,0,.6); }
.hero-site-name {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}
.hero-site-name::before {
  content: "● ";
  color: #3b82f6;
}

/* ===============================
   SHOWCASE CAROUSEL
================================ */
.showcase-carousel {
  padding: 6rem 0 7rem;
  background: radial-gradient(circle at top, #1e40af, #020617);
  position: relative;
}

.showcaseSwiper {
  width: 100%;
  height: 560px;
}

.showcaseSwiper .swiper-slide {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.showcase-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 12s ease;
}

.swiper-slide-active .showcase-slide-bg {
  transform: scale(1);
}

/* Video */
.showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark Overlay */
.showcaseSwiper .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(2,6,23,.75),
    rgba(2,6,23,.35)
  );
  z-index: 1;
}

/* Content */
.showcase-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 3.5rem;
  color: #fff;
}

.showcase-content h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.showcase-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Pagination */
.showcaseSwiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  width: 14px;
  height: 14px;
}

.showcaseSwiper .swiper-pagination-bullet-active {
  background: var(--secondary);
  transform: scale(1.4);
}

/* Nav Buttons */
.showcaseSwiper .swiper-button-next,
.showcaseSwiper .swiper-button-prev {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.showcaseSwiper .swiper-button-next::after,
.showcaseSwiper .swiper-button-prev::after {
  font-size: 22px;
  color: #fff;
}

/* Decorative bottom glow */
.showcase-gradient-overlay {
  position: absolute;
  bottom: -40%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34,197,94,0.35), transparent 70%);
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
}


/* ===============================
   PROFESSOR BANDA – REFINED SLIDE
================================ */

.banda-feature-slide {
  position: relative;
  height: 100%;
}

/* Overlay */
.banda-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(2,6,23,.88),
    rgba(2,6,23,.6)
  );
  z-index: 1;
}

/* Refined orbit container */
.refined-orbit {
  width: min(100%, 780px);
  height: 420px;
  position: relative;
  margin: auto;
}

/* Center */
.refined-orbit .banda-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

/* Quotes */
.refined-quote {
  position: absolute;
  max-width: 260px;
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
  line-height: 1.45;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow-sm);
}

/* Quote positions */
.quote-left   { top: 18%; left: 0; }
.quote-right  { top: 18%; right: 0; }
.quote-bottom { bottom: 0; left: 50%; transform: translateX(-50%); }

/* Connector lines */
.quote-line {
  position: absolute;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0),
    rgba(255,255,255,0.55),
    rgba(255,255,255,0)
  );
  height: 1px;
  z-index: 2;
}

.line-left {
  width: 160px;
  top: 50%;
  left: 120px;
  transform: rotate(15deg);
}

.line-right {
  width: 160px;
  top: 50%;
  right: 120px;
  transform: rotate(-15deg);
}

.line-bottom {
  width: 120px;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}

/* Hover emphasis */
.refined-quote:hover {
  transform: scale(1.06);
  z-index: 5;
}

/* Responsive */
@media (max-width: 768px) {
  .refined-orbit {
    height: auto;
  }

  .refined-quote,
  .quote-line {
    position: static;
    transform: none;
    margin: 1rem auto;
    text-align: center;
    max-width: 100%;
  }

  .refined-orbit .banda-center {
    position: static;
    transform: none;
    margin-bottom: 1.5rem;
  }
}


/* ENHANCED BANDA SLIDE */
.banda-slide-bg {
  position: absolute;
  inset: 0;
  background: url('assets/img/proff-bg.jpg') center/cover no-repeat; /* optional full-background portrait */
  filter: brightness(0.7);
  transform: scale(1.1);
  transition: transform 14s ease;
}
.swiper-slide-active .banda-slide-bg { transform: scale(1); }

/* Glowing photo halo */
.photo-glow {
  position: relative;
  display: inline-block;
}
.photo-glow::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.4), transparent 70%);
  animation: pulseGlow 4s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

/* Featured ribbon */
.featured-ribbon {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-success);
  color: #fff;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(34,197,94,0.4);
  z-index: 5;
  animation: floatRibbon 6s ease-in-out infinite;
}
@keyframes floatRibbon {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Floating particles */
.banda-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.banda-particles span {
  position: absolute;
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 18s infinite linear;
}
.banda-particles span:nth-child(1){top:20%;left:15%;animation-delay:0s;}
.banda-particles span:nth-child(2){top:60%;left:80%;animation-delay:4s;}
.banda-particles span:nth-child(3){top:75%;left:20%;animation-delay:8s;}
.banda-particles span:nth-child(4){top:30%;left:70%;animation-delay:12s;}
.banda-particles span:nth-child(5){top:50%;left:10%;animation-delay:16s;}
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-100vh) translateX(100px); }
}

/* Curved SVG connectors (replaces old straight lines) */
.quote-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Quote entrance animation when slide is active */
.swiper-slide-active .refined-quote {
  opacity: 0;
  animation: fadeInQuote 0.8s forwards;
}
.swiper-slide-active .quote-left { animation-delay: 0.4s; }
.swiper-slide-active .quote-right { animation-delay: 0.6s; }
.swiper-slide-active .quote-bottom { animation-delay: 0.8s; }
@keyframes fadeInQuote {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Slightly larger quotes on large screens */
@media (min-width: 992px) {
  .refined-quote { 
    max-width: 290px; 
    padding: 1.4rem 1.6rem; 
    font-size: 1rem;
  }
  .refined-orbit { height: 480px; }
}

/* ULTIMATE TEXT VISIBILITY FIX – NO MORE INVISIBLE TEXT */
.center-text-backdrop {
  position: relative;
  display: inline-block;
  background: rgba(0, 0, 0, 0.55); /* Strong dark semi-transparent strip */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.8rem;
  padding: 2rem 3rem;
  max-width: 95%;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* Ultra strong text shadow for bright/dark backgrounds */
.ultra-shadow {
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.9),
    0 4px 8px rgba(0,0,0,0.8),
    0 8px 20px rgba(0,0,0,0.7),
    0 0 12px rgba(0,0,0,0.6);
  letter-spacing: 0.5px;
}

/* Ensure photo is sized nicely */
.banda-center img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* Larger on big screens */
@media (min-width: 992px) {
  .banda-center img {
    width: 240px !important;
    height: 240px !important;
  }
  .center-text-backdrop {
    padding: 2.5rem 4rem;
  }
  .display-5 {
    font-size: 3.5rem !important;
  }
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .center-text-backdrop {
    padding: 1.5rem 2rem;
  }
  .display-5 {
    font-size: 2.5rem !important;
  }
}

/* Enhanced Slide Content Styling */
.showcase-content {
  max-width: 700px;
  padding: 4rem 3rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  border-radius: 1.8rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* Icon Badge */
.icon-badge {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Pulse for CTA buttons on new slides */
.btn-pulse {
  animation: pulseBtn 2.6s infinite;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .showcase-content {
    padding: 3rem 2rem;
  }
  .icon-badge {
    width: 80px;
    height: 80px;
  }
  .icon-badge svg {
    width: 50px;
    height: 50px;
  }
}