
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Devanagari:wght@400;700&display=swap');

/* Define color variables */
:root {
  --primary-color: #E91E63;
  --secondary-color: #2196F3;
  --accent-color: #9C27B0;
  --text-color: #333333;
  --light-color: #FFFFFF;
  --dark-color: #000000;
}

/* General Body Styles */
body {
  font-family: 'Noto Serif Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #f0f2f5;
  margin: 0;
  padding: 0;
  font-weight: bold;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header Styles */
.header-top {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--light-color);
}

.social-icons a {
  color: var(--light-color);
  margin-left: 15px;
  font-size: 18px;
}

.social-icons a:hover {
  color: var(--accent-color);
}

/* Section Title */
.section-title {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Card Styles */
.card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Navbar Styles */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-brand {
  color: rgba(0, 0, 0, 0.9) !important;
}

.navbar > .container {
  flex-wrap: nowrap;
}

.navbar.navbar-light .navbar-nav .nav-link {
  font-family: 'Noto Serif Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 26px;
  color: rgba(0, 0, 0, 0.9) !important;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.navbar.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar.navbar-light .navbar-nav .nav-item.active .nav-link {
  font-weight: 600;
  color: var(--primary-color) !important;
}

.navbar.navbar-light .navbar-brand {
  font-family: 'Noto Serif Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.9) !important;
  margin-right: 1.5rem;
}

.navbar.navbar-light .navbar-brand:hover {
  color: var(--primary-color) !important;
}

.navbar.navbar-light .navbar-nav.button-container {
  display: flex;
  flex-shrink: 0;
}

.navbar.navbar-light .navbar-nav.button-container .mobile-btn {
  margin: 0 5px;
  border-radius: 5px;
  font-size: 14px;
  padding: 5px 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-outline-primary {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

.navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-primary {
  background-color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  color: #fff !important;
}

.navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-primary:hover {
  background-color: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
  color: #fff !important;
}

.navbar.navbar-light .navbar-nav .dropdown-menu {
  background-color: #fff;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.navbar.navbar-light .navbar-nav .dropdown-item {
  font-family: 'Noto Serif Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.9);
  padding: 8px 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar.navbar-light .navbar-nav .dropdown-item:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

/* Sidebar-Style Mobile Menu */
@media (max-width: 991px) {
  .navbar-collapse {
      position: fixed;
      top: 0;
      left: 0;
      width: 250px;
      height: 100%;
      background-color: #212529;
      padding: 20px;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      z-index: 1000;
  }
  
  .navbar-collapse.show {
      transform: translateX(0);
  }
  
  .navbar-nav {
      margin-top: 5px;
  }
  
  .mobile-logo {
      margin-top: 20px;
      margin-bottom: 5px;
  }

  .mobile-logo .logo-img {
      height: 70px;
      width: auto;
  }
  
  .navbar.navbar-light .navbar-nav .nav-link {
      color: rgba(255, 255, 255, 0.9) !important;
      padding: 5px 0;
      font-size: 18px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: color 0.3s ease;
  }
  
  .navbar.navbar-light .navbar-nav .nav-link:hover {
      color: var(--primary-color) !important;
  }
  
  .navbar.navbar-light .navbar-nav .nav-item.active .nav-link {
      color: var(--primary-color) !important;
      font-weight: 600;
  }
  
  .navbar.navbar-light .navbar-nav .dropdown-menu {
      background-color: #212529;
      border: none;
      width: 100%;
      padding: 0;
  }

  .navbar.navbar-light .navbar-nav .dropdown-item {
      color: rgba(255, 255, 255, 0.9) !important;
      font-size: 16px;
      padding: 5px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar.navbar-light .navbar-nav .dropdown-item:hover {
      background-color: var(--primary-color);
      color: #fff !important;
  }

  .navbar.navbar-light .navbar-nav .dropdown-toggle {
      color: rgba(255, 255, 255, 0.9) !important;
  }

  .navbar.navbar-light .navbar-nav .dropdown-toggle:hover {
      color: var(--primary-color) !important;
  }

  .navbar.navbar-light .navbar-nav .nav-item.active .dropdown-toggle {
      color: var(--primary-color) !important;
      font-weight: 600;
  }
  
  .navbar.navbar-light .navbar-nav.button-container {
      margin-top: 5px;
      display: flex;
      flex-direction: column;
      gap: 5px;
  }

  .navbar.navbar-light .navbar-nav.button-container .mobile-btn {
      display: block;
      width: 100%;
      margin: 0;
      padding: 5px 15px;
      font-size: 16px;
      font-weight: 500;
      text-align: center;
      border-radius: 5px;
      transition: background-color 0.3s ease, color 0.3s ease;
      box-sizing: border-box;
  }
  
  .navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-outline-primary {
      background-color: transparent;
      border: 2px solid var(--primary-color) !important;
      color: var(--primary-color) !important;
  }
  
  .navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-outline-primary:hover {
      background-color: var(--primary-color);
      color: #fff !important;
  }
  
  .navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-primary {
      background-color: var(--primary-color);
      border: 2px solid var(--primary-color) !important;
      color: #fff !important;
  }
  
  .navbar.navbar-light .navbar-nav.button-container .mobile-btn.btn-primary:hover {
      background-color: var(--accent-color);
      border: 2px solid var(--accent-color) !important;
      color: #fff !important;
  }
  
  .navbar-close {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.9);
      font-size: 24px;
      cursor: pointer;
  }
  
  .navbar-close:hover {
      color: var(--primary-color);
  }
  
  .navbar-collapse.show ~ .navbar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
  }
}

/* Footer Styles */
.footer {
  background-color: #222;
  color: var(--light-color);
  padding: 40px 0 20px;
}

.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--light-color);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.copyright {
  background-color: #111;
  padding: 15px 0;
  color: #999;
  z-index: 1200;
}

.copyright-link {
  font-family: 'Noto Serif Devanagari', serif;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-block;
  margin: 0 5px;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  pointer-events: auto;
  position: relative;
  z-index: 1201;
}

.copyright-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Fixed Contact Buttons and Back-to-Top */
.fixed-contact-buttons {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.whatsapp-btn, .call-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-btn {
  background-color: #25D366;
}

.call-btn {
  background-color: #FF0000;
}

.whatsapp-btn i, .call-btn i {
  color: #fff;
  font-size: 30px;
}

.whatsapp-btn:hover, .call-btn:hover {
  transform: scale(1.1);
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top i {
  font-size: 24px;
}

.back-to-top:hover {
  background-color: var(--accent-color);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Content Wrapper */
.content-wrapper {
  padding: 0;
}

/* Main Slider */
.main-slider {
  position: relative;
  background: #e0e0e0;
  width: 100%;
}

.main-slider .carousel {
  height: auto;
  max-height: 600px;
  width: 100%;
}

.main-slider .carousel-inner,
.main-slider .carousel-item {
  height: auto;
  width: 100%;
}

.main-slider .carousel-item img {
  width: 100%;
  object-fit: cover;
  max-height: 600px;
  height: auto;
}

.main-slider .carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
}

/* Sidebar Styles */
.sidebar-left, .sidebar-right {
  position: sticky;
  top: 20px;
  height: fit-content;
  background: var(--light-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.sidebar-left .nav-link, .sidebar-right .nav-link {
  color: var(--primary-color);
  padding: 10px;
  border-radius: 5px;
  display: block;
  transition: background 0.3s;
}

.sidebar-left .nav-link:hover, .sidebar-right .nav-link:hover {
  background: var(--accent-color);
  color: var(--light-color);
}

/* Team Slider and Management Slider */
.team-slider, .management-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: 350px;
}

.team-slider h6, .management-slider h6 {
  text-align: center !important;
}

.team-slider .carousel, .management-slider .carousel {
  width: 100%;
  height: 100%;
}

.team-slider .carousel-inner, .management-slider .carousel-inner {
  width: 100%;
  height: 100%;
  display: flex;
}

.team-slider .carousel-item, .management-slider .carousel-item {
  display: none;
  width: 100%;
  height: 100%;
}

.team-slider .carousel-item.active, .management-slider .carousel-item.active {
  display: block;
}

.team-card {
  width: 100%;
  max-width: 300px;
  min-height: 350px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.team-card .image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 133.33%;
  background: rgba(255,255,255,0.9);
  border: 3px solid var(--light-color);
  border-radius: 10px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.team-card .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.team-card .text-container {
  border-top: 2px solid rgba(255,255,255,0.3);
  padding: 12px 8px;
  margin-top: auto;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card h6 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--light-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  text-align: center;
}

.team-card small {
  font-size: 0.9rem;
  color: var(--light-color);
  text-align: center;
  display: block;
}

.team-slider .carousel-control-prev, .team-slider .carousel-control-next,
.management-slider .carousel-control-prev, .management-slider .carousel-control-next {
  width: 15%;
}

.team-slider .carousel-control-prev-icon, .team-slider .carousel-control-next-icon,
.management-slider .carousel-control-prev-icon, .management-slider .carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background-size: 50% 50%;
  background-position: center;
  border: 1px solid #fff;
}

/* Enhanced Recent Events Section */
.sidebar-right .recent-events {
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(135deg, var(--light-color), rgba(233, 30, 99, 0.05));
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sidebar-right .recent-events h6 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.sidebar-right .recent-events h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.events-scroller {
  animation: scroll-up 15s linear infinite;
}

.events-scroller:hover {
  animation-play-state: paused;
}

.events-scroller p {
  margin: 10px 0;
  padding: 10px;
  background: rgba(255,255,255,0.9);
  border-left: 4px solid var(--primary-color);
  border-radius: 5px;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.events-scroller p:hover {
  transform: scale(1.02);
  background: rgba(33, 150, 243, 0.1);
}

.events-scroller p i {
  margin-right: 10px;
  font-size: 1.2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Enhanced Recent Activities Section */
.sidebar-right .recent-activities {
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(135deg, var(--light-color), rgba(33, 150, 243, 0.05));
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sidebar-right .recent-activities h6 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.sidebar-right .recent-activities h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.activities-scroller {
  animation: scroll-up 35s linear infinite;
  min-height: 100%;
}

.activities-scroller:hover {
  animation-play-state: paused;
}

.activities-scroller p {
  margin: 10px 0;
  padding: 10px;
  background: rgba(255,255,255,0.9);
  border-left: 4px solid var(--secondary-color);
  border-radius: 5px;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.activities-scroller p:hover {
  transform: scale(1.02);
  background: rgba(156, 39, 176, 0.1);
}

.activities-scroller p i {
  margin-right: 10px;
  font-size: 1.2rem;
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes scroll-up {
  0% { transform: translateY(0%); }
  100% { transform: translateY(-50%); }
}

/* Updated styles for Member Apply and Donate buttons */
.sidebar-right .cta-member-apply, .sidebar-right .cta-donate {
  margin-bottom: 15px;
}

.sidebar-right .cta-member-apply a, .sidebar-right .cta-donate a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 100%;
  position: relative;
  color: var(--light-color);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 15px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  overflow: hidden;
  background: url('https://matrushiksha.com/img/member-hands-bg.jpg') no-repeat center;
  background-size: cover;
  background-color: #f0f0f0;
}

.sidebar-right .cta-donate a {
  background: url('https://matrushiksha.com/img/donate-hands-bg.jpg') no-repeat center;
  background-size: cover;
  background-color: #f0f0f0;
}

.sidebar-right .cta-member-apply a::before, .sidebar-right .cta-donate a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.sidebar-right .cta-member-apply a:hover::before, .sidebar-right .cta-donate a:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.sidebar-right .cta-member-apply a:hover, .sidebar-right .cta-donate a:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.sidebar-right .cta-member-apply a span, .sidebar-right .cta-donate a span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sidebar-right .cta-member-apply a span::after, .sidebar-right .cta-donate a span::after {
  content: '\2192';
  margin-left: 10px;
  font-size: 1.5rem;
  color: var(--light-color);
}

/* Quick Links */
.quick-links {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
  background: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.quick-links button {
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.3s;
}

.quick-links button:hover {
  background: var(--accent-color);
}

/* Feed Container */
.feed-container {
  max-height: 1400px;
  overflow-y: auto;
}

.feed-post {
  background: var(--light-color);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feed-post img {
  max-height: none;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f5f5f5;
  margin: 10px 0;
}

/* Share Buttons */
.share-buttons a {
  margin-right: 10px;
  color: var(--light-color);
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
}

.share-buttons .btn-facebook { background: #3b5998; }
.share-buttons .btn-twitter { background: #1da1f2; }
.share-buttons .btn-linkedin { background: #0077b5; }
.share-buttons .btn-whatsapp { background: #25d366; }

/* Full Width Section */
.full-width-section {
  background: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.full-width-section h5 {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Enhanced About Us Section */
.about-us-section {
  background: linear-gradient(135deg, var(--light-color), rgba(233, 30, 99, 0.1));
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.about-us-section h5 {
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
}

.about-us-section h5::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.about-us-section img {
  border: 4px solid var(--primary-color);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: 300px;
  object-fit: cover;
}

.about-us-section img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.about-us-section .text-content {
  background: rgba(255,255,255,0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.about-us-section .text-content:hover {
  transform: translateY(-5px);
}

.about-us-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

.about-us-section .btn {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  padding: 10px 25px;
  border-radius: 25px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
}

.about-us-section .btn:hover {
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  transform: scale(1.05);
}

/* Enhanced President's Message Section */
.president-message-section {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), var(--light-color));
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.president-message-section h5 {
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
}

.president-message-section h5::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.president-message-section::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 80px;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.president-message-section .text-content {
  animation: fadeIn 1s ease-in-out;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  background: rgba(255,255,255,0.9);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.president-message-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 15px;
}

.president-message-section .signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 10px;
}

.president-message-section img {
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  padding: 5px;
  background: var(--light-color);
  max-height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.president-message-section img:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Gallery Slider */
.gallery-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

.gallery-slider img {
  width: 300px;
  height: auto;
  min-height: 200px;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-slider img:hover {
  transform: scale(1.05);
}

.gallery-carousel {
  display: none;
}

.gallery-carousel .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background-size: 50% 50%;
  background-position: center;
  border: 1px solid #fff;
}

/* Objectives Container */
.objectives-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 0;
  scroll-behavior: smooth;
  justify-content: center;
  align-items: center;
  min-width: 100%;
}

.objective-card {
  flex: 0 0 150px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.objective-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  text-align: center;
  margin-top: 10px;
}

.video-fallback a {
  color: var(--primary-color);
  text-decoration: none;
}

.video-fallback a:hover {
  text-decoration: underline;
}

/* Testimonial Card */
.testimonial-card {
  background: linear-gradient(145deg, var(--light-color), #f8f9fa);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 4px solid var(--primary-color);
  padding: 3px;
  background: var(--light-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.testimonial-card:hover img {
  transform: scale(1.05);
}

.testimonial-card h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.testimonial-card .designation {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-card .content {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.testimonial-card .rating {
  color: #ffd700;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  .header-top .row {
      flex-direction: column;
      align-items: center;
  }

  .header-top .col-md-4 {
      width: 100%;
      text-align: center;
      margin-bottom: 10px;
  }

  .header-top .col-md-4:last-child {
      margin-bottom: 0;
  }

  .header-top .col-md-4.text-center {
      text-align: center !important;
  }

  .header-top .col-md-4.text-right {
      text-align: center !important;
  }

  .header-top .col-md-4 .d-flex {
      justify-content: center;
  }

  .logo-text {
      font-size: 20px;
  }

  .social-icons {
      margin-top: 10px;
      display: flex;
      justify-content: center;
  }

  .social-icons a {
      margin: 0 10px;
  }
}

/* Mobile-specific adjustments for Main Slider */
@media (max-width: 768px) {
  .main-slider .carousel {
      max-height: 400px;
  }
  
  .main-slider .carousel-item img {
      max-height: 400px;
  }
  
  .main-slider .carousel-caption {
      padding: 8px;
  }

  .about-us-section, .president-message-section {
      padding: 20px;
  }

  .about-us-section img, .president-message-section img {
      max-height: 200px;
      display: block;
      margin: 0 auto 20px;
  }

  .about-us-section p, .president-message-section p {
      font-size: 1rem;
  }

  .about-us-section .col-md-4 {
      display: flex;
      justify-content: center;
  }

  .president-message-section .row {
      display: flex;
      flex-direction: column;
  }

  .president-message-section .col-md-4 {
      order: -1;
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
  }

  .president-message-section .col-md-8 {
      order: 0;
  }

  .content-wrapper {
      padding: 0 15px;
  }

  .team-card {
      max-width: 250px;
      margin: 0 auto;
  }

  .sidebar-left, .sidebar-right {
      position: static;
      margin-bottom: 20px;
  }

  .main-slider .carousel {
      height: 300px;
  }

  .main-slider .carousel-item img {
      height: 100%;
  }

  .slider-fallback {
      height: 300px;
  }

  .feed-container {
      max-height: 500px;
  }

  .gallery-slider {
      padding: 5px 0;
      gap: 8px;
  }

  .gallery-slider img {
      width: 200px;
      min-height: 150px;
      max-height: 200px;
  }

  .gallery-carousel {
      display: none;
  }

  .quick-links button {
      padding: 6px 12px;
      font-size: 14px;
  }

  .full-width-section {
      padding: 15px;
  }

  .objective-card {
      flex: 0 0 120px;
  }

  .objective-card img {
      width: 60px;
      height: 60px;
  }

  .testimonial-card {
      padding: 20px;
      margin: 10px;
  }

  .testimonial-card img {
      width: 80px;
      height: 80px;
  }

  .testimonial-card h4 {
      font-size: 1.1rem;
  }

  .testimonial-card .content {
      font-size: 0.9rem;
  }

  .recent-events, .recent-activities {
      padding: 10px;
  }

  .events-scroller p, .activities-scroller p {
      padding: 8px;
      font-size: 0.9rem;
  }

  .events-scroller p i, .activities-scroller p i {
      font-size: 1rem;
  }

  .fixed-contact-buttons {
      padding: 0 10px;
  }

  .whatsapp-btn, .call-btn {
      width: 50px;
      height: 50px;
  }

  .whatsapp-btn i, .call-btn i {
      font-size: 24px;
  }

  .back-to-top {
      bottom: 80px;
      right: 20px;
      width: 40px;
      height: 40px;
  }

  .back-to-top i {
      font-size: 20px;
  }
}

/* General Styles */
.container {
  max-width: 1200px;
  margin: auto;
  width: 100%;
  padding: 0;
}

.container-fluid {
  width: 100%;
  padding: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
}

.col-md-4, .col-md-6, .col-md-8, .col-md-12, .col-lg-3, .col-lg-6 {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}

/* Desktop column widths */
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded {
  border-radius: 0.3rem;
}

.p-3 { padding: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.text-muted { color: #6c757d !important; }
.bg-white { background-color: var(--white-color) !important; }

/* Grid Container */
.grid_container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 15px;
  width: 100%;
  margin: 20px auto;
  box-sizing: border-box;
}

/* Tablet and Desktop Grid Layout */
@media (min-width: 768px) {
  .grid_container {
      grid-template-columns: 1fr 2fr;
      padding: 20px;
  }
}

@media (min-width: 992px) {
  .grid_container {
      grid-template-columns: 1fr 2fr 1fr;
  }
}

.grid_left_div, .grid_center_div, .grid_right_div {
  background-color: var(--white-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Utility class for sections */
.content-section-width {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Headings */
.head_item3 {
  text-align: center;
  margin: 40px 0 25px 0;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
}

.head_item3 span {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 5px 20px;
  position: relative;
  z-index: 1;
  border-radius: 4px;
}

.head_item3::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background-color: var(--gray-color);
  z-index: 0;
}

/* Left Column Sliders */
.left_content_1 > div {
  margin-bottom: 25px;
}

.member_slider .card {
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.member_slider .card-img-top {
  height: 100px;
  object-fit: contain;
}

.member_slider .card-body {
  padding: 15px;
}

.member_slider .card-title {
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 500;
}

.member_slider .carousel-indicators li {
  background-color: rgba(0, 0, 0, 0.3);
}

.member_slider .carousel-indicators .active {
  background-color: var(--primary-color);
}

/* Content Overlay Links (Donation/Member Apply) */
.content {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

.content a { display: block; }

.content .content-overlay {
  background: rgba(0,0,0,0.6);
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.content:hover .content-overlay {
  opacity: 1;
}

.content-image {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.content:hover .content-image {
  transform: scale(1.05);
}

.content-details {
  position: absolute;
  text-align: center;
  padding: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.4s ease-in-out;
  box-sizing: border-box;
}

.content:hover .content-details {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.content-details h3 {
  color: var(--white-color);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.content-details .arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.content:hover .arrow {
  transform: translateX(5px);
}

/* Center Column Buttons */
.buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.buttons button {
  width: 100%;
  padding: 12px 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.buttons button i {
  margin-right: 8px;
}

.buttons button:hover {
  background-color: #c7423a;
  transform: translateY(-2px);
}

.buttons button:active {
  transform: translateY(0);
}

.buttons a {
  text-decoration: none;
  display: block;
}

/* Center Column Divs */
.center-div {
  margin-bottom: 30px;
}

/* Latest Activity Styles */
#latest-activity-scroll {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-height: 600px;
  overflow-y: auto;
  padding: 5px 15px 5px 5px;
  margin-right: -10px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--gray-color);
}

#latest-activity-scroll::-webkit-scrollbar {
  width: 8px;
}

#latest-activity-scroll::-webkit-scrollbar-track {
  background: var(--secondary-color);
  border-radius: 10px;
  margin: 5px 0;
}

#latest-activity-scroll::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--secondary-color);
}

#latest-activity-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #c7423a;
}

/* Right Column Recent Activity */
.right_content_1 marquee {
  border: 1px solid var(--gray-color);
  padding: 15px;
  border-radius: 5px;
  background-color: #fdfdfd;
  height: 250px;
  width: 90%;
  margin: auto;
  display: block;
}

.right_content_1 marquee p {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* About Us & President Message */
.about-us-section .col-md-4, .president-message .col-md-4 {
  display: flex;
  align-items: center;
}

.blog-slider__text p, .pre_msg p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #444;
}

.blog-slider__button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
  margin-top: 10px;
}

.blog-slider__button:hover {
  background-color: #c7423a;
  transform: translateY(-2px);
}

/* YouTube Section */
.youtube_div {
  width: 90%;
  margin: auto;
}

.youtube_div .row_youtube {
  margin-left: -10px;
  margin-right: -10px;
}

.youtube_div2 {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 20px;
}

.youtube_2 iframe {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  border: none;
}

/* Image Preview Styles */
.image_preview {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0px 0px 15px 2px rgba(0,0,0,0.5);
  z-index: 99999;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
}

.image_preview div {
  max-height: 90vh;
  max-width: 90vw;
  position: relative;
  overflow-y: auto;
  text-align: center;
}

.image_preview img {
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  display: inline-block;
  margin: auto;
  border-radius: 5px;
}

.image_preview p#preview_cancel {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  text-align: center;
  color: #333;
  font-size: 1.25rem;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  z-index: 100000;
  line-height: 40px;
}

.image_preview p#preview_cancel:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .grid_container {
      grid-template-columns: 1fr 1.5fr;
  }
  .grid_right_div {
      grid-column: 1 / -1;
  }
  .buttons {
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  #latest-activity-scroll {
      max-height: 550px;
  }
  .about-us-section .col-md-8, .president-message .col-md-8 {
      margin-top: 15px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .grid_container {
      grid-template-columns: 1fr;
      padding: 15px;
  }
  .head_item3 {
      font-size: 1.25rem;
      margin: 30px 0 20px 0;
  }
  .head_item3::before {
      left: 2%; right: 2%;
  }
  .buttons {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
  }
  .buttons button {
      font-size: 0.85rem;
      padding: 10px 8px;
  }
  #latest-activity-scroll {
      max-height: 500px;
      padding-right: 10px;
      margin-right: -5px;
  }
  .youtube_div { width: 95%; }
  .youtube_div .row_youtube { margin: 0 -5px; }
  .youtube_div2 { padding: 0 5px; }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  body { font-size: 14px; }
  .grid_container { padding: 10px; gap: 15px; }
  .grid_left_div, .grid_center_div, .grid_right_div { padding: 15px; }
  .head_item3 { font-size: 1.125rem; margin: 25px 0 15px 0; }
  .buttons {
      grid-template-columns: 1fr;
  }
  #latest-activity-scroll {
      max-height: 450px;
  }
  .image_preview img { max-height: 80vh; }
  .image_preview p#preview_cancel { width: 35px; height: 35px; font-size: 1.125rem; line-height: 35px; top: 15px; right: 15px; }
}