/* ===================== Implementación de Font ===================== */

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Regular.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Light.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-SemiBold.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Bold.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ===================== Variables ===================== */

:root {
  --white-color:                  #ffffff;
  --primary-color:                #31363F;
  --secondary-color:              #5a6f80;
  --section-bg-color:             #f0f8ff;
  --site-footer-bg-color:         #44525d;
  --custom-btn-bg-color:          #597081;
  --custom-btn-bg-hover-color:    #31363F;
  --dark-color:                   #000000;
  --p-color:                      #717275;
  --border-color:                 #e9eaeb;

  --body-font-family:             'Metropolis', sans-serif;

  --h1-font-size:                 52px;
  --h2-font-size:                 46px;
  --h3-font-size:                 32px;
  --h4-font-size:                 28px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  16px;
  --btn-font-size:                18px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-light:            300;
  --font-weight-normal:           400;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Value Cards Styling */
.value-card {
  padding: 2rem 1.5rem;
  background: var(--white-color);
  border-radius: var(--border-radius-small);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(89, 112, 129, 0.1);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(89, 112, 129, 0.2);
}

.value-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.value-icon i {
  color: var(--custom-btn-bg-color) !important;
  transition: color 0.3s ease;
}

.value-card:hover .value-icon i {
  color: var(--primary-color) !important;
}

.value-card h5 {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--p-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive adjustments for value cards */
@media (max-width: 768px) {
  .value-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .value-card h5 {
    font-size: 1rem;
  }
  
  .value-card p {
    font-size: 0.9rem;
  }
}

/* Equal height layout for Community section */
.community-equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ensure text boxes fill available space */
.custom-text-box.flex-fill {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Enhanced Statistics Container */
.stats-container {
  background: linear-gradient(135deg, rgba(89, 112, 129, 0.05) 0%, rgba(89, 112, 129, 0.1) 100%);
  border: 2px solid rgba(89, 112, 129, 0.2);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.stats-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--custom-btn-bg-color), var(--primary-color), var(--custom-btn-bg-color));
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.stats-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: rgba(89, 112, 129, 0.1);
  border-radius: 50%;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.stats-container:hover .stats-icon {
  transform: scale(1.1);
}

.stats-container h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--custom-btn-bg-color);
}

.stats-container p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--p-color);
}

.stats-container strong {
  color: var(--custom-btn-bg-color);
  font-weight: 700;
}

/* Mobile responsiveness for community section */
@media (max-width: 991px) {
  .community-equal-height {
    flex-direction: column;
  }
  
  .custom-text-box.flex-fill {
    flex: none;
    margin-bottom: 1rem;
  }
  
  .custom-text-box.flex-fill:last-child {
    margin-bottom: 0;
  }
  
  .stats-content {
    padding: 0.75rem;
  }
  
  .stats-icon {
    width: 60px;
    height: 60px;
  }
  
  .stats-icon i {
    font-size: 2rem !important;
  }
}


/* ===================== Tipografía ===================== */


h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  letter-spacing: -1px;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: -2px;
}

h2 {
  color: var(--secondary-color);
  font-size: var(--h2-font-size);
  letter-spacing: -2px;
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}


/* ===================== Sección ===================== */

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-bg {
  background-color: var(--section-bg-color);
}

