/* ===== Blood Cancer Foundation skin (non-destructive overrides) ===== */

/* Palette */
:root {
  --bcf-primary: #b3001b;   /* deep blood red */
  --bcf-primary-600: #930017;
  --bcf-dark: #4a0d0f;      /* deep wine */
  --bcf-light: #fff5f6;     /* gentle blush backdrop */
  --bcf-text: #2b2b2b;
}

/* Buttons */
.btn-primary,
.custom-btn.btn,
.navbar .custom-btn {
  background-color: var(--bcf-primary) !important;
  border-color: var(--bcf-primary) !important;
  color: #fff !important;
}
.btn-primary:hover,
.custom-btn.btn:hover,
.navbar .custom-btn:hover {
  background-color: var(--bcf-primary-600) !important;
  border-color: var(--bcf-primary-600) !important;
}

/* Links & accents */
a,
.nav-link:hover,
.footer-menu-link:hover {
  color: var(--bcf-primary) !important;
}

/* Header top bar + footer accents */
.site-header {
  border-bottom: 3px solid var(--bcf-primary);
}
.site-footer .site-footer-title,
.site-footer .custom-btn {
  color: #fff;
  background: var(--bcf-primary);
  border-color: var(--bcf-primary);
}
.site-footer .custom-btn:hover {
  background: var(--bcf-primary-600);
  border-color: var(--bcf-primary-600);
}

/* Soft background sections */
.section-bg {
  background: var(--bcf-light) !important;
}

/* Progress bars (Our Causes) */
.progress-bar { background-color: var(--bcf-primary) !important; }

/* Badges in categories */
.badge { background: var(--bcf-primary) !important; }

/* Navbar brand emphasis */
.navbar-brand span { color: var(--bcf-dark); }
.navbar-brand small { color: var(--bcf-primary); }

/* Hero subtle red overlay for consistency (no image changes needed) */
.hero-section .carousel-item { position: relative; }
.hero-section .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(179,0,27,0.12), rgba(0,0,0,0.15));
  pointer-events: none;
}

/* Icon color nudges */
.bi-heart, .bi-droplet, .bi-geo-alt, .bi-envelope { color: var(--bcf-primary); }

/* =========================
   BRAND / TITLE WRAP
   ========================= */
.text-wrap h3 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--bcf-primary);
  text-align: center;
  word-wrap: break-word;
  line-height: 1.2;
}

/* Hero caption wrapping + readability */
.carousel-caption { bottom: 15%; padding: 0 10px; }
.carousel-caption .text-wrap {
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
  word-wrap: break-word;
}
.carousel-caption .text-wrap h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
/* Responsive hero heading */
.carousel-caption h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #cd0c0c;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
@media (max-width: 768px) { .carousel-caption h3 { font-size: 1.5rem; } }
@media (max-width: 576px) {
  .carousel-caption h3 { font-size: 1.2rem; line-height: 1.3; }
  .carousel-caption { bottom: 10%; }
}

/* Navbar brand block */
.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  white-space: normal;
  text-align: left;
}
.brand-text-wrap small {
  font-size: 0.8rem;
  color: var(--bcf-primary);
  margin-top: 2px;
}
@media (max-width: 576px) {
  .navbar-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .navbar-brand img.logo {
    margin-right: 0 !important;
    margin-bottom: 6px;
    max-height: 40px;
  }
  .brand-text-wrap {
    align-items: center;
    text-align: center;
    line-height: 1.3;
  }
}

/* =========================
   SERVICE CARDS
   ========================= */

/* Neutralize template borders/shadows on the parent wrapper to avoid double edges */
.featured-block,
.featured-block::before,
.featured-block::after {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: transparent !important;
  width: 100%;
}

/* Card itself */
.service-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 22px 20px;
  border: 1px solid rgba(0,0,0,0.08); /* single subtle border at rest */
  border-radius: 16px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  outline: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* Icon */
.service-card .featured-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--bcf-primary);
  transition: transform 200ms ease;
}

/* Text */
.service-card .featured-block-text {
  margin: 0;
  line-height: 1.5;
}

/* Hover/focus: choose ONE visual (kept: border highlight + lift; removed glow ring to avoid double border look) */
.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(179,0,27,0.35);
  box-shadow: 0 12px 28px rgba(179,0,27,0.18);
  animation: bcf-bounce 320ms ease-out;
}
.service-card:hover .featured-icon,
.service-card:focus-visible .featured-icon { transform: scale(1.04); }

/* Stay Informed */
.stay-informed-card { border-radius: 18px; }
.stay-informed-card .input-group-text { background: #fff; }
#stay-informed .btn-primary { background-color: var(--bcf-primary); border-color: var(--bcf-primary); }
#stay-informed .btn-primary:hover { background-color: var(--bcf-primary-600); border-color: var(--bcf-primary-600); }

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: #f8f9fa;
  border-top: 3px solid var(--bcf-primary);
}

.site-footer a {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--bcf-primary);
}

/* Social icons */
.social-link {
  font-size: 1.4rem;
  color: #f8f9fa;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--bcf-primary);
  transform: scale(1.1);
}


/* Contact page */
#contact-page .card { border-radius: 18px; }
#contact-page .social-link { transition: transform .2s ease, color .2s ease; }
#contact-page .social-link:hover { color: var(--bcf-primary); transform: translateY(-2px); }

#events-grid .card { transition: transform .2s ease, box-shadow .2s; }
#events-grid .card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }

/* Simple tag-based filtering (hide) */
.event-card[hidden] { display: none !important; }



@keyframes bcf-bounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-6px); }
  70%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .service-card { max-width: 100%; padding: 18px 16px; border-radius: 14px; }
  .service-card .featured-icon { font-size: 40px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card .featured-icon {
    transition: none !important;
    animation: none !important;
  }
}
