/* ================================================
   Little Angels Research Fund — Custom Styles
   ================================================ */

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

:root {
  --la-pink:          #d63384;
  --la-pink-dark:     #b5276e;
  --la-pink-light:    #f8d7ea;
  --la-purple:        #6f42c1;
  --la-purple-dark:   #5a34a0;
  --la-purple-light:  #e9e3f8;
  --la-light-bg:      #fdf4ff;
  --la-dark:          #1a0a2e;
  --la-text:          #333344;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--la-text);
}

/* ============================
   Utility
   ============================ */
.fw-700  { font-weight: 700; }
.fw-800  { font-weight: 800; }
.text-la-pink   { color: var(--la-pink); }
.text-la-purple { color: var(--la-purple); }
.bg-la-light    { background-color: var(--la-light-bg); }
.py-section     { padding-top: 5rem; padding-bottom: 5rem; }

.img-ph {
  background: linear-gradient(135deg, var(--la-purple-light) 0%, var(--la-pink-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--la-purple);
}

/* ============================
   Navbar
   ============================ */
.la-navbar {
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
  background: white !important;
}

.la-navbar .brand-main {
  font-weight: 700;
  color: var(--la-purple);
  font-size: 1.1rem;
  line-height: 1.2;
}

.la-navbar .brand-sub {
  color: var(--la-pink);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.la-navbar .nav-link {
  color: #444 !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.la-navbar .nav-link:hover,
.la-navbar .nav-link.active {
  color: var(--la-pink) !important;
}

.la-navbar .dropdown-item:hover {
  color: var(--la-pink);
  background-color: var(--la-light-bg);
}

/* ============================
   Buttons
   ============================ */
.btn-la-primary {
  background-color: var(--la-pink);
  border-color: var(--la-pink);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s;
}

.btn-la-primary:hover {
  background-color: var(--la-pink-dark);
  border-color: var(--la-pink-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(214,51,132,0.35);
}

.btn-la-secondary {
  background-color: var(--la-purple);
  border-color: var(--la-purple);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s;
}

.btn-la-secondary:hover {
  background-color: var(--la-purple-dark);
  border-color: var(--la-purple-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(111,66,193,0.35);
}

.btn-outline-la-primary {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s;
}

.btn-outline-la-primary:hover {
  background-color: white;
  color: var(--la-pink);
  transform: translateY(-1px);
}

/* ============================
   Hero
   ============================ */
.hero-video-wrap {
  position: relative;
  min-height: 100vh;
  background: var(--la-dark); /* fallback while video loads */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background video */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Gradient overlay on top of video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,10,46,0.72) 0%, rgba(45,27,105,0.65) 55%, rgba(111,66,193,0.4) 100%);
  z-index: 1;
}

/* Subtle dot texture on top of overlay */
.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(214,51,132,0.2);
  border: 1px solid rgba(214,51,132,0.4);
  color: #f8d7ea;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: white;
}

.hero-title .highlight { color: #f8d7ea; }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  max-width: 540px;
}

.play-btn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.play-btn-wrap:hover .play-btn-circle {
  background: rgba(255,255,255,0.28);
  border-color: white;
  transform: scale(1.08);
}

.hero-video-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  aspect-ratio: 16/9;
  background: #0a0520;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-video-frame .video-label {
  text-align: center;
  color: rgba(255,255,255,0.55);
}

.hero-video-frame .video-label i {
  font-size: 3.5rem;
  color: rgba(214,51,132,0.65);
  display: block;
  margin-bottom: 0.75rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  text-align: center;
  animation: bounce 2.5s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================
   Stats Bar
   ============================ */
.stats-bar {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid #f0e8fd;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--la-pink);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================
   Section Headings
   ============================ */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--la-pink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--la-dark);
  line-height: 1.25;
}

.section-title .accent { color: var(--la-pink); }

.section-subtitle {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
}

.la-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(to right, var(--la-purple), var(--la-pink));
  border-radius: 2px;
  margin: 0.9rem 0 1.5rem;
}

.la-divider.centered { margin: 0.9rem auto 1.5rem; }

/* ============================
   Research Area Cards
   ============================ */
.research-area-card {
  border: none;
  border-radius: 16px;
  padding: 2rem;
  background: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: all 0.3s;
  height: 100%;
  border-bottom: 4px solid transparent;
}

.research-area-card:hover {
  border-bottom-color: var(--la-pink);
  box-shadow: 0 8px 30px rgba(214,51,132,0.12);
  transform: translateY(-4px);
}

.research-area-card .icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--la-purple-light), var(--la-pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--la-purple);
  margin-bottom: 1.25rem;
}

/* ============================
   CTA Banner
   ============================ */
