@import url("base.css");
/* === CSS VARIABLES === */
:root {
  --primary: #1976d2;
  --primary-gradient: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  --light: #f7f9fc;
  --text: #222;
  --muted: #666;
  --radius: 16px;
  --max-width: 1200px;
  --shadow: 0 4px 24px rgba(25, 118, 210, 0.08);
  --space: 1.5rem;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* === GLOBAL LAYOUT === */
.container, .hero-content, .section, .stats-grid, .partners-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* === BUTTONS === */
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  outline: none;
  font-size: 1rem;
  background: none;
}
.btn.primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow);
  border: none;
}
.btn.primary:hover, .btn.primary:focus {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%);
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.15);
}
.btn.outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fff;
}
.btn.outline:hover, .btn.outline:focus {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.btn-link:hover, .btn-link:focus { text-decoration: underline; color: #1565c0; }
.btn:focus {
  outline: 2px solid #42a5f5;
  outline-offset: 2px;
}

/* === FLEX ROWS === */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}
.flex-row .col {
  flex: 1 1 300px;
}

/* === CARDS === */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.card:hover, .card:focus-within {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.12);
}

/* === GRID UTILITIES === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* === SECTION HEADER === */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === LIGHT SECTIONS === */
.section.light {
  background: var(--light);
}

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px); /* exclude nav height */
  margin-top: 0; /* adjust if nav is 70px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 60vh;
  background: var(--primary-gradient);
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.25); /* lighter darkness */
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-tagline {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 1s;
}

.hero-elevator {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s;
}

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

/* === INDICATORS === */
.hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: 2px solid #fff;
}

.hero-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.hero-dot:hover {
  background: #fff;
}
.hero-dot:focus {
  outline: 2px solid #42a5f5;
  outline-offset: 2px;
}

/* === STATS BAR === */
.stats-bar {
  background: var(--light);
  padding: 3rem 1rem;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  background: #fff;
}

.stat .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

/* === ABOUT CARDS === */
.about-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow);
  opacity: 1; /* Make visible by default */
  will-change: transform, box-shadow;
}
.about-card:hover, .about-card:focus-within {
  transform: translateY(-6px) scale(1.04) rotate(-2deg);
  box-shadow: 0 16px 40px rgba(25, 118, 210, 0.18);
  border-color: var(--primary);
  z-index: 2;
}
.about-card:nth-child(even):hover, .about-card:nth-child(even):focus-within {
  transform: translateY(-6px) scale(1.04) rotate(2deg);
}
/* Add a slight stagger effect for multiple cards */
.about-card {
  transition-delay: 0s;
}
.about-card:nth-child(2) { transition-delay: 0.05s; }
.about-card:nth-child(3) { transition-delay: 0.1s; }
.about-card:nth-child(4) { transition-delay: 0.15s; }

.about-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.about-body {
  padding: 1.5rem;
  /* text-align: center; */
}

.about-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Fade-in animation */
.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.about-cta {
  text-align: center;
  margin-top: 2.5rem; /* space above button */
}

.about-cta .btn {
  margin-top: 0.5rem; /* small offset inside if needed */
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === GET INVOLVED GRID === */
.involved-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.involved-card:hover, .involved-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.13);
}

.involved-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.involved-body {
  padding: 1.2rem;
  /* text-align: center; */
}

.involved-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.involved-body p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.involved-body .btn-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.involved-body .btn-link:hover {
  text-decoration: underline;
  color: #0b5ed7;
}

/* === PROGRAMS GRID === */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.program-card:hover, .program-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.13);
}

.program-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.program-body {
  padding: 1.2rem;
}

.program-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.program-blurb {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Responsive: 1 column on mobile, 2 on tablets */
@media (max-width: 992px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

/* === CTA BUTTON (used in Programs & Get Involved) === */
.card-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: var(--shadow);
  border: none;
}
.card-btn:hover, .card-btn:focus {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%);
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.15);
  outline: 2px solid #42a5f5;
  outline-offset: 2px;
}

/* === PARTNERS / LOGO GRIDS === */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  align-items: center;
  padding: 1rem 0;
}

.partner-logo {
  width: 100%;
  max-width: 400px;   /* allow logos to be larger */
  height: auto;
  max-height: 250px;   /* taller space for small logos */
  object-fit: contain;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.85;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.partner-logo:hover {
  filter: grayscale(0%) brightness(0.9);
  opacity: 1;
  transform: scale(1.1); /* bigger zoom effect for small logos */
}
.partner-logo:focus {
  outline: 2px solid #42a5f5;
  outline-offset: 2px;
}

/* Optional clickable wrapper */
.logos-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
  max-width: 220px; /* keep consistency in grid */
}

.logos-grid a:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* === FLUID TYPOGRAPHY & SPACING === */
body {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* === ADDITIONAL RESPONSIVE BREAKPOINTS === */
@media (max-width: 480px) {
  .section {
    padding: 2rem 0;
  }
  .hero-content {
    padding: 0.5rem;
  }
  .stats-bar {
    padding: 2rem 0.5rem;
  }
}

/* === RGB BORDER BUTTON === */
.btn.rgb-border {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--primary);
  border: none;
  box-shadow: none;
  overflow: hidden;
}
.btn.rgb-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(90deg, #ff0057, #fffd44, #00ffae, #00c3ff, #ff0057);
  background-size: 400% 400%;
  animation: rgb-border-move 2.5s linear infinite;
  z-index: -1;
}
.btn.rgb-border:hover, .btn.rgb-border:focus {
  color: #fff;
  background: var(--primary-gradient);
}
.btn.rgb-border:focus {
  outline: 2px solid #42a5f5;
  outline-offset: 2px;
}
@keyframes rgb-border-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
