html {
  scroll-behavior: smooth;
}

/* Navbar setup */
.navbar-custom {
  background-color: white;
  height: 100px;
  position: fixed; /* stays stuck to top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 150px; /* leaves space for donate button visually */
}

/* Donate button positioned relative to navbar */
.donate-custom {
  position: fixed;       /* fixed so it scrolls with navbar */
  top: 50px;             /* half of navbar height */
  right: 20px;
  transform: translateY(-50%);
  z-index: 1040;         /* slightly above navbar */
}

/* Style the button itself */
.donate-custom .btn {
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
}

/* Fix dropdown (mobile) background for collapsed menu */
.navbar-custom .navbar-collapse {
  background-color: white;       /* same as navbar */
  padding: 1rem;                 /* optional – adds breathing room */
}

/* Make sure dropdown links remain visible */
.navbar-custom .nav-link {
  color: #0E1D58;                /* your existing text color */
}

.navbar-custom .nav-link:hover {
  color: white;
  background-color: #0E1D58;     /* or your theme color */
}

/* Increase font size of navbar links */
.navbar-custom .nav-link {
    font-size: 1.25rem; /* Adjust as needed */
}

/* Custom Navbar Link Hover Color */
.nav-link:hover {
    color: white; /* Lighter blue; adjust as needed */
    background-color: transparent; /* Lighter blue; adjust as needed */

}

/* Center Navbar Links in Collapsed Menu */
#navbarNav .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}


/* Custom Button Styles */
.btn-custom {
    width: 70px;
    text-justify: auto;
}

/* Center Navbar Links */
@media (min-width: 300px) { /* Adjusting for Bootstrap's 'lg' breakpoint */
    .btn-custom {
        width: 115px;
        border: none;
        padding: 0.5rem 2rem; /* Considerable padding */
    }
}

.top-picture img {
    max-height: 50vh; /* Limits the image height to 50% of the viewport height */
    width: auto; /* Maintains aspect ratio */
    display: block; /* Removes bottom space/margin */
    margin: 0 auto; /* Center the image horizontally */
    margin-top: 100px;
}
#meetDavid p,h1, h2 {
    color: #0E1D58;
}
/* Set the maximum height for the Swiper container */
.swiper-container {
    position: relative;
    max-height: 35vh; /* Adjust this value based on your needs */
    overflow: hidden; /* Prevents images from exceeding the container's height */
    margin-bottom: 10px; /* Adds space below the swiper container for pagination */
}

/* Ensure images within Swiper slides are responsive and maintain aspect ratio */
.swiper-slide img {
    width: 100%; /* Make image width responsive to the container's width */
    height: 100%; /* Make image height responsive to the container's height */
    object-fit: contain; /* Cover the area without distorting the image */
}
.swiper-button-next, .swiper-button-prev {
    position: absolute;
    top: 50%; /* Centers the buttons vertically */
    transform: translateY(-50%); /* Adjusts the positioning to exactly center */
    z-index: 10; /* Ensures buttons are above the images */
}
.swiper-pagination {
    position: absolute;
    bottom: -200px; /* Adjust this value based on your needs */
    width: 100%;
    text-align: center;
}
.swiper-button-next {
    right: 10px; /* Distance from the right edge of the container */
}

.swiper-button-prev {
    left: 10px; /* Distance from the left edge of the container */
}

#candidate-request {
    background-color: #0E1D58;
    color: grey;
}
.no-shrink {
    flex-shrink: 0;
}

#submit-btn {
    font-size: 1.25rem; /* Increases font size */
    padding: 10px 30px; /* Larger padding for a bigger button */
    width: 50%; /* Specific width */
    display: block; /* Needed for mx-auto to center the button */
    margin: 0 auto; /* Centers the button horizontally */
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 1rem 0;
}

.custom-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Evenly spreads the content */
    align-items: center; /* Centers the content horizontally */
    height: 400px; /* Your fixed height */
    background-image: url('/images/1920x1060_bg1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 20px;
}

.custom-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust transparency level */
    z-index: 1;
}

/* Additional styles remain unchanged */

/* Making sure elements are positioned correctly */
.social-links, .footer-links, .action-button {
    position: relative;
    z-index: 2;
    width: 100%; /* Ensures full width for alignment */
}

.action-button a {
    color: white; /* Text color */
    border-color: white; /* Border color */
    background-color: transparent; /* Background color */
    border-radius: 0; /* Squares off the corners */
    transition: background-color 0.3s ease; /* Smooth transition for background color */
}

.action-button a:hover, .action-button a:focus {
    color: white; /* Text color on hover/focus */
    background-color: red; /* Background color on hover/focus */
    border-color: red; /* Border color on hover/focus */
}


.social-links a, .footer-links a, .footer-links span {
    /* Ensure these elements don't inherit text-align from the footer */
    text-align: center;
}


.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
}

.action-button button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-button button:hover {
    background-color: red;
    border-color: red;
}

/* Ensuring the icons and text are easily readable over the background */
i, span, a {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
