/* Hide on devices smaller than 768px (Bootstrap mobile breakpoint) */
@media (max-width: 767.98px) {
    .hide-on-mobile {
        display: none !important;
    }
}

.feature-box {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Gradient Circle for Icons */
.icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, #0f4229, #3e8f35);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: 0.3s ease;
}

.feature-box:hover .icon-wrap {
    transform: scale(1.1);
    background: linear-gradient(135deg, #348e39, #4b584b);
    box-shadow: 0 6px 20px rgba(52, 142, 57, 0.5);
}

/* Text */
.feature-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.carousel-item img {
    height: 500px;
}

.carousel-caption h3 {
    font-size: 36px;
}

@media (max-width: 600px) {
    .carousel-caption h3 {
        font-size: 26px;
    }

    .carousel-item img {
        height: 350px;
    }

    .carousel-item {
        height: 350px !important;
        min-height: 350px !important;
    }

}

html,
body {
    overflow-x: hidden;
}

/* CSS for styling the popup form */
.popupForm {
    border-radius: 10px;
    position: fixed;
    top: 47%;
    left: 50%;
    width: 38%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border: 2px solid #348e39;
    z-index: 9999;
    /*height:80%;*/
    /*overflow: hidden;*/
    display: none;
    box-shadow: 0px 0px 50px #348e39;

}

@media (max-width: 768px) {

    .popupForm {
        width: 90%;
        box-shadow: 0px 0px 10px #348e39;
    }

    .popupForm label {
        display: block;
        /*margin-bottom: 5px;*/
    }

    .popupForm input,
    .popupForm select {
        /*width: calc(100% - 22px); */
        padding: 4px;
        margin-bottom: 3px;
        border: 1px solid #cccccc;
        border-radius: 4px;
    }


}

.popupForm h2 {
    margin-top: 0;
}

.popupForm label {
    display: block;
    margin-bottom: 10px;
}

.popupForm input,
.popupForm select {
    width: calc(100% - 22px);
    /* Adjusted width to account for padding and border */
    padding: 8px;
    margin-bottom: 7px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.popupForm button {
    padding: 8px 20px;
    border: none;
    border-radius: 7px;
    /*background-color: #348e39;*/
    background-color: transparent;
    color: #348e39;
    cursor: pointer;
    margin-right: 10px;
    float: right;
    position: relative;
    top: 5px;
    border: solid 2px #348e39;
    box-shadow: 0px 0px 10px #348e39;
}

.popupForm button:hover {}


.popupForm button:last-child {
    margin-right: 0;
}

#closePopupBtn {
    font-weight: bolder;

}

#closePopupBtn:hover {
    visibility: 0.7;
    color: red;
}

/* Overlay for background blur */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    backdrop-filter: blur(5px);
    /* Apply blur effect */
    z-index: 9998;
    display: none;
    /* Initially hidden */
}

/* Styling for the rotated button */
#openPopupBtn {
    position: fixed;
    top: 50%;
    /* Adjust position as needed */
    right: -45px;
    /* Adjust position as needed */
    padding: 10px 20px;
    background-color: #348e39;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999;
    transform: rotate(-90deg);
    /* Rotate the button */
}

/* Hover effect for the button */
#openPopupBtn:hover {
    background-color: #0056b3;

}

#openPopupBtn {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        /*transform: translateY(0);*/
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
        /* Replace with your desired glow color */
        border: solid 1px #348e38;

    }

    50% {
        /*transform: translateY(-5px); Move up by 5px*/
        box-shadow: 0 0 40px rgba(255, 165, 0, 1);
        /* Increase glow intensity */
        border: solid 1px white;
    }

    100% {
        /*transform: translateY(0);*/
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
        /* Restore original glow */
        border: solid 1px #348e38;
    }
}

.pre-btn {
    border: none;
    background: transparent;
    /*position:relative;*/
    /*bottom:100px;*/
}

.img-form {
    position: relative;
    bottom: 100px;
}

.message {
    width: calc(100% - 22px);
    padding: 8px;
    /*margin-bottom: 7px;*/
    border: 1px solid #cccccc;
    border-radius: 4px;
}

#closePopupBtn:hover {
    color: white;
    opacity: 0.3;
}

/* Blogs / Team Cards */
.section-blogs .blog-card {
    border: none;
    transition: all 0.4s ease;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
}

.section-blogs .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    position: relative;
}

.blog-card-title {
    font-size: 1.25rem;
}

.blog-card-designation {
    font-size: 0.95rem;
}

.btn-success {
    background-color: #3e8f35;
    border-color: #0f4229;
    transition: 0.3s;
}

.btn-success:hover {
    background-color: #0f4229;
    border-color: #3e8f35;
    color: #fff;
}

/* Team / Blog Card Hover */
.team-card,
.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover,
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.sticky-buttons {
    position: fixed;
    bottom: 20px;
    /* adjust vertical position */
    left: 20px;
    /* left side */
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* space between buttons */
    z-index: 10000;
}

.sticky-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn {
    background-color: #25d366;
}

.call-btn {
    background-color: #007bff;
}

.sticky-buttons a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.portfolio-overlay {
    background: rgba(0, 0, 0, 0.6);
    transition: 0.4s;
    opacity: 0;
    pointer-events: none;
}

.portfolio-inner:hover .portfolio-overlay {
    opacity: 1 !important;
    pointer-events: auto;
}

.portfolio-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Card Style */
.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Image Section */
.service-img {
    position: relative;
    overflow: hidden;
}

.service-img .main {
    transition: transform 0.5s ease;
    height: 250px;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Icon Circle */
/* Small icon next to service name */
.service-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

h4.d-flex {
    gap: 8px;
    /* spacing between icon & text */
    align-items: center;
}

/* Text Section */
.service-text {
    padding-top: 50px !important;
}

.service-desc {
    color: #555;
    font-size: 15px;
    min-height: 60px;
}

/* Button */
.service-text .btn {
    margin-top: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.service-text .btn:hover {
    background: #348e39;
    color: #fff;
    border-color: #348e39;
}

.features-section {
    position: relative;
}

.features-section .feature-card {
    background: #fff;
    border-radius: 20px;
    text-align: center;
    padding: 50px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.features-section .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.features-section .feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #0f4229, #3e8f35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin: 0 auto 20px auto;
    transition: all 0.4s ease;
}

.features-section .feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.features-section .feature-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: #0f4229;
    margin: 0;
}

.facts {
    position: relative;
    z-index: 1;
}

/* Top overlay */


/* Bottom overlay */
.facts::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* covers bottom half */
    background: rgba(0, 0, 0, 0.6);
    /* darker bottom */
    z-index: 1;
}

.facts p {
    font-size: 36px;
}

/* Keep content above overlays */
.facts .container {
    position: relative;
    z-index: 2;
}

.about-section {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.about-img {
    position: relative;
}

.about-section .experience-badge {
    position: absolute;
    bottom: -50px;
    right: 0px;
    background: #ffffffdd;
    color: #0f4229;
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-section .experience-badge h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #3e8f35;
}

.about-section .feature-card {
    background: #fff;
    color: #0f4229;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-section .feature-icon {
    font-size: 40px;
    color: #3e8f35;
}

.feature-card p {
    font-size: 14px;
}

.loan-form .form-control, .loan-form .form-select {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    margin-bottom: 15px;
}
.loan-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-loan {
    background: #348e39;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
}

.loan-form .form-control:focus,
.loan-form .form-select:focus {
  border-color: #348e39;
  box-shadow: 0 0 8px rgba(52,142,57,0.2);
}