/* CSS Variables */
:root {
    --primary-color: #6a1b9a;
    /* Deep Purple */
    --secondary-color: #e91e63;
    /* Vibrant Pink */
    --accent-color: #1e88e5;
    /* Bright Blue */
    --text-color: #3C4D6B;
    --body-text: #778191;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --border-color: #e1e1e1;
    --font-main: 'Poppins', sans-serif;
    --gradient-primary: linear-gradient(135deg, #6a1b9a 0%, #e91e63 100%);
    --gradient-hover: linear-gradient(135deg, #e91e63 0%, #6a1b9a 100%);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    transition: 0.4s ease;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
    transition: 0.4s ease;
}

.btn-secondary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* Top Bar */
.top-bar {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: var(--white);
    margin-right: 20px;
}

.contact-info i,
.social-links i {
    margin-right: 8px;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
}

/* Header & Nav */
.main-header {
    background-color: var(--white);
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Added subtle shadow for depth */
    border-bottom: 1px solid var(--border-color);
}

.logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    background-color: var(--white);
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-text-box {
    display: flex;
    flex-direction: column;
}

.logo-text-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.logo-text-sub {
    font-size: 11px;
    color: var(--body-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}


.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
    /* Background removed here, handled by parent */
    padding: 0;
    margin: 0;
}

.nav-list li {
    position: relative;
    flex-grow: 1;
    /* Distribute space evenly if needed or remove for standard stacking */
    text-align: center;
}

.nav-list>li>a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-list>li>a:hover,
.nav-list>li>a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    text-align: left;
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 12px 20px;
    display: block;
    text-transform: capitalize;
}

.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}


/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    /* Changed from negative to positive for breathing room */
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: 0.3s;
    border-bottom: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--text-color);
}

/* Loans Section */
.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.loan-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.loan-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 28px;
    transition: 0.3s;
}

.loan-card:hover .icon-box {
    background: var(--gradient-primary);
    color: var(--white);
}

.loan-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.loan-card p {
    color: var(--body-text);
    margin-bottom: 20px;
    font-size: 14px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.read-more i {
    margin-left: 5px;
    transition: 0.3s;
}

.read-more:hover i {
    margin-left: 10px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}

.about-text .divider {
    margin: 0 0 20px 0;
}

.about-text p {
    color: var(--body-text);
    margin-bottom: 20px;
}

.check-list li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.check-list i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.about-image {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    height: 350px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #888;
    border-radius: 10px;
}

/* Footer */
.main-footer {
    background: #1a062d;
    /* Darker Space Purple for contrast */
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details i {
    margin-right: 15px;
    margin-top: 5px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .nav-list {
        display: none;
        /* Hide for now, specific mobile interaction handled by JS */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-area {
        position: relative;
    }

    .about-content {
        flex-direction: column;
    }

    .hero-content h2 {
        font-size: 32px;
    }
}

/* Rate Table Styles */
.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.rate-table th,
.rate-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.rate-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

.rate-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.rate-table tr:hover {
    background-color: rgba(155, 0, 70, 0.05);
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 2000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    /* 10% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.4s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Slider Styles */
.home-slider {
    position: relative;
    width: 100%;
    height: 65vh;
    /* Responsive height */
    min-height: 400px;
    max-height: 650px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 40px;
    backdrop-filter: blur(10px);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .home-slider {
        height: 300px;
    }
}

/* Service Image Global Alignment */
.service-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.service-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}