/* ============================================================
   SR Healthcare Academic Foundation — Static Site Styles
   ============================================================ */

/* ---- Brand Colors as CSS Variables ---- */
:root {
  --sr-blue: #1A56BE;
  --sr-blue-dark: #1347A0;
  --sr-blue-light: #2E6FD6;
  --sr-red: #DE3B40;
  --sr-red-dark: #C52D32;
  --sr-red-light: #E8585C;
  --sr-red2: #E31B23;
  --sr-neutral: #F8F9FA;

  /* shadcn-style semantic tokens (light) */
  --background: #fafafa;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: var(--sr-blue);
  --primary-foreground: #ffffff;
  --secondary: #f0f0f0;
  --secondary-foreground: #1a1a1a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f0f0f0;
  --accent-foreground: #1a1a1a;
  --destructive: #ef4444;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: var(--sr-blue);
  --radius: 0.625rem;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
  background: rgba(26, 86, 190, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 86, 190, 0.5);
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #1A56BE, #DE3B40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #1A56BE, #2E6FD6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-red {
  background: linear-gradient(135deg, #DE3B40, #E31B23);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Animated Gradient Background ---- */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

/* ---- Float Animation ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ---- Pulse Glow (Blue) ---- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(26, 86, 190, 0.3); }
  50% { box-shadow: 0 0 40px rgba(26, 86, 190, 0.6); }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ---- Pulse Glow (Red) ---- */
@keyframes pulse-glow-red {
  0%, 100% { box-shadow: 0 0 20px rgba(222, 59, 64, 0.3); }
  50% { box-shadow: 0 0 40px rgba(222, 59, 64, 0.6); }
}

.animate-pulse-glow-red {
  animation: pulse-glow-red 3s ease-in-out infinite;
}

/* ---- Section Reveal ---- */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero Overlay ---- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 86, 190, 0.75) 0%,
    rgba(19, 71, 160, 0.6) 50%,
    rgba(222, 59, 64, 0.45) 100%
  );
}

/* ---- Card Hover ---- */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 86, 190, 0.15);
}

/* ---- Animated Border ---- */
@keyframes border-dance {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.animated-border {
  background: linear-gradient(90deg, #1A56BE, #DE3B40, #E31B23, #1A56BE);
  background-size: 200% 100%;
  animation: border-dance 3s linear infinite;
}

/* ---- Marquee ---- */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* ---- Hero Form Glass ---- */
.hero-form-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---- Shimmer ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ---- Blob Animation ---- */
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 30% 60% 40% / 70% 40% 50% 60%; }
}

.animate-blob {
  animation: blob 8s ease-in-out infinite;
}

/* ---- Fade In Up (scroll reveal) ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  /* Safety net: if the scroll-reveal observer never runs (JS error, slow load,
     unsupported browser), this fallback still fades the content in so section
     text can never stay invisible. Cancelled below once revealed normally. */
  animation: srRevealSafety 0.6s ease-out 1.2s forwards;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes srRevealSafety {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Image Overlays ---- */
.image-overlay-bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
}

.image-overlay-full {
  background: linear-gradient(
    to right,
    rgba(26, 86, 190, 0.85) 0%,
    rgba(26, 86, 190, 0.4) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

/* ============================================================
   Utility Classes
   ============================================================ */

/* ---- Section Padding ---- */
.section-padding {
  padding: 4rem 0;
}

.section-padding-lg {
  padding: 6rem 0;
}

/* ---- Container ---- */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }
}
@media (min-width: 768px) {
  .container-custom {
    padding: 0 2rem;
  }
}
@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }
}

/* ---- Decorative Blobs ---- */
.blob-blue {
  position: absolute;
  width: 18rem;
  height: 18rem;
  background: rgba(26, 86, 190, 0.05);
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
}

.blob-red {
  position: absolute;
  width: 18rem;
  height: 18rem;
  background: rgba(222, 59, 64, 0.05);
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
}

