/* Global Variables & Reset */
:root {
    --primary-color: #1a4d2e;
    /* Deep Emerald Green */
    --primary-light: #2d6a45;
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b59230;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f9fafb;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Partnership Carousel */
.partners-carousel {
    background: var(--white);
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.partners-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    font-size: 1.5rem;
    color: #9ca3af;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.partner-logo i {
    font-size: 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 30px));
    }

    /* Adjust based on gap/width */
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background-color: var(--primary-color);
    /* Fallback */
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2e1b 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

/* About Section */
.about {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-stats-mini {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item-mini h4 {
    font-size: 2rem;
    color: var(--accent-color);
}

.stat-item-mini p {
    font-size: 0.9rem;
    margin: 0;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
}

/* Loan Types */
.loan-types {
    background-color: var(--light-bg);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.type-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 77, 46, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    transition: var(--transition);
}

.type-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
}

.type-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.type-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Statistics Section */
.statistics {
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    color: var(--white);
    padding: 100px 0;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 46, 0.9);
}

.stats-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Eligibility Calculator */
.calculator-section {
    background-color: var(--white);
}

.calculator-box {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.calc-form {
    padding: 50px;
    flex: 1;
}

.calc-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.result-modal {
    display: none;
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.calc-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-info ul li i {
    color: var(--accent-color);
}

/* Testimonials */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 40px;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 30px;
    left: 30px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin: 20px 0 30px;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-details h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--primary-color);
}

.client-details span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Team Section */
.team {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.member-img img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.team-member:hover .member-img img {
    transform: scale(1.05);
}

.member-info h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.member-info p {
    color: var(--accent-color);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .calculator-box {
        flex-direction: column;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-shape {
        display: none;
    }
}