.section-overlay {
  background: rgba(0, 0, 0, 0.35);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.section-overlay + .container {
  position: relative;
}


/* ===================== Bloques ===================== */

.custom-block-wrap {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  transition: all 0.5s;
}

.custom-block-wrap:hover {
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.custom-block-body {
  padding: 30px;
}

.custom-block-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-block .custom-btn {
  border-radius: 0;
  display: block;
}

/* ===================== Color de icono ===================== */

.custom-icon {
  color: var(--secondary-color);
}


/* ===================== Lista ===================== */

.custom-list {
  margin-bottom: 0;
  padding-left: 0;
}

.custom-list-item {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 10px;
}


/* ===================== Cuadro de texto ===================== */

.custom-text-box {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  margin-bottom: 24px;
  padding: 40px;
}

/* Historia section title styling */
  #nuestra-historia-title {
    color: white !important;
    font-weight: semibold !important;
  }

/* FAQ Responsive Styling */
faq .container-faq,
.container-faq {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 50px 40px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.faq .heading h1,
.container-faq .heading h1,
#faq-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: left !important;
  margin-bottom: 4rem;
  color: var(--primary-color);
  padding-left: 40px !important;
  padding-right: 20px !important;
}

.faq .question {
  background: #fff;
  margin-bottom: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.faq .question:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq .question button {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.faq .question button:hover {
  background-color: #f8f9fa;
}

.faq .question button span {
  flex: 1;
  margin-right: 1rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.faq .question .d-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.faq .question.active .d-arrow {
  transform: rotate(180deg);
}

.faq .question p {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  margin: 0;
  color: #666;
  line-height: 1.6;
  display: none;
  animation: fadeIn 0.3s ease-in;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.faq .question.active p {
  display: block;
}

/* FAQ Divider */
.faq .question {
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.faq .question:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ Section Background */
faq {
  display: block;
  width: 100% !important;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 60px 0;
  overflow-x: hidden;
  margin: 0 !important;
  position: relative !important;
}

/* Desktop styling for FAQ container */
@media (min-width: 1200px) {
  faq .container-faq {
    max-width: 1200px !important;
    padding: 60px 50px !important;
  }
  
  .faq .heading h1,
  .container-faq .heading h1,
  #faq-title {
    font-size: 3.5rem;
    margin-bottom: 4.5rem;
    padding-left: 50px !important;
    padding-right: 30px !important;
  }
}

@media (min-width: 992px) {
  faq .container-faq {
    max-width: 1100px !important;
    padding: 55px 45px !important;
  }
  
  .faq .heading h1,
  .container-faq .heading h1,
  #faq-title {
    font-size: 3.2rem;
    margin-bottom: 4.2rem;
    padding-left: 45px !important;
    padding-right: 25px !important;
  }
}

/* Force FAQ white container to be much wider on mobile */
@media (max-width: 768px) {
  faq .container-faq {
    width: 98% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 20px 15px !important;
  }
}

@media (max-width: 576px) {
  faq .container-faq {
    width: 99% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 15px 10px !important;
  }
}

@media (max-width: 480px) {
  faq .container-faq {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 8px !important;
  }
}

/* Extra small devices - make it completely full width */
@media (max-width: 360px) {
  faq .container-faq {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 5px !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  faq {
    padding: 40px 0;
  }
  
  faq .container-faq,
  .container-faq {
    padding: 20px 10px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    width: calc(100% - 20px) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .faq .heading h1,
  .container-faq .heading h1,
  #faq-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-left: 25px !important;
    padding-right: 15px !important;
    padding-top: 30px !important;
  }
  
  .faq .question {
    margin-bottom: 0.8rem;
    width: 100%;
  }
  
  .faq .question button {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq .question button span {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-right: 0.8rem;
  }
  
  .faq .question p {
    padding: 1rem 1rem 1rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  faq {
    padding: 20px 0;
  }
  
  faq .container-faq,
  .container-faq {
    padding: 15px 8px !important;
    width: calc(100% - 16px) !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .faq .heading h1,
  .container-faq .heading h1,
  #faq-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-left: 20px !important;
    padding-right: 12px !important;
    padding-top: 25px !important;
  }
  
  .faq .question {
    margin-bottom: 0.6rem;
    border-radius: 6px;
    width: 100%;
  }
  
  .faq .question button {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  .faq .question button span {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    line-height: 1.2;
  }
  
  .faq .question p {
    padding: 0.8rem 0.8rem 0.8rem 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .faq .question .d-arrow {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  faq {
    padding: 15px 0;
  }
  
  faq .container-faq,
  .container-faq {
    padding: 10px 5px !important;
    width: calc(100% - 10px) !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .faq .heading h1,
  .container-faq .heading h1,
  #faq-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    padding-left: 18px !important;
    padding-right: 10px !important;
    padding-top: 20px !important;
  }
  
  .faq .question {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .faq .question button {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
  
  .faq .question button span {
    font-size: 0.85rem;
    margin-right: 0.4rem;
  }
  
  .faq .question p {
    padding: 0.7rem 0.7rem 0.7rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .faq .question .d-arrow {
    font-size: 0.9rem;
  }
}

/* Ensure body doesn't have horizontal scroll */
body {
  overflow-x: hidden;
}

/* FAQ page specific responsive fixes */
main {
  width: 100%;
  overflow-x: hidden;
}

/* Ensure FAQ content is properly contained */
.container-faq * {
  box-sizing: border-box;
}

/* Override any Bootstrap container limitations */
faq .container-faq.container,
faq .container-faq[class*="container"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Force full width on mobile for the white container */
@media (max-width: 768px) {
  faq .container-faq.container,
  faq .container-faq[class*="container"] {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px 15px !important;
  }
}

@media (max-width: 480px) {
  faq .container-faq.container,
  faq .container-faq[class*="container"] {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 8px !important;
  }
}

.custom-text-box-image {
  border-radius: var(--border-radius-medium);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-text-box-icon {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--secondary-color);
  font-size: var(--h6-font-size);
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  width: 25px;
  height: 25px;
  line-height: 30px;
}


/* ===================== IMG Fundadores ===================== */

.avatar-image {
  border-radius: var(--border-radius-large);
  width: 65px;
  height: 65px;
  object-fit: cover;
}


/* ===================== Personalización de botones ===================== */

.custom-btn {
  background: var(--secondary-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-normal);
  line-height: normal;
  padding: 15px 25px;
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn {
  color: var(--custom-btn-bg-color);
  margin-top: 8px;
  padding: 12px 25px;
}

.custom-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--custom-btn-bg-color);
  color: var(--primary-color);
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn:hover,
.custom-border-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
  color: var(--white-color);
}


/* ===================== Navigation ===================== */

.navbar {
  background: var(--white-color);
  z-index: 9;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand img {
  max-height: 120px;
  width: auto;
}

.navbar-brand {
  color: var(--primary-color);
  font-size: var(--h6-font-size);
  font-weight: var(--font-weight-bold);
}

.navbar-brand span {
  display: inline-block;
  vertical-align: middle;
}

.navbar-brand small {
  color: var(--secondary-color);
  display: block;
  font-size: 10px;
  line-height: normal;
  text-transform: uppercase;
}

.logo {
  width: auto;
  height: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
  margin-right: 0;
  margin-left: 0;
  padding: 20px;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-medium);
  position: relative;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  background: transparent;
  color: var(--primary-color);
}

.dropdown-menu {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  border: 0;
  max-width: 50px;
  padding: 0;
  margin-top: 20px;
}

.dropdown-item {
  display: inline-block;
  color: var(--p-bg-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}

.dropdown-menu li:last-child .dropdown-item {
  padding-top: 0;
}

.dropdown-item.active, 
.dropdown-item:active,
.dropdown-item:focus, 
.dropdown-item:hover {
  background: transparent;
  color: #31363F;
}

/* Ensure language dropdown items are visible */
.language-option {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dropdown-toggle::after {
  content: "\f282";
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-size: var(--copyright-font-size);
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  left: 2px;
  border: 0;
}

@media screen and (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}


/* ===================== Header ===================== */

.site-header {
  background: #31363F;
  padding-top: 15px;
  padding-bottom: 10px;
}

.site-header p,
.site-header p a,
.site-header .social-icon-link {
  color: var(--white-color);
  font-size: var(--copyright-font-size);
}

.site-header .social-icon {
  text-align: right;
}

.site-header .social-icon-link {
  background: transparent;
  width: inherit;
  height: inherit;
  line-height: inherit;
  margin-right: 15px;
}


/* ===================== Carrusel de Foto Main ===================== */

.hero-section-full-height {
  height: 680px;
  min-height: 680px;
  position: relative;
}

.carousel:hover .carousel-control-next-icon, 
.carousel:hover .carousel-control-prev-icon {
  opacity: 1;
}

#hero-slide .carousel-item {
  height: 680px;
  min-height: 680px;
}

#hero-slide .carousel-caption {
  background: var(--white-color);
  clip-path: polygon(100% 100%, 100% 150px, 0 100%);
  color: var(--secondary-color);
  top: 1px;
  bottom: -1px;
  right: 0;
  left: auto;
  text-align: right;
  min-width: 680px;
  min-height: 680px;
  padding: 100px 100px 50px 100px;
}

.carousel-image {
  display: block;
  width: 100%;
  min-height: 680px;
}

#hero-slide .carousel-indicators-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
}

#hero-slide .carousel-indicators {
  margin-right: 0;
  margin-left: 22px;
  justify-content: inherit;
}

.carousel-control-next, 
.carousel-control-prev {
  opacity: 1;
}

.carousel-control-next-icon, 
.carousel-control-prev-icon {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-large);
  background-size: 60% 60%;
  width: 80px;
  height: 80px;
  opacity: 0;
  transition: all 0.5s;
}

.carousel-control-next-icon:hover, 
.carousel-control-prev-icon:hover {
  background-color: #31363F;
}


/* ===================== Iconos botones Main ===================== */

.featured-block {
  text-align: center;
  transition: all 0.5s ease;
  min-height: 256px;
  padding: 15px;
}

.featured-block:hover {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.featured-block:hover .featured-block-image {
  transform: scale(0.75);
}

.featured-block-image {
  display: block;
  margin: auto;
  transition: all 0.5s;
}

.featured-block:hover .featured-block-text {
  margin-top: 0;
}

.featured-block-text {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
  margin-top: 20px;
  transition: all 0.5s;
}

/* ===================== Bienvenidos Section ===================== */

.section-padding {
  padding: 40px 0; /* Adjust padding as needed */
}

.featured-block {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  text-align: center; /* Center text within each block */
  margin: 0 20px; /* Additional centering if needed */
}

.featured-block-image {
  width: 100%; /* Responsive width */
  max-width: 120px; /* Maximum size of the icons */
  margin-bottom: 10px; /* Space between icon and text */
}

@media (max-width: 768px) { /* Adjustments for smaller devices */
  .featured-block {
      flex-direction: column; /* Stack items vertically on smaller screens */
  }
}

/* ===================== Scroll to Top Button ===================== */

.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Hidden by default */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1000;
}

/* ===================== Acerca de ===================== */

.about-section {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 80px;
}

.about-image {
  border-radius: var(--border-radius-medium);
  display: block;
  width: 350px;
  height: 400px;
  object-fit: cover;
}

.custom-text-block {
  padding: 60px 40px;
}


/* ===================== Numeros ===================== */

.counter-thumb {
  margin: 20px;
  margin-bottom: 0;
}

.counter-number,
.counter-text {
  color: var(--secondary-color);
  display: block;
}

.counter-number,
.counter-number-text {
  color: var(--primary-color);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
}

/* ===================== Documental ===================== */

.about-section {
  margin-top: 7rem;
  margin-bottom: 1rem;
  border-radius: 20px;
  overflow: hidden;
}

.about-section .container {
  height: 100%;
}

.about-section .left-column {
  background: url('https://freeman.la/wp-content/uploads/2020/06/portada-Escalando-Fronteras-campana.jpg') no-repeat center center;
  background-size: cover;
}

/* Los estilos siguientes asumen que estás usando colores y fuentes ya definidos en tu CSS global. */
.about-section .right-column {
  background-color: var(--secondary-color) !important; /* Usa la variable de color primario definida en tu CSS global */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-section h3 {
  font-size: 1.2rem;
  color: var(--text-color);
}

.about-section h2 {
  font-size: 3rem;
  color: var(--text-color);
}

.about-section p {
  font-size: 1rem;
  color: var(--text-color);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgb(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
  .about-section .left-column,
  .about-section .right-column {
    min-height: 300px;
  }

  /* Team Section Mobile Responsiveness - Match Other Sections Width */
  .team {
    padding: 40px 0; /* Remove section padding to match other sections */
  }
  
  .team .container-team {
    padding: 0 15px; /* Match other sections - 15px padding */
  }

  /* Team cards width consistency for tablets */
  .team .col-lg-3.col-md-6 {
    max-width: 100% !important; /* Use full container width to match description */
    width: 100% !important; /* Full width to match other sections */
    padding: 0 15px; /* Add padding to match container padding */
  }
}

/* Additional mobile responsiveness for Documentary section */
@media (max-width: 991px) {
  /* Documentary Section Mobile Responsiveness - Match Support Section Width */
  #documentary.about-section {
    padding: 0 !important;
  }

  #documentary .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  #documentary .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  #documentary .col-lg-8,
  #documentary .col-lg-4 {
    padding-left: 15px;
    padding-right: 15px;
  }

  #documentary .right-column {
    padding: 30px 20px !important;
  }

  #documentary .right-column h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  #documentary .right-column h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  #documentary .right-column p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* Additional mobile responsiveness for smaller screens */
@media (max-width: 768px) {
  #documentary.about-section {
    padding: 0 !important;
  }

  #documentary .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  #documentary .right-column {
    padding: 25px 15px !important;
  }

  #documentary .right-column h2 {
    font-size: 1.6rem;
  }

  #documentary .right-column h3 {
    font-size: 1rem;
  }

  #documentary .right-column p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  #documentary.about-section {
    padding: 0 !important;
  }

  #documentary .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  #documentary .right-column {
    padding: 20px 10px !important;
  }

  #documentary .right-column h2 {
    font-size: 1.4rem;
  }

  #documentary .right-column h3 {
    font-size: 0.95rem;
  }

  #documentary .right-column p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* ===================== Nuestros patrocinadores ===================== */

.row-sponsors{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-top: 100px;
}

.s-container{
  max-width: 1080px;
  margin: auto;
  padding: 25px;
}

.brands{
  margin: 100px auto;
  padding-top: 50px;
  padding-bottom: 50px;
}
.brands h2 {
  text-align: center;
  justify-content: center;
}
.sponsor1{
  width: 200px;
}
.sponsor1 img{
  width: 100%;
  cursor: pointer;
  filter: grayscale(100%);
}
.sponsor1 img:hover {
  filter: grayscale(0%);
}

.sponsor2 {
  width: 120px;
}

.sponsor2 img {
  width: 120px;
  cursor: pointer;
  filter: grayscale(100%);
}

.sponsor2 img:hover {
  filter: grayscale(0%);
}

.sponsor3 {
  width: 85px;
}

.sponsor3 img {
  width: 100%;
  cursor: pointer;
  filter: grayscale(100%);
}

.sponsor3 img:hover {
  filter: grayscale(0%);
}

.sponsor4 {
  width: 250px;
}

.sponsor4 img {
  width: 100%;
  cursor: pointer;
  filter: grayscale(100%);
}

.sponsor4 img:hover {
  filter: grayscale(0%);
}


/* ===================== Voluntario ===================== */

.volunteer-section {
  background: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.volunteer-section::after {
  content: "";
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  bottom: -110px;
  right: -80px;
  width: 350px;
  height: 350px;
}

.volunteer-form {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  padding: 50px;
}

.volunteer-image {
  border-radius: 100%;
  display: block;
  margin: auto;
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.volunteer-section .custom-block-body {
  max-width: 440px;
  margin: 0 auto;
}

.volunteer-section .custom-block-body p {
  line-height: 1.7;
}


/* ===================== Dona ===================== */

.donate-section {
  background-image: url('../images/different-people-doing-volunteer-work.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  padding-top: 150px;
  padding-bottom: 150px;
}

.donate-form {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 50px;
}


/* ===================== Eventos-Noticias ===================== */

.news-detail-header-section {
  background-image: url('../images/eventos/close-up-volunteer-oganizing-stuff-donation.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  padding-top: 150px;
  padding-bottom: 150px;
}

.news-block-top {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.news-block-two-col-image-wrap {
  border-radius: var(--border-radius-small);
  position: relative;
  overflow: hidden;
  width: 150px;
  margin-right: 20px;
}

.news-category-block {
  background: var(--secondary-color);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 10px 20px;
}

.news-category-block .category-block-link {
  color: var(--white-color);
  margin-right: 10px;
  border-radius: 0 !important; /* Remove border radius from location overlay */
  background: transparent !important; /* Remove background since parent has background */
  border: none !important; /* Remove border since parent handles styling */
  padding: 0 !important; /* Remove padding since parent handles spacing */
}

.news-block-info {
  padding-top: 10px;
  padding-bottom: 10px;
}

.news-block-title-link {
  color: var(--dark-color);
}

.news-detail-image {
  display: block;
  border-radius: var(--border-radius-medium);
}

/* ===================== News Images Responsive Styling ===================== */

.news-block-top {
  position: relative;
  height: 420px; /* Further increased height for maximum visual impact */
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
}

/* ===================== Compact News Grid Styling ===================== */
/* For news grid at bottom of noticias.html - 3 columns on desktop */
.news-section.section-bg .news-block-top {
  height: 250px; /* Smaller height for grid layout */
}

.news-section.section-bg .news-block {
  margin-bottom: 30px; /* Consistent spacing between cards */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow for cards */
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-section.section-bg .news-block:hover {
  transform: translateY(-5px); /* Subtle lift on hover */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

.news-section.section-bg .news-block-info {
  padding: 20px; /* Compact padding for grid cards */
}

.news-section.section-bg .news-block-title h4 {
  font-size: 18px; /* Smaller title for compact layout */
  line-height: 1.3;
  margin-bottom: 0;
}

.news-section.section-bg .news-block-date p,
.news-section.section-bg .news-block-author p {
  font-size: 13px; /* Smaller metadata text */
  margin-bottom: 0;
}

.news-section.section-bg .news-block-author {
  margin-left: 20px !important; /* Adjust author spacing for smaller layout */
}

/* Responsive adjustments for compact news grid */
@media screen and (max-width: 992px) {
  .news-section.section-bg .news-block-top {
    height: 220px; /* Smaller on tablets */
  }
  
  .news-section.section-bg .news-block-title h4 {
    font-size: 16px; /* Smaller title on tablets */
  }
}

@media screen and (max-width: 768px) {
  .news-section.section-bg .news-block-top {
    height: 200px; /* Smaller on mobile */
  }
  
  .news-section.section-bg .news-block-info {
    padding: 15px; /* Less padding on mobile */
  }
  
  .news-section.section-bg .news-block-title h4 {
    font-size: 15px; /* Smaller title on mobile */
  }
  
  .news-section.section-bg .news-block-author {
    margin-left: 15px !important; /* Less spacing on mobile */
  }
}

.news-block-top img.news-image {
  width: 100%;
  height: 100%; /* Fill the fixed container height */
  object-fit: cover; /* Ensures image fills container while maintaining aspect ratio */
  object-position: center; /* Centers the image within the container */
  transition: transform 0.3s ease; /* Smooth hover effect */
  display: block; /* Removes any inline spacing */
}

.news-block-top:hover img.news-image {
  transform: scale(1.05); /* Slight zoom on hover */
}

.news-block-two-col-image-wrap {
  position: relative;
  height: 100px; /* Fixed height for sidebar events */
  width: 150px;
  overflow: hidden;
  border-radius: var(--border-radius-small);
  margin-right: 20px;
  flex-shrink: 0; /* Prevents shrinking */
}

.news-block-two-col-image-wrap img.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.news-block-two-col-image-wrap:hover img.news-image {
  transform: scale(1.03); /* Subtle zoom for smaller images */
}

/* Responsive adjustments for news images */
@media screen and (max-width: 768px) {
  .news-block-top {
    height: 320px; /* Further increased height on tablets */
  }
  
  .news-block-two-col-image-wrap {
    height: 80px; /* Smaller sidebar images on tablets */
    width: 120px;
  }
}

@media screen and (max-width: 576px) {
  .news-block-top {
    height: 280px; /* Further increased height on mobile */
  }
  
  .news-block-two-col-image-wrap {
    height: 70px; /* Smaller sidebar images on mobile */
    width: 100px;
    margin-right: 15px;
  }
}

/* ===================== Compact Events Sidebar Styling ===================== */

.news-block-two-col-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0; /* Remove default padding */
}

.news-block-two-col-info .news-block-title {
  margin-bottom: 4px; /* Reduced from default */
}

.news-block-two-col-info .news-block-title h6 {
  font-size: 16px; /* Increased title size for better readability */
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.news-block-two-col-info .news-block-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-block-two-col-info .news-block-title a:hover {
  color: var(--primary-color);
}

.news-block-two-col-info .news-block-date {
  margin: 0;
}

.news-block-two-col-info .news-block-date p {
  font-size: 14px; /* Increased date text size */
  color: #666;
  margin: 0;
  line-height: 1.2;
}

.news-block-two-col-info .news-block-location {
  margin: 2px 0 0 0; /* Minimal top margin */
}

.news-block-two-col-info .news-block-location p {
  font-size: 13px; /* Increased location text size */
  color: #888;
  margin: 0;
  line-height: 1.2;
}

.news-block-two-col {
  margin-bottom: 15px; /* Reduced spacing between events */
}

/* Responsive adjustments for compact events */
@media screen and (max-width: 768px) {
  .news-block-two-col-info .news-block-title h6 {
    font-size: 15px; /* Slightly smaller on tablets but more readable */
  }
  
  .news-block-two-col-info .news-block-date p {
    font-size: 13px; /* Increased date size on tablets */
  }
  
  .news-block-two-col-info .news-block-location p {
    font-size: 12px; /* Increased location size on tablets */
  }
  
  .news-block-two-col {
    margin-bottom: 12px; /* Less spacing on tablets */
  }
}

@media screen and (max-width: 576px) {
  .news-block-two-col-info .news-block-title h6 {
    font-size: 14px; /* Better readability on mobile */
  }
  
  .news-block-two-col-info .news-block-date p {
    font-size: 12px; /* Increased date size on mobile */
  }
  
  .news-block-two-col-info .news-block-location p {
    font-size: 11px; /* Increased location size on mobile */
  }
  
  .news-block-two-col {
    margin-bottom: 10px; /* Minimal spacing on mobile */
  }
}

blockquote {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-semibold);
  color: var(--site-footer-bg-color);
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 90px 50px 50px 50px;
  text-align: center;
}

blockquote::before {
  content: "“";
  color: var(--custom-btn-bg-color);
  font-size: 100px;
  line-height: 1rem;
  display: block;
}

.author-comment-link {
  font-size: var(--copyright-font-size);
  font-weight: var(--font-weight-semibold);
}

.search-form {
  margin-top: 20px;
}

.category-block,
.subscribe-form {
  margin-top: 40px;
  margin-bottom: 40px;
}

.category-block-link {
  font-size: var(--copyright-font-size);
  margin-top: 5px;
  margin-bottom: 5px;
}

.category-block-link:hover {
  color: var(--primary-color);
}

/* ===================== Styled Category Links ===================== */

.category-block {
  display: flex !important;
  flex-direction: column !important; /* Keep column for heading + links */
}

.category-block h5 {
  margin-bottom: 15px; /* Space between heading and categories */
}

.category-links-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px; /* Space between category buttons */
}

.category-block .category-block-link {
  background: var(--secondary-color);
  border: 1px solid var(--section-bg-color);
  border-radius: var(--border-radius-small);
  color: var(--white-color);
  padding: 8px 15px;
  margin: 0; /* Remove margins, use gap instead */
  display: inline-block !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  width: auto !important; /* Width depends on text content */
  text-align: center;
  max-width: none !important; /* Override any max-width constraints */
  flex-shrink: 0; /* Prevent shrinking */
}

.category-block .category-block-link:hover {
  background: var(--section-bg-color);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge {
  background: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  font-weight: var(--font-weight-normal);
  line-height: normal;
  padding-bottom: 2px;
}

.tags-block-link {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  display: inline-block;
  font-size: var(--copyright-font-size);
  line-height: normal;
  margin-right: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 8px 15px;
}

.tags-block-link:hover {
  border-color: var(--dark-color);
  color: var(--dark-color);
}

.cta-section {
  position: relative;
  overflow: hidden;
  padding: 60px;
}

.cta-section::before {
  content: "";
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: -100px;
  left: -30px;
  margin: auto;
  width: 200px;
  height: 200px;
}

.cta-section::after {
  content: "";
  border: 20px solid var(--custom-btn-bg-color);
  border-radius: 50%;
  position: absolute;
  bottom: -100px;
  right: 0;
  left: 0;
  margin: auto;
  width: 150px;
  height: 150px;
}

/* ===================== Testimonials Responsive Fixes ===================== */
.carousel-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.5;
  max-height: none; /* Remove height restriction */
  overflow: visible; /* Allow content to be fully visible */
  display: block; /* Use block instead of -webkit-box */
  text-align: center;
  margin-bottom: 20px;
  padding: 0 20px; /* Add horizontal padding */
}

/* Ensure testimonial content doesn't break layout */
.testimonial-section .carousel-caption {
  padding: 30px 20px; /* Increased vertical padding */
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  transform: none;
  min-height: 200px; /* Ensure minimum height for content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Ensure testimonial section has enough height */
.testimonial-section {
  min-height: 400px;
  display: flex;
  align-items: center;
}

.testimonial-section .container {
  width: 100%;
}

/* Mobile responsiveness for testimonials */
@media (max-width: 768px) {
  .carousel-title {
    font-size: 18px;
    line-height: 1.4;
    padding: 0 15px;
  }
  
  .testimonial-section .carousel-caption {
    padding: 25px 15px;
    min-height: 180px;
  }
  
  .testimonial-section {
    min-height: 350px;
  }
}

@media (max-width: 576px) {
  .carousel-title {
    font-size: 16px;
    line-height: 1.3;
    padding: 0 10px;
  }
  
  .testimonial-section .carousel-caption {
    padding: 20px 10px;
    min-height: 160px;
  }
  
  .testimonial-section {
    min-height: 300px;
  }
}

/* ===================== Language Switcher ===================== */
/* Language dropdown should behave exactly like the "More" dropdown */
.nav-item.dropdown:hover .dropdown-menu {
  display: block !important; /* Show dropdown on hover like "More" */
}

/* Language dropdown styles are handled by Bootstrap and nav-link classes */

/* ===================== Nuestro Equipo ===================== */
.team {
  position: relative;
  overflow: hidden;
}

/* Mobile responsiveness for team section - Match Other Sections Width */
@media (max-width: 768px) {
  .team {
    padding: 40px 0; /* Remove section padding to match other sections */
  }
  
  .team .container-team {
    padding: 0 15px; /* Match other sections - 15px padding */
  }
  
  .team .section-title h2 {
    font-size: 28px; /* Smaller title on mobile */
    margin-bottom: 15px;
  }
  
  .team .section-title p {
    font-size: 14px; /* Smaller description text */
    padding: 0; /* Remove extra padding to match other sections */
  }
}

.team .decorative-circle-2 {
  position: absolute;
  top: 30px;
  left: -90px;
  width: 170px;
  height: 170px;
  background-color: var(--custom-btn-bg-hover-color);
  border-radius: 50%;
}

.decorative-circle {
  position: absolute;
  top: 700px;
  right: -200px;
  width: 350px;
  height: 350px;
  background-color: var(--custom-btn-bg-color);
  border-radius: 50%;
}


.team .member {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  height: 100%; /* Ensures all cards have the same height */
  width: 100%; /* Full width of the column */
  max-width: 100%; /* Prevent overflow */
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds subtle shadow for better visual separation */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.team .member:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.team .member .member-img {
  position: relative;
  overflow: hidden;
  height: 380px; /* Increased height for bigger images */
  width: 100%;
}

.team .member .member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the container while maintaining aspect ratio */
  object-position: center; /* Centers the image within the container */
}

.team .member .social {
  display: flex;
  justify-content: center;
  position: absolute;
  align-items: center;
  left: 0;
  bottom: 40px;
  right: 0;
  opacity: 0;
  transition: ease-in-out 0.3s;
}

.team .member:hover .social {
  opacity: 1;
  bottom: 15px;
}

.team .member .social a {
  color: #fff;
  margin: 0 3px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: #597081;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  transition: background-color 0.3s;
}

.team .member .social a:hover {
  background: #1111;
}

.team .member .social a i {
  text-align: center;
  line-height: 36px;
}

.team .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.team .col-lg-3.col-md-6 {
  flex: 0 0 auto;
  max-width: 400px; /* Desktop maximum width */
  margin-bottom: 30px; /* Adds consistent spacing between rows */
  width: auto; /* Let cards size naturally */
}

/* Responsive adjustments for team member cards */
@media (max-width: 768px) {
  .team .col-lg-3.col-md-6 {
    max-width: 90% !important; /* Use full container width to match description */
    margin: 0 auto 30px auto !important; /* Center cards with bottom margin */
    width: 90% !important; /* Full width to match other sections */
    padding: 0 15px; /* Add padding to match container padding */
  }
  
  .team .member .member-img {
    height: 280px; /* Reduced height for tablets */
  }
  
  .team .member .member-info {
    padding: 20px 15px; /* Reduced padding on mobile */
  }
  
  .team .member .member-info h4 {
    font-size: 16px; /* Slightly smaller text on mobile */
  }
  
  /* Hide decorative circles on tablets */
  .decorative-circle,
  .team .decorative-circle-2 {
    display: none;
  }
}

@media (max-width: 576px) {
  .team .col-lg-3.col-md-6 {
    max-width: 90% !important; /* Use full container width to match description */
    width: 90% !important; /* Full width to match other sections */
    margin: 0 auto 25px auto !important; /* Center cards */
    padding: 0 15px; /* Add padding to match container padding */
    flex: none !important; /* Override Bootstrap flex properties */
  }
  
  .team .member .member-img {
    height: 250px; /* Smaller height for mobile */
  }
  
  .team .member .member-info {
    padding: 15px 12px; /* Even more compact on mobile */
  }
  
  .team .member .member-info h4 {
    font-size: 15px; /* Smaller text on mobile */
  }
  
  /* Ensure decorative circles are hidden on mobile */
  .decorative-circle,
  .team .decorative-circle-2 {
    display: none !important;
  }
}

.team .member .member-info {
  padding: 30px 20px; /* Increased padding for bigger cards */
  flex-grow: 1; /* Allows the info section to expand and fill remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
}

.team .member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: #31363F;
}

.team .member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--custom-btn-bg-color);
}

.team .section-title p {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
}

.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: 10px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 180px;
  height: 3px;
  background: #597081;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  margin-bottom: auto;
  width: 80%;
}

.section-bg {
  padding: 120px 0;
  color: #fff;
}

/* ===================== Testimonios ===================== */

.testimonial-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.testimonial-section::before {
  content: "";
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: -100px;
  left: -30px;
  margin: auto;
  width: 250px;
  height: 250px;
}

.testimonial-section::after {
  content: "";
  background: var(--custom-btn-bg-color);
  border-radius: 50%;
  position: absolute;
  bottom: -110px;
  right: -80px;
  width: 350px;
  height: 350px;
}

#testimonial-carousel .carousel-caption {
  position: relative;
  right: 0;
  bottom: 0;
  left: 0;
}

#testimonial-carousel .carousel-title {
  background: var(--section-bg-color);
  line-height: 1.4; /* Consistent line height for even spacing */
  margin: 0 !important; /* Override any global h4 margins */
  padding: 0 !important; /* Override any global h4 padding */
  quotes: """ """ "'" "'"; /* Combined with the quotes property */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override any global paragraph spacing for testimonial text */
#testimonial-carousel .carousel-title p {
  margin: 0;
  padding: 0;
  line-height: inherit;
}

/* Ensure text content has no extra spacing */
#testimonial-carousel .carousel-title * {
  margin: 0;
  padding: 0;
}

/* Ensure the last line has no extra spacing */
#testimonial-carousel .carousel-title:last-line {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#testimonial-carousel .carousel-title::before {
  content: open-quote;
  color: var(--p-color);
  font-size: var(--h1-font-size);
  position: relative;
  top: 10px;
  right: 10px;
}

#testimonial-carousel .carousel-title::after {
  content: close-quote;
  color: var(--p-color);
  font-size: var(--h1-font-size);
  position: relative;
  top: 0px; /* Changed from 10px to 0px to eliminate extra spacing */
  left: 10px;
}

#testimonial-carousel .carousel-name {
  background: var(--primary-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: visible; /* Changed from hidden to visible to prevent arrow clipping */
  padding: 10px 20px;
  margin-top: 10px; /* Add some space between text and author box */
}

#testimonial-carousel .carousel-name::before {
  content: "";
  position: absolute;
  top: -8px; /* Reduced from -10px to bring arrow closer to box */
  right: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: auto;
  border-left: 8px solid transparent; /* Reduced from 10px */
  border-right: 8px solid transparent; /* Reduced from 10px */
  border-bottom: 8px solid var(--primary-color); /* Reduced from 10px */
}

.carousel-name-title {
  font-weight: var(--font-weight-semibold);
}

#testimonial-carousel .carousel-indicators {
  position: relative;
  top: 5px; /* Much closer - almost touching the author box */
  bottom: auto;
  margin-top: 5px; /* Minimal top margin */
  margin-bottom: 20px; /* Reduced bottom margin */
}

#testimonial-carousel .carousel-indicators li {
  text-indent: inherit;
  background: transparent;
  margin: 0 10px; 
}

#testimonial-carousel .carousel-indicators li,
#testimonial-carousel .carousel-indicators li::before {
  width: 45px;
  height: 45px; 
}

#testimonial-carousel .carousel-indicators .avatar-image {
  width: 45px;
  height: 45px; 
}

