/**
* Template Name: Arsha - v4.3.0
* Template URL: https://bootstrapmade.com/arsha-free-bootstrap-html-template-corporate/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: #000000;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Jost", sans-serif;
  color: #fff
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #853764;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #853764;
  border-top-color: #fff;
  border-bottom-color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #FF00FF;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #0000FF;
  line-height: 0;
}

.back-to-top:hover {
  background: #FFFF00;
  color: #0000FF;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
}

#header.header-scrolled, #header.header-inner-pages {
  background: #853764;
}

#header .logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#header .brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

#header .main-title {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

#header .subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

#header .header-container-fluid {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  width: 100%;
  flex-wrap: nowrap !important;
}

#header .logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

.navbar {
  padding: 0;
  display: flex;
  align-items: center;
  margin-left: auto; 
}

.navbar a, 
.navbar a:focus {
  font-size: 14.2px !important;
  font-weight: 500;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  transition: 0.3s;
}

/* Unified Donate Button Style */
.navbar .getstarted, 
.navbar .getstarted:focus,
.mobile-donate-btn {
  background: #ffffff;
  border-radius: 50px;
  color: #853764 !important;
  font-weight: 600;
  transition: 0.3s;
  border: 1px solid #ffffff; /* Thinned border */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.navbar .getstarted {
  padding: 6px 22px;
  margin-left: 25px;
  font-size: 14px;
}

.navbar .getstarted:hover, 
.mobile-donate-btn:hover {
  background: transparent;
  color: #ffffff !important;
}

.mobile-donate-btn {
  display: none;
}

@media (max-width: 991px) {
  #header .header-container-fluid {
    padding: 0 20px;
    justify-content: flex-end;
  }

  #header .logo-group {
    margin-right: auto;
  }

  .desktop-only {
    display: none !important;
  }
  
  .mobile-donate-btn {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    margin-right: 15px;
    order: 2;
  }

  .mobile-nav-toggle {
    order: 3;
  }
}

.navbar a:hover, 
.navbar .active {
  color: #ffc107;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: #fff;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
  color: #530c44;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: #853764;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(40, 58, 90, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a {
  padding: 10px 20px;
  font-size: 15px;
  color: #37517e;
}

.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
  color: #47b2e4;
}

