/*** General Styles ***/
:root {
    --bs-primary: #15b9d9; /* Original primary color */
    --bs-secondary: #efa286; /* Original secondary color */
    --bs-light: #f8f9fa; /* Light background */
    --bs-dark: #343a40; /* Dark text */
    --bs-white: #ffffff;
    --bs-body: #6c757d; /* Muted text */
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
    border-radius: 8px;
    transition: 0.3s;
    z-index: 99;
}

.back-to-top:hover {
    background: var(--bs-secondary);
}

/*** Buttons ***/
.btn {
    font-weight: 600;
    transition: .3s;
    border-radius: 20px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-primary);
    color: var(--bs-white);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-light);
    color: var(--bs-primary);
}

.btn.btn-light {
    background: var(--bs-light);
    color: var(--bs-primary);
}

.btn.btn-light:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

/*** Section Title ***/
.section-title {
    max-width: 800px;
    text-align: center;
    margin: 0 auto 50px;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.section-title .sub-style::before,
.section-title .sub-style::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--bs-primary);
}

.section-title .sub-style::before {
    width: 60px;
    left: -70px;
}

.section-title .sub-style::after {
    width: 30px;
    left: -40px;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before,
.sub-title::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--bs-primary);
}

.sub-title::before {
    width: 60px;
    right: -70px;
}

.sub-title::after {
    width: 30px;
    right: -40px;
}

/*** Topbar ***/
.topbar {
    padding: 10px 20px;
    background: var(--bs-primary);
    color: var(--bs-white);
}

.topbar a {
    color: var(--bs-white);
    text-decoration: none;
    margin-right: 15px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.topbar a:hover {
    color: var(--bs-secondary);
}

@media (max-width: 576px) {
    .topbar {
        display: none;
    }
}

.navbar-light {
    background: var(--bs-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Ensure sticky positioning */
    top: 0; /* Stick to the top of the viewport */
    z-index: 1030; /* Ensure it stays above other content */
    width: 100%; /* Full width */
}

.navbar-light .navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
    margin: 0 15px;
    padding: 10px 0;
    color: var(--bs-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: .3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    max-height: 40px;
    transition: .3s;
}

.navbar-light .navbar-brand {
    margin-right: auto;
}

.navbar-light .btn-donate {
    margin-left: auto;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 30px;
}

.navbar .dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    margin-left: 6px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: translateY(10px);
        border: 0;
        border-radius: 6px;
        transition: .3s;
        opacity: 0;
        background: var(--bs-white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.dropdown-menu a {
    color: var(--bs-dark);
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: .3s;
}

.dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 8px 0;
        margin-left: 10px;
    }
    .navbar-light .navbar-brand img {
        max-height: 50px;
    }
    .navbar-light .navbar-collapse {
        border-top: 1px solid #e9ecef;
        margin-top: 10px;
        padding-top: 10px;
    }
}

/*** Carousel ***/
.header-carousel .header-carousel-item img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    margin-top: 0;
}

.header-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.header-carousel .carousel-caption-content {
    text-align: center;
    max-width: 80%;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 50px;
    height: 50px;
    background: var(--bs-primary);
    color: var(--bs-white);
    border-radius: 50%;
    font-size: 20px;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-nav .owl-prev {
    margin-left: 10px; /* Adjust as needed */
}

.header-carousel .owl-nav .owl-next {
    margin-right: 10px; /* Adjust as needed */
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
}

@media (max-width: 576px) {
    .header-carousel .header-carousel-item img {
        height: 400px;
    }
}

/*** Services ***/
.service {
    padding: 60px 0;
}

.service .service-item {
    background: var(--bs-white);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: .3s;
    margin-bottom: 30px;
}

.service .service-item:hover {
    transform: translateY(-3px);
}

/*** About ***/
.about {
    padding: 60px 0;
}

.about .about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about .about-img-inner {
    border: 8px solid var(--bs-white);
    border-radius: 50%;
    bottom: 20px;
    left: 20px;
    max-width: 150px;
}

/*** Feature ***/
.feature {
    padding: 60px 0;
}

.feature .feature-item {
    border: 1px solid var(--bs-primary);
    border-radius: 8px;
    background: var(--bs-light);
    padding: 20px;
    transition: .3s;
    margin-bottom: 20px;
}

.feature .feature-item:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.feature .feature-item:hover h5 {
    color: var(--bs-white);
}

.feature .feature-icon i {
    font-size: 2.5rem;
    color: var(--bs-primary);
}

/*** Partners Slider ***/
#partnersCarousel {
    max-width: 800px;
    margin: 0 auto;
}

.carousel-item .card {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.carousel-item .card:hover {
    transform: scale(1.05);
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between logo and text */
}

.partner-logo {
    max-height: 80px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.partner-text h5 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.partner-text .card-text {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0;
}

.carousel-control-prev,
.carousel-control-next {
    filter: invert(1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/*** Blog ***/
.blog {
    padding: 60px 0;
}

.blog .blog-item {
    background: var(--bs-white);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.blog .blog-img img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.blog .blog-centent {
    padding: 20px;
}

/*** Footer ***/
.footer {
    padding: 40px 0; /* Reduced padding for a more compact look */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../img/carousel-3.jpg);
    background-size: cover;
    color: var(--bs-white);
}

.footer .footer-item a {
    color: var(--bs-white);
    transition: .3s;
    margin-bottom: 10px;
    display: block;
    text-decoration: none; /* Remove underline from links */
}

.footer .footer-item a:hover {
    color: var(--bs-secondary);
}

.d-flex.align-items-center {
    gap: 10px; /* Consistent spacing between icons */
    margin-bottom: 20px; /* Space below icons */
}

.btn-square.btn.btn-primary {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-square.btn.btn-primary:hover {
    background-color: var(--bs-secondary);
    transform: scale(1.1);
}

.btn-square.btn.btn-primary .fab {
    font-size: 1.2rem;
    color: var(--bs-white);
}

.fas.fa-share {
    font-size: 1.5rem;
    color: var(--bs-white);
    margin-right: 10px;
}

.footer-item h4 {
    font-size: 1.2rem; /* Slightly larger heading for better visibility */
    margin-bottom: 15px;
}

.footer .row {
    justify-content: space-between; /* Ensure even distribution of columns */
}

/*** Copyright ***/
.copyright {
    background: var(--bs-dark);
    padding: 20px 0;
}
