/* =====================================================
   SWABHIMAN SAMITI - PROFESSIONAL NGO STYLESHEET
   ===================================================== */

/* ---------- BRAND COLORS ---------- */
:root {
  --primary-blue: #0d6efd;
  --primary-dark: #084298;
  --footer-navy: #1d3557;
  --footer-dark: #14273e;
  --accent-yellow: #ffc107;
  --light-section: #f4f8ff;
  --text-dark: #1f2937;
}

/* ---------- GLOBAL ---------- */
body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-dark);

}

/* Reserve space for fixed navbar so top sections (banners) are not hidden */
:root {
  --navbar-height: 72px;
}

body {
  padding-top: var(--navbar-height);
}

@media (max-width: 576px) {
  :root {
    --navbar-height: 64px;
  }

  body {
    padding-top: var(--navbar-height);
  }
}

.main-content {
  min-height: 62.5vh;
  padding: 40px 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 40px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: linear-gradient(90deg, var(--primary-blue), #1e40af);
}

.navbar.bg-light-orange {
  background-color: #FFD580 !important;
  background-image: none !important;
}

.navbar.bg-light-orange .navbar-nav .nav-link {
  color: #3a2c0a !important;
  /* dark brown for readability */
}

.navbar.bg-light-orange .nav-link.active {
  color: #5A3A00 !important;
  /* darker orange for active */
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: #ffffff;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-yellow);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto
}

.section {
  padding: 70px 0
}

.section h2 {
  text-align: center;
  margin-bottom: 30px
}

.btn {
  display: inline-block;
  background: #ff6b00;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  margin: 8px
}

/* ---------- DONATE BUTTON ---------- */
.btn-donate {
  background-color: var(--accent-yellow);
  color: #212529;
  font-weight: 600;
  border-radius: 40px;
  padding: 8px 20px;
  border: none;
  transition: all 0.3s ease;
}

.btn-donate:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/bg_event.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 140px 0;
}

