/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky; /* Makes header sticky */
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    vertical-align: middle;
    outline: none;
    /* અન્ય સ્ટાઈલ */
}

/* Navigation Styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative;
    margin-left: 35px; /* Increased spacing */
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600; /* Bolder text */
    padding: 15px 0; /* More padding for clickable area */
    display: block;
    transition: color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
    color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px; /* Wider dropdown */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1;
    border-top: 4px solid #007bff; /* Stronger blue border */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
    overflow: hidden; /* Ensures rounded corners apply to content */
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: normal; /* Normal weight for dropdown items */
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    
    animation: fadeIn 0.3s ease-out; /* Fade-in animation */
}

/* Keyframe for dropdown fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hamburger-menu {
     /* Hidden on desktop */
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

/* --- Main Content Sections --- */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-banner.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 20px; /* More padding */
    position: relative;
    animation: heroLoad 1s ease-out forwards;
}

@keyframes heroLoad {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section h1 {
    font-size: 3.8em; /* Larger heading */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.4em; /* Larger paragraph */
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.hero-cta-button {
    background-color: #28a745; /* Green for Call to Action */
    color: #fff;
    padding: 18px 35px; /* Larger button */
    border-radius: 8px; /* Slightly more rounded */
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-cta-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Loan Categories Section */
.loan-categories {
    padding: 80px 0; /* More padding */
    background-color: #f0f2f5;
    text-align: center;
}

.loan-categories h2 {
    font-size: 3em;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.loan-categories h2::after { /* Underline effect */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #007bff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.loan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Increased gap */
}

.loan-card {
    background-color: #fff;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex; /* Flex for content alignment */
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.loan-card:hover {
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.loan-card img {
    width: 100%;
    height: 220px; /* Slightly taller images */
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.loan-card:hover img {
    transform: scale(1.03); /* Slight zoom on image */
}

.loan-card h3 {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 1.6em;
    color: #007bff;
}

.loan-card p {
    padding: 0 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 3em;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.why-choose-us h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #007bff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #007bff; /* Accent border */
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.feature-item h3 {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}


/* --- Loan Detail Pages (like business-loan.html) --- */

.loan-detail-hero {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
    background-size: cover; /* Ensure image covers the area */
    background-position: center;
}

.loan-detail-hero::before { /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Slightly darker overlay */
    z-index: 0;
}

.loan-detail-hero .container {
    position: relative;
    z-index: 1; /* Bring text above overlay */
}

.loan-detail-hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.loan-detail-hero p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.loan-detail-hero .hero-cta-button {
    background-color: #ffc107; /* Yellowish button for loan pages */
    color: #333;
    padding: 15px 30px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.loan-detail-hero .hero-cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}


.loan-details-content {
    padding: 70px 0;
    background-color: #fff;
}

.loan-details-content h2,
.loan-details-content h3 {
    color: #333;
    margin-bottom: 25px;
}

.loan-details-content h2 {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.loan-details-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.loan-details-content h3 {
    font-size: 2em;
    border-bottom: 1px solid #eee; /* Lighter border */
    padding-bottom: 15px;
    margin-top: 40px;
}

.loan-details-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05em;
}

.loan-details-content ul,
.loan-details-content ol {
    margin-left: 30px;
    margin-bottom: 25px;
    padding-left: 0; /* Remove default list padding */
    list-style-position: outside; /* Bullet outside text */
}

.loan-details-content ul li,
.loan-details-content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
    font-size: 1em;
}

.loan-details-content strong {
    color: #0056b3; /* Darker blue for emphasis */
    font-weight: 700;
}

.cta-button-container {
    text-align: center;
    margin-top: 50px;
}

.cta-button {
    background-color: #28a745;
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    text-decoration: none;
}


/* --- Content Section (for About Us, Privacy, Terms) --- */
.content-section {
    padding: 70px 0;
    background-color: #fff;
}

.content-section h1 {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.content-section h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: #007bff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.content-section h2 {
    font-size: 2.2em;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.content-section h3 {
    font-size: 1.8em;
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05em;
}

.content-section ul, .content-section ol {
    margin-left: 30px;
    margin-bottom: 25px;
    padding-left: 0;
    list-style-position: outside;
    color: #444;
}

.content-section ul li, .content-section ol li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* --- Contact Us Page --- */
.contact-section {
    padding: 70px 0;
    background-color: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

.contact-section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: #007bff;
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.15em;
    color: #555;
}

.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form-container, .contact-info {
    flex: 1;
    min-width: 320px; /* Minimum width before wrapping */
    background-color: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-top: 5px solid #007bff; /* Accent border */
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
}

.form-group {
    margin-bottom: 25px; /* More spacing */
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px; /* Larger padding */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.05em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    cursor: pointer; /* Indicate it's clickable */
}

.consent-checkbox input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.3); /* Larger checkbox */
    margin-top: 4px;
    cursor: pointer;
}

.consent-checkbox label {
    font-weight: normal;
    color: #333;
    font-size: 1em;
    cursor: pointer;
    line-height: 1.5;
}

button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 16px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button[type="submit"]:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.contact-info h3 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #333;
}

.contact-info p {
    text-align: left;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #555;
    font-size: 1.05em;
}

.contact-info strong {
    color: #0056b3;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #0056b3;
}


/* --- Footer --- */
footer {
    background-color: #222; /* Darker footer */
    color: #f0f0f0;
    padding: 50px 0 25px;
    font-size: 0.9em;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px; /* More gap */
    margin-bottom: 40px;
}

.footer-logo img {
    height: 70px; /* Larger footer logo */
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
    outline: none;
}

.footer-contact-info, .footer-links {
    flex: 1;
    min-width: 280px; /* Ensure columns don't get too narrow */
    padding: 0 10px;
}

footer h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.3em;
    position: relative;
}

footer h3::after { /* Small underline for footer headings */
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #007bff;
    margin-top: 8px;
    border-radius: 2px;
}

footer p, footer li {
    line-height: 1.7;
    margin-bottom: 10px;
    color: #ccc;
}

footer a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

footer ul {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444; /* Lighter border */
    padding-top: 25px;
    margin-top: 25px;
    color: #aaa;
}

/* --- Responsive Design (Mobile-Friendly) --- */
@media (max-width: 992px) {
    nav ul li {
        margin-left: 20px;
    }
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.2em;
    }
    .loan-categories h2, .why-choose-us h2, .contact-section h2 {
        font-size: 2.5em;
    }
    .loan-card h3 {
        font-size: 1.4em;
    }
    .loan-detail-hero h1 {
        font-size: 3em;
    }
    .loan-details-content h2 {
        font-size: 2.2em;
    }
    .loan-details-content h3 {
        font-size: 1.7em;
    }
    .content-section h1 {
        font-size: 2.5em;
    }
    .content-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .logo {
        flex-basis: auto; /* Allow logo to take natural width */
        outline: none;
    }
    nav {
        order: 3; /* Move nav below logo and hamburger */
        flex-basis: 100%; /* Take full width */
        margin-top: 15px;
        transition: max-height 0.5s ease-out; /* Smooth slide for mobile menu */
        max-height: 0;
        overflow: hidden; /* Hide content when collapsed */
    }
    nav.active {
        max-height: 500px; /* Adjust as needed to show all menu items */
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        border-radius: 8px;
    }
    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        text-align: center;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    nav ul li a {
        padding: 15px 0;
        width: 100%;
    }
    .dropdown-content {
        position: static; /* Stack dropdown items normally */
        box-shadow: none;
        border-top: none;
        min-width: unset;
        width: 100%;
        background-color: #f5f5f5; /* Slightly different background for sub-items */
    }
    .dropdown-content a {
        padding: 10px 0;
        padding-left: 40px; /* Indent dropdown items */
    }
    .hamburger-menu {
        display: block; /* Show hamburger menu */
        margin-left: auto; /* Push to the right */
    }

    .hero-section {
        padding: 80px 20px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }

    .loan-categories h2, .why-choose-us h2, .contact-section h2 {
        font-size: 2em;
    }
    .loan-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .loan-card {
        margin-bottom: 20px;
    }

    .loan-detail-hero {
        padding: 60px 20px;
    }
    .loan-detail-hero h1 {
        font-size: 2.5em;
    }
    .loan-detail-hero p {
        font-size: 1.1em;
    }

    .loan-details-content h2, .content-section h2 {
        font-size: 1.8em;
    }
    .loan-details-content h3, .content-section h3 {
        font-size: 1.5em;
    }

    .contact-content {
        flex-direction: column; /* Stack contact form and info vertically */
        gap: 30px;
    }
    .contact-form-container, .contact-info {
        min-width: unset;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    footer h3::after {
        margin: 10px auto 0; /* Center underline for mobile */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
        outline: none;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .loan-categories h2, .why-choose-us h2, .contact-section h2 {
        font-size: 1.8em;
    }
    .loan-card h3 {
        font-size: 1.2em;
    }
    .loan-card p {
        font-size: 0.9em;
    }
    .loan-detail-hero h1 {
        font-size: 2em;
    }
    .loan-details-content h2, .content-section h2 {
        font-size: 1.6em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .contact-section p {
        font-size: 1em;
    }
    .form-group label, .consent-checkbox label {
        font-size: 0.95em;
    }
    button[type="submit"] {
        font-size: 1em;
        padding: 14px 25px;
    }
}