* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0); }
}

.pulse-donate {
  animation: pulse-glow 2s infinite;
}

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

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-left { animation: slideInLeft 0.6s ease-out forwards; }
.slide-in-right { animation: slideInRight 0.6s ease-out forwards; }

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

.count-up-anim {
  animation: countUp 0.5s ease-out forwards;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-scroll {
  animation: marquee 20s linear infinite;
}

.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-bg {
  background: linear-gradient(135deg, rgba(0, 43, 94, 0.85) 0%, rgba(0, 87, 183, 0.6) 40%, rgba(0, 87, 183, 0.3) 100%);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 87, 183, 0.15);
}

.tab-active {
  border-bottom: 3px solid #0057B7;
  color: #0057B7;
  font-weight: 700;
}

.pill-selected {
  background-color: #0057B7;
  color: white;
}

.pill-unselected {
  background-color: #F5F5F5;
  color: #374151;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #0057B7, #FFD700);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
}

.donor-ticker {
  overflow: hidden;
}

.testimonial-slide {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0057B7;
  box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.15);
}

.modal-overlay {
  background: rgba(0, 43, 94, 0.6);
  backdrop-filter: blur(4px);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  background: #0057B7;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #003F8A;
}

/* Hero carousel */
.hero-slide {
  transition: opacity 0.8s ease-in-out;
}

/* Carousel dots */
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background-color: #FFD700;
  transform: scale(1.2);
}
.carousel-dot.inactive {
  background-color: rgba(255,255,255,0.5);
}

/* Hero arrow buttons */
.hero-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
}

/* Values icon section */
.value-icon-card {
  text-align: center;
  padding: 24px 16px;
  transition: transform 0.3s ease;
}
.value-icon-card:hover {
  transform: translateY(-4px);
}
.value-icon-svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
}