/* ---------- CAROUSEL ---------- */
.hero-slide {
  height: 60vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.carousel-caption {
  bottom: 35%;
  z-index: 2;
}

.carousel-caption h1 {
  animation: fadeInDown 1s ease-in-out;
}

.carousel-caption p {
  animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- CARDS ---------- */
.card {
  border: none;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* NGO Program Card */
.sf-card {
  border: 0;
  padding-top: 56px;
  transition: transform .25s ease, box-shadow .25s ease;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.sf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
}

/* top accent line */
.sf-card::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-blue);
}

/* card image */
.sf-card-avatar {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.sf-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-card .card-title {
  font-weight: 700;
  margin-bottom: .5rem;
}

.sf-card .card-text {
  color: #5b636a;
  line-height: 1.6;
}

.row.g-4 {
  margin-top: .25rem;
}

/* ---------- READ MORE BUTTON ---------- */
.btn-read-more {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  background-color: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- VOLUNTEER SECTION ---------- */
.volunteer-section {
  padding: 80px 20px;
  background-color: var(--light-section);
  border-top: 4px solid var(--primary-blue);
}

.volunteer-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--footer-navy);
}

.volunteer-text {
  max-width: 750px;
  margin: 0 auto 35px;
  font-size: 17px;
  color: #555;
  line-height: 1.7;
}

.btn-volunteer {
  display: inline-block;
  padding: 12px 34px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border-radius: 40px;
  background-color: var(--primary-blue);
  transition: all 0.3s ease;
}

.btn-volunteer:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* ---------- FOOTER ---------- */
.footer-section {
  background-color: var(--footer-navy);
  color: #5A3A00;
  padding: 60px 0 20px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-text {
  font-size: 14px;
  color: #ddd;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

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

.footer-links a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  background-color: var(--footer-dark);
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

/* ---------- STAMP LOGO ---------- */
.stamp-logo {
  width: 200px;
  height: 200px;
  border: 6px solid #2c3e50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', serif;
  font-weight: bold;
  text-transform: uppercase;
  color: #2c3e50;
  background: #fdfdfd;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.counter {
  font-size: 3rem;
  letter-spacing: 1px;
}

/* Impact Section Styling */
.impact-box {
  background: #ffffff;
  transition: all 0.3s ease;
}

.impact-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.impact-icon i {
  font-size: 3rem;
  color: #0d6efd;
  transition: all 0.3s ease;
}

.impact-box:hover .impact-icon i {
  transform: scale(1.1);
  color: #ffc107;
}

.navbar-nav .nav-link {
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
}

.dropdown-menu {
  border-radius: 12px;
}

.btn-warning {
  transition: all 0.3s ease;
}

.btn-warning:hover {
  transform: translateY(-2px);
}

.nav-link.active {
  color: #ffc107 !important;
  font-weight: 600;
}

/* Impact Section Styling */
.impact-box {
  background: #ffffff;
  transition: all 0.3s ease;
}

.impact-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.impact-icon i {
  font-size: 3rem;
  color: #0d6efd;
  transition: all 0.3s ease;
}

.impact-box:hover .impact-icon i {
  transform: scale(1.1);
  color: #ffc107;
}

.page-header {
  background: #0b6cc4;
  color: white;
  text-align: center;
}

.event-card img {
  height: 220px;
  object-fit: cover;
}

.section-below-header {
  /*background-color: #0b6cc4;
    color: #ffffff;*/
  padding-top: calc(70px + 40px);
  /* 70px header + 40px spacing */
  padding-bottom: 40px;
}

.profile-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #0b6cc4;
}

.section-title {
  color: #0b6cc4;
  font-weight: 600;
  margin-top: 25px;
}

.img-banner {
  width: 400px;
  height: 260px;
  object-fit: cover;
}

.img-news {
  width: 382px;
  height: 200px;
  object-fit: cover;
}

/* ---------- PAGE BANNER ---------- */
.page-banner {
  width: 100%;
  height: 300px;
  /* fixed height as requested */
  background: linear-gradient(135deg, rgba(11, 108, 196, 0.85), rgba(13, 110, 253, 0.85));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
}

.page-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  /* overlay sits above the image */
}

.page-banner .banner-content {
  position: relative;
  /* sits above overlay */
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-banner .banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the top of the image visible instead of centering crop */
  object-position: center top;
  z-index: 0;
  /* behind overlay and content */
  display: block;
}

/* Bootstrap-friendly refinements for banner */
.page-banner {
  overflow: hidden;
  position: relative;
}

.page-banner .banner-content {
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-banner .banner-title {
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.page-banner .lead {
  color: rgba(255, 255, 255, 0.95);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-banner .btn {
  min-width: 160px;
}

@media (max-width: 576px) {
  .page-banner {
    height: 200px !important;
  }

  /* on very small screens, nudge focal point slightly down to keep faces/text visible */
  .page-banner .banner-image {
    object-position: center 20%;
  }

  .page-banner .banner-title {
    font-size: 1.5rem;
  }

  .page-banner .lead {
    font-size: 0.95rem;
  }

  .page-banner .btn {
    font-size: 0.9rem;
    padding: .5rem 1rem;
  }
}

.page-banner .banner-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Allow optional background image by adding inline style or a page-specific class */
.page-banner.has-bg {
  background-image: url('/assets/images/education-banner.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

@media (max-width: 768px) {
  .page-banner {
    height: 220px;
  }

  .page-banner .banner-title {
    font-size: 22px;
  }
}

.bg-light-orange {
  background-color: #FFE1A3 !important;
  /* Light orange */
}


.social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.social-icon {
  font-size: 2rem;
  text-decoration: none !important;
  transition: transform 0.2s, color 0.2s;
}

.social-icon.facebook {
  color: #1877f3;
}

.social-icon.instagram {
  color: #e4405f;
}

.social-icon.linkedin {
  color: #0a66c2;
}

.social-icon.youtube {
  color: #ff0000;
}

.social-icon:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.bg-light-orange {
  background-color: #FFD580 !important;
  /* Light orange */
}

.hide {
  display: none;
}