.navbar-mobile .getstarted {
  margin: 15px;
  color: #37517e;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  color: #47b2e4;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
Donations form
--------------------------------------------------------------*/
.donation-form {
  background: #fff;
  padding: 30px;
  box-shadow: 0px 0 30px rgba(133, 55, 100, 0.1);
  border-top: 3px solid #853764;
  border-radius: 8px;
}

.info-box {
  background: #fff;
  padding: 40px;
  box-shadow: 0px 0 30px rgba(133, 55, 100, 0.1);
  border-radius: 8px;
  text-align: center;
  height: 100%;
  /* Added Flex centering */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info-box i {
  font-size: 48px;
  color: #853764;
  margin-bottom: 20px;
}

.etransfer-box {
  background: #f8f9fa;
  border: 1px dashed #853764;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
  /* Added to ensure the box itself centers its contents */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.email-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: #853764;
  margin-top: 10px;
  /* Added to prevent overflow on small phones */
  word-break: break-all;
  line-height: 1.4;
}

.scripture-box {
  margin-top: 30px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 20px;
  width: 100%;
}

.pledge-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pledge-btn {
  border: 1px solid #853764 !important;
  color: #853764 !important;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: 0.3s;
  flex: 1;
  min-width: 80px;
}

.btn-check:checked + .pledge-btn {
  background-color: #853764 !important;
  color: #ffffff !important;
}

.pledge-btn:hover {
  background-color: rgba(133, 55, 100, 0.1);
}

.input-group-text {
  background-color: #853764;
  color: white;
  border: 1px solid #853764;
}

/* Special fix for small mobile screens */
@media (max-width: 575px) {
  .email-highlight {
    font-size: 1rem; 
  }
  
  .info-box {
    padding: 30px 20px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background-color: #f3f5fa;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #4a1442;
}

.section-title h2::before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #4a1442;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Cliens
--------------------------------------------------------------*/
.cliens {
  position: relative;
  width: 100%;
  min-height: 72vh; /* This is the key fix! */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  
  /* This creates that professional MFM color tint */
  background-image: linear-gradient(to bottom right, rgba(147, 30, 118, 0.25), rgba(255, 171, 91, 0.02));
}
/* 2. The Wallpaper Layer - This is the "MFM Logic" */
.cliens::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Use !important here to override any Arsha default section-bg styles */
  background-image: url('../img/coverImage1.jpg') !important; 
  background-position: center !important;
  background-size: cover !important; /* THIS prevents the shrinking */
  background-repeat: no-repeat;
  
  /* Add this to make it feel "sturdy" like the MFM site when scrolling/zooming */
  background-attachment: scroll; 
  
  /* Darkness filter so your text is readable */

  z-index: 1;
  pointer-events: none;
}

/* 3. The Content Layer */
.cliens .container {
  position: relative;
  z-index: 2; 
  width: 100%;
}

/*
.cliens img {
  max-width: 100%;
  transition: all 0.4s ease-in-out;
  display: inline-block;
  padding: 15px 0;
  filter: grayscale(100);
}*/

.cliens img:hover {
  filter: none;
  transform: scale(1.1);
}


/*--------------------------------------------------------------
# About Us
--------------------------------------------------------------*/
.row {
  /* This ensures the Bootstrap row tries to center its columns */
  justify-content: center; 
}

.about .content {
  width: 100%;
  max-width: 90%; /* Allows it to be wide on large screens */
  margin: 0 auto;
  text-align: left; /* Keeps your preferred text alignment */
}

.about .content h3 {
  font-weight: 600;
  font-size: 26px;
}


.about .content ul {
  list-style: none;
  padding: 0;
  
}

.about .content ul li {
  padding-left: 28px;
  position: relative;
}

.about .content ul li + li {
  margin-top: 10px;
}

.about .content ul i {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 20px;
  color: #853764;
  line-height: 1;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .content .btn-learn-more {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  transition: 0.3s;
  line-height: 1;
  color: #853764;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
  margin-top: 6px;
  border: 2px solid #853764;
}

.about .content .btn-learn-more:hover {
  background: #4a1442;
  color: #fff;
  text-decoration: none;
}

.about .section-title {
  padding-bottom: 10px; /* Reduces space under the "About Us" underline */
}

/* 2. Tighten space between first paragraph and "Our Core Values" */
.about .content p {
  margin-bottom: 10px; /* Reduces space after every paragraph */
}

/* 3. Tighten space between "Our Core Values" header and the bullet points */
.about .values-title {
  margin-top: 10px !important;
  margin-bottom: 5px !important;
  color: #853764;
  font-weight: 700;
}

/* 4. Remove extra top margin from the list itself */
.about .content ul {
  list-style: none;
  padding: 0;
  margin-top: 0; 
}

/* 5. Tighten the space between individual list items */
.about .content ul li + li {
  margin-top: 5px; /* Reduced from 10px */
}

/* 6. Adjust the "Learn More" button margin if needed */
.about .content .btn-learn-more {
  margin-top: 20px; 
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all ease-in-out 0.4s;
  background: #fff;
  border-radius: 10px; 
}

.services .icon-box .icon {
  margin-bottom: 10px;
}

.services .icon-box .icon i {
  color: #853764;
  font-size: 36px;
  transition: none;
}

.services .icon-box h4 {
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 24px;
}

.services .icon-box h4 a {
  color: #853764;
  transition: none;
  text-decoration: none;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  transform: none;
}

.services .icon-box:hover h4 a {
  color: #4a1442;
}

.services-slider {
  width: 100%;
  height: auto; 
  overflow: hidden;
  padding: 10px 0;
}

/* Hide default thick Swiper arrows */
.custom-nav::after {
  display: none !important;
}

/* Custom Small Thin Arrow with Stem */
.custom-nav {
  color: #853764 !important;
  width: 30px !important;
  height: 30px !important;
  top: 50% !important;
  transition: 0.3s ease;
}

/* Use Bootstrap Icons for the thin stemmed look */
.swiper-button-prev.custom-nav::before {
  content: '\f12f'; /* Bootstrap icon: arrow-left */
  font-family: 'bootstrap-icons';
  font-size: 22px;
  font-weight: 100; /* Keeps it thin */
}

.swiper-button-next.custom-nav::before {
  content: '\f138'; /* Bootstrap icon: arrow-right */
  font-family: 'bootstrap-icons';
  font-size: 22px;
  font-weight: 100;
}

.services-slider .swiper-pagination-bullet {
  background: #853764 !important; /* Theme Purple */
  opacity: 0.3;
  width: 10px;
  height: 10px;
}

/* The active dot */
.services-slider .swiper-pagination-bullet-active {
  background: #ffc107 !important; /* Theme Gold/Yellow */
  opacity: 1;
  width: 12px; /* Slightly larger to show it's active */
  height: 12px;
}

/* Interaction: Subtle nudge on hover */
.custom-nav:hover {
  opacity: 0.7;
}

/* HIDE buttons on mobile, keep swipe enabled */
@media (max-width: 991px) {
  .custom-nav {
    display: none !important;
  }
}

/* --- Zoom Card --- */
.zoom-join-card {
  background: #853764;
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #ffc107;
}

.zoom-btn {
  background: #ffc107;
  color: #853764 !important;
  padding: 10px 25px;
  border-radius: 50px;
  display: inline-block;
  margin: 15px 0;
  font-weight: bold;
  text-decoration: none;
}

/* Force Service Slider cards to be equal height */
.services .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.services .swiper-slide {
  height: auto; /* Allows flex stretch to work */
  display: flex;
}

.services .icon-box {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  width: 100%;
  padding: 40px 20px;
  margin-bottom: 0; /* Prevents extra gaps at the bottom */
}

/* Fix title alignment if one is longer than the other */
.services .icon-box h4 {
  min-height: 54px; /* Adjust this so 2-line titles fit without pushing the box */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/*--------------------------------------------------------------
# Cta
--------------------------------------------------------------*/
.cta {
  background: linear-gradient(rgba(151, 40, 122, 0.9), rgba(158, 40, 150, 0.9)), url("../img/crowd2.jpg") fixed center center;
  background-size: cover;
  padding: 120px 0;
}

.cta h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.cta p {
  color: #fff;
}

.cta .cta-btn {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid #fff;
  color: #fff;
}

.cta .cta-btn:hover {
  background: #853764;
  border: 2px solid #853764;
}

@media (max-width: 1024px) {
  .cta {
    background-attachment: scroll;
  }
}

@media (min-width: 769px) {
  .cta .cta-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio #portfolio-flters {
  list-style: none;
  margin-bottom: 20px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  margin: 10px 5px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #444444;
  transition: all 0.3s;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
}

.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li.filter-active {
  background: #853764;
  color: #fff;
}

.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio .portfolio-item .portfolio-img {
  overflow: hidden;
}

.portfolio .portfolio-item .portfolio-img img {
  transition: all 0.6s;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 15px;
  bottom: 0;
  z-index: 3;
  right: 15px;
  transition: all 0.3s;
  background:#853764;
  padding: 10px 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: #f9fcfe;
  font-size: 14px;
  margin-bottom: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link, .portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 40px;
  font-size: 24px;
  top: calc(50% - 18px);
  color: #fff;
  transition: 0.3s;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover, .portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: #4a1442;
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 10px;
}

.portfolio .portfolio-item:hover .portfolio-img img {
  transform: scale(1.15);
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #4a1442;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #4a1442;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(55, 81, 126, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/* Force all portfolio images to have the same aspect ratio */
.portfolio .portfolio-item .portfolio-img img {
  width: 100%;
  height: 250px; 
  object-fit: cover; 
}

/* Ensure the container doesn't have strange overlaps */
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Frequently Asked Questions
--------------------------------------------------------------*/
.faq .faq-list {
  padding: 0 100px;
}

.faq .faq-list ul {
  padding: 0;
  list-style: none;
}

.faq .faq-list li + li {
  margin-top: 15px;
}

.faq .faq-list li {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  position: relative;
}

.faq .faq-list a {
  display: block;
  position: relative;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  /* Increased right padding to 50px to prevent text from overlapping the arrows */
  padding: 0 50px 0 30px; 
  outline: none;
  cursor: pointer;
  color: #853764; /* Theme color for active/open questions */
}

.faq .faq-list .icon-help {
  font-size: 24px;
  position: absolute;
  left: 20px;
  color: #853764;
}

.faq .faq-list .icon-show, 
.faq .faq-list .icon-close {
  font-size: 24px;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.3s;
}

.faq .faq-list p {
  margin-bottom: 0;
  padding: 10px 0 0 0;
}

/* Logic for toggling arrows */
.faq .faq-list .icon-show {
  display: none; /* Hidden when the question is open */
}

.faq .faq-list a.collapsed {
  color: #4a1442;
  transition: 0.3s;
}

.faq .faq-list a.collapsed:hover {
  color: #853764;
}

/* FIXED: Show the "Down" arrow when collapsed */
.faq .faq-list a.collapsed .icon-show {
  display: inline-block;
}

/* FIXED: Hide the "Up" arrow when collapsed (corrected typo) */
.faq .faq-list a.collapsed .icon-close {
  display: none;
}

@media (max-width: 1200px) {
  .faq .faq-list {
    padding: 0;
  }
}

/* Mobile optimization for smaller screens */
@media (max-width: 768px) {
  .faq .faq-list a {
    font-size: 15px;
    padding: 0 40px 0 25px;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  border-top: 3px solid #853764;
  border-bottom: 3px solid #853764;
  padding: 30px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact .info i {
  font-size: 20px;
  color: #853764;
  float: left;
  width: 44px;
  height: 44px;
  background: #e7f5fb;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #4a1442;
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #4a1442;
}

.contact .info .email p {
  padding-top: 5px;
}

/* CONTACT INFO ITEMS - Keep them together */
.contact .info .address,
.contact .info .email,
.contact .info .phone {
  margin-bottom: 25px;
}

.contact .info .address:last-child,
.contact .info .email:last-child,
.contact .info .phone:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE MAP */
.contact .info iframe {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-top: 25px;
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto; /* Takes remaining space, can grow and shrink */
  min-height: 300px; /* Minimum height on mobile */
}

.contact .info .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #333;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  margin-right: 10px;
}

.contact .info .social-links a:hover {
  background: #853764;
  color: #fff;
}

/* Hover effects */
.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #853764;
  color: #fff;
}

.contact .col-lg-5.d-flex.align-items-stretch {
  display: flex !important;
}

@media (max-width: 1200px) {
  .contact .info {
    padding: 25px;
  }
}

@media (max-width: 992px) {
  .contact .info {
    padding: 25px;
  }
  
  .contact .info iframe {
    min-height: 350px;
  }
  
  .contact .col-lg-5 {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .contact .info {
    padding: 20px;
  }
  
  .contact .info h4 {
    font-size: 20px;
  }
  
  .contact .info p {
    font-size: 14px;
  }
  
  .contact .info iframe {
    min-height: 300px;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .contact .info {
    padding: 15px;
  }
  
  .contact .info h4 {
    font-size: 18px;
  }
  
  .contact .info p {
    font-size: 13px;
    padding: 0 0 10px 50px;
  }
  
  .contact .info i {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .contact .info h4 {
    padding: 0 0 0 50px;
  }
  
  .contact .info iframe {
    min-height: 250px;
  }
}

.contact .php-email-form {
  width: 100%;
  border-top: 3px solid #853764;
  border-bottom: 3px solid #853764;
  padding: 30px;
  background: #fff;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .validate {
  display: none;
  color: red;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form .form-group {
  margin-bottom: 20px;
}

.contact .php-email-form label {
  padding-bottom: 8px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 4px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #853764;
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type="submit"] {
  background: #853764;
  border: 0;
  padding: 12px 34px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #853764;
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background: #853764;
  min-height: 40px;
  margin-top: 72px;
}

@media (max-width: 992px) {
  .breadcrumbs {
    margin-top: 68px;
  }
}

.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #4a1442;
  content: "/";
}
/*--------------------------------------------------------------
# About Page
--------------------------------------------------------------*/
.about-tabs {
  padding: 60px 0;
}

.about-tabs .nav-tabs {
  border: none;
  background: #f8f9fa; /* Light grey background like your image */
  padding: 10px;
  border-radius: 5px;
}

.about-tabs .nav-link {
  border: none;
  color: #555;
  font-weight: 600;
  font-size: 14px;
  padding: 15px 10px;
  background: none;
  border-bottom: 4px solid transparent; /* The hidden thick line */
  transition: 0.3s;
  text-transform: uppercase;
}

.about-tabs .nav-link:hover {
  color: #853764;
}

.about-tabs .nav-link.active {
  color: #853764;
  background: none;
  border-bottom: 5px solid #853764 !important; /* The thick purple underline */
}

.tab-header {
  margin-top: 0;
  color: #853764;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.tab-subheader {
  color: #853764;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  text-transform: none;
}

/* --- Styling for the Beliefs List --- */
.beliefs-list ul {
  list-style: none;
  padding: 0;
}

.beliefs-list ul li {
  padding-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.beliefs-list ul li i {
  color: #853764;
  margin-right: 15px;
  font-size: 1.2rem;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
  .about-tabs .nav-link {
    font-size: 12px;
    padding: 10px 5px;
  }
}

/*--------------------------------------------------------------
# Appointment page
--------------------------------------------------------------*/
.form-control {
  border: 2px solid #853764 !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Clicking/Focus State: Slightly brighter purple glow */
.form-control:focus {
  border-color: #a65a8a !important;
  box-shadow: 0 0 0 0.25rem rgba(133, 55, 100, 0.25) !important;
  outline: 0;
}

/* Error State: Red Border */
.form-control.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* The Error Alert Box at the top of the form */
.error-box {
  display: none; 
  margin-bottom: 20px;
  padding: 15px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  font-weight: 600;
}

/* --- Custom Popup Styling --- */
.custom-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  min-width: 300px;
  animation: slideIn 0.5s ease-out;
}

/* Success State for Popup */
.custom-popup.success { 
  background: #d4edda; 
  color: #155724; 
  border-left: 5px solid #28a745; 
}

/* Error State for Popup */
.custom-popup.error { 
  background: #f8d7da; 
  color: #721c24; 
  border-left: 5px solid #dc3545; 
}

.popup-content h4 { 
  margin-top: 0; 
  font-weight: 700; 
}

.popup-content button {
  background: #853764;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.popup-content button:hover {
  background: #6a2c50;
}

/* This targets the submit button on BOTH forms */
.php-email-form button[type="submit"] {
  background: #853764 !important; /* Your Brand Purple */
  border: 0 !important;
  padding: 12px 40px !important;
  color: #fff !important;
  transition: 0.4s !important;
  border-radius: 50px !important; /* Rounded edges */
  font-size: 16px !important;
  font-weight: 500 !important;
  display: inline-block !important;
}

.php-email-form button[type="submit"]:hover {
  background: #6a2c50 !important; /* Darker purple on hover */
  cursor: pointer;
}

/* Style for when the JS disables the button during sending */
.php-email-form button[type="submit"]:disabled {
  background: #b5b5b5 !important;
  cursor: not-allowed;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/*--------------------------------------------------------------
# Resources Page Custom Styles
--------------------------------------------------------------*/
.resources {
  padding: 60px 0;
}

.resource-item {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.resource-item img {
  border: 5px solid #f6f9ff;
  transition: none;
}



.resource-item h3 {
  color: #4a1442;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  color: #444;
}

.resource-list li i {
  color: #853764;
  font-size: 20px;
  margin-right: 10px;
}

/* Button Styling */
.btn-learn-more {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  border: 2px solid #853764;
  color: #853764;
  font-weight: 600;
  transition: 0.3s;
  margin-top: 15px;
  text-decoration: none;
  background: transparent;
}

.btn-learn-more:hover {
  background: #853764;
  color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .resource-item {
    text-align: center;
    padding: 20px;
  }
  .resource-item img {
    margin-bottom: 30px;
  }
  .resource-list {
    display: inline-block;
    text-align: left;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #853764 !important;
  color: #ffffff !important;
  padding: 46px 0 60px;
  margin-top: 40px;
  font-size: 13.3px; /* Reduced by ~5% */
}

/* Forces 3 columns on Desktop and Tablet Zoom */
#footer .footer-grid-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr; 
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#footer .footer-brand h3 {
  font-family: 'Jost', sans-serif;
  margin-bottom: 8px;
  color: #ffffff !important;
  font-size: 21px; /* Reduced font */
}

#footer .footer-brand p {
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.5;
}

#footer .footer-links h4, 
#footer .footer-contact h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #ffffff !important;
}

#footer .footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 6px 0;
  text-decoration: none;
  font-size: 13.3px;
}

#footer .footer-contact p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* SOCIAL LINKS - Moved outside of media query so they work everywhere */
#footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

#footer .social-links a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px; /* Reduced size slightly */
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-radius: 50%;
  transition: 0.3s;
  font-size: 16px; /* Slightly smaller icons */
}

#footer .social-links a:hover {
  background: #ffffff;
  color: #853764 !important;
}

#footer .social-links a i {
  line-height: 0;
}

#footer .footer-bottom {
  text-align: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem; /* Reduced font */
}

/* MOBILE ONLY - Only triggers on very small screens */
@media (max-width: 600px) {
  #footer .footer-grid-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #footer .social-links {
    justify-content: center;
  }
}
