/* ======================================================
   RURAL CARE FOUNDATION — PREMIUM UI THEME (UPDATED)
====================================================== */

:root {
  --primary: #0d6efd;
  --primary-dark: #084bb8;
  --green: #0b7a2a;
  --text-dark: #1d1d1d;
  --bg-light: #f4f9ff;
  --radius: 18px;
}

/* ===================== GLOBAL ===================== */
body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-light);
  overflow-x: hidden;
  margin-top: 70px !important; /* Same margin across all pages */
  color: var(--text-dark);
}

/* Standardized Section Spacing */
section {
  padding-top: 70px;
  padding-bottom: 70px;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: linear-gradient(90deg, #0b7a2a, #0d6efd);
  padding: 15px 0;
  box-shadow: 0px 4px 30px rgba(0,0,0,.25);
  border-bottom: 2px solid #ffffff66;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .5px;
  color: #fff !important;
  text-shadow:
    2px 2px 6px rgba(0,0,0,0.55),
    0 0 18px rgba(255,255,255,0.55);
}

.nav-link {
  color: #fff !important;
  font-weight: 600;
  transition: .3s;
  padding: 10px 14px !important;
}

.nav-link.active,
.nav-link:hover {
  color: #ffeb3b !important;
  text-shadow: 0 0 10px #fff;
}

/* Mobile Menu */
.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.6);
}

/* ===================== HERO SECTION ===================== */
.hero-section {
  height: 90vh;
  position: relative;
  margin-bottom: -40px; /* Smooth transition into next section */
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  color: #fff;
}

.animate-text {
  font-size: 3rem;
  font-weight: 800;
  animation: fadeup 1.5s;
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-cta {
  background: #ffd500;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: .3s;
  border: none;
}

.btn-cta:hover {
  background: #ffb800;
  transform: translateY(-5px);
}

/* ===================== STATS SECTION ===================== */
.stats-section {
  background: #fff;
  text-align: center;
}

.counter {
  font-size: 3.5rem;
  font-weight: 900;
  color: #0d6efd;
}

/* ===================== FOCUS AREAS ===================== */
.feature-card {
  background: var(--primary);
  color: #fff;
  padding: 35px 20px;
  border-radius: var(--radius);
  height: 100%;
  box-shadow: 0px 10px 30px rgba(0,0,0,.18);
  transition: .35s;
}

.feature-card span {
  font-size: 46px;
  margin-bottom: 10px;
  display: inline-block;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0px 14px 38px rgba(0,0,0,.25);
}

/* ===================== FOOTER ===================== */
.footer-pro {
  background: linear-gradient(90deg, #003c9e, #0d6efd);
  color: #fff;
  padding: 50px 0 20px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  box-shadow: 0px -6px 25px rgba(0,0,0,0.18);
  margin-top: 40px;
}

.footer-pro .footer-contact p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-pro .social-icons .s-icon {
  background: #ffffff33;
  padding: 8px 13px;
  margin-right: 6px;
  border-radius: 10px;
  font-size: 22px;
  transition: .3s;
  color: #fff;
}

.footer-pro .social-icons .s-icon:hover {
  background: #fff;
  color: #0d6efd;
}

/* ===================== RESPONSIVE ===================== */
@media(max-width: 768px) {
  .animate-text { font-size: 2.2rem; }
  .hero-section { height: 75vh; }
  .counter { font-size: 2.5rem; }
  section { padding: 50px 0; }
}
