body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa; /* Light gray background for the page */
}

/* Simulates the mobile app screen */
.mobile-container {
    max-width: 450px; /* Common width for mobile screen simulation */
    margin: 0 auto;
    background-color: #ffffff; /* White background for the app content */
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 80px; /* Space for the fixed bottom nav */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Top header section */
.top-header {
    background-color: #398028; /* Dark red, matching the screenshot */
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.top-header .logo-area {
    display: flex;
    align-items: center;
}

/* Placeholder for the logo */
.top-header .logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c82333;
    font-size: 1rem;
    margin-right: 0.75rem;
}

.top-header .logo-text h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.top-header .logo-text span {
    font-size: 0.5rem;
    opacity: 0.9;
}

/* Login Button */
.top-header .login-btn {
    background-color: white;
    color: #c82333;
    border-radius: 20px;
    padding: 0.35rem 1.15rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Welcome text section */
.welcome-section {
    padding: 1.5rem;
    text-align: center;
}

.welcome-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    font-size: 1rem;
    color: #555;
}

/* Main green "Apply for Loan" button */
.main-action-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.85rem;
    border-radius: 30px;
    text-align: center;
    margin: 0 1.5rem 1.5rem 1.5rem;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.main-action-btn:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.main-action-btn i {
    margin-right: 0.5rem;
}

/* Dotted indicators for carousel */
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #aaa;
}

.carousel-indicators .active {
    background-color: #c82333;
}

/* Grid for menu icons */
.icon-menu-grid {
    padding: 0 1rem;
}

/* UPDATED STYLES FOR ICON MENU ITEMS */
.icon-menu-item {
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column; /* Stack icon and text */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically in the card */
    height: 100px; /* Fixed height for consistent card size */
    background-color: #ffffff; /* White background for the card */
    border-radius: 18px; /* More rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    text-align: center;
    margin-bottom: 1rem; /* Space between rows */
    text-decoration: none;
    color: #444;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-menu-item:hover {
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.icon-menu-item .icon-wrapper {
    width: 50px; /* Slightly smaller icon wrapper */
    height: 50px; /* Slightly smaller icon wrapper */
    border-radius: 12px; /* Slightly less rounded icon background */
    margin: 0 auto 0.5rem auto; /* Center with space below */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem; /* Slightly smaller icon size */
    color: white;
    box-shadow: none; /* Remove redundant shadow from inner icon wrapper */
}

.icon-menu-item span {
    font-size: 0.85rem; /* Slightly larger font for text */
    font-weight: 500;
    line-height: 1.2; /* Better line spacing for text */
    padding: 0 5px; /* Add some padding for text within the card */
}

/* Icon background colors from screenshot */
.icon-bg-blue {
    background-color: #4285f4;
}
.icon-bg-green {
    background-color: #34a853;
}
.icon-bg-orange {
    background-color: #fbbc05;
}
.icon-bg-purple {
    background-color: #9370db;
} /* Adjusted purple */
.icon-bg-red {
    background-color: #ea4335;
}
.icon-bg-teal {
    background-color: #20c997;
}
.icon-bg-pink {
    background-color: #e83e8c;
}
.icon-bg-info {
    background-color: #ff8f00;
} /* Adjusted info color to match screenshot's orange */

/* Partners section */
.partners-section {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: #f8f9fa; /* Light gray bg */
    margin-top: 1rem;
}

.partners-section h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.partners-section p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.partner-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

/* Placeholder for partner logos */
.partner-card .logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #555;
}

.partner-card .logo-placeholder i {
    font-size: 1.8rem;
    color: #888;
}

.partner-card span {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-top: 0.75rem;
    color: #333;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 450px; /* Match the mobile container width */
    margin: 0 auto;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    text-align: center;
    color: #777;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    flex-grow: 1;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.2rem;
}

/* Active link color */
.bottom-nav-item.active {
    color: #c82333; /* Red color for active item */
}