/* ---- Dot Pattern Background ---- */
.dot-pattern {
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.05;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dot-pattern-sm {
  background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.1;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ============================================================
   Layout Components
   ============================================================ */

/* ---- Navbar ---- */
.navbar-topbar {
  color: #fff;
  font-size: 0.875rem;
  transition: all 0.3s;
}
.navbar-topbar.transparent {
  background: transparent;
}
.navbar-topbar.solid {
  background-color: var(--sr-blue);
}

.navbar-main {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.5s;
}
.navbar-main.transparent {
  background: transparent;
}
.navbar-main.solid {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
  transition: all 0.3s;
}
@media (min-width: 1024px) {
  .navbar-logo {
    height: 4rem;
  }
}
.navbar-logo.invert {
  filter: brightness(0) invert(1);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link.transparent-mode {
  color: rgba(255, 255, 255, 0.8);
}
.nav-link.transparent-mode:hover,
.nav-link.transparent-mode.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.nav-link.solid-mode {
  color: #374151;
}
.nav-link.solid-mode:hover,
.nav-link.solid-mode.active {
  color: var(--sr-blue);
  background: rgba(26, 86, 190, 0.05);
}

.nav-link-indicator {
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  border-radius: 9999px;
}
.nav-link-indicator.transparent-mode {
  background: #fff;
}
.nav-link-indicator.solid-mode {
  background: var(--sr-blue);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 600px;
  }
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: background-color 0.2s, color 0.2s;
}
.mobile-nav-link:hover {
  background: #f9fafb;
}
.mobile-nav-link.active {
  background: rgba(26, 86, 190, 0.1);
  color: var(--sr-blue);
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 86, 190, 0.7),
    rgba(19, 71, 160, 0.5),
    transparent
  );
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--sr-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--sr-blue-dark);
}

.btn-red {
  background: var(--sr-red);
  color: #fff;
}
.btn-red:hover {
  background: var(--sr-red-dark);
}

.btn-white {
  background: #fff;
  color: var(--sr-blue-dark);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-gradient-blue {
  background: linear-gradient(to right, var(--sr-blue), var(--sr-blue-dark));
  color: #fff;
}
.btn-gradient-blue:hover {
  background: linear-gradient(to right, var(--sr-blue-dark), var(--sr-blue));
}

.btn-sm {
  padding: 0.375rem 1.25rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ---- Badge / Pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.badge-blue {
  background: rgba(26, 86, 190, 0.1);
  color: var(--sr-blue);
}

.badge-red {
  background: rgba(222, 59, 64, 0.1);
  color: var(--sr-red);
}

.badge-white {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ---- Page Hero Banners ---- */
.page-hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .page-hero {
    padding: 7rem 0;
  }
}
.page-hero-blue {
  background: linear-gradient(to bottom right, var(--sr-blue-dark), var(--sr-blue), var(--sr-blue-light));
}
.page-hero-image {
  position: absolute;
  inset: 0;
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(19, 71, 160, 0.9), rgba(26, 86, 190, 0.8), rgba(222, 59, 64, 0.6));
}

/* ---- Card ---- */
.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.card:hover .card-image img {
  transform: scale(1.1);
}
.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), transparent);
}

.card-body {
  padding: 1.5rem;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-image-wrapper {
  max-width: 64rem;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.lightbox-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  z-index: 10;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #fff;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  z-index: 10;
  transition: color 0.2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
}
.lightbox-caption h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.lightbox-caption p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(0, 0, 0, 0.5);
}
.gallery-item-content {
  padding: 1rem;
  width: 100%;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.3s;
}
.gallery-item:hover .gallery-item-content {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item-content h3 {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}
.gallery-item-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

/* ---- Event Tabs ---- */
.tab-switcher {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 1rem;
  padding: 0.375rem;
  gap: 0.25rem;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
  color: #4b5563;
  border: none;
  background: transparent;
  cursor: pointer;
}
.tab-btn:hover {
  color: #111827;
  background: #fff;
}
.tab-btn.active-upcoming {
  background: var(--sr-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 86, 190, 0.3);
}
.tab-btn.active-past {
  background: var(--sr-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(222, 59, 64, 0.3);
}

/* ---- Filter Pills ---- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  background: #f3f4f6;
  color: #4b5563;
}
.filter-pill:hover {
  background: #e5e7eb;
}
.filter-pill.active {
  background: var(--sr-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 86, 190, 0.3);
}

/* ---- Search Input ---- */
.search-input-wrapper {
  position: relative;
  width: 100%;
}
@media (min-width: 640px) {
  .search-input-wrapper {
    width: 20rem;
  }
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}
.search-input-wrapper input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.search-input-wrapper input:focus {
  border-color: var(--sr-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 190, 0.15);
}

/* ---- Form Inputs ---- */
.form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-input:focus {
  border-color: var(--sr-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 190, 0.15);
}

.form-input-with-icon {
  position: relative;
}
.form-input-with-icon .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}
.form-input-with-icon input,
.form-input-with-icon select {
  padding-left: 2.5rem;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
}

.form-textarea {
  resize: none;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}
.form-label .required {
  color: var(--sr-red);
}

/* ---- Success Message ---- */
.form-success {
  text-align: center;
  padding: 2rem 0;
  animation: fadeInUp 0.4s ease-out;
}
.form-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  color: var(--sr-blue);
}
.form-success h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}
.form-success p {
  color: #4b5563;
  font-size: 0.875rem;
}

