/* ====== VARIABLES (Light Mode) ====== */
:root {
    --primary-color: #008600;      /* Main theme color */
    --secondary-color: #007A33;    /* Complementary secondary */
    --accent-color: #F8F9FA;       /* Light background */
    --text-color: #2C3E50;         /* Dark text */
    --gray-color: #f0f0f0;         /* Light gray */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --link-hover: #006d29;
    --footer-bg: #004d00;    /* Dark green for footer background */
    --footer-link: #66BB6A;
}

/* ====== GENERAL STYLES ====== */
body {
    font-family: 'Lexend', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/BG_Desktop.jpg');
    background-size: cover; /* Force the image to stretch across width and height */
    background-position: top left;    /* Aligns image to the top left */
    background-repeat: no-repeat;     /* No tiling */
    background-attachment: fixed;
    background-color: var(--accent-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media screen and (max-width: 768px) {
    body {
        background-image: url('../images/BG_Mobile.jpg');
    }
}

/* Utility classes */
.bg-body { background-color: var(--accent-color); }
.text-body-font { color: var(--text-color); }

/* ====== NAVBAR ====== */
.sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 50;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}
.navbar-logo {
    display: flex;
    align-items: center;
}
.logo-img {
    width: 200px; /* Default width for desktop */
    height: auto; /* Maintain aspect ratio */
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .logo-img {
        width: 150px; /* Adjusted width for mobile */
    }
}

.navbar-title {
    margin-left: 1rem;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary-color);
}
.desktop-links {
    display: flex;
    gap: 1.5rem;
}
.desktop-actions {
    display: flex;
    gap: 1rem;
}
.nav-link {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition: background 0.3s ease;
}
.nav-link:hover {
    background-color: var(--secondary-color);
    color: white;
}
.btn {
    padding: 0.75rem 1.875rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.hero-btn-outline {
     border: 2px solid var(--accent-color);
     color: var(--accent-color);
 }

/*.hero-btn-outline:hover {*/
/*    background-color: var(--accent-color);*/
/*     color: var(--primary-color);*/
/* }*/

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 134, 0, 0.7), rgba(0,122,51,0.7));
    color: white;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border: 2px solid var(--accent-color);
}

.hero-btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-btn-outline:hover,
.hero-btn-primary:hover {
    background-color: var(--secondary-color);
    border: 2px solid var(--accent-color);
}

/* ====== MOBILE MENU ====== */
.mobile-menu-toggle {
    display: none;
}
.mobile-menu-icon {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--primary-color);
}
.mobile-menu {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in-out;
}
.mobile-menu.block {
    display: block;
}
.mobile-menu-inner {
    background-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 1rem;
    gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}
.mobile-nav-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.mobile-nav-link2 {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}
.mobile-nav-link2:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* HERO SECTION STYLES */
.hero-section {
    position: relative;
    height: 85vh; /* Full viewport height */
    background: url('../images/hero-bg.jpg') no-repeat center top/cover;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10vh;
    padding: 0;
}

