* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Poppins', sans-serif;

    line-height: 1.6;
    color: black;
    background-color: #ffffff;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #2e8b57;
    /* Sea Green */
    transition: color 0.3s ease;
}

a:hover {
    color: #1d5c38;
    /* Darker Green */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #2e8b57;
    /* Sea Green */
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3cb371;
    /* Medium Sea Green */
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;

    font-size: 1.1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2e8b57;
    /* Sea Green */
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d5c38;
    /* Darker Green */
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #2e8b57;
    /* Sea Green */
    border: 2px solid #2e8b57;
}

.btn-secondary:hover {
    background-color: #f0fff0;
    /* Honeydew */
    color: #1d5c38;
    /* Darker Green */
    border-color: #1d5c38;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: relative;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 15px 20px; */
}

/* Logo */
.logo {
    font-size: 22px;
    font-weight: 600;
    color: #2E8B57;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2e8b57;
    /* Sea Green */
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: #243a2c;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2e8b57;
    /* Sea Green */
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: #2e8b57;
    /* Sea Green */
}




/* Hero Section Styles */
.hero {
    background: linear-gradient(rgba(46, 139, 87, 0.8), rgba(60, 179, 113, 0.8)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Page Hero Styles */
.page-hero {
    height: 500px;
    background: linear-gradient(rgba(46, 139, 87, 0.8), rgba(60, 179, 113, 0.8)), url('../images/page-hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.loans-hero {
    background: linear-gradient(rgba(46, 139, 87, 0.8), rgba(60, 179, 113, 0.8)), url('/image/loanpagehero.png') center/cover no-repeat;
}

.deposits-hero {
    /* Overlay gradient + background image */
    background:
        /* linear-gradient(rgba(46, 139, 87, 0.8), rgba(60, 179, 113, 0.8)), */
        url('/image/depositdoller.png') no-repeat center center/cover;

    height: 500px;
    /* Adjust height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    /* Optional: makes image steady on scroll */
}


.about-hero {
    /* Overlay gradient + background image */
    background:
        /* linear-gradient(rgba(255, 255, 255, 0.8), rgba(60, 179, 113, 0.8)), */
        url('/image/aboutherosection.png') no-repeat center center/cover;

    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    /* Optional: keeps background steady while scrolling */
}

.contact-hero {
    /* Overlay gradient + background image */
    background:
        /* linear-gradient(rgba(46, 139, 87, 0.8), rgba(60, 179, 113, 0.8)), */
        url('/image/contactusheroimage\ .png') no-repeat center center/cover;

    height: 500px;
    /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    /* Optional: keeps background steady while scrolling */
}

.services {
    padding: 80px 0;
    background-color: #f0fff0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.second-row {
    max-width: 850px;
    /* Make second row a bit narrower */
    margin: 40px auto 0;
    /* Center the row */
    grid-template-columns: repeat(3, 1fr);
    /* Exactly 3 columns */
    justify-items: center;
    /* Center cards */
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: #2e8b57;
    /* Sea Green */
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d5c38;
    /* Darker Green */
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Loan Types Section Styles */
.loan-types {
    padding: 80px 0;
    background-color: #f0fff0;
    /* Honeydew - light green tint */
}

.loan-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.loan-type-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.loan-type-card i {
    font-size: 2.5rem;
    color: #2e8b57;
    /* Sea Green */
    margin-bottom: 20px;
}

.loan-type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d5c38;
    /* Darker Green */
}

.loan-type-card p {
    margin-bottom: 20px;
    color: #666;
}

.deposit-types {
    padding: 80px 0;
    background-color: #e6f7e6;
    /* Slightly lighter green for distinction */
}

.deposit-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.deposit-type-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deposit-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.deposit-type-card i {
    font-size: 2.5rem;
    color: #2e8b57;
    /* Sea Green */
    margin-bottom: 20px;
}

.deposit-type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d5c38;
    /* Darker Green */
}

.deposit-type-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Advertisement Banner Section */
.ad-banner {
    background-color: #f9f9f9;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.ad-banner::before,
.ad-banner::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.ad-banner::before {
    left: 0;
    background: linear-gradient(to right, #f9f9f9, transparent);
}

.ad-banner::after {
    right: 0;
    background: linear-gradient(to left, #f9f9f9, transparent);
}

.ad-banner-track {
    display: flex;
    width: calc(200px * 12); /* 200px per item * 12 items (6 original + 6 duplicates) */
    animation: scrollLeftToRight 40s linear infinite;
}

.ad-banner:hover .ad-banner-track {
    animation-play-state: paused;
}

.ad-item {
    flex-shrink: 0;
    width: 200px;
    padding: 0 25px;
}

.ad-item img {
    max-width: 100%;
    height: 60px; /* Adjust height as needed */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.ad-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLeftToRight {
    from {
        transform: translateX(calc(-200px * 6)); /* Move to the start of the duplicates */
    }
    to {
        transform: translateX(0);
    }
}

/* Testimonials Section Styles */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.testimonial-author h4 {
    color: #1d5c38;
    /* Darker Green */
    margin-bottom: 5px;
}

.testimonial-author p {
    font-style: normal;
    margin-bottom: 0;
    color: #666;
        border: 1px solid #2ab13c;
        min-width: 180px;
        width: 65%;
        flex: 1 1 65%;
        font-size: 1em;
        padding-left: 14px;
        box-sizing: border-box;
}

/* NEW Scrolling Testimonial Styles */
.scrolling-testimonials {
    overflow: hidden;
    padding: 40px 0;
    background: white;
    position: relative;
    width: 100%;
    /* -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent); */
}

.testimonials-track {
    display: flex;
    /* Set width based on number of testimonials. Calculated in HTML via style attribute. */
    width: calc(2 * var(--track-width));
    animation: scroll 60s linear infinite;
}

.scrolling-testimonials:hover .testimonials-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--track-width)));
    }
}

.testimonial {
    flex-shrink: 0;
    width: 350px; /* Fixed width for each card */
    margin: 0 20px;
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-image {
    width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 3px solid white;
}

.testimonial-image img {
    width: 100%; height: 100%; object-fit: cover;
}


/* Call to Action Section Styles */
.cta {
    padding: 80px 0;
    background: url('/image/indexdoller.png') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* App Promo Section */
.app-promo {
    padding: 80px 0;
    background-color: #fff;
}

.app-promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-promo-text h2 {
    font-size: 2.8rem;
    color: #1d5c38;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.app-promo-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.app-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.app-features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #666;
}

.app-features-list li i {
    color: #2e8b57;
    margin-right: 12px;
    margin-top: 5px;
}

/* App Image Slider */
.app-image-slider-wrapper {
    overflow: hidden;
    position: relative;
    /* Define CSS variables for image width and track width */
    --app-image-width: 250px; /* Adjust as needed for your images */
    --app-track-width: calc(var(--app-image-width) * 5); /* 5 unique images */
}

.app-image-track {
    display: flex;
    width: calc(var(--app-image-width) * 10); /* 5 original + 5 duplicates = 10 items */
    animation: appScrollLeftToRight 30s linear infinite; /* Adjust duration as needed */
}

.app-image-slider-wrapper:hover .app-image-track {
    animation-play-state: paused;
}

.app-image-item {
    flex-shrink: 0; /* Prevent items from shrinking */
    width: calc(var(--app-image-width) / 1.5);
    padding: 10px; /* Add some padding around images if desired */
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-image-item img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.app-image-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Animation for left-to-right scroll */
@keyframes appScrollLeftToRight {
    from {
        /* Start at the beginning of the duplicated set to make it appear seamless */
        transform: translateX(calc(-1 * var(--app-track-width)));
    }
    to {
        /* Move to the end of the original set */
        transform: translateX(0);
    }
}
.app-store-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #1d5c38;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.app-store-btn:hover {
    background-color: #2e8b57;
    transform: translateY(-3px);
    color: #fff;
}

.app-store-btn i {
    font-size: 2.5rem;
}

.app-store-btn span {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.2;
}

.app-store-btn strong {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer Styles */
footer {
    background-color: #1d5c38;
    /* Darker Green */
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4,
.footer-app-download h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after,
.footer-app-download h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3cb371;
    /* Medium Sea Green */
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact p i {
    margin-right: 10px;
    color: #3cb371;
    /* Medium Sea Green */
}

.footer-contact p a {
    color: inherit; /* Make link color same as the paragraph text */
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #3cb371;
    /* Medium Sea Green */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Loan Page Styles */
.loan-overview {
    padding: 80px 0;
    background-color: #f0fff0;
}

.loan-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.loan-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-nav-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.loan-nav-item i {
    font-size: 2rem;
    color: #2e8b57;
    /* Sea Green */
    margin-bottom: 15px;
}

.loan-nav-item span {
    font-weight: 600;
    color: #1d5c38;
    /* Darker Green */
}

.loan-detail {
    padding: 80px 0;
}

.loan-detail:nth-child(odd) {
    background-color: #f9f9f9;
}

.loan-detail:nth-child(even) {
    background-color: #fff;
}

.loan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.loan-content.reverse {
    direction: rtl;
}

.loan-content.reverse .loan-info {
    direction: ltr;
}

.loan-info h2 {
    font-size: 2rem;
    color: #1d5c38;
    /* Darker Green */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.loan-info h2 i {
    margin-right: 15px;
    color: #2e8b57;
    /* Sea Green */
}

.loan-info p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1.1rem;
}

.loan-info h3 {
    font-size: 1.3rem;
    color: #1d5c38;
    /* Darker Green */
    margin-bottom: 15px;
    margin-top: 30px;
}

.feature-list,
.eligibility-list {
    margin-bottom: 30px;
}

.feature-list li,
.eligibility-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list li i,
.eligibility-list li i {
    color: #2e8b57;
    /* Sea Green */
    margin-right: 10px;
    font-size: 1.1rem;
}

.loan-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.loan-calculator {
    padding: 80px 0;
    background-color: #f0fff0;
    /* Honeydew - light green tint */
}

.calculator-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
    gap: 50px;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.calculator-output {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;

}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d5c38;
    /* Darker Green */
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #2ab13c;
    border-radius: 5px;
    font-size: 1rem;
}

/* added for message box */
.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    padding: 12px;
    border: 1px solid #2ab13c;
    /* Green border */
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
    /* Allows vertical resizing only */
    box-sizing: border-box;
    /* Ensures proper padding */
}

/* Optional: Add focus effect for better UI */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1d5c38;
    /* Darker green on focus */
    outline: none;
    /* Remove default blue outline */
    box-shadow: 0 0 5px rgba(26, 139, 65, 0.5);
    /* Soft glow effect */
}

/* Apply to all input and textarea fields */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
    font-family: 'Poppins', sans-serif;
    /* Professional Font */
    font-size: 16px;
    font-weight: 500;
    color: #2E2E2E;
    /* Dark Gray for text */
    background-color: #fff;
    border: 1px solid #2ab13c;
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
    transition: all 0.3s ease;
}

.calculator-chart-area {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.result-item {
    text-align: center;
    margin-bottom: 0; /* Removed margin as flex gap is used */
}

.result-item h3 {
    font-size: 1.2rem;
    color: #1d5c38;
    margin-bottom: 10px;
}

.result-item p {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2e8b57;
}

/* Slider Styles */
.slider-group {
    margin-bottom: 25px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-label label {
    font-weight: 600;
    color: #1d5c38;
    margin-bottom: 0;
}

.slider-input-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc; /* Underline for the whole component */
    padding-bottom: 3px;
}

.slider-input-container:focus-within {
    border-bottom: 2px solid #2e8b57; /* Highlight on focus */
    padding-bottom: 2px;
}

.slider-input-container .unit {
    font-weight: 600;
    color: #1d5c38;
    font-size: 1rem;
    padding-right: 5px; /* Space for units before the input */
}

.slider-input-container .slider-input-box + .unit {
    padding-right: 0;
    padding-left: 5px; /* Space for units after the input */
}

.slider-input-container .slider-input-box {
    border: none;
    background: transparent;
    width: 100%;
    text-align: right;
    font-weight: 600;
    color: #1d5c38;
    font-size: 1rem;
    padding: 2px 0;
}

.slider-input-container .slider-input-box:focus {
    outline: none;
    box-shadow: none;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    border-radius: 5px;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2e8b57;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #2e8b57;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.apply-now {
    padding: 80px 0;
    background: url('/image/loandoller\ \(2\).png') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.apply-now h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.apply-now p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Deposit Page Styles */
.deposit-overview {
    padding: 80px 0;
    background-color: #f0fff0;
}

.deposit-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.deposit-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deposit-nav-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.deposit-nav-item i {
    font-size: 2rem;
    color: #2e8b57;
    /* Sea Green */
    margin-bottom: 15px;
}

.deposit-nav-item span {
    font-weight: 600;
    color: #1d5c38;
    /* Darker Green */
}

.deposit-detail {
    padding: 80px 0;
}

.deposit-detail:nth-child(odd) {
    background-color: #f9f9f9;
}

.deposit-detail:nth-child(even) {
    background-color: #fff;
}

.deposit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.deposit-content.reverse {
    direction: rtl;
}

.deposit-content.reverse .deposit-info {
    direction: ltr;
}

.deposit-info h2 {
    font-size: 2rem;
    color: #1d5c38;
    /* Darker Green */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.deposit-info h2 i {
    margin-right: 15px;
    color: #2e8b57;
    /* Sea Green */
}

.deposit-info p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1.1rem;
}

.deposit-info h3 {
    font-size: 1.3rem;
    color: #1d5c38;
    /* Darker Green */
    margin-bottom: 15px;
    margin-top: 30px;
}

.rate-table-container {
    margin-bottom: 30px;
    overflow-x: auto;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.rate-table th,
.rate-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.rate-table th {
    background-color: #f0fff0;
    /* Honeydew - light green tint */
    color: #1d5c38;
    /* Darker Green */
    font-weight: 600;
}

.rate-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rate-table tr:hover {
    background-color: #f0fff0;
    /* Honeydew - light green tint */
}

.deposit-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.deposit-calculator {
    padding: 80px 0;
    background-color: #f0f8ff;
}

.tenure-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenure-inputs input {
    width: 80px;
}

.tenure-inputs span {
    color: #666;
}

.open-account {
    padding: 80px 0;
    background: url('../image/cartdepositdoller.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.open-account h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.open-account p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Page Styles */



.contact-info {
    padding: 80px 0;
    background-color: #f0fff0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    padding: 80px 0;
    /* background-color: #f0fff0; */
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: #3cb371;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2e8b57;
}

.contact-card p {
    color: #666;
    line-height: 1.8;
}

.contact-form-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-container,
.map-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-container h2,
.map-container h2 {
    font-size: 1.8rem;
    color: #2e8b57;
    margin-bottom: 20px;
}

.form-container p {
    margin-bottom: 30px;
    color: #666;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    /* Slightly more spacing */
    background-color: #f9f9f9;
    /* Light background for better visibility */
    padding: 12px 15px;
    border: 1px solid #2ab13c;
    /* Green border */
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Smooth hover effect on the entire checkbox container */
.checkbox-group:hover {
    background-color: #f1fff6;
    /* Light green tint */
    border-color: #1d5c38;
}

/* Style the checkbox itself */
.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #1d5c38;
    /* Changes checkbox tick & background color */
    cursor: pointer;
    margin-top: 2px;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
}

/* Label styling */
.checkbox-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.company-logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover .company-logo {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* This will vertically center the text lines */
    position: relative;
    top: 8px; /* Adjust this value to move the text down */
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #243a2c;
    margin: 0;
    line-height: 1.1;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent the main title from wrapping */
}

.company-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    color: #555;
    text-align: justify;
    text-align-last: justify; /* Justify the last line of text */
}

/* Fallback for browsers that don't support text-align-last */
.company-subtitle::after {
    content: "";
    display: inline-block;
    width: 100%;
}


/* Accessibility: Focus effect */
.checkbox-group input:focus {
    outline: 2px solid #2ab13c;
    outline-offset: 2px;
}

.form-success {
    text-align: center;
    padding: 30px;
}

.form-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: #2e8b57;
    margin-bottom: 15px;
}

.map {
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.branch-locations {
    padding: 80px 0;
    background-color: #f0fff0;
}

.branches-grid {
    display: grid;
    display: flex;  
    flex-direction: column;
    gap: 30px;
}

.branch-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.branch-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 350px; /* Flex properties: don't grow, shrink if needed, base width of 350px */
    max-width: 350px; /* Ensure cards don't get too wide */
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.branch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2e8b57;
}

.branch-card p {
    margin-bottom: 10px;
    color: #666;
    display: flex;
    align-items: flex-start;
    word-break: break-all; /* Allow long words like emails to wrap */
}

.branch-card p i {
    color: #3cb371;
    margin-right: 10px;
    margin-top: 5px;
}

.faq-section {
    padding: 80px 0;
    background-color: #f0f8ff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #2e8b57;
    margin: 0;
}

.faq-question i {
    color: #3cb371;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* About Page Styles */
.our-story {
    padding: 80px 0;
    background-color: #fff;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.story-text h2::after {
    left: 0;
    transform: none;
}

.story-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

/* Stats Counter Section */
.stats-counter {
    padding: 80px 0;
    background: linear-gradient(rgba(46, 139, 87, 0.9), rgba(60, 179, 113, 0.9)), url('/image/aboutherosection.png') center/cover no-repeat fixed;
    color: #fff;
}

.stats-counter .section-title {
    color: #fff;
}

.stats-counter .section-title::after {
    background-color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15); /* Darker background for better visibility */
    border-radius: 10px;
    transition: background 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25); /* Even darker on hover */
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #f0fff0; /* Honeydew */
}

.mission-vision {
    padding: 80px 0;
    background-color: #f0f8ff;
}

.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.mission,
.vision {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission-icon,
.vision-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.mission-icon i,
.vision-icon i {
    font-size: 2.5rem;
    color: #3cb371;
}

.mission h2,
.vision h2 {
    font-size: 1.8rem;
    color: #2e8b57;
    margin-bottom: 20px;
}

.mission p,
.vision p {
    color: #555;
    font-size: 1.1rem;
}

.core-values {
    padding: 80px 0;
    background-color: #f0fff0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: #f0f8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 2rem;
    color: #3cb371;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2e8b57;
}

.value-card p {
    color: #666;
}

.leadership-team {
    padding: 80px 0;
    background-color: #f0fff0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.member-info {
    padding: 20px;

}

.member-info h3 {
    font-size: 1.5rem;
    color: #2e8b57;
    margin-bottom: 5px;
}

.member-position {
    color: #3cb371;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
}

.achievements {
    padding: 80px 0;
    background-color: #fff;
}

.achievements-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #3cb371;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-year {
    width: 100px;
    text-align: right;
    padding-right: 30px;
}

.timeline-year span {
    display: inline-block;
    background-color: #3cb371;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.timeline-content {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-left: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #f9f9f9;
    transform: rotate(45deg);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #2e8b57;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
}

.community-involvement {
    padding: 80px 0;
    background-color: #f0fff0;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.community-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.community-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.community-info {
    padding: 20px;

    /* background-color: #f0fff0; */
}

.community-info h3 {
    font-size: 1.3rem;
    color: #2e8b57;
    margin-bottom: 10px;
}

.community-info p {
    color: #666;
}

.join-us {
    /* padding: 80px 0; */
    padding: 80px 0;
    background: url('/image/aboutdoller.png') center/cover no-repeat;
    /* color: #fff; */
    background-color: #f0fff0;
    text-align: center;
}

.join-us h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.join-us p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {

    .loan-content,
    .deposit-content,
    .contact-content,
    .story-content,
    .mission-vision-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .loan-content.reverse,
    .deposit-content.reverse {
        direction: ltr;
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }

    .calculator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .app-promo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .app-store-buttons {
        justify-content: center;
    }
}

/* Desktop view - always visible */
@media screen and (min-width: 769px) {
    nav {
        position: static;
        display: block;
        max-height: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
    }

    nav ul {
        display: flex;
        gap: 25px;
    }

    .mobile-nav-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .services, .loan-types, .deposit-types, .testimonials, .cta, .loan-overview, .loan-detail, .loan-calculator, .apply-now, .deposit-overview, .deposit-detail, .deposit-calculator, .open-account, .contact-info, .contact-form-section, .branch-locations, .faq-section, .our-story, .mission-vision, .core-values, .leadership-team, .achievements, .community-involvement, .join-us {
        padding: 60px 0;
    }

    .services-grid,
    .loan-types-grid,
    .deposit-types-grid,
    .contact-grid,
    .team-grid,
    .branches-grid,
    .values-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card,
    .loan-type-card,
    .contact-card,
    .deposit-type-card,
    .value-card,
    .branch-card,
    .community-card,
    .team-member {
        padding: 20px;
        margin: 0;
    }

    .hero, .page-hero {
        height: auto;
        padding: 80px 0;
        background-attachment: scroll; /* Better for mobile performance and compatibility */
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .page-hero h2 {
        font-size: 2rem;
    }

    .hero-content p, .page-hero p {
        font-size: 1.1rem;
    }
    
    /* Define explicit order for footer items on mobile */
    .footer-logo-section { order: 1; }
    .footer-links { order: 2; }
    .footer-contact { order: 3; }
    .footer-social { order: 4; }
    .footer-app-download { order: 5; }
    .footer-newsletter { order: 6; }

    .footer-content {
        display: flex; /* Use flexbox for better control on mobile */
        flex-direction: column; /* Stack items vertically */
        align-items: stretch; /* Stretch items to full width */
    }

    .footer-logo-section {
        min-width: unset;
    }

        .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-newsletter form {
        flex-direction: column; /* Stack form elements vertically on mobile */
        align-items: stretch; /* Stretch items to full width */
    }

    .footer-newsletter {
        grid-column: span 1; /* Reset column span for mobile */
        max-width: 100%;
        margin: 20px auto 0;
        text-align: center;
    }

    .footer-app-download {
        position: static;
        margin-top: 30px;
        left: auto;
    }

    .footer-social .social-icons {
        justify-content: center;
    }

    .footer-app-download h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links h4::after, .footer-contact h4::after, .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-newsletter {
        max-width: 100%;
        margin: 40px auto 0; /* Center on mobile */
        text-align: center;
    }
    
    .footer-newsletter h4::after {
        left: 50%;
        transform: translateX(-50%);
    }


    .footer-logo img {
        width: 100px;
        height: auto;
    }

    .testimonial-slider {
        max-width: 100%;
        padding: 0 10px;
    }

    .testimonial {
        padding: 20px;
    }



    nav {
        position: fixed;
        top: 60px;
        right: 15px;
        width: 230px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        overflow: hidden;

        /* Hidden by default */
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

    nav.active {
        max-height: 300px;
        /* Adjust height based on your links */
        opacity: 1;
        visibility: visible;
        overflow-y: auto; /* Enable vertical scrolling */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 15px 0;
        margin: 0;
        list-style: none;
    }

    nav ul li {
        margin: 2px 0; /* Reduce space between links */
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        font-size: 16px;
        color: #243a2c;
        font-weight: 600;
        display: block;
        padding: 10px;
        transition: background 0.3s ease;
    }

    nav ul li a:hover {
        background-color: #f1f1f1;
        border-radius: 5px;
    }

    /* Toggle button styles */
    .mobile-nav-toggle {
        display: block;
        font-size: 26px;
        color: #243a2c;
        z-index: 1001;
        /* No longer needs to be absolute */
        position: absolute;
        top: 18px;
        right: 20px;
    }

    .loan-content, .deposit-content, .contact-content, .story-content, .mission-vision-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .loan-content.reverse, .deposit-content.reverse {
        direction: ltr;
    }

    .loan-content .loan-image, .deposit-content .deposit-image, .story-content .story-image {
        order: -1; /* Move image to top on mobile */
    }


}

@media (max-width: 480px) {
    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-content h2, .page-hero h2, .section-title {
        font-size: 1.9rem;
    }

    .loan-info h2,
    .deposit-info h2 {
        font-size: 1.6rem;
    }

    .calculator-container, .form-container, .map-container {
        padding: 20px;
    }
    .result-item p {
        font-size: 1.5rem;
    }

    .loan-cta,
    .deposit-cta {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-year {
        width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .timeline-content {
        margin-left: 0;
    }

    .achievements-timeline::before {
        left: 20px;
    }

    .popup {
        top: 70px; /* ⬅ Mobile pe thoda aur niche */
        right: 10px;
        max-width: 250px;
        font-size: 13px; /* ⬅ Mobile pe aur chhota text */
        padding: 10px 15px;
    }
    .popup-icon {
        font-size: 16px;
    }
}

/* Footer App Download Section */
.footer-app-download {
}

.footer-app-download h4 {
    margin-bottom: 20px;
    /* The h4 is already inside a centered parent, so this is not strictly needed but good for clarity */
    text-align: inheris;
    padding-bottom: 10px;
    color: #fff;
}


.app-qr-code {
    margin-bottom: 15px;
    /* No longer needs flex as parent is text-align: center */
}

.app-qr-code img {
   background-color: #fff; /* White background for QR code */
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-google-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff; /* Default: White */
    color: #1d5c38; /* Default Text: Dark Green */
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd; /* Light border for visibility */
}

.btn-google-play:hover {
    background-color: #2e8b57; /* Hover: Green */
    transform: translateY(-2px);
    color: #ffffff; /* Hover Text: White */
    border-color: #2e8b57;
}

.btn-google-play i {
    font-size: 1.8rem;
    color: inherit; /* Inherit color from the parent 'a' tag */
    transition: color 0.3s ease;
}

.btn-google-play span {
    line-height: 1.2;
    text-align: left;
}

.btn-google-play strong {
    display: block;
    font-size: 1.1rem;
}

/* Footer Logo Section */
.footer-logo-section {
    text-align: center;
    margin-top: 0px;
    min-width: 200px; /* Prevents the logo section from getting too squished */
    padding: 0px 0;
}

.footer-tagline {
    font-size: 1rem;
    color: #ffffff;
    /* Green theme */
    font-weight: 500;
    margin-bottom: 10px;
}

/* Logo Styling with Frame */
.footer-logo img {
    width: 140px;
    /* Adjust as needed */
    height: auto;
    border: 4px solid #2e8b57;
    /* Frame color */
    padding: 8px;
    /* Inside space */
    border-radius: 0px;
    /* Rounded frame */
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.footer-logo img:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Company Name */
.footer-company {

    font-size: 1.8rem;
    margin: 12px 0 0 0;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap; /* Prevent "Greeny Credit" from wrapping */
}

/* Subtitle */
.footer-subtitle {
    font-size: 1.1rem; /* Slightly reduced font size */
    font-weight: normal;
    margin-top: 5px;
    color: #ffffff;
    white-space: nowrap; /* Prevents the text from wrapping to a new line */
}

/* Hero Section */
.hero {
    background: url('/image/homepageherosection.png') no-repeat center center/cover;
    background-attachment: fixed;
    /* 🔹 Optional: makes background steady on scroll */
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Dark overlay for better text visibility */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Container above overlay */
.hero .container {
    position: relative;
    z-index: 2;
    /* Keep text above overlay */
}

/* Animate Hero Content */
.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

/* Animate Heading */
.hero-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

/* Animate Paragraph */
.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.4s;
}

/* Animate Buttons */
.cta-buttons {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

/* Buttons Styling */
.cta-buttons .btn {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Now button below calculator */
.calculator-apply-section {
    text-align: center;
    padding: 50px 0;
    background-color: #f9f9f9;
}


/* Common Page Hero Styles */
.page-hero {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /* 🔹 Steady background while scrolling */
}

/* Loans Page Background */
.loans-hero {
    background-image: url('/image/loanpagehero.png');
    /* Replace with your file path */
}



/* Dark overlay for better text visibility */
.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Container above overlay */
.page-hero .container {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* Animate Heading */
.page-hero h2 {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.4s;
}

/* Animate Paragraph */
.page-hero p {
    font-size: 18px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.6s;
}


/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success & Error Popup */
.popup {
    position: fixed;
    top: 80px; /* ⬅ Popup thoda niche aayega */
    right: 20px;
    background-color: #2e8b57;
    color: #fff;
    padding: 12px 20px; /* ⬅ Padding thoda kam kiya */
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px; /* ⬅ Text size chhota aur professional */
    font-weight: 500;
    z-index: 9999;
    max-width: 300px;
    line-height: 1.4;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateX(120%);
    transition: all 0.5s ease-in-out;
}

/* Show popup */
.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Icon inside popup */
.popup-icon {
    font-size: 18px; /* ⬅ Icon size thoda chhota */
    margin-right: 5px;
}

/* Popup Content */
.popup-content {
    display: flex;
    align-items: center;
    gap: 8px;
}



 /* New Newsletter Styles */
 .footer-newsletter {
    grid-column: span 2; /* Make this section span two grid columns */
    max-width: 100%;
    margin-top: 20px;
 }
 
 .footer-newsletter h4 {
     font-size: 1.2rem;
     margin-bottom: 20px;
     position: relative;
     padding-bottom: 10px;
 }
 
 .footer-newsletter h4::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 40px;
     height: 2px;
     background-color: #3cb371;
 }
 
 .footer-newsletter form {
     display: flex;
     gap: 10px;
 }
 
 .footer-newsletter input {
     flex-grow: 1; /* Allow input to take available space */
     padding: 12px 15px;
     border: 1px solid #ccc; /* Lighter border */
     background-color: #fff; /* White background */
     border-radius: 5px;
     color: #333; /* Dark text color */
     font-size: 1rem;
     outline: none;
     transition: border-color 0.3s, box-shadow 0.3s;
 }
 
 .footer-newsletter input:focus {
     border-color: #3cb371;
     box-shadow: 0 0 8px rgba(60, 179, 113, 0.5);
 }
 
 .footer-newsletter .newsletter-btn {
     padding: 12px 25px;
     background-color: #fff; /* White background */
     color: #2e8b57; /* Green text */
     border: 2px solid #2e8b57; /* Green border */
     border-radius: 5px;
     cursor: pointer;
     font-weight: 600;
     transition: all 0.3s ease; /* Smooth transition for all properties */
 }
 
 .footer-newsletter .newsletter-note {
     font-size: 0.9rem;
     color: #ccc;
     margin-top: 10px;
 }

.footer-newsletter .newsletter-btn:hover {
    background-color: #2e8b57; /* Green background on hover */
    color: #fff; /* White text on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Success Animation */
.newsletter-success {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    color: #2e8b57;
    font-weight: bold;
    animation: fadeInUp 0.6s ease-in-out;
}

.newsletter-success i {
    margin-right: 6px;
    color: #2ecc71;
    font-size: 18px;
}

/* Animation Keyframe */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Info Bar */
.floating-info-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #2e8b57, #3cb371);
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 350px;
    animation: slideInFromLeft 1s ease-out forwards;
    opacity: 0;
}

.floating-info-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
}

.floating-info-content ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.floating-info-content ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    list-style-type: disc;
}

.floating-info-content a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.floating-info-content a:hover {
    color: #f0fff0; /* Honeydew */
}

.close-floating-bar {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-floating-bar:hover {
    opacity: 1;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
