body {
  scroll-behavior: smooth;
}

/* Navbar */
#Navbar {
  background-color: white;
  border-bottom: 1px solid #ccc;
  top: 0;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 1030;
}

#Navbar .navbar-nav {
  text-align: center;
}

#Navbar .navbar-brand img {
  transition: height 0.3s ease;
}

/* On large screens (≥992px) set fixed height 110px */
@media (min-width: 992px) {
  .logo-img {
    height: 110px !important;
    max-height: none;
  }
}

/* Medium screens (≥768px and <992px), scale to 80px height */
@media (min-width: 768px) and (max-width: 991.98px) {
  .logo-img {
    height: 80px;
    max-height: none;
  }
}

/* Small screens (<768px), scale down to 50px */
@media (max-width: 767.98px) {
  .logo-img {
    height: 50px;
    max-height: none;
  }
}

.logo-img {
  height: auto;
  max-height: 110px;
  width: auto;
  min-height: 40px; /* small logo on smallest screens */
  transition: height 0.3s ease;
}

/* Nav links styling */
.custom-nav .nav-link {
  position: relative;
  font-weight: 700;
  color: black;
  margin-right: 20px;
  padding: 0.5rem 0;
  text-decoration: none;
  white-space: nowrap;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.custom-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #A1288D;
  transition: width 0.3s ease;
}

.custom-nav .nav-link:hover::after,
.custom-nav .nav-link.active::after {
  width: 100%;
}

.custom-nav .nav-link.active {
  color: #A1288D;
}

.nav-items {
  overflow-x: auto;
  flex-wrap: nowrap;
}


.swiper {
  width: 100vw;
  height: 60vh;
  max-height: 500px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: white;
  position: relative;
}
/* swiper*/
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.swiper-button-prev,
.swiper-button-next {
  color: gray !important;
  width: 30px;
  height: 30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
}
/*counters*/
.counter-section {
  background-color: #f1f2f6;
  padding: 60px 20px;
  text-align: center;
}

.counter {
  font-size: 3rem;
  font-weight: bold;
  color: #91288B;
}

.label {
  font-size: 1.1rem;
  color: #444;
  margin-top: 10px;
}
/*carrosel*/
.owl-carousel .item {
  display: flex;
  justify-content: center;
}

.card-container {
  position: relative;
  width: 250px;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
}

.card-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(161, 40, 141, 0.9);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.card-container:hover .card-overlay {
  opacity: 1;
}

.card-container:hover img {
  transform: scale(1.05);
}

.card-overlay h5 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-overlay p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-overlay .btn {
  background-color: white;
  color: #A1288D;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.card-overlay .btn:hover {
  background-color: #f1f1f1;
}


/* Custom nav buttons */
.owl-nav {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.owl-nav button {
  pointer-events: all;
  background: #e0e0e0 !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem !important;
  color: #555 !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.owl-nav button:hover {
  background: #ccc !important;
}

.owl-dots {
  margin-top: 20px;
}

.owl-dot {
  width: 12px;
  height: 12px;
  margin: 5px;
  background: #aaa;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.owl-dot.active {
  background: #A1288D;
}

#bannerCarousel .item img {
  width: 100%;        /* fill the entire width */
  max-height: 550px;  /* limit height */
  height: auto;       /* keep aspect ratio */
  object-fit: cover;  /* crop if needed to cover area */
  display: block;
}

#apoiadosCarousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
}

#apoiadosCarousel .item img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#apoiadosCarousel .item img:hover {
  transform: scale(1.05);
}

.card-custom {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 100%;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.card-custom h4 {
  color: #4a4a4a;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.card-custom p {
  color: #7d7d7d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.card-link {
  color: #91288B;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
}

.item {
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center;    /* center horizontally */
}


.card-title-below {
  display: block; /* ensure title is block-level */
  text-align: center;
  font-weight: bold;
  margin-top: 8px;
  font-size: 1rem;
  color: #333;
}
/* Base section styling */
.donation-section {
  color: #7a7a7a; /* Slightly darker light gray */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Headings */
.donation-section h3 {
  color: #666666; /* Medium gray */
  font-weight: bold;
}

/* Link styling (for URLs or tel:) */
.donation-section a {
  color: #7a7a7a; /* Match body text */
  text-decoration: none;
  transition: color 0.2s ease;
}

.donation-section a:hover,
.donation-section a:focus {
  color: #91288B;
  text-decoration: underline;
}

/* Icon styling */
.donation-section i.fas.fa-angle-double-right {
  color: #91288B;
  font-size: 50px;
  font-weight: bold;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icon container alignment */
.donation-section .col-1 {
  display: flex;
  align-items: flex-start; /* Aligns icon to the top */
  justify-content: center;
}

.donation-section hr{
  border: 0;
  height: 1px;                  /* Thicker for stronger presence */
  background-color: #91288B;    /* Bold violet */
  opacity: 1;                   /* Ensure full visibility */
  margin: 2rem 0;               /* Balanced spacing */
  border-radius: 2px;           /* Optional: softened ends */
}

.previous-container {
  position: relative;
  background: #eff1f7;
  z-index: 1;
  padding-bottom: 0; /* Optional: reduce bottom padding if any */
}

/* Add this to your stylesheet or inside a <style> tag */
.fade-in-title[data-aos="fade-up"] {
  transform: translateY(20px);
  opacity: 0;
  transition-property: transform, opacity;
}

.fade-in-title[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

#footer p {
  color: #7a7a7a;
}

#footer h5 {
  color: #91288B;
}