#testimonial-carousel .carousel-indicators .active,
#testimonial-carousel .carousel-indicators .active .avatar-image {
  background: transparent;
  width: 50px; 
  height: 50px;
}

/* ===================== Blogs-Articulos ===================== */

.blog-section {
  width: 100%;
  padding-top: 60px;
}

.blog-section .section-content {
  width: 85%;
  margin: 20px auto;
}

.blog-section .section-content .title {
  width: 85%;
  text-align: center;
  margin: auto;
  justify-content: center;
  position: relative;
}

.blog-section .section-content .title h2 {
  font-size: 40px;
  color: var(--custom-btn-bg-color);
}

.blog-section .section-content .title p {
  font-size: 18px;
  color: #6a6a6a;
  max-width: 85%;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.blog-section .section-content .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 50px;
  margin: 25px auto;
}

.blog-section .section-content .cards .card {
  width: 100%;
  background-color: #f7f7f7;
  position: relative;
  height: 100%; /* Ensures all cards have the same height */
  display: flex;
  flex-direction: column;
  border-radius: 8px; /* Adds rounded corners */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
  overflow: hidden; /* Ensures content doesn't overflow */
}

.blog-section .section-content .cards .card:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.blog-section .section-content .cards .card .image-section {
  position: relative;
  height: 200px; /* Reduced height for smaller cards */
  width: 100%;
  overflow: hidden;
}

