/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
}

/* Top Contact Strip */
.top-strip {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 10px 0;
  font-size: 14px;
}

.contact-info span {
  margin-right: 20px;
  display: inline-block;
}

.contact-info i {
  margin-right: 5px;
  color: #fff;
}

.social-icons a {
  color: white;
  margin-left: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #f39c12;
  transform: translateY(-2px);
}

/* Header */
.header {
  background: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* Make header scroll with the page (not fixed) */
  position: static;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.org-info {
  flex: 1;
}

.org-name-en {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
  line-height: 1.2;
}

.org-name-hi {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 5px;
  font-weight: 500;
}

.reg-number {
  font-size: 12px;
  color: #95a5a6;
  margin-bottom: 0;
}

/* Navigation */
.navbar {
  padding: 0;
}

.navbar-nav {
  background: white;
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: #2c3e50 !important;
  font-weight: 500;
  padding: 12px 20px !important;
  margin: 0 5px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white !important;
  transform: translateY(-2px);
}

.donate-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: white !important;
  font-weight: bold;
}

.donate-btn:hover {
  background: linear-gradient(135deg, #c0392b, #a93226) !important;
  transform: translateY(-2px);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  height: 500px;
  position: relative;
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Responsive slider heights */
@media (max-width: 768px) {
  .carousel-item {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    height: 250px;
  }
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 15px;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.carousel-caption .btn {
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 25px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
}

/* Page hero/banner used on policy and contact pages */
.page-hero {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 40px;
}

/* About Section */
.about-section {
  background: #f8f9fa;
}

.about-content .lead {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 25px;
}

.stats-row {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 5px;
}

.stat-item p {
  color: #7f8c8d;
  font-weight: 500;
}

.about-image img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Donate CTA */
.donate-cta {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.donate-cta h3 {
  margin-bottom: 10px;
}

.btn-donate {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Team Section */
.team-section {
  background: white;
}

.team-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

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

.team-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* When using icons instead of images, center and scale the icon to fill the area */
.team-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image i {
  /* responsive font-size: min 48px, scales with viewport, max 220px */
  font-size: clamp(48px, 8vw, 220px);
  /* logo blue */
  color: #3498db;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.team-card:hover .team-image i {
  transform: scale(1.05);
  /* slightly darker blue on hover to match logo gradient */
  color: #2980b9;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-info h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.position {
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 15px;
}

.bio {
  color: #7f8c8d;
  font-size: 14px;
}

/* Services Section */
.services-section {
  background: #f8f9fa;
}

.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

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

.service-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
}

.service-content h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
}

.service-content p {
  color: #7f8c8d;
  font-size: 14px;
}

/* Gallery Section */
.gallery-section {
  background: white;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay h5 {
  font-weight: bold;
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 14px;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 50px 0 0;
}

.footer-section h5 {
  color: #e74c3c;
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo i {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 15px;
}

.footer-logo h4 {
  margin-bottom: 5px;
  color: white;
}

.hindi-name {
  font-size: 14px;
  color: #bdc3c7;
  margin-bottom: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-item i {
  color: #e74c3c;
  margin-right: 10px;
  margin-top: 5px;
  width: 20px;
}

.contact-item p {
  margin-bottom: 0;
  color: #bdc3c7;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  background: #1a252f;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #34495e;
}

.footer-bottom p {
  margin-bottom: 0;
  color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .org-name-en {
    font-size: 18px;
  }

  .org-name-hi {
    font-size: 14px;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption {
    padding: 20px;
    width: 90%;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px;
  }

  .contact-info span {
    display: block;
    margin-bottom: 5px;
    margin-right: 0;
  }

  .social-icons {
    text-align: center;
    margin-top: 10px;
  }

  /* Ensure top-strip content is centered on mobile across all pages */
  .top-strip .contact-info,
  .top-strip .social-icons {
    text-align: center;
    display: block;
    width: 100%;
  }

  .top-strip .contact-info span {
    display: block;
    margin: 4px 0;
  }

  .navbar-nav {
    border-radius: 15px;
    margin-top: 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-bottom .col-md-6:last-child {
    text-align: center !important;
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: 400px;
  }

  /* Smaller devices: tighten top-strip spacing */
  .top-strip {
    padding: 8px 0;
    font-size: 13px;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .logo {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .org-name-en {
    font-size: 16px;
  }

  .org-name-hi {
    font-size: 12px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
}