/* Adjust background position for mobile view */
@media (max-width: 768px) {
    .hero-section {
        background-position: top left; /* Adjust to focus on a specific part of the image */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay with theme colors and some transparency */
    background: linear-gradient(135deg, rgba(0, 134, 0, 0.7), rgba(0,122,51,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* ====== ACTIVE OFFERS ====== */
.active-offers {
    padding: 3.75rem 1.25rem;
}
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 2rem; /* Space between cards */
    width: 100%;
    max-width: 1200px; /* Limits grid width for better appearance */
}

.offer-card {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 0.625rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease-in-out;
    max-height: 40vh;
    display: flex;
    flex-direction: column;  /* Aligns elements vertically */
    justify-content: space-between;  /* Spreads content evenly */
    align-items: center;  /* Centers content horizontally */
    gap: 1rem;  /* Adds consistent spacing between elements */
    text-align: center;  /* Centers the text inside the card */
}

/* Optional hover effect for interactivity */
.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Example for inner elements like headings, images, and buttons */
.offer-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.offer-card p {
    margin: 0;
    font-size: 1rem;
}

.offer-card button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--accent-color);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.offer-card button:hover {
    background-color: #f0f0f0;
}

.badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3125rem 0.9375rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* ====== ELIGIBILITY TABLE ====== */
.eligibility-section {
    padding: 3.125rem 1.25rem;
    background-color: var(--gray-color);
    border-radius: 0.9375rem;
}
.table-wrapper {
    overflow-x: auto;
}
.eligibility-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--accent-color);
    border-radius: 0.625rem;
    box-shadow: var(--shadow);
}
.eligibility-table th,
.eligibility-table td {
    padding: 0.9375rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-color);
}
.eligibility-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* ====== FAQ SECTION ====== */
.faq-section {
    padding: 5rem 1.25rem;
}
.faq-item {
    background: var(--accent-color);
    padding: 1.25rem;
    border-radius: 0.625rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.faq-answer {
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
    margin-top: 0.625rem;
}

/* ====== CTA SECTION ====== */
.cta-section {
    padding: 3.75rem 1.25rem;
    text-align: center;
}
.cta-content {
    max-width: 37.5rem;
    margin: 0 auto;
}

/* ====== FOOTER ====== */
footer {
    padding: 2rem;
    /*padding-bottom: 2rem;*/
    background-color: var(--footer-bg);
    color: var(--accent-color); /* Uses the light accent for text */
}

footer a {
    color: var(--footer-link);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ====== LOADER ====== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid var(--primary-color);
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====== RESPONSIVE UTILITIES ====== */
@media (max-width: 1024px) {
    .desktop-links,
    .desktop-actions {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-menu {
        display: block;
    }
}

.section-90vh {
    height: 85vh; /* Maintains the section height */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Vertically centers the items */
    align-items: center; /* Horizontally centers the items */
    padding: 2rem;
    gap: 1.5rem; /* Space between child elements */
    text-align: center; /* Center text inside elements */
}

/* Base styles remain the same … */

/* ====== MOBILE ADJUSTMENTS ====== */
@media (max-width: 768px) {
    /* General adjustments */
    body {
        padding: 0.5rem;
    }

    /* Navbar adjustments */
    .navbar {
        padding: 0.75rem 1rem;
    }
    .logo-img {
        width: 150px; /* Already adjusted, but you can reduce further if needed */
    }

    /* Hero Section */
    .hero-section {
        /* Optionally reduce the height for mobile screens */
        height: 70vh;
        background-position: top left;
    }
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Active Offers & Similar Sections */
    .section-90vh {
        /* Allow sections to grow with content on mobile rather than forcing a viewport height */
        height: auto;
        /*max-height: 400px;*/
        overflow-y: scroll;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .section-100vh {
        margin-top: 300px;
        margin-bottom: 300px;
    }

    /* Offer Grid */
    .offer-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
    }

    /* Offer Card */
    .offer-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    /* Eligibility Section */
    .eligibility-section {
        padding: 2rem 1rem;
    }

    /* FAQ Section */
    .faq-section {
        padding: 3rem 1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 2rem 1rem;
    }

    /* Footer adjustments */
    footer {
        justify-content: center;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    #footercont{
        align-items: center;
    }

    #sociallinks{
        display: flex;
        justify-content: center;
    }

    .footerlogo{
        text-align: center;
    }
}

/* ====== TRANSITION ANIMATIONS ====== */
.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s;
    margin-top: 200px;
    margin-bottom: 200px;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
}

.center-align {
    text-align: center;
    vertical-align: middle;
}


#table-loader {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
}

/* Search Input Styles */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.search-input {
    width: 80%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: #008600; /* Green primary color */
    box-shadow: 0 4px 8px rgba(0, 134, 0, 0.2);
}

/* Search Button Styles */
#investor-search-btn {
    margin-left: 10px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #008600; /* Primary green */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#investor-search-btn:hover {
    background-color: #006400; /* Darker green on hover */
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .search-input {
        width: 70%;
    }

    #investor-search-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

.footer-contact {
    margin-top: 2rem;
}
.footer-contact h4 {
    color: var(--footer-link);
    margin-bottom: 0.5rem;
}
.footer-contact a {
    text-decoration: none;
}
.footer-contact a:hover {
    text-decoration: underline;
}
.bg-body {
    zoom: 0.85;            /* Quick, broad shrink (non-standard but widely supported on desktop) */
}
/* Optional Safari fallback */
@supports not (zoom: 1) {
    .bg-body {
        transform: scale(0.85);
        transform-origin: top left;
        width: 111.111%;    /* compensate for scale to keep layout width */
    }
}