.blog-section .section-content .cards .card .image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the container while maintaining aspect ratio */
  object-position: center; /* Centers the image within the container */
}

.blog-section .section-content .cards .card .article {
  padding: 15px 20px; /* Reduced padding for more compact cards */
  flex-grow: 1; /* Allows the article section to expand and fill remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distributes content evenly */
}

.blog-section .section-content .cards .card .article h4 {
  font-size: 24px;
  color: #4a4a4a;
}

.blog-section .section-content .cards .card .article p {
  font-size: 16px;
  margin: 10px 0px;
  color: #6a6a6a;
}

.blog-section .section-content .cards .card .blog-view {
  padding: 0 20px 20px 20px; /* Consistent padding with article section */
  margin-top: auto; /* Pushes button to bottom */
}

.blog-section .section-content .cards .card .blog-view a {
  text-decoration: none;
  display: inline-block;
  background-color: var(--custom-btn-bg-color);
  padding: 10px 20px;
  color: #fff;
  border-radius: 5px; /* Adds rounded corners to button */
  transition: background-color 0.3s ease; /* Smooth color transition */
  font-weight: 500;
}

.blog-section .section-content .cards .card .blog-view a:hover {
  background-color: #2c3e50; /* Darker color on hover */
  transform: translateY(-2px); /* Slight lift on hover */
}

