body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #f4f4f4;
}

.container {
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.grid-item {
    flex: 1 1 calc(50% - 10px);
    margin: 5px;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.grid-item .arrow-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 50%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    padding: 15px;
    position: relative;
}

.hamburger-menu {
    cursor: pointer;
}

.hamburger-menu .bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

.hamburger-menu.open {
    margin-bottom: 50px; /* Add margin below the 'X' button */
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger-menu {
    position: relative;
    z-index: 1100; /* Ensure the hamburger menu stays above the sidebar */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #2c3e50;
    overflow-x: hidden;
    transition: 0.5s;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin-top: 40px; /* Add margin to the top of the sidebar items */
}

.sidebar ul li {
    padding: 20px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
}



.sidebar a:hover {
    background-color: #2c3e50;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 30vh; /* Adjust height as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -42px; /* Adjust this value as needed */
}

.hero img.hero-image {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.hero h1 {
    position: absolute;
    bottom: 10%;
    width: 100%;
    text-align: center;
    color: #fff; /* Adjust text color as needed */
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Add background color to text for better readability */
    padding: 10px;
}

.calculator {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loan-calculator {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.calculator h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
    text-align: center;
}

.calculator label {
    display: block;
    margin: 10px 0 5px;
}

.calculator input[type="range"] {
    width: 100%;
}

.calculator .result p {
    margin: 10px 0;
}

.result {
    margin-top: 20px;
    text-align: center;
}

.loan-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.loan-categories .category {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.loan-categories .category img {
    width: 100%;
    border-radius: 10px;
}

.loan-categories .category p {
    margin-top: 10px;
    font-size: 1.1em;
    color: #333;
}

.loan-categories .category:hover {
    transform: translateY(-5px);
}

.loan-calculator {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.loan-calculator h2 {
    margin-bottom: 15px;
    text-align: center;
}

.calculator-container {
    display: flex;
    flex-direction: column;
}

.calculator-container label {
    margin-top: 10px;
}

.calculator-container input[type="range"] {
    width: 100%;
}

.calculator-container select, 
.calculator-container span {
    margin-top: 10px;
}

.loan-summary {
    margin-top: 15px;
}

.key-features {
    background-color: #ecf0f1;
    padding: 20px;
    text-align: center;
}

.key-features h2 {
    margin-bottom: 15px;
}

.key-features ul {
    list-style-type: none;
}

.key-features li {
    margin: 10px 0;
}

.faq {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.faq h2 {
    margin-bottom: 15px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
}

.footer-links {
    display: flex;
    justify-content: center;
    padding-bottom: 20px; /* Add padding at the bottom for spacing */
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px; /* Horizontal margin for spacing between links */
}