.cta-banner {
  background: linear-gradient(135deg, var(--la-purple) 0%, var(--la-pink) 100%);
  padding: 5.5rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* ============================
   News Cards
   ============================ */
.news-card {
  border: none !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: all 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-img-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--la-purple-light), var(--la-pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--la-purple);
}

.news-meta { font-size: 0.78rem; color: #aaa; }

.news-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--la-pink);
  background: var(--la-pink-light);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

/* ============================
   Newsletter
   ============================ */
.newsletter-section {
  background-color: var(--la-light-bg);
}

.newsletter-section .form-control {
  border: 2px solid var(--la-purple-light);
}

.newsletter-section .form-control:focus {
  border-color: var(--la-pink);
  box-shadow: 0 0 0 0.2rem rgba(214,51,132,0.12);
}

/* ============================
   Page Hero (inner pages)
   ============================ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  background-color: var(--la-dark);
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,10,46,0.50) 0%, rgba(111,66,193,0.50) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.la-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.la-breadcrumb .breadcrumb-item a:hover { color: white; }
.la-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.9); font-size: 0.85rem; }
.la-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============================
   Team Cards
   ============================ */
.team-card {
  text-align: center;
  border: none !important;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.3s;
  height: 100%;
}

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

.team-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--la-purple-light), var(--la-pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.75rem;
  color: var(--la-purple);
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(111,66,193,0.18);
}

.team-name { font-weight: 700; font-size: 1rem; color: var(--la-dark); }
.team-role { font-size: 0.82rem; color: var(--la-pink); font-weight: 500; }

/* ============================
   Timeline (About page)
   ============================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.7rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--la-purple), var(--la-pink));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.83rem;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--la-pink);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--la-pink);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--la-pink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.timeline-content {
  background: white;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ============================
   How to Help — Way Cards
   ============================ */
.way-card {
  border: none !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  height: 100%;
}

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

.way-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--la-purple), var(--la-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
}

/* ============================
   Donate Amount Buttons
   ============================ */
.amount-btn {
  border: 2px solid var(--la-pink);
  background: white;
  color: var(--la-pink);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
}

.amount-btn:hover,
.amount-btn.selected {
  background: var(--la-pink);
  color: white;
}

/* ============================
   Funding Progress Bars
   ============================ */
.funding-progress .progress {
  height: 8px;
  border-radius: 4px;
  background: var(--la-purple-light);
}

.funding-progress .progress-bar {
  background: linear-gradient(to right, var(--la-purple), var(--la-pink));
  border-radius: 4px;
}

/* ============================
   Events (News page)
   ============================ */
.event-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
  transition: box-shadow 0.25s;
}

.event-item:hover {
  box-shadow: 0 6px 22px rgba(214,51,132,0.12);
}

.event-date {
  background: linear-gradient(135deg, var(--la-purple), var(--la-pink));
  color: white;
  text-align: center;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  min-width: 65px;
  flex-shrink: 0;
}

.event-date .day  { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================
   Contact
   ============================ */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--la-purple-light), var(--la-pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--la-purple);
  flex-shrink: 0;
}

.map-placeholder {
  height: 360px;
  background: linear-gradient(135deg, var(--la-purple-light), var(--la-pink-light));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--la-purple);
  gap: 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--la-pink);
  box-shadow: 0 0 0 0.2rem rgba(214,51,132,0.12);
}

/* ============================
   FAQ Accordion
   ============================ */
.la-accordion .accordion-button {
  font-weight: 600;
  color: var(--la-dark);
  background: white;
}

.la-accordion .accordion-button:not(.collapsed) {
  color: var(--la-pink);
  background: var(--la-light-bg);
  box-shadow: none;
}

.la-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(214,51,132,0.12);
}

.la-accordion .accordion-item {
  border: 1px solid #f0e8fd;
  border-radius: 10px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

/* ============================
   Footer
   ============================ */
.la-footer {
  background-color: var(--la-dark);
  color: #bbb;
}

.la-footer .footer-brand {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.la-footer .footer-title {
  color: white;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.la-footer a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.la-footer a:hover { color: var(--la-pink); }

.la-footer hr { border-color: rgba(255,255,255,0.1); }

.la-footer .footer-legal {
  font-size: 0.78rem;
  color: #777;
  display: inline;
}

.la-footer .footer-legal:hover { color: var(--la-pink); }

.social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  transition: all 0.2s;
  font-size: 1.05rem;
  color: #bbb !important;
  text-decoration: none !important;
}

.social-link:hover {
  background: var(--la-pink);
  color: white !important;
  transform: translateY(-2px);
}

/* ============================
   Scroll Fade-in
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