/* Impact stats dark band */
.impact-band {
  background: linear-gradient(135deg, #002B5E 0%, #003F8A 50%, #0057B7 100%);
}

/* Featured story */
.featured-story-bg {
  background: #F5F5F5;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0057B7 0%, #003F8A 100%);
}

/* Footer */
.footer-main {
  background: #1a1a2e;
}
.footer-bottom {
  background: #12121f;
}

/* Sunflower divider */
.sunflower-divider {
  background: repeating-linear-gradient(
    90deg,
    #FFD700 0px,
    #FFD700 20px,
    #0057B7 20px,
    #0057B7 40px
  );
  height: 4px;
  opacity: 0.6;
}

/* ==================== HUGSPACE STYLES ==================== */

/* Hugspace nav pill */
.hugspace-nav-pill {
  background: linear-gradient(135deg, #FFF8E7, #FFE8D6);
  color: #5BA4B5;
  border: 1.5px solid #FFE8D6;
  transition: all 0.3s ease;
}
.hugspace-nav-pill:hover {
  background: linear-gradient(135deg, #FFE8D6, #FFF3D0);
  box-shadow: 0 2px 8px rgba(91, 164, 181, 0.2);
}
.hugspace-nav-pill-active {
  background: linear-gradient(135deg, #5BA4B5, #4A97A8);
  color: white;
  border-color: #5BA4B5;
}

/* Hugspace mobile nav */
.hugspace-mobile-nav {
  background: linear-gradient(135deg, #FFF8E7, #FFE8D6);
  color: #5BA4B5;
  border: 1px solid #FFE8D6;
}

/* Hugspace home banner */
.hugspace-banner-inner {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF3D0 50%, #FFE8D6 100%);
  border: 2px solid #FFE8D6;
}

/* Hugspace featured story card style */
.hugspace-story-bg {
  background: linear-gradient(180deg, #FFF8E7 0%, #FFF3D0 50%, #FFF8E7 100%);
}

.hugspace-story-panel {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE8D6 50%, #FFF3D0 100%);
}

/* Hugspace CTA button */
.hugspace-cta-btn {
  background: linear-gradient(135deg, #5BA4B5, #4A97A8);
  color: white;
}
.hugspace-cta-btn:hover {
  background: linear-gradient(135deg, #4A97A8, #3A8798);
  transform: translateY(-1px);
}

/* Hugspace section background */
.hugspace-section-bg {
  background: linear-gradient(180deg, #FFF8E7 0%, #FFF3D0 40%, #FFF8E7 100%);
  position: relative;
}
.hugspace-section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFE8D6, #5BA4B5, #FFE8D6);
}

/* Hugspace What block */
.hugspace-what-block {
  background: white;
  border: 2px solid #FFE8D6;
  box-shadow: 0 4px 20px rgba(91, 164, 181, 0.08);
}

/* Hugspace feature cards */
.hugspace-feature-card {
  background: white;
  border: 1.5px solid #FFE8D6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(91, 164, 181, 0.06);
}
.hugspace-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(91, 164, 181, 0.15);
  border-color: #5BA4B5;
}

/* Hugspace Hero CTA */
.hugspace-hero-cta {
  background: linear-gradient(135deg, rgba(91, 164, 181, 0.08) 0%, rgba(255, 232, 214, 0.3) 100%);
  border: 2px solid #FFE8D6;
}

/* Hugspace visit button large */
@keyframes hugspaceGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(91, 164, 181, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(91, 164, 181, 0.5); }
}

.hugspace-visit-btn {
  background: linear-gradient(135deg, #5BA4B5 0%, #4A97A8 100%);
  color: white;
  animation: hugspaceGlow 3s ease-in-out infinite;
}
.hugspace-visit-btn:hover {
  background: linear-gradient(135deg, #4A97A8 0%, #3A8798 100%);
  transform: translateY(-2px);
}

/* Hugspace CTA button large variant */
.hugspace-cta-btn-large {
  background: linear-gradient(135deg, #5BA4B5 0%, #4A97A8 100%);
  color: white;
}
.hugspace-cta-btn-large:hover {
  background: linear-gradient(135deg, #4A97A8 0%, #3A8798 100%);
  transform: translateY(-2px);
}

/* Hugspace testimonial card */
.hugspace-testimonial {
  background: white;
  border: 1.5px solid #FFE8D6;
  box-shadow: 0 4px 16px rgba(91, 164, 181, 0.06);
}

/* Hugspace volunteer card */
.hugspace-volunteer-card {
  background: linear-gradient(135deg, #FFF8E7, #FFE8D6);
  border: 1.5px solid #FFE8D6;
}

/* Hugspace external banner in tab */
.hugspace-external-banner {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF3D0 50%, rgba(91, 164, 181, 0.08) 100%);
  border: 2px solid #FFE8D6;
}

/* Sight of Hope Gallery */
.soh-gallery-item {
  transition: all 0.3s ease;
}
.soh-gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0, 87, 183, 0.2);
}

.soh-lightbox-overlay {
  background: rgba(0, 20, 50, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: sohLightboxFadeIn 0.25s ease-out;
}

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

.soh-lightbox-image {
  animation: sohLightboxZoomIn 0.3s ease-out;
}

@keyframes sohLightboxZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Donate iframe section */
.donate-iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  background: #FAFAFA;
}

@media (max-width: 768px) {
  .donate-iframe {
    min-height: 700px;
    height: 800px !important;
  }
}

/* Donate method cards */
.donate-method-card {
  transition: all 0.3s ease;
}
.donate-method-card:hover {
  transform: translateY(-3px);
}

/* ==================== HUGSPACE PAGE STYLES ==================== */

.hugspace-page-bg {
  background: linear-gradient(180deg, #FFF8E7 0%, #FFF3D0 30%, #FFF8E7 60%, #FFFFFF 100%);
  min-height: 100vh;
}

.hugspace-community-icon {
  width: 40px;
  height: 40px;
}

.hugspace-mission-text {
  font-style: italic;
  color: #3d5a6e;
  position: relative;
}