/* Risefront Initiative - Bootstrap 5 Custom Styles */
/* Design: Modern Social Impact */
/* Color Palette: Deep Teal (#0D7377), Warm Coral (#FF6B6B), Golden Yellow (#FFD93D) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@700&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables for Design System */
:root {
  --primary-color: #0D7377;
  --coral-color: #FF6B6B;
  --yellow-color: #FFD93D;
  --dark-text: #1A2332;
  --light-bg: #F8FAFB;
  --border-color: #E5E7EB;
  --muted-text: #6B7280;
  
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
}

/* Bootstrap Override */
:root {
  --bs-primary: #0D7377;
  --bs-secondary: #FFD93D;
  --bs-danger: #DC2626;
  --bs-light: #F8FAFB;
  --bs-body-color: #1A2332;
  --bs-body-bg: #FFFFFF;
  --bs-border-color: #E5E7EB;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark-text);
}

.section-title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--primary-color);
}

/* Navigation Styles */
.navbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--dark-text) !important;
}

.navbar-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #0D7377 0%, #06A77D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-link {
  color: var(--dark-text) !important;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.05) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 217, 61, 0.05) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(13, 115, 119, 0.1);
  border-radius: 9999px;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.hero-title .highlight {
  color: var(--primary-color);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

/* Decorative Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(3rem);
  opacity: 0.2;
  animation: pulse 4s ease-in-out infinite;
}

.blob-yellow {
  width: 18rem;
  height: 18rem;
  background-color: var(--yellow-color);
  top: 2.5rem;
  right: 2.5rem;
}

.blob-teal {
  width: 18rem;
  height: 18rem;
  background-color: var(--primary-color);
  bottom: 0;
  left: 2.5rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.3;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #065F63;
  border-color: #065F63;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(13, 115, 119, 0.2);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: rgba(13, 115, 119, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-coral {
  background-color: var(--coral-color);
  border-color: var(--coral-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-coral:hover {
  background-color: #E55555;
  border-color: #E55555;
  color: white;
  transform: translateY(-2px);
}

/* Mission Section */
.mission-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

.mission-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.mission-description {
  font-size: 1.125rem;
  color: var(--muted-text);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-number.primary {
  color: var(--primary-color);
}

.stat-number.coral {
  color: var(--coral-color);
}

.stat-number.yellow {
  color: var(--yellow-color);
}

.stat-label {
  color: var(--muted-text);
  font-size: 0.875rem;
}

/* Objectives Section */
.objectives-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, rgba(248, 250, 251, 0.5), #FFFFFF);
}

.objectives-header {
  text-align: center;
  margin-bottom: 4rem;
}

.objectives-description {
  font-size: 1.125rem;
  color: var(--muted-text);
  max-width: 32rem;
  margin: 1rem auto 0;
}

.objective-card {
  padding: 1.5rem;
  border: 2px solid;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--card-from), var(--card-to));
  height: 100%;
}

.objective-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.objective-icon {
  width: 3rem;
  height: 3rem;
  background-color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.objective-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
}

.objective-title {
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-size: 1rem;
}

.objective-description {
  font-size: 0.875rem;
  color: var(--dark-text);
  line-height: 1.5;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Objective Card Color Variants */
.objective-card.teal {
  --card-from: rgba(13, 115, 119, 0.05);
  --card-to: rgba(13, 115, 119, 0.08);
  border-color: rgba(13, 115, 119, 0.2);
}

.objective-card.blue {
  --card-from: rgba(59, 130, 246, 0.05);
  --card-to: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.objective-card.yellow {
  --card-from: rgba(255, 217, 61, 0.1);
  --card-to: rgba(255, 217, 61, 0.15);
  border-color: rgba(255, 217, 61, 0.3);
}

.objective-card.green {
  --card-from: rgba(34, 197, 94, 0.05);
  --card-to: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.objective-card.orange {
  --card-from: rgba(251, 146, 60, 0.05);
  --card-to: rgba(251, 146, 60, 0.08);
  border-color: rgba(251, 146, 60, 0.2);
}

.objective-card.purple {
  --card-from: rgba(168, 85, 247, 0.05);
  --card-to: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
}

.objective-card.indigo {
  --card-from: rgba(99, 102, 241, 0.05);
  --card-to: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.objective-card.rose {
  --card-from: rgba(244, 63, 94, 0.05);
  --card-to: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
}

.objective-card.emerald {
  --card-from: rgba(16, 185, 129, 0.05);
  --card-to: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Programs Section */
.programs-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

.programs-header {
  text-align: center;
  margin-bottom: 4rem;
}

.program-card {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.program-image-container {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.program-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.program-card:hover .program-image {
  transform: scale(1.1);
}

.program-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.program-content {
  padding: 1.5rem;
  background-color: #FFFFFF;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.program-description {
  color: var(--muted-text);
  line-height: 1.6;
  flex-grow: 1;
}

.program-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: gap 0.3s ease;
  text-decoration: none;
}

.program-link:hover {
  gap: 0.75rem;
}

/* Impact Section */
.impact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #06A77D 100%);
  color: white;
  padding: 5rem 0;
}

.impact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.impact-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.impact-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.impact-item {
  text-align: center;
}

.impact-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.impact-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #FFFFFF, rgba(248, 250, 251, 0.5));
}

.cta-card {
  background-color: #FFFFFF;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--yellow-color);
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Footer */
.footer {
  background-color: #111827;
  color: #D1D5DB;
  padding: 3rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-brand-name {
  font-weight: 700;
  color: white;
}

.footer-description {
  font-size: 0.875rem;
  color: #9CA3AF;
}

.footer-section-title {
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-link {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-divider {
  border-color: #374151;
  margin: 2rem 0;
}

.footer-copyright {
  text-align: center;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .impact-number {
    font-size: 2rem;
  }

  .cta-card {
    padding: 2rem;
  }

  .objective-card {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-coral {
  color: var(--coral-color) !important;
}

.text-yellow {
  color: var(--yellow-color) !important;
}

.bg-light-teal {
  background-color: rgba(13, 115, 119, 0.05) !important;
}

.transition-all {
  transition: all 0.3s ease;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}