.blog-section .section-content .cards .card .posted-date p {
  font-weight: 400;
  font-size: 14px;
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  background-color: rgba(89, 112, 129, 0.6); 
  padding: 6px 15px;
  color: #fff;
}

@media screen and (max-width: 992px) {
  /* Articles Section Tablet Responsiveness - Match Cards Width */
  .blog-section .section-content {
    width: 100%;
    padding: 0 15px; /* Match other sections - 15px padding */
  }
  
  .blog-section .section-content .title {
    width: 100%;
  }
  
  .blog-section .section-content .title p {
    max-width: 100%; /* Match article cards width */
  }
  
  .blog-section .section-content .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px; /* Reduced gap on tablets */
    width: 100%; /* Use full container width */
  }
  
  .blog-section .section-content .cards .card .image-section {
    height: 180px; /* Proportionally smaller on tablets */
  }
}

@media screen and (max-width: 768px) {
  /* Articles Section Mobile Responsiveness - Match Cards Width */
  .blog-section .section-content {
    width: 100%;
    padding: 0 15px; /* Match other sections - 15px padding */
  }
  
  .blog-section .section-content .title {
    width: 100%;
  }
  
  .blog-section .section-content .title p {
    max-width: 100%; /* Match article cards width */
  }
  
  .blog-section .section-content .cards {
    grid-template-columns: 1fr;
    grid-gap: 25px; /* Reduced gap on mobile */
    width: 100%; /* Use full container width */
  }
  
  .blog-section .section-content .cards .card .image-section {
    height: 160px; /* Proportionally smaller on mobile */
  }
  
  .blog-section .section-content .cards .card .article {
    padding: 12px 15px; /* Reduced padding on mobile */
  }
  
  .blog-section .section-content .cards .card .article h4 {
    font-size: 20px; /* Slightly smaller title on mobile */
  }
  
  .blog-section .section-content .cards .card .blog-view {
    padding: 0 15px 12px 15px; /* Consistent mobile padding */
  }
}

