@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
}

body {
    font-family: 'Inter', sans-serif;
}

.custom-line-height {
    line-height: 1.8;
}

.btn {
    background-color: #7db907;
    color: white;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #547c03;
    color: white;
}

/* Top Info Bar */
.top-bar {
    background-color: #f8f9fa;
    padding: 10px 0;
    font-size: 14px;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.top-bar a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #7db907;
}

.top-bar .social-links a {
    font-size: 16px;
}

/* Main Navbar */
.navbar {
    padding: 6px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Sticky Navbar on Scroll */
.navbar.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Placeholder for fixed navbar */
.navbar-placeholder {
    height: 0;
    transition: height 0.3s;
}

.navbar-placeholder.active {
    height: 80px;
}

.navbar-nav .nav-link {
    color: #212529 !important;
    font-weight: 500;
    padding: 8px 20px !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #7db907 !important;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0;
    padding: 8px 0;
}

.dropdown-item {
    padding: 10px 20px;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: #7db907;
    color: white;
}

.btn-donate {
    background-color: #7db907;
    color: white;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s;
}

.btn-donate:hover {
    background-color: #3A5F0B;
    color: white;
}

.logo-img {
    max-width: 170px;
    height: auto;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.4));
}

/* Dropdown Hover for Desktop Only */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease-in-out;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .top-bar {
        display: none;
    }

    .navbar-collapse {
        background-color: white;
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-donate {
        width: 100%;
        margin-top: 10px;
    }

    .logo-img {
        max-width: 140px;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin-left: 20px;
    }

    .dropdown-item {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Banner */
/* Banner Section */
.banner {
    width: 100%;
    overflow: hidden;
    max-height: 400px;
}

.banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile Banner */
@media (max-width: 768px) {
    .banner {
        max-height: 300px;
    }
}

/* Home */
/* --- Responsive Height --- */
#heroCarousel {
    height: 550px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    #heroCarousel {
        height: 990px;
        /* Dynamic viewport height for mobile browsers */
    }
    .carousel-heading h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    #heroCarousel {
        height: 590px;
    }

    .carousel-heading h2 {
        font-size: 1.2rem;
    }
}

.carousel-inner {
    height: 100%;
    width: 100%;
}

.carousel-bg {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .carousel-bg {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* Enhanced Fade Transition */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    position: relative;
}

/* Heading Layer with Overlay, centered and not full width */
.carousel-heading {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.carousel-heading .heading-content {
    pointer-events: auto;
    animation: fadeInUp 1s ease-out;
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
    background: none;
    padding: 20px 25px;
}

@media (max-width: 768px) {
    .carousel-heading .heading-content {
        max-width: 90vw;
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .carousel-heading .heading-content {
        padding: 10px 15px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay-dark {
    background: rgba(0, 0, 0, 0.45);
}

.overlay-light {
    background: rgba(255, 255, 255, 0.45);
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
    z-index: 15;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 40px 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@media (max-width: 576px) {

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        background-size: 30px 30px;
    }
}

/* Progress Indicators */
.carousel-indicators {
    z-index: 10;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .carousel-indicators {
        margin-bottom: 1rem;
    }
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

.carousel-indicators .active {
    background-color: white;
    transform: scale(1.2);
}

.hero-title {
    color: #ffffff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

/* vision-mission */
.vision-mission {
    background-color: #f8f9fa;
}

.vision-mission .card {
    transition: transform 0.3s ease;
}

.vision-mission .card:hover {
    transform: translateY(-5px);
}

.vision-mission .card-title {
    color: #7db907;
    font-weight: 700;
}

.vision-mission .card-text {
    color: #5a6c7d;
    line-height: 1.8;
}


/* About */
.hayagreev-about {
    background: linear-gradient(135deg, #fef9f8 0%, #fff5f3 100%);
    position: relative;
    overflow: hidden;
}

.hayagreev-about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hayagreev-about::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.about-wrapper {
    position: relative;
    z-index: 1;
}



.about-content {
    margin-top: 40px;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #5a6c7d;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

.about-services {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff9f8 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #7db907;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
}

.service-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0;
    padding-top: 8px;
}


.closing-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #7db907;
    line-height: 1.8;
    margin: 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f3 0%, #ffffff 100%);
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hayagreev-about {
        padding: 50px 0;
    }

    .about-intro {
        font-size: 1rem;
    }

    .service-item {
        padding: 20px;
    }
    .service-text {
        font-size: 1rem;
    }

    .closing-message {
        font-size: 1.05rem;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .service-item:hover {
        transform: translateX(5px);
    }
}


/* Ways we serve */
.hayagreev-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.4rem 1.5rem;
    font-size: 0.9rem;
    z-index: 2;
    color: #fff;
    background-color: #7db907;
    font-weight: 600;
    border-radius: 0 0.75rem 0.75rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hayagreev-icon-box {
    width: 60px;
    height: 60px;
    background-color: #7db907;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.hayagreev-card {
    transition: all 0.4s ease;
    cursor: pointer;
}

.hayagreev-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
}

.hayagreev-card:hover .hayagreev-ribbon {
    padding-right: 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hayagreev-card:hover .hayagreev-icon-box {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 767px) {
    .hayagreev-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .hayagreev-card:hover {
        transform: translateY(-4px);
    }
}



/* Footer */
.footer-main {
    background-color: #7db907;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-bottom {
    border-top: 1px solid white;
    background-color: #7db907;
    color: #ffffff;
    padding: 20px 0;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.social-icons a {
    color: #ffffff;
    font-size: 24px;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffc107;
}

.tagline {
    font-family: 'Brush Script MT', cursive;
    font-size: 20px;
    font-style: italic;
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
}

.contact-info i {
    margin-right: 10px;
    margin-top: 3px;
    min-width: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-description {
    line-height: 1.8;
    font-size: 15px;
}

.send-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #7db907;
    border: 2px solid rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: none;     /* ✅ Hidden by default */
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 9999;     /* ✅ Stay on top */
}


.send-icon:hover {
    background: rgba(35, 107, 7, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.send-icon i {
    color: #ffff;
    font-size: 20px;
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 20px;
    }

    .tagline {
        font-size: 24px;
        margin-top: 20px;
    }

    .send-icon {
        bottom: 20px;
        right: 20px;
    }
}

/* Annadhanam */
.annadhanam-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.annadhanam-header {
    background: linear-gradient(135deg, #7db907 0%, #588106 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.annadhanam-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.annadhanam-content {
    padding: 40px;
}

.annadhanam-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.annadhanam-text p {
    margin-bottom: 1.5rem;
}

.sponsor-card {
    background: white;
    border-radius: 20px;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #7db907, #9be20e);
}

.sponsor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7db907, #8cca0f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.card-title-custom {
    color: #2d3436;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-text-custom {
    color: #636e72;
    font-size: 1rem;
    line-height: 1.8;
}