/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;1,100&display=swap'); */
*{
    margin: 0;
    padding: 0;
}
/* body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
} */
a{
    text-decoration: none;
}
ul{
    list-style-type: none;
}
#logo{
  width: 300px;
}
.back-to-top{
  position: fixed;
  bottom: 55px;
  right: 15px;
}
/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 992px) {
  #logo{
  width: 175px;
}
}

/* On screens that are 600px or less, set the background color to olive */
@media screen and (max-width: 600px) {
  #logo{
  width: 175px;
}
}
/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #ea2127;
  bottom: 0;
  left: calc(50% - 25px);
}

.section-title p {
  margin-bottom: 0;
}

.section-bg {
  padding: 120px 0;
  color: #fff;
}

.section-bg:before {
  content: "";
  background: #1b1b1b;
  position: absolute;
  bottom: 60px;
  top: 60px;
  left: 0;
  right: 0;
  /*transform: skewY(-3deg);*/
}
/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background: #2b2b2b;
  min-height: 40px;
  color: #fff;
}

.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 500;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol a {
  color: #aaaaaa;
}

.breadcrumbs ol a:hover {
  color: #fff;
  transition: 0.3s;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #106eea;
  content: "/";
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px;
  margin: 30px 15px;
  min-height: 200px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  background: #f32249;
  border-radius: 15px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 10px;
  border: 6px solid #fff;
  float: left;
  margin: 0 10px 0 0;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 25px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #fceaea;
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 30px auto 15px auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #106eea;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #106eea;
}


/* top nav */
   ul{
    list-style: none;
    margin-bottom: 0;
   }

/*  desktop view */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
    }
}
/* desktop view end */
.featuredImage img {
    width: 100%;
    height: 300px;
}

