﻿html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}



.navbar-custom {
    background: linear-gradient(135deg, #5e2b97, #a4508b);
    padding: 0.7rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

    .navbar-custom .nav-link {
        color: #fff;
        font-weight: 500;
        margin: 0 10px;
        transition: color 0.3s ease-in-out;
    }

        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-item.active .nav-link {
            color: #ffe082;
        }

.custom-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

body {
    padding-top: 70px;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

    .hero-slide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 1;
    }

.carousel-caption {
    position: relative;
    z-index: 2;
    padding-left: 2rem;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

    .carousel-caption h1 {
        font-size: 2rem;
        font-weight: bold;
        line-height: 1.4;
        word-break: break-word;
    }

    .carousel-caption p {
        font-size: 1rem;
        line-height: 1.6;
        margin-top: 0.5rem;
    }
    .carousel-caption .btn {
        font-weight: 600;
        padding: 0.6rem 1.5rem;
        border-radius: 30px;
    }

@media (max-width: 768px) {
    #swamiji-photo {
        background-position-x:60%;
    }
    .carousel-indicators {
        display: none;
    }
    .carousel-caption {
        max-width: 75%;
        padding: 1rem;
        text-align: left;
    }

        .carousel-caption h1 {
            font-size: 1.4rem;
        }

        .carousel-caption p {
            font-size: 0.9rem;
        }
}


.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.delay-1s {
    animation-delay: 1s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-explore {
    background: linear-gradient(to right, #7e2dc5, #a4508b);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 30px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(164, 80, 139, 0.3);
    position: relative;
    overflow: hidden;
}

    .btn-explore::before {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        transform: skewX(-20deg);
        transition: all 0.5s ease-in-out;
    }

    .btn-explore:hover::before {
        left: 130%;
    }

    .btn-explore:hover {
        box-shadow: 0 6px 20px rgba(164, 80, 139, 0.6);
        color: #7e2dc5;
        background: white;
        border: 2px solid;
        border-color: #7e2dc5;
        border-radius: 30px;
    }

.footer-custom {
    background: #fff;
    color: #4a1868;
    border-top: 4px solid #a4508b;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
    .footer-custom h5,
    .footer-custom p,
    .footer-custom small,
    .footer-custom a {
        color: #4a1868;
    }

.footer-link {
    color: #4a1868;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: #a4508b;
    }

.footer-icon {
    font-size: 1.2rem;
    color: #5e2b97;
    transition: color 0.3s ease;
}

    .footer-icon:hover {
        color: #a4508b;
    }

.text-gradient {
    background: none;
    font-weight: 600;
    color: #5e2b97;
}

hr.border-light {
    border-top: 1px solid #ccc;
}



#about {
    background: #fcfcfc;
}

    #about .text-gradient {
        font-weight: 600;
        background: linear-gradient(120deg, #5e2b97, #a4508b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    #about .card i {
        color: #5e2b97;
    }
.about-section {
    background-image: url('https://d1ntk8zfr9iyhy.cloudfront.net/wp-content/uploads/2020/11/parichay_banner-1.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
}

    .about-section .overlay {
        background-color: rgba(0, 0, 0, 0.6);
        width: 100%;
        height: 100%;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

.about-content {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #a4508b;
    border-radius: 10px;
}

    .about-content p {
        color: #f5f5f5;
        line-height: 1.6;
    }

    .about-content h2 {
        font-weight: 700;
        background: linear-gradient(135deg, #ffe082, #fff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }


/* Icon hover animation */
.icon-hover {
    transition: transform 0.4s ease, color 0.4s ease;
}

    .icon-hover:hover {
        transform: scale(1.2) rotate(5deg);
        color: #a4508b !important;
    }

.seva-div {
    background-image: url('https://d1ntk8zfr9iyhy.cloudfront.net/wp-content/uploads/2020/11/gurukarya_banner.jpg');
    background-repeat: no-repeat;
    background-position: 60% 80%;
}

.ashram-section {
    height:700px;
}

.donate-section{
    height:600px;
}

.ashram-div {
    background-image: url('https://d1ntk8zfr9iyhy.cloudfront.net/wp-content/uploads/2020/11/BANNER.jpg');
    background-repeat: no-repeat;
    height:100%;
    max-height:2000px;
}


@media (max-width: 768px) {
    .seva-div {
        background-position: center top;
        background-size: cover;
        background-position-x: 75%;
    }
    .ashram-div {
        background-position: center top;
        background-size: cover;
        background-position-x: 75%;
    }
    .background-div {
        background-position: center top;
        background-size: cover;
        background-position-x: 60%;
    }
    .about-section {
        background-position: center top;
        background-size: cover;
        background-position-x:90%;
    }

    .about-content {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.6);
    }
}


.seva-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

    .seva-card img {
        height: 220px;
        object-fit: cover;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .seva-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .seva-card .card-title {
        color: #5e2b97;
        font-weight: 600;
    }

    .seva-card .card-text {
        color: #555;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }


.progress {
    height: 20px;
    background-color: #f1f1f1;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: width 1.5s ease-in-out;
    position: relative;
    cursor: pointer;
}

.progress-text {
    transition: opacity 0.4s ease-in-out;
    display: inline-block;
    padding: 2px 10px;
    opacity:1;
}


    
    .progress-bar::after {
        content: attr(data-remaining);
        position: absolute;
        top: -45px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #5e2b97;
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 10;
    }

    .progress-bar:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
}



.donation-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

    .donation-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

.donation-section {
    background: #fdfdfd;
}

.donation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeInScale 0.4s ease-in-out;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a4508b;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}



.donation-section {
    background: url('https://d1ntk8zfr9iyhy.cloudfront.net/wp-content/uploads/2021/03/Daan-BG.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}

.donation-section-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}

.donation-overlay {
    background: rgba(0, 0, 0, 0.6); 
    width: 60%;
    padding: 3rem;
    border-radius: 10px;
}

.donation-container {
    color: white;
}

.donation-section input,
.donation-section select {
    border-radius: 5px;
    border: none;
    padding: 0.75rem 1rem;
}

    .donation-section input:focus,
    .donation-section select:focus {
        outline: none;
        box-shadow: 0 0 5px #a4508b;
        border: 1px solid #a4508b;
    }

.btn-explore {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
}


.donation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeInScale 0.4s ease-in-out;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a4508b;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.blog-section {
    background-color: #f9f9f9;
}

.blog-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .blog-card .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

.filter-btn.active {
    background: linear-gradient(to right, #7e2dc5, #a4508b);
    color: white;
    border: none;
}

.pagination .page-link {
    color: #5e2b97;
}

.pagination .active .page-link {
    background-color: #7e2dc5;
    border-color: #7e2dc5;
    color: white;
}


.blog-details {
    background-color: #fdfdfd;
}

.blog-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}


.awards-section {
    background-color: #f9f9f9;
}

.award-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .award-card .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

.filter-btn.active {
    background: linear-gradient(to right, #7e2dc5, #a4508b);
    color: white;
    border: none;
}

.pagination .page-link {
    color: #5e2b97;
}

.pagination .active .page-link {
    background-color: #7e2dc5;
    border-color: #7e2dc5;
    color: white;
}
.ashram-section {
    background-color: #f9f9f9;
}

    .ashram-section .card {
        border: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .ashram-section .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

    .ashram-section iframe {
        border-radius: 10px;
    }

.nav-pills .nav-link {
    background-color: #f2f2f2;
    color: #5e2b97;
    margin: 0 5px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

    .nav-pills .nav-link:hover {
        background-color: #a4508b;
        color: white;
    }

    .nav-pills .nav-link.active {
        background-color: #a4508b;
        color: white;
        box-shadow: 0 4px 12px rgba(164, 80, 139, 0.4);
    }

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .gallery-image:hover {
        transform: scale(1.05);
        .blur-up {
    filter: blur(20px);
    transition: filter 0.5s ease-out;
}

    .blur-up.lazyloaded {
        filter: blur(0);
    }



.blur-up {
    filter: blur(20px);
    transition: filter 0.5s ease-out;
}

    .blur-up.lazyloaded {
        filter: blur(0);
    }


.image-wrapper {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    position: relative;
    overflow: hidden;
}

    .image-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
        animation: loadingPlaceholder 1.2s infinite;
    }

@keyframes loadingPlaceholder {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    100% {
        left: 125%;
    }
}
