body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


/* =========  Preloader Styles ======= */
#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

.preloader-logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    animation: pulse 1.8s infinite;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #da251c;
    border-top-color: transparent;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== End of Preloader Styles ===== */

/* ===== Top Bar (Navigation Bar) ===== */
.top-bar {
    background-color: #b91c1c;
    /* Red */
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
    z-index: 1031;
    /* Above navbar */
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar .social-icons a {
    color: #fff;
    margin-left: 12px;
    font-size: 16px;
    transition: color 0.3s;
}

.top-bar .social-icons a:hover {
    color: #000;
}



/* ===== Navbar ===== */
.navbar-custom {
    background-color: #000;
    /* Black */
    z-index: 1030;
    border-bottom: 2px solid #b91c1c;
    
}

.navbar-custom .navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s;
    
}



.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: #b91c1c;
    /* Red */
}

.navbar-custom .navbar-brand img {
    height: 60px;
    width: auto;
}



/* Contact Button */
.contact-btn {
    background-color: #b91c1c;
    color: #fff !important;
    border-radius: 4px;
    padding: 8px 18px !important;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #dc2626;
}

/* Stick top-bar + navbar */
.header-fixed {
    position: sticky;
    top: 0;
    z-index: 1031;
}

@media (max-width: 991.98px) {
    .top-bar .row > div {
        text-align: center;
        margin-bottom: 5px;
    }

    .navbar-custom .navbar-collapse {
        background-color: #000;
        padding: 10px 0;
    }
}
/* ===== End Top Bar (Navigation Bar) ===== */

/* ===== Homepage ===== */

.cutomestyle {
    word-spacing: 6px;
    /*line-height: 16px;*/
    text-align: left;
}

@media (max-width: 768px) {
    .card img {
        width: 270px;
        margin-bottom: 20px;
    }
}

/* Hero style */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Adjust carousel height dynamically for mobile */
#header-carousel .carousel-inner {
    height: 100vh;
}

#header-carousel .carousel-item img {
    
    width: 100%;
    height: 100vh;
    filter: brightness(70%);
}

/* Caption */
.carousel-caption {
    bottom: 20%;
}

.hero-caption,
.carousel-caption h1,
.carousel-caption p {
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.carousel-caption .btn {
    background: #da251c;
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.carousel-caption .btn:hover {
    background: #fff;
    color: #da251c;
    border: 1px solid #da251c;
}

/* Custom white arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #da251c;
    background-size: 60%, 60%;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(255, 255, 255, 0.9);
    filter: invert(1);
}

/* Fix unwanted white space on mobile */
@media (max-width: 768px) {
    #header-carousel .carousel-inner,
    #header-carousel .carousel-item img {
        height: 100dvh;
        /* Uses dynamic viewport height */
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* End hero style */

/* Welcome Style */
.welcome-section {
    overflow-x: hidden;
}

.welcome-section .underline {
    width: 70px;
    height: 4px;
    background-color: #dc3545;
    border-radius: 2px;
}

.welcome-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
}

.welcome-section p {
    text-align: justify;
}

.welcome-section img {
    max-width: 90%;
    transition: transform 0.3s ease;
}

.welcome-section img:hover {
    transform: scale(1.03);
}

/* ===== Animations ===== */
.animate {
    opacity: 0;
    transform: translateY(40px);
    animation-fill-mode: forwards;
}

.fadeInLeft {
    animation: fadeInLeft 1s ease-out forwards;
}

.fadeInRight {
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Trigger animations on scroll */
@media (prefers-reduced-motion: no-preference) {
    .animate {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* End Welcome Style */

/* ===== Our Services Section ===== */
.services-section {
    background-color: #f9fafb;
}

.services-section .underline {
    width: 80px;
    height: 4px;
    background-color: #dc3545;
    border-radius: 2px;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #b91c1c;
}

.service-card .icon i {
    transition: transform 0.4s ease, color 0.3s;
}

.service-card:hover .icon i {
    transform: scale(1.2);
    color: #b91c1c;
}

/* Animation keyframes (reuse existing from welcome section) */
.fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End services section */

/* Certificates section */
.certificate-card img {
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.certificate-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.certificates-section {
    background: #f9f9f9;
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.08);
}

/* End certificates section */

/* Donate section */
.donate-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donate-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.donate-section ul li {
    font-size: 1.05rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.donate-section ul li:last-child {
    border-bottom: none;
}

@media (max-width: 576px) {
    .donate-section .card-header h4 {
        font-size: 1.25rem;
    }

    .donate-section ul li {
        font-size: 0.95rem;
    }
}





/* End Donate section */
/* ===== End Homepage ===== */