@media screen and (max-width: 576px) {
  /* Articles Section Small Mobile Responsiveness - Match Cards Width */
  .blog-section .section-content {
    width: 100%;
    padding: 0 15px; /* Match other sections - 15px padding */
  }
  
  .blog-section .section-content .title {
    width: 100%;
  }
  
  .blog-section .section-content .title p {
    max-width: 100%; /* Match article cards width */
    font-size: 16px; /* Slightly smaller text on small mobile */
  }
  
  .blog-section .section-content .cards {
    width: 100%; /* Use full container width */
  }
}

/* ===================== Contacto ===================== */

.contact-section {
  background: var(--white-color);
}

.contact-form {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  padding: 40px;
}

.contact-info-wrap {
  padding-top: 40px;
}

.contact-image-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  width: 100%;
}


/* ===================== Formulario ===================== */

.custom-form .form-control,
.input-group-file {
  background-color: var(--section-bg-color);
  box-shadow: none;
  border: 0;
  color: var(--p-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  outline: none;
}

.custom-form .form-control:hover,
.custom-form .form-control:focus {
  border-color: var(--secondary-color);
}

.custom-form label {
  margin-bottom: 10px;
}

.custom-form .form-check-group {
  margin-bottom: 20px;
}

.donate-form .form-check-group-donation-frequency {
  padding-right: 0;
}

.form-check-group-donation-frequency + .form-check-group-donation-frequency {
  padding-right: 12px;
  padding-left: 0;
}

.form-check-group-donation-frequency .form-check-label {
  font-weight: var(--font-weight-semibold);
}

#DonationFrequencyOne {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#DonationFrequencyMonthly {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.custom-form .form-check-radio {
  position: relative;
  height: 100%;
  padding-left: 0;
}

.custom-form .input-group-text {
  background: var(--secondary-color);
  border: 0;
  color: var(--white-color);
}

.custom-form .form-check-radio .form-check-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.form-check-radio .form-check-input[type=radio] {
  background-color: var(--section-bg-color);
  border-radius: .25rem;
  border: 0;
  box-shadow: none;
  outline: none;
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  padding: 25px 50px;
  transition: all 0.5s;
}

.form-check-radio .form-check-input:checked[type=radio] {
  background-image: none;
}

.form-check-radio .form-check-input:checked[type=radio] + .form-check-label,
.form-check-radio .form-check-input:hover + .form-check-label,
.form-check-radio .form-check-input:checked + .form-check-label {
  color: var(--white-color);
}

.form-check-radio .form-check-input:hover,
.form-check-radio .form-check-input:checked {
  background-color: var(--secondary-color);
  border-color: var(--white-color);
}

