@import url('tokens.css');
/* --primary-color: #2b4b8c;
--primary-light: #4b6ba8;
--primary-lighter: #8ca1c7;
--primary-dark: #1C3F60;
--primary-darker: #0c1f45s;

--secondary-color: #288c2b;
--secondary-light: #45a848;
--secondary-lighter: #26DF20;
--secondary-dark: #166919;
--secondary-darker: #0a450c;

--bg-color: #f5f4eb; */

/* Hero and Banner Sections */
.hero-section {
  background-color: var(--bg-color);
}
.hero-section-news {
  background-color: var(--secondary-lighter);
}

.announcement-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 0;
}

/* Navigation */
.navbar-custom {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  color: var(--primary-color) !important;
}

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

.nav-link:hover {
  color: var(--primary-darker) !important;
  border-bottom: 2px solid var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-link:hover {
  background-color: var(--primary-lighter) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Buttons and Links */
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

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

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

/* Statistics Cards */
.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border: 1px solid var(--primary-color);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 98, 65, 0.95);
  z-index: 1000;
  display: none;
}

.search-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Donor Section */
.donor-avatars {
  display: flex;
  align-items: center;
}

.donor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  background-color: var(--primary-lighter);
}
/* Donor section */
.donation-header {
  background-color: var(--primary-dark);
}
.form-check-input {
  display: none;
}
.form-check-label {
  display: block;
  text-align: center;
  padding: 0.75rem;
  margin: 0.3rem 0;
  border: 1px solid var(--primary-dark);
  border-radius: 0.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.form-check-input:checked + .form-check-label {
  background-color: var(--primary-color);
  color: white;
}
.payment-method {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 10px; /* Add padding to ensure consistency */
}

/* Center and scale the images */
.payment-method img {
  max-width: 80%;
  max-height: 50px;
}
/* .payment-method img {
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
} */
.payment-message {
  display: none;
}
.payment-details {
  display: none;
}

/* Newsletter and Social Proof */
.newsletter-form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary-lighter);
}

.social-proof {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  border: 1px solid var(--primary-lighter);
}


/* Featured Causes */
.featured-cause {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.progress {
  height: 8px;
  background-color: var(--primary-lighter);
}

.progress-bar {
  background-color: var(--primary-color);
}

/* Events Section */
.upcoming-events {
  background-color: var(--bg-color);
  padding: 60px 0;
}

.event-card {
  border: 1px solid var(--primary-lighter);
  border-radius: 8px;
  transition: transform 0.3s ease;
  height: 100%;
  background: #fff;
}

.event-card:hover {
  transform: translateY(-5px);
}

/* Testimonials */
.testimonial-section {
  background-color: #fff;
  padding: 60px 0;
}

.testimonial-card {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary-color);
}

/* Quick Actions and Floating Donate */
.quick-actions {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
}

.action-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.action-button:hover {
  transform: scale(1.1);
  background: var(--primary-color);
  color: white;
}

.floating-donate {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
}

/* Contact and Map Section */
.address-contact{
  background: var(--bg-color);
  padding: 60px 0;
}
.address-contact .ratio-16x9 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  border: 2px solid var(--primary-color);
}
.contact-info-card {
  background: linear-gradient(to bottom right, #fff, #eee);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-header {
  color: var(--primary-color);
  border-bottom: 0.2rem solid var(--primary-dark);
}

.contact-info-item {
  transition: background-color 0.3s ease;
}

.contact-info-item:hover {
  background-color: rgba(43, 75, 140, 0.05);
}

.contact-info-label {
  font-weight: 600;
  color: var(--primary-dark);
  min-width: 80px;
}

.contact-info-value {
  color: var(--primary-darker);
}

@media (max-width: 768px) {
  .contact-info-card {
    margin-top: 2rem;
  }
}

/* Footer Styles */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 70px 0 20px;
}

.footer-title, .contact-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary-lighter);
  width: fit-content;
}
.contact-title{
border-bottom: 2px solid var(--primary-light);
}
.footer-header,
.follow {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-lighter);
  width: fit-content;
  margin-bottom: 20px; 
}
.footer-header{
  margin-right: auto; 
}
.follow {
  margin-left: auto;
  margin-right: auto; 
  text-align: center; 
}

@media (max-width: 768px) {
  .footer-header {
    margin-left: auto;
    margin-right: auto; 
    text-align: center;
  }
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-light);
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-link {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #fff;
  color: var(--secondary-light);
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid var(--primary-lighter);
  margin-top: 12px;
  padding-top: 12px;
  text-align: center;
}

.newsletter-footer {
  background-color: var(--bg-color);
  border: 1px solid var(--primary-lighter);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

/* About Page Specific Styles */
.about-hero {
  background-color: var(--bg-color);
  padding: 50px 0 50px;
}

.mission-section {
  background-color: white;
  padding: 80px 0;
}

.team-member-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
}

.team-member-card:hover {
  transform: translateY(-5px);
}

.value-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  border: 1px solid var(--primary-lighter);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.awards-section {
  background-color: var(--bg-color);
  padding: 60px 0;
}

.award-badge {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Icons */
.fa-heart,
.fa-users,
.fa-calendar,
.fa-star {
  color: var(--primary-color) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

  .floating-donate {
    display: block;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .event-card {
    margin-bottom: 20px;
  }

  .mobile-stack {
    flex-direction: column;
  }

  .mobile-stack > * {
    width: 100%;
    margin-bottom: 10px;
  }

  .mobile-scroll-x {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
  }

  .mobile-scroll-x::-webkit-scrollbar {
    height: 4px;
  }

  .mobile-scroll-x::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }

  .mobile-scroll-x .col-md-4 {
    display: inline-block;
    float: none;
    width: 80%;
    white-space: normal;
  }

  .footer {
    padding: 40px 0 90px;
  }

  .footer-section {
    margin-bottom: 30px;
  }

  .newsletter-footer {
    margin-bottom: 20px;
  }
}
/* News Page Specific Styles */
img.alignleft {
  float: left;
  margin-right: 15px;
  /* Space between image and text */
  margin-bottom: 10px;
  /* Space below image */
  max-width: 100%;
  /* Ensure images are responsive */
  height: auto;
  /* Maintain aspect ratio */
}

img.alignright {
  float: right;
  margin-left: 15px;
  /* Space between image and text */
  margin-bottom: 10px;
  /* Space below image */
  max-width: 100%;
  /* Ensure images are responsive */
  height: auto;
  /* Maintain aspect ratio */
}

img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
}

/* timeline section */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #ddd;
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}
.timeline-content {
  width: 45%;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 5px;
  position: relative;
}
.timeline-content.left {
  left: 0;
}
.timeline-content.right {
  left: 55%;
}
.timeline-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}
.icon {
  font-size: 2rem; /* Adjust as needed */
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

@media (min-width: 992px) {
  .timeline {
    max-width: 70%;
  }
}