/* Matra Seva Trust - Custom Styles */

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

:root {
  --trust-blue: #1e5f8a;
  --trust-blue-light: #2d7eb3;
  --trust-green: #4a9e5c;
  --trust-green-light: #5cb870;
  --trust-orange: #e67e22;
  --trust-orange-light: #f39c12;
  --trust-cream: #f9f7f3;
  --trust-cream-dark: #e8e4dc;
  --text-dark: #1e3a50;
  --text-muted: #6c757d;
  --white: #ffffff;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--trust-cream);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Top Bar */
.top-bar {
  background-color: var(--trust-blue);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--trust-orange);
}

.top-bar i {
  margin-right: 6px;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  padding: 10px 20px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--trust-blue);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: var(--trust-blue);
  border-radius: 2px;
}

/* Buttons */
.btn-primary-trust {
  background-color: var(--trust-blue);
  border: none;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary-trust:hover {
  background-color: var(--trust-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(30, 95, 138, 0.3);
  color: var(--white);
}

.btn-secondary-trust {
  background-color: var(--trust-green);
  border: none;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary-trust:hover {
  background-color: var(--trust-green-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 158, 92, 0.3);
  color: var(--white);
}

.btn-accent-trust {
  background-color: var(--trust-orange);
  border: none;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-accent-trust:hover {
  background-color: var(--trust-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
  color: var(--white);
}

.btn-outline-trust {
  background-color: transparent;
  border: 2px solid var(--trust-blue);
  color: var(--trust-blue);
  padding: 10px 26px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-trust:hover {
  background-color: var(--trust-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light-trust {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 10px 26px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light-trust:hover {
  background-color: var(--white);
  color: var(--trust-blue);
  transform: translateY(-2px);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
}

.hero-carousel .carousel-item {
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(30, 58, 80, 0.85), rgba(30, 58, 80, 0.4), transparent);
}

.hero-carousel .carousel-caption {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 600px;
  bottom: auto;
  right: auto;
}

.hero-carousel .carousel-caption .badge-accent {
  background-color: var(--trust-orange);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-carousel .carousel-caption h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-carousel .carousel-caption p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  margin: 0 20px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.hero-carousel .carousel-indicators {
  bottom: 30px;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--trust-orange);
  width: 30px;
  border-radius: 6px;
}

/* Section Styles */
.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
}

.section-title .badge-section {
  background-color: rgba(30, 95, 138, 0.1);
  color: var(--trust-blue);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Section */
.stats-section {
  background-color: var(--trust-cream-dark);
}

.stat-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.stat-card .icon-box {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.stat-card .icon-box.blue {
  background-color: rgba(30, 95, 138, 0.1);
  color: var(--trust-blue);
}

.stat-card .icon-box.green {
  background-color: rgba(74, 158, 92, 0.1);
  color: var(--trust-green);
}

.stat-card .icon-box.orange {
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--trust-orange);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--trust-blue);
  margin-bottom: 5px;
}

.stat-card p {
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* About Preview */
.about-preview-image {
  position: relative;
}

.about-preview-image img {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-preview-image .floating-card {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background-color: var(--white);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-width: 180px;
}

.feature-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-item .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.feature-item h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Activity Cards */
.activity-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

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

.activity-card .icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.activity-card:hover .icon-box {
  transform: scale(1.1);
}

.activity-card h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.activity-card p {
  color: var(--text-muted);
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--trust-blue), var(--trust-blue-light));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-section .cta-content {
  position: relative;
  z-index: 1;
}

.trust-badges {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  margin-top: 40px;
}

.trust-badge {
  text-align: center;
}

.trust-badge h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.trust-badge span {
  font-size: 14px;
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer h5 {
  color: var(--trust-orange);
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-logo img {
  height: 50px;
  background-color: var(--white);
  padding: 8px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--trust-orange);
  border-radius: 50%;
}

.footer-links a:hover {
  color: var(--trust-orange);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
  color: var(--trust-orange);
  margin-top: 3px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--trust-orange);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--trust-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--trust-orange);
}

/* Page Hero */
.page-hero {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.page-hero.blue {
  background: linear-gradient(135deg, var(--trust-blue), var(--trust-blue-light));
}

.page-hero.green {
  background: linear-gradient(135deg, var(--trust-green), var(--trust-green-light));
}

.page-hero.orange {
  background: linear-gradient(135deg, var(--trust-orange), var(--trust-orange-light));
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* About Page */
.story-section img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.mission-vision-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
}

.mission-vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mission-vision-card .icon-box {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 30px;
}

.value-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.value-card:hover .icon-circle {
  background-color: var(--trust-orange);
}

.value-card:hover .icon-circle i {
  color: var(--white);
}

.value-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(230, 126, 34, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: all 0.3s ease;
}

.value-card .icon-circle i {
  color: var(--trust-orange);
  transition: color 0.3s ease;
}

.trust-info-section {
  background-color: var(--text-dark);
  color: var(--white);
}

.trust-info-item h3 {
  font-size: 2rem;
  color: var(--trust-orange);
  margin-bottom: 5px;
}

.trust-info-item span {
  color: rgba(255, 255, 255, 0.7);
}

/* Activities Page */
.activity-detail {
  margin-bottom: 80px;
}

.activity-detail:last-child {
  margin-bottom: 0;
}

.activity-detail img {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.activity-detail .icon-badge {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  position: absolute;
  top: -15px;
  left: -15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activity-detail ul {
  padding-left: 0;
  list-style: none;
}

.activity-detail ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.activity-detail ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

/* Contact Page */
.contact-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.contact-card .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(30, 95, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--trust-blue);
}

.contact-card h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

.contact-form {
  background-color: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--trust-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 138, 0.1);
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.map-placeholder {
  background-color: var(--trust-cream-dark);
  border-radius: 16px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.map-placeholder i {
  font-size: 48px;
  margin-bottom: 15px;
}

.donation-info {
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-carousel .carousel-caption h1 {
    font-size: 2.2rem;
  }

  .hero-carousel .carousel-caption {
    left: 5%;
    right: 5%;
    max-width: 90%;
  }

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

  .page-hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .hero-carousel .carousel-item {
    height: 70vh;
  }

  .hero-carousel .carousel-caption h1 {
    font-size: 1.8rem;
  }

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

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }

  .section-padding {
    padding: 60px 0;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 60px 0;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .activity-detail .icon-badge {
    position: static;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .navbar-brand img{
    height: 40px;
  }
}

/* WhatsApp Floating Button with Glow */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(37, 211, 102, 0.6); /* glow */
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
    line-height: 55px;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 
        0 6px 14px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(37, 211, 102, 0.8); /* stronger glow on hover */
    color: #fff;
}
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 14px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: whatsappPulse 2.5s infinite;
}

/* google translate  */
 .google-translate-float {
    position: fixed;
    bottom: 90px; /* WhatsApp button ke upar */
    right: 20px;
    z-index: 1000;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 14px;
}

.google-translate-float select {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}