/* 
* Custom CSS for VHRP Website
* Author: VHRP Web Team
* Version: 2.2
*/

/* Import Noto Sans Devanagari font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* General Styles */
:root {
  --primary-color: #ff7722; /* Saffron color */
  --secondary-color: #ff9933; /* Lighter saffron */
  --accent-color: #ff5722; /* Deeper saffron */
  --dark-color: #333333;
  --light-color: #f4f4f4;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --bg-light: #fff9f5; /* Very light saffron tint for backgrounds */
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  font-family: "Noto Sans Devanagari", "Hind", "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Override Bootstrap primary classes */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 10px 20px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 119, 34, 0.3);
}

/* Header Styles */
.top-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar a {
  color: white;
  text-decoration: none;
}

.top-bar a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.top-bar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-right: 5px;
  transition: var(--transition);
}

.top-bar .social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Add these styles to make the top-bar button more visible */
.top-bar .btn-light {
  background-color: #fff;
  color: var(--primary-color) !important;
  font-weight: 600;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.top-bar .btn-light:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Improve button visibility on orange background */
.top-bar .btn-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-img {
  max-height: 120px;
  transition: var(--transition);
}

.navbar-scrolled .logo-img {
  max-height: 100px;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  padding: 10px;
}

.dropdown-item {
  padding: 8px 15px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 4px;
}

.dropdown-item:hover {
  background-color: rgba(255, 119, 34, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Centered Logo and Name */
.site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
}

/* Carousel Styles */
.carousel-item {
  height: auto;
  max-height: 600px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 600px;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: var(--border-radius);
  bottom: 50px;
  max-width: 90%;
  margin: 0 auto;
  left: 5%;
  right: 5%;
}

.carousel-caption h2 {
  font-weight: 700;
  font-size: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  padding: 25px;
  border-radius: 50%;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 30px;
  background-color: #fff;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-text {
  color: #666;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.card-meta i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* Feature Box */
.feature-box {
  text-align: center;
  padding: 30px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 30px;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  transform: scale(1.2);
}

.feature-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

/* Team Member Styles */
.team-member {
  text-align: center;
  margin-bottom: 30px;
  transition: var(--transition);
  overflow: visible; /* Prevent cropping of the image */
  padding: 0; /* Ensure no uneven padding */
  margin-left: auto; /* Ensure container is centered if parent has flex or grid */
  margin-right: auto;
  width: 100%; /* Ensure it takes full width of its parent */
  box-sizing: border-box; /* Prevent padding/margins from affecting width */
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-member img {
  width: 100%;
  max-width: 200px; /* Limit the max size on larger screens */
  height: auto; /* Let the height adjust to maintain aspect ratio */
  aspect-ratio: 3 / 4; /* Adjust based on image dimensions (portrait in this case) */
  object-fit: cover; /* Use 'contain' if you don’t want cropping */
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.team-member h5 {
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.team-member p {
  color: #666;
  margin-bottom: 15px;
}

.team-member .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Replaces margin on <a> for better spacing control */
  margin-top: 10px; /* Adds spacing above social icons */
  width: 100%; /* Ensure it takes full width for proper centering */
  flex-wrap: wrap; /* Prevent overflow on smaller screens */
}

.team-member .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #28A745;
  color: var(--dark-color);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none; /* Ensure no underline on links */
}

.team-member .social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Responsive Styles for Team Section */
@media (max-width: 991.98px) {
  .team-member img {
    max-width: 180px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

@media (max-width: 767.98px) {
  .team-member img {
    max-width: 150px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

@media (max-width: 575.98px) {
  .team-member img {
    max-width: 140px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .team-member img {
    max-width: 120px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .team-member .social-icons a {
    width: 30px;
    height: 30px;
    font-size: 0.9rem; /* Slightly smaller icons on very small screens */
  }

  .team-member .social-icons {
    gap: 8px; /* Slightly tighter spacing on small screens */
  }
}

/* Blog and News Styles */
.blog-post {
  margin-bottom: 30px;
  transition: var(--transition);
}

.blog-post:hover {
  transform: translateY(-10px);
}

.blog-post img {
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.blog-post h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.blog-post .meta {
  margin-bottom: 15px;
  color: #666;
  font-size: 0.9rem;
}

.blog-post .meta span {
  margin-right: 15px;
}

.blog-post .meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

.post-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.post-info h6 {
  margin-bottom: 5px;
  font-weight: 600;
}

.post-info small {
  color: #666;
}

.media-post {
  display: flex;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 10px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.media-post:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-thumb {
  flex: 0 0 80px;
  margin-right: 15px;
}

.btn-read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.btn-read-more:after {
  content: "\f178";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 5px;
  transition: var(--transition);
}

.btn-read-more:hover {
  color: var(--accent-color);
}

.btn-read-more:hover:after {
  margin-left: 10px;
}

/* Sidebar Styles */
.sidebar .widget {
  margin-bottom: 30px;
  padding: 25px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.sidebar .widget h5 {
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--primary-color);
}

.sidebar .widget h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.category-list {
  padding-left: 0;
  list-style: none;
}

.category-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.category-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-list li a {
  color: var(--dark-color);
  display: block;
  transition: var(--transition);
}

.category-list li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.category-list li a::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  color: var(--primary-color);
}

/* Footer Styles */
footer {
  background-color: #222;
  color: #aaa;
  padding: 60px 0 0;
}

footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

footer a {
  color: #aaa;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  position: relative;
  padding-left: 15px;
}

.footer-links li a::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.footer-news {
  padding-left: 0;
  list-style: none;
}

.footer-news li {
  margin-bottom: 15px;
}

.footer-news li a {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.footer-logo {
  max-height: 70px;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
}

.footer-bottom {
  background-color: #1a1a1a;
  padding: 20px 0;
  margin-top: 40px;
}

/* Contact Styles */
.contact-info-box {
  text-align: center;
  padding: 30px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}

.contact-info-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-info-box h5 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-control {
  height: 50px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  padding: 10px 15px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 119, 34, 0.25);
}

textarea.form-control {
  height: 150px;
  resize: none;
}

/* Gallery Styles */
.gallery-item {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 119, 34, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: #fff;
  font-size: 2rem;
}

/* Testimonial Styles */
.testimonial {
  text-align: center;
  padding: 30px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  position: relative;
}

.testimonial::before {
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  color: rgba(255, 119, 34, 0.1);
}

.testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--primary-color);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial h5 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.testimonial small {
  color: #666;
}

/* Donation Benefits */
.donation-benefits {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 119, 34, 0.1);
  padding: 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 119, 34, 0.2);
}

.benefit-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #ff7722 0%, #e65b00 100%);
  padding: 60px 0;
  text-align: center;
  border-bottom: 5px solid #e65b00;
}

.page-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #ffffff !important;
}

.breadcrumb {
  font-size: 1rem;
  margin-bottom: 0;
  justify-content: center;
  background-color: transparent;
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-flex;
}

ol.breadcrumb li.breadcrumb-item + li.breadcrumb-item::before {
  content: "/";
  color: #ffffff !important;
  padding: 0 8px;
  font-weight: 500;
}

.breadcrumb-item a, .breadcrumb-item.active {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item.active {
  font-weight: 400;
}

/* Call to Action Section */
.cta-section {
  background-image: url("../img/bg/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

/* Background Colors */
.bg-light-saffron {
  background-color: var(--bg-light);
}

/* Custom Utilities */
.rounded-custom {
  border-radius: 15px;
}

.shadow-custom {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure text is visible in all buttons */
.btn {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn-light {
  color: #333 !important;
}

.btn-outline-light {
  color: #fff !important;
}

.btn-outline-light:hover {
  color: #333 !important;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .carousel-item {
    max-height: 500px;
  }

  .carousel-item img {
    max-height: 500px;
  }
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    max-height: 50px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-section {
    padding: 80px 0;
  }

  .carousel-item {
    max-height: 450px;
  }

  .carousel-item img {
    max-height: 450px;
  }

  .carousel-caption {
    bottom: 30px;
  }

  .carousel-caption h2 {
    font-size: 1.8rem;
  }

  /* Improve dropdown menu on tablets */
  .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  /* Adjust team member images for tablets */
  .team-member img {
    max-width: 180px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

@media (max-width: 767.98px) {
  .top-bar {
    text-align: center;
  }

  .top-bar .col-md-6 {
    display: flex;
    justify-content: center;
  }

  .top-bar .d-flex {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .top-bar .social-icons {
    margin-top: 10px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-section {
    padding: 60px 0;
  }

  .carousel-item {
    max-height: 400px;
  }

  .carousel-item img {
    max-height: 400px;
  }

  .carousel-caption {
    bottom: 20px;
    padding: 15px;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .carousel-caption .btn {
    padding: 5px 10px;
    font-size: 0.9rem;
  }

  .card-img-top {
    height: 200px;
  }

  /* Updated team member image styles for mobile */
  .team-member img {
    max-width: 150px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .page-header {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Improve mobile menu */
  .navbar-collapse {
    background-color: #fff;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 10px;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid #f1f1f1;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  /* Improve media posts on mobile */
  .media-post {
    flex-direction: column;
  }

  .post-thumb {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .post-thumb img {
    width: 100%;
    height: 150px;
  }

  /* Centered logo and name adjustments */
  .site-name {
    font-size: 1.5rem;
  }

  .logo-img {
    max-height: 50px;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-section {
    padding: 50px 0;
  }

  .carousel-item {
    max-height: 350px;
  }

  .carousel-item img {
    max-height: 350px;
  }

  .carousel-caption {
    bottom: 10px;
    padding: 10px;
  }

  .carousel-caption h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }

  .carousel-caption p {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }

  .carousel-caption .btn {
    padding: 3px 8px;
    font-size: 0.8rem;
  }

  .card-img-top {
    height: 180px;
  }

  /* Updated team member image styles for smaller mobile screens */
  .team-member img {
    max-width: 140px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .page-header {
    padding: 30px 0;
    margin-bottom: 30px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .donation-benefits {
    flex-direction: column;
    gap: 10px;
  }

  /* Improve carousel controls on mobile */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 15px;
  }

  /* Adjust feature boxes on mobile */
  .feature-box {
    padding: 20px 15px;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  /* Improve buttons on mobile */
  .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    max-height: 300px;
  }

  .carousel-item img {
    max-height: 300px;
  }

  .carousel-caption {
    bottom: 5px;
    padding: 8px;
  }

  .carousel-caption h2 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .carousel-caption p {
    font-size: 0.75rem;
    margin-bottom: 3px;
  }

  .carousel-caption .btn {
    padding: 2px 6px;
    font-size: 0.7rem;
  }

  .carousel-indicators {
    margin-bottom: 5px;
  }

  .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  /* Updated team member image styles for very small screens */
  .team-member img {
    max-width: 120px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

/* Lightbox Customization */
.lb-data .lb-caption {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.lb-data .lb-details {
  width: 100%;
  text-align: center;
}

.lb-closeContainer {
  position: absolute;
  top: 10px;
  right: 10px;
}