/* ---- Grid Helpers ---- */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Stats Grid ---- */
.stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
}
.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 1024px) {
  .stat-value {
    font-size: 3rem;
  }
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ---- Back to Top ---- */
.back-to-top {
  background: var(--sr-blue);
  color: #fff;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.back-to-top:hover {
  background: var(--sr-blue-dark);
  transform: scale(1.1);
}

/* ---- Line Clamp ---- */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* ---- Event Status Badges ---- */
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #22c55e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.status-live .dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #fff;
  border-radius: 9999px;
}

.status-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--sr-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.status-completed {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #374151;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

/* ---- Footer ---- */
.footer {
  background: #111827;
  color: #9ca3af;
  position: relative;
}
.footer a {
  color: #9ca3af;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--sr-blue-light);
}

/* ---- Responsive Utilities ----
   Tailwind CDN handles all responsive utility classes (hidden, lg:flex, etc.)
   Redefining .hidden { display:none !important } here breaks responsive
   patterns like "hidden lg:flex" — so we leave these to Tailwind.
   ---- */

/* ---- No-Results Message ---- */
.no-results {
  text-align: center;
  padding: 4rem 0;
}
.no-results-icon {
  width: 3rem;
  height: 3rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
}
.no-results h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.no-results p {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ============================================================
   Programs & Events Page Additions
   ============================================================ */

/* ---- Navbar Scroll Effect (programs, events pages) ---- */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* ---- LIVE Pulse Animation ---- */
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.live-pulse {
  animation: livePulse 1.5s ease-in-out infinite;
}

/* ---- Floating Hero Shapes ---- */
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-5deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-shape-1 { animation: float1 6s ease-in-out infinite; }
.float-shape-2 { animation: float2 5s ease-in-out infinite; }
.float-shape-3 { animation: float3 7s ease-in-out infinite; }

/* ---- Dot Pattern Large ---- */
.dot-pattern-lg {
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.05;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---- Filter Button Transition ---- */
.filter-btn {
  transition: all 0.2s ease;
}

/* ---- Course / Event Card Hidden State ---- */
.course-card.hidden,
.event-card.hidden {
  display: none !important;
}

/* ---- Scroll Bounce Animation ---- */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-scroll-bounce {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ---- Float Subtle Animation ---- */
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float-subtle {
  animation: floatSubtle 4s ease-in-out infinite;
}

/* ---- Live Pulse (for index page badge) ---- */
@keyframes livePulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}
.animate-live-pulse {
  animation: livePulseBadge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
   Header & Footer Enhancements — Motion Animations
   ============================================================ */

/* Top bar slide down */
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-down {
  animation: slideDownFade 0.5s ease-out both;
}

/* Navbar scroll shadow enhancement */
/* ============================================================
   Header — navbar stays pinned at the top while scrolling.
   The navbar itself is sticky (set in the HTML via `sticky top-0`),
   so the contact bar scrolls away first, then the nav pins.
   ============================================================ */
html {
  scroll-padding-top: 88px; /* keep anchor targets clear of the pinned nav */
}
#navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
/* On mobile the top contact bar is hidden, so pin just the navbar. */
@media (max-width: 767px) {
  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  body {
    padding-top: 64px; /* height of the mobile navbar (h-16) */
  }
}
#navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10) !important;
  border-bottom-color: transparent !important;
}

/* Nav link hover underline animation */
.nav-item .absolute {
  transition: height 0.25s ease, opacity 0.25s ease;
}

/* Button hover lift */
.btn-primary {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Mobile menu slide-down animation */
#mobile-menu {
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}
#mobile-menu:not(.hidden) {
  max-height: 600px;
  opacity: 1;
}

/* Back to top button */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  bottom: 92px; /* stack above floating WhatsApp button */
}
@media (max-width: 640px) {
  #back-to-top { bottom: 82px; }
}
#back-to-top.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Footer link hover indent */
footer a {
  transition: padding-left 0.2s ease, color 0.2s ease;
}

/* Social icon lift on hover */
footer .flex a {
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
footer .flex a:hover {
  transform: translateY(-2px);
}

/* ============================================================
   Floating WhatsApp Contact Button
   ============================================================ */
#sr-whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: sr-wa-pulse 2.4s ease-in-out infinite;
}
#sr-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
}
@keyframes sr-wa-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45); }
  50%      { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}
@media (max-width: 640px) {
  #sr-whatsapp-float { right: 16px; bottom: 18px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  #sr-whatsapp-float { animation: none; }
}