.featuredImage {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.featuredImage .overlay {
    position: absolute;
    bottom: 0;
    padding-left: 25px;
    padding-top: 15px;
    width: 100%;
    color: white;
    font-size: 20px;
    z-index: 5;
}

.featuredImage .overlay::before {
    content: "";
    background: #090909;
    height: 100%;
    width: 100%;
    z-index: 1;
    position: absolute;
    left: 0;
    bottom: -150px;
    z-index: -2;
    opacity: 0.8;
    transition: all 0.3s ease-out;
}

.featuredImage:hover .overlay {
    color: rgb(255, 255, 255);
}

.container .featuredImage:hover .overlay .amount,
.container .featuredImage:hover .overlay .h4,
.container .featuredImage:hover .overlay .textmuted,
.container .featuredImage:hover .overlay .fa-star,
.container .featuredImage:hover .overlay .fa-star-half-alt,
.container .featuredImage:hover .overlay .review {
    color: rgb(255, 255, 255);
}

.featuredImage:hover .overlay::before {
    bottom: 0px;
}
.textmuted {
    color: #f8f8f8;
    font-weight: 200;
    font-size: 15px;
    text-transform: capitalize;
}

/* Text Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-text {
    overflow: hidden;
    border-right: .15em solid rgb(254, 97, 97);
    white-space: nowrap;
    margin: 0;
    padding: 0;
    animation: typing 5s steps(60, end) infinite;
    animation-delay: 1s;
}

/* Success Stories (Voices of Change) cards */
.success-story-card {
  background: #e8fbf3;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  overflow: hidden;
}

.success-story-quote {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.6;
}

.success-story-text {
  color: #4d4d4d;
  font-style: italic;
  line-height: 1.8;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.success-story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.success-story-name {
  font-weight: 700;
  color: #111;
}

.success-story-title {
  color: #6b6b6b;
  font-size: 14px;
}

/* Active menu highlighting - dark blue color */
.navbar-nav .nav-item.active .nav-link {
  color: #0D47A1 !important;
}

/* Dropdown active state */
.navbar-nav .nav-item.dropdown.active .nav-link {
  color: #0D47A1 !important;
}

/* Template Homepage Enhancements */
.hero-wrap .overlay {
  opacity: 0.5;
}

.ftco-counter .block-18 .text {
  color: #fff;
}

.carousel-cause .cause-entry .img {
  height: 300px;
  display: block;
  background-size: cover;
  background-position: center;
}

.ftco-gallery .gallery {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.ftco-gallery .gallery .icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.ftco-gallery .gallery:hover .icon {
  opacity: 1;
}

.blog-entry .block-20 {
  height: 270px;
  display: block;
  background-size: cover;
  background-position: center;
}

.carousel-testimony .user-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.staff .img-wrap .img {
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  -ms-border-radius: 8px !important;
}

.staff .img {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  -ms-border-radius: 8px !important;
  width: 100% !important;
  height: auto !important;
}

/* Owl Carousel Custom Dots */
.owl-theme .owl-dots .owl-dot span {
  background: #ccc;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: #0D47A1;
}

/* Owl Carousel Navigation Arrows */
.owl-theme .owl-nav {
  margin-top: 20px;
}

.owl-theme .owl-nav button.owl-prev,
.owl-theme .owl-nav button.owl-next {
  background: transparent !important;
  color: #0D47A1 !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 50px;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  opacity: 0.8;
  outline: none;
  border: 2px solid #0D47A1 !important;
}

.owl-theme .owl-nav button.owl-prev:hover,
.owl-theme .owl-nav button.owl-next:hover {
  opacity: 1;
  background: rgba(255, 106, 0, 0.1) !important;
  transform: translateY(-50%) scale(1.1);
}

.owl-theme .owl-nav button.owl-prev {
  left: -25px;
}

.owl-theme .owl-nav button.owl-next {
  right: -25px;
}

.owl-theme .owl-nav button.owl-prev span,
.owl-theme .owl-nav button.owl-next span {
  font-size: 24px;
  line-height: 50px;
  color: #0D47A1 !important;
  font-weight: bold;
}

/* Gallery carousel specific */
.carousel-gallery .owl-nav button.owl-prev,
.carousel-gallery .owl-nav button.owl-next {
  background: transparent !important;
  border: 2px solid #0D47A1 !important;
}

.carousel-gallery .owl-nav button.owl-prev:hover,
.carousel-gallery .owl-nav button.owl-next:hover {
  background: rgba(255, 106, 0, 0.1) !important;
}

/* AOS Animations */
[data-aos] {
  pointer-events: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 106, 0, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .icon {
  opacity: 1;
}

.gallery-item .icon span {
  font-size: 24px;
  color: #fff;
}

/* Smooth carousel transitions */
.owl-carousel {
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.owl-carousel .owl-stage {
  position: relative;
}

.owl-carousel .owl-item {
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0,0,0);
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}

.owl-carousel:hover {
  cursor: grab;
}

.owl-carousel.owl-drag {
  cursor: grabbing;
}

/* Carousel container hint for horizontal scroll */
.carousel-cause:hover .owl-stage-outer::after,
.carousel-testimony:hover .owl-stage-outer::after,
.carousel-gallery:hover .owl-stage-outer::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  width: 0;
  height: 0;
  border-left: 8px solid rgba(255, 106, 0, 0.3);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translateY(-50%);
  animation: arrowPulse 2s infinite;
  pointer-events: none;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Prevent scroll issues on carousels */
.owl-carousel .owl-stage-outer {
  overflow: hidden;
  position: relative;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

/* Hide cloned items when loop is disabled */
.owl-carousel .cloned {
  display: none !important;
}

/* Photo Gallery Page Specific */
.ftco-section .gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ftco-section .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
}

/* Fixed Navbar with Solid Background - Sticky on Scroll */
.ftco-navbar-light {
  background: #ffffff !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  height: 70px;
}

/* Add padding to body to prevent content hidden behind fixed navbar */
body {
  padding-top: 70px;
}

/* Override for homepage with slider */
.home {
  padding-top: 0 !important;
}

/* Make slider start after the fixed navbar */
.home .hero-slider-container {
  margin-top: 70px !important;
  padding-top: 0 !important;
}

/* Navbar Text Color - Black on All Pages */
.navbar .nav-link {
  color: #000 !important;
}

.navbar .nav-link:hover {
  color: #0D47A1 !important;
}

/* Navbar Brand (Logo) */
.ftco-navbar-light .navbar-brand {
  color: #000 !important;
}

/* Navigation Links */
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  color: #000 !important;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
  color: #0D47A1 !important;
}

/* Active Navigation Item */
.ftco-navbar-light .navbar-nav > .nav-item.active > a {
  color: #0D47A1 !important;
}

/* Remove extra spacing for sections since body has padding-top */
section:first-of-type {
  margin-top: 0;
}


/* ========================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ======================================== */

/* General Mobile Optimizations */
@media (max-width: 767px) {
    /* Reduce padding on mobile */
    section {
        padding: 40px 0;
    }
    
    /* Better text sizing */
    h1 {
        font-size: 28px !important;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 20px !important;
    }
    
    h4 {
        font-size: 18px !important;
    }
    
    p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    /* Container spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Cards and boxes */
    .card, .box, .block {
        margin-bottom: 20px;
    }
    
    /* Images responsive */
    img {
        max-width: 100%;
        height: auto !important;
    }
    
    /* DO NOT make buttons full width - keep original styling */
    /* Removed: .btn { display: block; width: 100%; } */
    
    /* Hero sections */
    .hero-wrap {
        min-height: 400px !important;
    }
    
    /* Carousel adjustments */
    .owl-carousel .owl-nav button {
        display: none !important;
    }
    
    /* Gallery grid */
    .ftco-gallery .gallery {
        height: 250px !important;
    }
    
    /* Blog/News entries */
    .blog-entry .block-20 {
        height: 200px !important;
    }
    
    /* Counters */
    .ftco-counter .block-18 {
        margin-bottom: 30px;
    }
    
    /* Team/Staff cards */
    .staff .img-wrap .img {
        height: 300px !important;
    }
    
    /* Footer adjustments */
    .ftco-footer .ftco-footer-widget {
        margin-bottom: 30px;
    }
    
    /* Testimonials */
    .testimonials .testimonial-item {
        margin: 15px 0;
        padding: 20px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    /* Spacing utilities for mobile */
    .mb-mobile-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-mobile-4 {
        margin-top: 1.5rem !important;
    }
    
    .py-mobile-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Fixed navbar mobile adjustment */
    body {
        padding-top: 70px;
    }
    
    .ftco-navbar-light {
        height: auto;
        min-height: 60px;
    }
    
    .home {
        padding-top: 0 !important;
    }
    
    .home .hero-slider-container {
        margin-top: 70px !important;
    }
    
    /* Text alignment on mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Hide desktop-only elements */
    .hide-mobile {
        display: none !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    h1 {
        font-size: 36px !important;
    }
    
    h2 {
        font-size: 30px !important;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero-wrap {
        min-height: 500px !important;
    }
}

/* Small mobile devices (phones in portrait) */
@media (max-width: 575px) {
    /* Extra small text adjustments */
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* Smaller padding */
    section {
        padding: 30px 0;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Buttons keep original size - just adjust padding slightly */
    .btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    
    /* Cards more compact */
    .card-body {
        padding: 15px !important;
    }
    
    /* Gallery smaller on phones */
    .ftco-gallery .gallery {
        height: 200px !important;
    }
    
    /* Logo smaller */
    .navbar-brand img {
        max-height: 40px !important;
    }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-wrap {
        min-height: 350px !important;
    }
    
    .ftco-navbar-light {
        min-height: 50px;
    }
    
    body {
        padding-top: 50px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for nav items */
    .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects that don't work on touch */
    .gallery-item:hover {
        transform: none;
    }
    
    /* Better spacing for touch */
    .nav-item {
        padding: 5px 0;
    }
}

/* High DPI screens (Retina displays) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look sharp on retina */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if device uses dark mode) */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here if needed */
}
