/* ==========================================================================
   Queen's Executive Education - AI Academy Suite (Version 4)
   - Continuous Dark Mode Aesthetic (#030a1c)
   - Redesigned 3-Column Program Structure Cards (Faded Bg, Descriptions, Pills & Buttons)
   - Repositioned AI Certificate Section (Directly Below Program Structure)
   - Streamlined Directory Section
   - Balanced, Centered Faculty Spotlight Grid (No Orphan Cards)
   ========================================================================== */

:root {
  --blue-dark: #020e26;
  --blue-light: #0f327a;
  
  --bg-page: #030a1c;
  --bg-surface: #071d49;
  --bg-surface-alt: #09245a;
  --bg-card-glass: rgba(7, 29, 73, 0.65);
  
  --queens-blue: #071d49;
  --queens-navy-deep: #030a1c;
  --queens-rose: #c8215d;
  --queens-rose-hover: #e02868;
  --queens-sky: #0b76a6;
  --queens-sky-hover: #0ea5e9;
  
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-sky: rgba(14, 165, 233, 0.4);
  --border-rose: rgba(224, 40, 104, 0.4);
  
  --text-primary: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-glow-sky: 0 0 35px rgba(14, 165, 233, 0.28);
  --shadow-glow-rose: 0 0 35px rgba(224, 40, 104, 0.28);
  --focus-ring: 3px solid #0ea5e9;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, #0d2c54 0%, transparent 40%),
    radial-gradient(circle at 10% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 90% 70%, rgba(224, 40, 104, 0.08) 0%, transparent 35%);
  background-attachment: fixed;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

.bg-blue-dark {
    background-color: var(--blue-dark);
}

.border-blue-light {
    border-color: var(--blue-light) !important;
}

.modal-backdrop {
    --bs-backdrop-bg: var(--blue-dark);
  --bs-backdrop-opacity: 0.9;
}

.modal-img-header {
    display: flex;
    align-items: center;
    height: 200px;
    overflow: hidden;
}

.modal-img-header > img {
    width: 100%;
}

@media (min-width: 992px) {
    .modal-img-header {
        height: 300px;
    }
}

.btn-quick-preview {
  background: rgba(3, 10, 28, 0.7);
  color: var(--queens-sky-hover);
  border: 1.5px solid var(--queens-sky-hover);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-quick-preview:hover {
  background: rgba(3, 10, 28, 0.5);
  border-color: var(--queens-rose-hover);
  color: var(--queens-rose-hover);
}

/* --------------------------------------------------------------------------
   2. Full Viewport Hero Section (Blended Smoothly)
   -------------------------------------------------------------------------- */
.prodev-hero-section {
  background: transparent;
  color: #ffffff;
  height: auto;
  min-height: 90vh;
}

#hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-glow-orb-primary {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 850px;
  height: 850px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(224, 40, 104, 0.1) 45%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
  animation: pulseGlow 10s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.prodev-hero-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-brand-logo-h1 {
  margin: 0 0 2rem 0;
  display: flex;
  justify-content: center;
}

.hero-tagline {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
  color: #b690f4;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-lead-text {
  font-size: 1.35rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.75rem;
  max-width: 780px;
  text-wrap: balance;
}

.hero-btn-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.hero-scroll-indicator:hover { color: #ffffff; }
.hero-scroll-indicator i { animation: bounceDown 1.8s infinite; }

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* Rich Program Structure Card (Faded Background Image & Embedded CTAs) */
.tile-card {
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 1;
}

.tile-card:hover {
  transform: translateY(-4px);
  border-color: var(--queens-sky-hover);
  box-shadow: var(--shadow-glow-sky);
}

.tile-card > * {
  position: relative;
  z-index: 2;
}

/* OR Divider between BAIPO and AI for Leaders */
.program-or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: -0.25rem 0;
  z-index: 5;
}

.program-or-divider::before,
.program-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.program-or-divider span {
  padding: 0.25rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--queens-sky-hover);
  background: linear-gradient(135deg, rgba(7, 29, 73, 0.95) 0%, rgba(3, 10, 28, 0.98) 100%);
  border: 1px solid rgba(14, 165, 233, 0.45);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  margin: 0 0.65rem;
}

/* Bracket connection styling (Restored from V3) */
.join-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -0.5rem 0;
  position: relative;
  z-index: 5;
}
.join {
  width: 2px;
  height: 16px;
  background: var(--queens-sky-hover);
}
.join2 {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--queens-sky-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tile-card.dark:hover {
  border-color: #ffffff;
  box-shadow: var(--shadow-glow-rose);
}

/* Dashed Card for In-Development */
.tile-card.dashed {
  border: 2px dashed rgba(255, 255, 255, 0.25);
  background: transparent;
}
.tile-card.dashed::before { display: none; }
.tile-card.dashed:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.35);
}


/* --------------------------------------------------------------------------
   6. Program Spotlight Section (Full-Width Background & Luminous Top Spotlight)
   -------------------------------------------------------------------------- */
.spotlight-section {
  border-radius: 3rem 0 0 0 !important;
}

@media (min-width: 992px) {
    .spotlight-section {
        border-radius: 7rem 0 0 0 !important;
    }
}

/* Luminous ambient spotlight cone shining down from top center */
.spotlight-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 380px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(14, 165, 233, 0.22) 0%, rgba(7, 29, 73, 0.1) 50%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Top-center luminous spotlight highlight line */
.spotlight-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.6) 25%, var(--queens-sky-hover) 50%, rgba(14, 165, 233, 0.6) 75%, transparent);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.8), 0 0 40px rgba(14, 165, 233, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   9. Dark Mode Sticky Bar & Footer
   -------------------------------------------------------------------------- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(3, 10, 28, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 2px solid var(--queens-sky-hover);
}
.sticky-cta-bar.is-visible { transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-heading-title { font-size: 3rem; }
  }
}

/* --------------------------------------------------------------------------
   10. Why QEE 3+2 Balanced Grid Layout & Hero Logo Placeholder
   -------------------------------------------------------------------------- */
.hero-brand-logo-h1 {
  margin: 0 0 3rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-logo-img {
  display: block;
  max-width: 580px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

@media (max-width: 640px) {
  .hero-heading-title { font-size: 2.3rem; }
  .fac-card { max-width: 100%; }
}