.input-group-file {
  border-radius: .25rem;
  padding: 13px .75rem;
}

.input-group-file input[type=file] {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
  padding: 0;
}

.input-group-file .input-group-text {
  background: transparent;
  color: inherit;
  margin-bottom: 0;
  padding: 0;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}


/* ===================== Personalización Contacto, Buscador, Subs, Donacion ===================== */

.contact-form .form-control {
  background: var(--white-color);
}

.search-form {
  position: relative;
  margin-bottom: 25px;
  display: flex;
  align-items: stretch; /* Make children fill the height */
  background: var(--white-color);
  border: 2px solid var(--section-bg-color);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 45px; /* Fixed height to match original */
}

.search-form:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(90, 111, 128, 0.15);
  transform: translateY(-1px);
}

.search-form .form-control {
  border: none;
  background: transparent;
  padding: 0 15px;
  height: 100%; /* Fill the container height */
  font-size: 16px;
  color: var(--dark-color);
  flex: 1;
  outline: none;
  box-shadow: none;
}

.search-form .form-control:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.search-form .form-control::placeholder {
  color: #999;
  font-size: 15px;
}

.search-form button {
  background: var(--secondary-color) !important;
  color: var(--white-color) !important;
  width: 52px !important; /* Slightly wider for better appearance */
    min-width: 52px !important;
    max-width: 52px !important;
  height: 100% !important; /* Fill the container height */
  border: none !important;
  padding: 0 !important; /* No padding for tightest fit */
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  overflow: hidden !important; /* Ensure hover doesn't extend beyond button */
  box-sizing: border-box !important;
}

.search-form button:hover {
  background: var(--primary-color) !important;
  color: var(--white-color) !important;
  width: 52px !important; /* Maintain exact width on hover */
}

.search-form button i {
  font-size: 14px !important; /* Smaller icon for very compact button */
}

/* ===================== Spinner Color Override ===================== */

.spinner-border {
  color: var(--secondary-color) !important; /* Use website's blue-gray color */
  border-color: var(--secondary-color) !important;
}

.spinner-border.text-primary {
  color: var(--secondary-color) !important; /* Override Bootstrap's text-primary */
  border-color: var(--secondary-color) !important;
}

.subscribe-form {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  padding: 30px;
}

.subscribe-form .form-control {
  background: var(--white-color);
}

.donate-form .form-control {
  margin-bottom: 0;
}

/* ===================== FAQ ===================== */

faq {
  background: url(../images/faq-EF.svg) no-repeat;
  background-color: hsl(203, 20%, 90%); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  padding: 80px;
}

.container-faq {
  background: #fff;
  width: 550px;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 15px;
}

.container-faq .heading {
  display: flex;
  gap: 20px;
  text-align: center;
}

.container-faq .heading h1 {
  font-weight: 800;
}

.question {
  border-bottom: 1px solid #222;
}
.question button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  border:none;
  outline: none;
  font-size: 20px;
  color: #222;
  font-weight: 650;
  cursor: pointer;
  background: none;
  text-align: left;
}

.question p {
  font-size: 17px;
  max-height: 0;
  opacity: 0;
  line-height: 1.5;
  overflow: hidden;
  transition: all 0.6s ease;
  color: var(--custom-btn-bg-hover-color);
}

.d-arrow {
  transition: transform 0.5s ease-in ;
  color: #222;
}

.question p.show {
  max-height: 200px; 
  opacity: 1;
  padding:0px 15px 30px 15px;
}
.question button .d-arrow.rotate {
  transform: rotate(180deg);
}


@media (max-width: 565px) {
  .container {
    width: 400px;
  }
}

@media (max-width: 400px) {
  .container {
    width: 350px;
  }
}


/* ===================== Footer ===================== */

.site-footer {
  background-color: var(--site-footer-bg-color);
  padding-top: 70px;
}

.site-footer-bottom {
  background-color: var(--secondary-color);
  position: relative;
  z-index: 2;
  margin-top: 70px;
  padding-top: 25px;
  padding-bottom: 25px;
}

.site-footer-bottom a {
	color: var(--white-color);
}

.site-footer-bottom a:hover {
	color: #FF6;
}

.site-footer-link {
  color: var(--white-color);
}

.copyright-text {
  color: var(--section-bg-color);
  font-size: var(--copyright-font-size);
  margin-right: 30px;
}

.site-footer .custom-btn {
  font-size: var(--copyright-font-size);
}

.site-footer .custom-btn:hover {
  background: var(--primary-color);
}

.footer-menu {
  column-count: 2;
  margin: 0;
  padding: 0;
}

.footer-menu-item {
  list-style: none;
  display: block;
}

.footer-menu-link {
  font-size: var(--p-font-size);
  color: var(--white-color);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 5px;
}


/* ===================== Iconos Sociales ===================== */

.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--site-footer-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--copyright-font-size);
  display: block;
  margin-right: 5px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 38px;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* ===================== Donación ===================== */

