/* IFPB Color Palette */
:root {
  --ifpb-green: #1e7f3e;
  --ifpb-green-dark: #155a2b;
  --ifpb-green-light: #4a9d63;
  --ifpb-white: #ffffff;
  --ifpb-gray: #f8f9fa;
  --ifpb-dark: #2c3e50;
  --text-muted: #6c757d;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  padding-top: 76px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

/* Custom Bootstrap Classes */
.bg-ifpb-green {
  background-color: var(--ifpb-green) !important;
}

.btn-ifpb-green {
  background-color: var(--ifpb-green);
  border-color: var(--ifpb-green);
  color: white;
}

.btn-ifpb-green:hover {
  background-color: var(--ifpb-green-dark);
  border-color: var(--ifpb-green-dark);
  color: white;
}

.text-ifpb-green {
  color: var(--ifpb-green) !important;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  z-index: 1050;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255,255,255,0.8) !important;
}

/* Banner Slider */
.banner-slider {
  position: relative;
  margin-top: 0;
  z-index: 1;
}

.banner-slider .carousel {
  max-height: 500px;
  overflow: hidden;
}

.banner-slider .carousel-item {
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.banner-slider .carousel-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.banner-slider .carousel-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(30, 127, 62, 0.9);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
}

.banner-slider .carousel-caption h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-slider .carousel-caption p {
  font-size: 1.1rem;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.banner-slider .carousel-control-prev:hover,
.banner-slider .carousel-control-next:hover {
  opacity: 1;
}

.banner-slider .carousel-control-prev-icon,
.banner-slider .carousel-control-next-icon {
  background-color: rgba(30, 127, 62, 0.8);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

.banner-slider .carousel-indicators {
  bottom: 1rem;
}

.banner-slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  opacity: 0.7;
}

.banner-slider .carousel-indicators button.active {
  background-color: var(--ifpb-green);
  opacity: 1;
}

/* Hero Section */
.hero-section {
  min-height: 50vh;
  background: linear-gradient(135deg, var(--ifpb-green) 0%, var(--ifpb-green-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  /* overflow: hidden; */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="0" cy="0" r="1"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><g><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></g></svg>') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 127, 62, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Animations */
.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ifpb-dark);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--ifpb-green), var(--ifpb-green-light));
  border-radius: 2px;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 127, 62, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ifpb-green), var(--ifpb-green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  color: var(--ifpb-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Activity Cards */
.activity-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--ifpb-green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.activity-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.activity-card-featured {
  background: linear-gradient(135deg, var(--ifpb-green), var(--ifpb-green-light));
  color: white;
  border-left: 4px solid white;
}

.activity-icon {
  width: 60px;
  height: 60px;
  background: var(--ifpb-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.activity-card-featured .activity-icon {
  background: white;
  color: var(--ifpb-green);
}

.activity-content h4 {
  color: var(--ifpb-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.activity-card-featured .activity-content h4 {
  color: white;
}

.activity-content p {
  margin: 0;
  color: var(--text-muted);
}

.activity-card-featured .activity-content p {
  color: rgba(255,255,255,0.9);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--ifpb-green), var(--ifpb-green-light));
  top: 0;
  bottom: 0;
  left: 30px;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 18px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--ifpb-green);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(30, 127, 62, 0.2);
}

.timeline-marker-event {
  background: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2);
}

.timeline-content {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--ifpb-green);
}

.timeline-content h5 {
  color: var(--ifpb-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-date {
  color: var(--ifpb-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Partner Cards */
.partner-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 127, 62, 0.1);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.partner-logo {
  width: 60px;
  height: 60px;
  background: var(--ifpb-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: white;
}

.partner-card h6 {
  color: var(--ifpb-dark);
  font-weight: 600;
  margin: 0;
}

.partnership-cta {
  background: var(--ifpb-gray);
  padding: 2.5rem;
  border-radius: 15px;
  border: 2px dashed var(--ifpb-green);
}

.partnership-cta h4 {
  color: var(--ifpb-dark);
  margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.contact-info h5 {
  color: white;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Social Links */
.social-links a {
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 66px;
  }
  
  .banner-slider .carousel {
    max-height: 300px;
  }
  
  .banner-slider .carousel-item {
    height: 300px;
  }
  
  .banner-slider .carousel-caption {
    bottom: 1rem;
    padding: 1rem;
    max-width: 95%;
  }
  
  .banner-slider .carousel-caption h3 {
    font-size: 1.4rem;
  }
  
  .banner-slider .carousel-caption p {
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .activity-card {
    flex-direction: column;
    text-align: center;
  }
  
  .activity-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 8px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .banner-slider .carousel {
    max-height: 250px;
  }
  
  .banner-slider .carousel-item {
    height: 250px;
  }
  
  .banner-slider .carousel-caption {
    bottom: 0.5rem;
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  .banner-slider .carousel-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  
  .banner-slider .carousel-caption p {
    font-size: 0.8rem;
    margin: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .feature-card,
  .activity-card,
  .timeline-content {
    padding: 1.5rem;
  }
  
  .partnership-cta {
    padding: 2rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
