/* ==========================================================================
   SA ACADEMY OF SURGERY - LUXURY MEDICAL GLASSMORPHISM THEME
   Design Language: Apple Vision Pro / Precision Surgical Technology Glass
   - Controlled Content Width (~1480px) + Full-Width Atmospheric Glow Backgrounds
   - Translucent Frosted Glass Materials (rgba(255,255,255, 0.60-0.75))
   - Subtle Specular Edge Highlights (inset 0 1px 1.5px rgba(255,255,255,0.95))
   - Soft Diffused Atmospheric Shadows & Continuous Liquid Gradient Buttons
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Atmospheric Medical Canvas Colors */
  --bg-canvas: #EBF4F7;
  --bg-canvas-alt: #F0F8FA;
  
  /* Brand Navy & Deep Clinical Typography */
  --navy-dark: #071C38;
  --navy-primary: #0D2D55;
  --navy-slate: #1E293B;
  --text-main: #0F172A;
  --text-muted: #64748B;

  /* Medical Cyan / Aqua Accents */
  --cyan-50: #F0F9FF;
  --cyan-100: #E0F2FE;
  --cyan-200: #BAE6FD;
  --cyan-300: #7DD3FC;
  --cyan-400: #38BDF8;
  --cyan-500: #0EA5E9;
  --cyan-600: #0284C7;
  --cyan-700: #0369A1;

  /* Gold Luxury Accents */
  --gold-400: #D4AF37;
  --gold-500: #C59E3F;
  --gold-600: #A88126;

  /* Continuous Multi-Stop Gradient Spectrum */
  --btn-cyan-gradient: linear-gradient(135deg, #0284C7 0%, #38BDF8 25%, #06B6D4 50%, #0EA5E9 75%, #0284C7 100%);
  --btn-gold-gradient: linear-gradient(135deg, #B8860B 0%, #E5C368 25%, #FBF2D5 50%, #D4AF37 75%, #846314 100%);
  --btn-light-gradient: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 30%, #F0F9FF 60%, #E0F2FE 100%);

  /* Apple Vision Pro Medical Glass Material System */
  --glass-bg-subtle: rgba(255, 255, 255, 0.55);
  --glass-bg-card: rgba(255, 255, 255, 0.65);
  --glass-bg-elevated: rgba(255, 255, 255, 0.75);
  --glass-bg-input: rgba(255, 255, 255, 0.85);

  --glass-blur: blur(20px) saturate(130%);
  --glass-blur-heavy: blur(24px) saturate(150%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.82);
  --glass-border-subtle: 1px solid rgba(255, 255, 255, 0.65);
  --glass-border-glow: 1px solid rgba(186, 230, 253, 0.7);

  /* Diffused Lighting & Soft Specular Top Sheen */
  --glass-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.95), 0 12px 35px -5px rgba(2, 132, 199, 0.07), 0 4px 12px rgba(0, 0, 0, 0.02);
  --glass-shadow-hover: inset 0 1px 2px rgba(255, 255, 255, 1), 0 20px 45px -8px rgba(2, 132, 199, 0.16), 0 8px 18px rgba(0, 0, 0, 0.04);
  --glass-shadow-deep: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 25px 60px -12px rgba(2, 132, 199, 0.2);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', serif;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 8% 8%, rgba(56, 189, 248, 0.16) 0%, transparent 35%),
    radial-gradient(circle at 92% 16%, rgba(212, 175, 55, 0.11) 0%, transparent 30%),
    radial-gradient(circle at 48% 45%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 15% 90%, rgba(2, 132, 199, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--navy-slate);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  padding-top: 80px !important; /* Fixed navigation header clearance */
}

h1, h2, h3, h4 {
  color: var(--navy-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Custom Medical Cyan Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #EBF4F7;
}
::-webkit-scrollbar-thumb {
  background: #BAE6FD;
  border-radius: 9999px;
  border: 2px solid #EBF4F7;
}
::-webkit-scrollbar-thumb:hover {
  background: #38BDF8;
}

/* ==========================================================================
   CONTAINER HIERARCHY: FULL-WIDTH HERO + CONTROLLED CONTENT BELOW (~1480px)
   ========================================================================== */

/* 1. Full-Width Hero Container (Spacious & Wide) */
.hero-container {
  width: min(94%, 1700px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

/* 2. Controlled-Width Content Container (For Sections Below Hero & All Pages) */
.content-container {
  width: min(92%, 1480px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  padding-right: clamp(1rem, 2.5vw, 2rem);
}

/* 3. Narrower Container for Text-Dense Blocks */
.content-container-narrow {
  width: min(90%, 1160px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  padding-right: clamp(1rem, 2vw, 1.5rem);
}

/* Full Width App Wrapper */
.careplus-fullwidth-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Page Views Top Spacing */
.page-view {
  width: 100%;
  padding-top: 3.5rem !important;
  padding-bottom: 5rem !important;
}

#view-home.page-view {
  padding-top: 0 !important;
  padding-bottom: 3rem !important;
}

/* ==========================================================================
   1. FLOATING FROSTED GLASS NAVIGATION BAR
   ========================================================================== */

.careplus-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 76px !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.05), inset 0 -1px 0 rgba(224, 242, 254, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.3s ease;
}

.careplus-nav-link {
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.careplus-nav-link:hover, .careplus-nav-link.active {
  color: #0284C7;
  background: rgba(224, 242, 254, 0.85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   2. HERO SECTION & FROSTED GLASS SEARCH PANEL
   ========================================================================== */

/* Full-Width Atmospheric Hero */
.careplus-hero-fullwidth {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(240, 249, 251, 0.95) 0%, rgba(223, 241, 247, 0.88) 45%, rgba(205, 232, 242, 0.85) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  padding-top: clamp(3.5rem, 6vw, 5.5rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.5rem) !important;
  overflow: hidden;
}

.careplus-hero-fullwidth::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero Glass Image Frame */
.hero-glass-frame {
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 55px -12px rgba(2, 132, 199, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  position: relative;
}

/* Hero Information Overlay Pill */
.hero-glass-label {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

/* Floating Frosted Glass Search & Booking Bar */
.floating-glass-bar {
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 18px 45px -8px rgba(2, 132, 199, 0.12);
  border-radius: 2rem;
  padding: 1.35rem 2rem;
}

/* ==========================================================================
   3. FULL-WIDTH SECTION BACKGROUNDS (ATMOSPHERIC)
   ========================================================================== */

.section-fullwidth-white {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(224, 242, 254, 0.6);
  padding: clamp(3.5rem, 5vw, 5.5rem) 0;
}

.section-fullwidth-soft {
  width: 100%;
  background: transparent;
  padding: clamp(3.5rem, 5vw, 5.5rem) 0;
}

.section-fullwidth-accent {
  width: 100%;
  background: linear-gradient(135deg, rgba(240, 249, 251, 0.7) 0%, rgba(232, 245, 248, 0.75) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(224, 242, 254, 0.7);
  padding: clamp(3.5rem, 5vw, 5.5rem) 0;
}

/* ==========================================================================
   4. GLASSMORPHISM CARDS (VISION PRO PRECISION)
   ========================================================================== */

/* Squircle Department & Feedback Cards */
.squircle-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 2.25rem;
  box-shadow: var(--glass-shadow);
  padding: 2.25rem 1.25rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.squircle-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--glass-shadow-hover);
}

.squircle-icon-wrapper {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.65rem;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.9) 0%, rgba(186, 230, 253, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284C7;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  transition: all 0.35s ease;
}

.squircle-card:hover .squircle-icon-wrapper {
  transform: scale(1.08) rotate(2deg);
  background: var(--btn-cyan-gradient);
  background-size: 300% 300%;
  animation: fluidGradientShift 2.5s ease infinite;
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.35);
}

/* Service / Course Showcase Card */
.service-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 2.25rem;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  padding: 1.35rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--glass-shadow-hover);
}

.service-thumb {
  border-radius: 1.65rem;
  overflow: hidden;
  height: 14.5rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.05);
}

/* Frosted Inner Pill for Course Metadata */
.glass-meta-pill {
  background: rgba(240, 249, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(224, 242, 254, 0.85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   5. BUTTONS & PILLS (PREMIUM GLOSSY GLASS SHEEN)
   ========================================================================== */

@keyframes fluidGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 1. Primary Cyan Gradient Button with Specular Gloss Highlight */
.btn-cyan {
  background: var(--btn-cyan-gradient) !important;
  background-size: 300% 300% !important;
  background-position: 0% 50%;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.02em !important;
  padding: 0.85rem 1.85rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.6), 0 8px 25px rgba(2, 132, 199, 0.28) !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-cyan:hover {
  animation: fluidGradientShift 2.2s ease infinite !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 12px 35px rgba(2, 132, 199, 0.45), 0 0 20px rgba(56, 189, 248, 0.35) !important;
  filter: brightness(1.05) !important;
}

.btn-cyan:active {
  transform: scale(0.97) !important;
}

/* 2. Gold Gradient Button */
.btn-gold {
  background: var(--btn-gold-gradient) !important;
  background-size: 300% 300% !important;
  background-position: 0% 50%;
  color: #051429 !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 0.85rem 1.85rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.8), 0 8px 25px rgba(212, 175, 55, 0.35) !important;
}

.btn-gold:hover {
  animation: fluidGradientShift 2.2s ease infinite !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 12px 35px rgba(212, 175, 55, 0.55), 0 0 20px rgba(229, 195, 104, 0.4) !important;
  filter: brightness(1.05) !important;
}

.btn-gold:active {
  transform: scale(0.97) !important;
}

/* 3. Outline Button (Frosted White Glass) */
.btn-outline-cyan {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #0284C7;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.85rem 1.85rem !important;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 4px 15px rgba(2, 132, 199, 0.05);
}

.btn-outline-cyan:hover {
  background: var(--btn-light-gradient) !important;
  background-size: 250% 250% !important;
  animation: fluidGradientShift 2.5s ease infinite !important;
  border-color: #0284C7 !important;
  color: #0369A1 !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.2);
}

.btn-outline-cyan:active {
  transform: scale(0.97);
}

/* 4. Filter Buttons with Fluid Continuous Hover Animation */
.course-filter-btn:hover, .gallery-filter-btn:hover, .pub-year-btn:hover,
.course-filter-btn.active, .gallery-filter-btn.active, .pub-year-btn.active {
  background: var(--btn-cyan-gradient) !important;
  background-size: 300% 300% !important;
  animation: fluidGradientShift 2.5s ease infinite !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35) !important;
  transform: scale(1.03) !important;
}

.pub-year-btn {
  background: rgba(255, 255, 255, 0.85);
  color: #475569;
  border: 1px solid rgba(224, 242, 254, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Frosted Pill Badges */
.badge-pill {
  background: rgba(224, 242, 254, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0369A1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.badge-gold-pill {
  background: rgba(254, 243, 199, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #92400E;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Frosted Input Controls */
.careplus-input {
  background: var(--glass-bg-input);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(224, 242, 254, 0.85);
  color: #0F172A;
  padding: 0.85rem 1.25rem;
  border-radius: 1.15rem;
  transition: all 0.25s ease;
  width: 100%;
  font-size: 0.875rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.careplus-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12), inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* ==========================================================================
   6. MODALS & LIGHTBOX (PREMIUM GLASSMORPHIC DIALOGS)
   ========================================================================== */

.modal-overlay {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-content-box {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px) saturate(140%);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
  border-radius: 2.25rem;
  box-shadow: var(--glass-shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-msg {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.18);
  color: #0F172A;
  padding: 1.1rem 1.6rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