.stripe-section {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.paypal-continue {
  text-align: center;
  margin-top: 15px; /* Adjust the spacing as needed */
}

.paypal-continue p {
  margin: 0;
  font-size: 0.9rem; /* Adjust the font size as needed */
  color: #333; /* Adjust the text color as needed */
}

.paypal-button {
  text-align: center;
  margin-top: 15px;
}

.paypal-img {
  max-width: 280px; /* Makes the image responsive */
  height: auto; /* Maintain aspect ratio */
  cursor: pointer; /* Changes the cursor to indicate it's clickable */
  display: block;
  margin: 0 auto;
  padding-top: 0;
}



/* ===================== Estilos responsivos ===================== */

@media screen and (min-width: 1600px) {
  .featured-block {
    min-height: inherit;
  }

  .volunteer-section::after {
    width: 450px;
    height: 450px;
  }
  
  .volunteer-image {
    width: 350px;
    height: 350px;
  }
}

@media screen and (max-width: 1170px) {
  #hero-slide .carousel-image {
    height: 100%;
    object-fit: cover;
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-form {
    padding-bottom: 40px;
  }

  .donate-form {
    padding: 35px;
  }

  .navbar {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .navbar-expand-lg .navbar-nav {
    padding-bottom: 30px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 8px 20px;
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
    position: relative;
    margin-top: 5px;
    margin-bottom: 20px;
    left: 20px;
  }

  .site-header .social-icon {
    text-align: left;
    margin-top: 5px;
  }

  .hero-section-full-height {
    height: inherit;
  }

  .carousel:hover .carousel-control-next-icon, 
  .carousel:hover .carousel-control-prev-icon {
    opacity: 1;
  }

  #hero-slide .carousel-item {
    height: inherit;
  }

  .carousel-control-prev {
    left: 12px;
  }

  .carousel-control-next {
    right: 12px;
  }

  .carousel-control-next-icon, 
  .carousel-control-prev-icon {
    opacity: 1;
    width: 60px;
    height: 60px;
  }

  .news-detail-header-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .cta-section::before {
    width: 150px;
    height: 150px;
  }

  .cta-section::after {
    bottom: -60px;
    width: 100px;
    height: 100px;
  }

  .cta-section .row {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .volunteer-section::after {
    width: 300px;
    height: 300px;
  }

  .testimonial-section::before {
    width: 150px;
    height: 150px;
  }

  .testimonial-section::after {
    width: 200px;
    height: 200px;
  }

  #testimonial-carousel .carousel-indicators {
    top: 3px; /* Very close on tablets */
    margin-top: 3px;
    margin-bottom: 15px;
  }
  
  #testimonial-carousel .carousel-title {
    margin-bottom: 0px !important; /* No margin on tablets */
    line-height: 1.3; /* Slightly tighter line height on tablets */
  }
  
  #testimonial-carousel .carousel-name {
    margin-top: 8px; /* Slightly less space on tablets */
  }

  blockquote {
    padding: 70px 30px 30px 30px;
  }

  .about-image {
    width: 100% !important;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .volunteer-image {
    width: 250px;
    height: 250px;
    margin: 0;
  }

  .custom-text-block {
    padding: 20px 5px;
    text-align: center;
  }

  /* Founder Section Mobile Responsiveness - Match Other Sections Width */
  .about-section:not(#documentary) {
    padding: 0 !important;
  }

  .about-section:not(#documentary) .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .about-section .row {
    flex-direction: column;
    align-items: center;
    margin-left: -15px;
    margin-right: -15px;
  }

  .about-section .col-lg-6,
  .about-section .col-lg-5 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Center the image in Founder section */
  .about-section:not(#documentary) .about-image {
    margin: 0 auto !important;
    display: block;
  }

  .about-section:not(#documentary) .col-lg-6 {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-section .ms-lg-auto {
    margin-left: 0 !important;
  }

  /* Ensure container doesn't cause overflow */
  .about-section .container {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Additional mobile responsiveness for smaller screens */
@media screen and (max-width: 576px) {
  .about-image {
    max-width: 280px !important;
  }

  /* Center the image in Founder section for small mobile */
  .about-section:not(#documentary) .about-image {
    margin: 0 auto !important;
    display: block;
  }

  .about-section:not(#documentary) .col-lg-6 {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Founder Section Mobile Responsiveness - Match Other Sections Width */
  .about-section:not(#documentary) {
    padding: 0 !important;
  }

  .about-section:not(#documentary) .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .custom-text-block {
    padding: 15px 5px;
  }

  /* Team Section Mobile Responsiveness - Match Other Sections Width */
  .team {
    padding: 40px 0; /* Remove section padding to match other sections */
  }
  
  .team .container-team {
    padding: 0 15px; /* Match other sections - 15px padding */
  }

  .about-section h2 {
    font-size: 28px;
  }

  .about-section .text-muted {
    font-size: 16px;
  }

  .about-section p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Fix text overflow and ensure proper wrapping */
  .about-section .custom-text-block {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .about-section .custom-text-block p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .about-section h2 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .about-section .text-muted {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .custom-text-box,
  .volunteer-form {
    padding: 30px;
  }

  .counter-number, 
  .counter-number-text {
    font-size: var(--h2-font-size);
  }

  .contact-info-wrap {
    padding-top: 0;
  }

  .site-footer {
    padding-top: 50px;
  }

  .copyright-text-wrap {
    justify-content: center;
  }

  .site-footer-bottom {
    text-align: center;
    margin-top: 50px;
  }

  .site-footer-bottom .footer-menu {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 580px) {
  .hero-section-full-height,
  #hero-slide .carousel-item,
  .carousel-image {
    min-height: 520px;
  }

  #hero-slide .carousel-caption {
    clip-path: polygon(100% 100%, 100% 100px, 0 100%);
    padding-right: 50px;
    min-width: inherit;
    min-height: inherit;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }

  #hero-slide .carousel-caption {
    min-width: inherit;
    padding-bottom: 30px;
  }

  .carousel-control-next-icon, 
  .carousel-control-prev-icon {
    width: 45px;
    height: 45px;
  }

  .volunteer-image {
    width: 150px;
    height: 150px;
  }

  .volunteer-section::after {
    width: 200px;
    height: 200px;
  }

  .testimonial-section::before {
    top: -50px;
    width: 100px;
    height: 100px;
  }

  #testimonial-carousel .carousel-indicators {
    top: 2px; /* Almost touching on small screens */
    margin-top: 2px;
    margin-bottom: 10px;
  }
  
  #testimonial-carousel .carousel-title {
    margin-bottom: 0px !important; /* No margin on small screens */
    line-height: 1.2; /* Tighter line height on small screens */
  }
  
  #testimonial-carousel .carousel-name {
    margin-top: 6px; /* Less space on small screens */
  }

  .social-share .tags-block {
    margin-bottom: 10px;
  }

  .donate-form {
    padding: 25px;
  }
}

/* ===================== Error Modal Styles ===================== */

.error-modal {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 10px 30px rgba(49, 54, 63, 0.15);
  border: 1px solid var(--border-color);
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
  font-family: var(--body-font-family);
}

.error-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white-color);
}

.error-modal h3 {
  color: var(--primary-color);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.error-modal p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.error-modal .btn-retry {
  background: var(--custom-btn-bg-color);
  color: var(--white-color);
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-small);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-semibold);
  font-family: var(--body-font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.error-modal .btn-retry:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(49, 54, 63, 0.2);
}

.error-modal .btn-retry:active {
  transform: translateY(0);
}

/* Error state for smaller containers */
.error-state {
  padding: 1.5rem;
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  border: 1px solid #e3f2fd;
  text-align: center;
  margin: 1rem 0;
}

.error-state .error-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--white-color);
}

.error-state h4,
.error-state h5,
.error-state h6 {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.error-state p {
  color: var(--p-color);
  margin-bottom: 1rem;
}

.error-state .btn-retry-sm {
  background: var(--custom-btn-bg-color);
  color: var(--white-color);
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-small);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  font-family: var(--body-font-family);
  cursor: pointer;
  transition: all 0.3s ease;
}

.error-state .btn-retry-sm:hover {
  background: var(--custom-btn-bg-hover-color);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(49, 54, 63, 0.15);
}

/* Network error specific styling */
.network-error {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffcc02;
}

.network-error .error-modal-icon {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.network-error .error-state .error-icon {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

/* Loading state improvements */
.loading-spinner {
  padding: 2rem;
  text-align: center;
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
  border-color: var(--custom-btn-bg-color);
  border-right-color: transparent;
}

.loading-spinner p {
  color: var(--p-color);
  margin-top: 1rem;
  font-size: var(--p-font-size);
}

/* ===================== Acknowledgments Section ===================== */

.acknowledgments-section {
  background: var(--section-bg-color);
  position: relative;
}

.acknowledgments-content {
  max-width: 800px;
  margin: 0 auto;
}

.acknowledgments-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.acknowledgments-text {
  margin-bottom: 2.5rem;
}

.acknowledgments-text p {
  font-size: var(--p-font-size);
  color: var(--p-color);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: center;
}

.acknowledgments-logo-container {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.acknowledgments-logo-placeholder {
  background: var(--white-color);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 2rem;
  min-height: 120px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.acknowledgments-logo-placeholder:hover {
  border-color: var(--custom-btn-bg-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-placeholder {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

.acknowledgments-logo {
  max-height: 150px;
  max-width: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.acknowledgments-subtitle {
  margin-top: 1.5rem;
}

.acknowledgments-subtitle p {
  font-size: 1rem;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.6;
}

/* Responsive adjustments for acknowledgments section */
@media screen and (max-width: 768px) {
  .acknowledgments-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .acknowledgments-text p {
    font-size: 0.95rem;
  }
  
  .acknowledgments-logo-placeholder {
    min-height: 100px;
    min-width: 150px;
    padding: 1.5rem;
  }
  
  .logo-placeholder {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .acknowledgments-title {
    font-size: 1.75rem;
  }
  
  .acknowledgments-text p {
    font-size: 0.9rem;
  }
  
  .acknowledgments-logo-placeholder {
    min-height: 80px;
    min-width: 120px;
    padding: 1rem;
  }
}