body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* First Navbar Styles */
.bg-green {
    background-color: #2D3292; /* Green color */
    padding: 8px 0; /* Reduced padding for a sleeker design */
}

.navbar-text {
    font-size: 1rem; /* Reduced font size for a more professional look */
    color: white; /* Text color for navbar */
}

.phone-number {
    border-right: 1px solid white; /* Vertical line */
    padding-right: 8px; /* Reduced spacing for a tighter layout */
}

.email-address {
    padding-left: 8px; /* Reduced spacing for a tighter layout */
}

.navbar-nav {
    flex-direction: row;
}

.navbar-nav .nav-item {
    margin-right: 15px; /* Reduced spacing between items for a compact layout */
    position: relative;
}

.navbar-nav .nav-item:not(:last-child) .nav-link {
    border-right: 1px solid white; /* Vertical line */
    padding-right: 15px; /* Add padding to the right to create space between text and line */
}

.navbar-nav .nav-link {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 12px; /* Reduced padding for a sleeker design */
    font-size: 1rem; /* Increased font size for better visibility */
}

/* Second Navbar Styles */
.bg-whitesmoke {
    background-color: whitesmoke; /* Whitesmoke color */
    padding: 8px 0; /* Reduced padding for a sleeker design */
}

.navbar-logo {
    width: 120px; /* Increased logo size for better visibility */
    height: auto;
}

.navbar-nav .nav-item {
    margin-right: 20px; /* Increased spacing between items */
    text-align: center;
    position: relative;
}

.navbar-nav .nav-link {
    color: #333; /* Text color for navbar */
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1rem; /* Increased font size for better visibility */
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #CFAB67; /* Hover color */
    background-color: rgba(0, 0, 0, 0.1); /* Adding hover background */
    border-radius: 4px; /* Rounding corners */
}

.navbar-icon {
    width: 36px; /* Increased icon size for better visibility */
    height: 36px; /* Increased icon size for better visibility */
    margin-bottom: 5px; /* Space between icon and text */
}

.navbar-nav .nav-item.dropdown:hover > .nav-link::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #1E824C transparent transparent transparent; /* Triangle arrow */
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none; /* Hide dropdown by default */
    position: absolute;
    background-color: #2D3292; /* Matching the ARB Apex Bank design */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    top: calc(100% + 10px); /* Adjusted to account for the triangle */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 15px; /* Increased padding for dropdown */
    width: 220px; /* Fixed width for dropdowns */
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown on hover */
}

.dropdown-item {
    color: white; /* White text for dropdown items */
    padding: 10px 20px; /* Increased padding for dropdown items */
    font-size: 0.95rem; /* Slightly larger font size */
    transition: color 0.2s ease; /* Hover transition only for color */
}

.dropdown-item:hover {
    color: #1E824C; /* Green hover text */
    text-decoration: underline; /* Underline on hover */
}

/* Hamburger Menu Styles */
.navbar-toggler {
    border: none;
    color: #2D3292; /* Green color for icon */
    font-size: 1.5rem;
}

/* Mobile Menu Styles */
.collapse.show {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: whitesmoke; /* Whitesmoke background for the dropdown */
    z-index: 999;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out; /* Smooth transition for dropdown */
    opacity: 0;
    visibility: hidden;
}

.collapse.show.show-menu {
    opacity: 1;
    visibility: visible;
}

.collapse.show .nav-item {
    margin-bottom: 15px; /* Space between items */
}

.collapse.show .nav-link {
    color: #333; /* Dark text for mobile menu items */
    text-align: left; /* Align text to the left */
    font-size: 1.2rem; /* Larger font size */
    display: block; /* Block display for full width */
    padding: 10px 0; /* Padding for items */
}

/* Hide icons on smaller screens */
@media (max-width: 992px) {
    .navbar-icon {
        display: none; /* Hide icons on smaller screens */
    }

    .navbar-expand-lg.bg-green {
        display: none; /* Hide first navbar on smaller screens */
    }

    .navbar-expand-lg.bg-whitesmoke {
        padding: 10px 0;
    }

    .navbar-brand {
        margin-right: auto; /* Align logo to the left */
    }

    .navbar-toggler {
        margin-left: auto; /* Align toggler to the right */
        display: block; /* Ensure hamburger is visible */
    }

    .navbar-collapse {
        background-color: whitesmoke; /* Background for full-screen menu */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out; /* Smooth transition */
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .navbar-nav .nav-item {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: left;
        border-right: none; /* Remove border in mobile view */
        color: #333; /* Black text for dropdown items on smaller screens */
        background-color: transparent; /* Remove background color on hover */
    }

    .dropdown-menu {
        position: static;
        background-color: transparent; /* Remove background color on smaller screens */
        box-shadow: none;
        border-radius: 0;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0;
        margin-top: 0;
    }

    .dropdown-item {
        color: #333; /* Black text for dropdown items on smaller screens */
        padding-left: 0; /* Align underline from left to right */
        text-decoration: none; /* Remove default underline */
        width: 100%; /* Ensure full width for hover effect */
        display: inline-block; /* Allow text underline */
    }

    .dropdown-item:hover {
        color: #1E824C; /* Green hover text */
        text-decoration: underline; /* Underline on hover */
        text-decoration-color: #1E824C; /* Green underline */
        background-color: transparent; /* No background hover */
    }

    .navbar-nav .nav-item.dropdown:hover > .nav-link::after {
        display: none; /* Hide triangle arrow on smaller screens */
    }
}


/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.contact-form-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form-section .form-control {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ccc;
}

.contact-form-section .btn {
    background-color: green;
    color: white;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    transition: background-color 0.3s ease;
}

.contact-form-section .btn:hover {
    background-color:rgb(91, 3, 3);
}



/* Footer Styles */
.footer {
    background-color: rgb(26, 20, 86);
    color: #fff;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    width: 100px;
}

.footer h5 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.footer p,
.footer ul {
    opacity: 0;
    animation: fadeIn 2s forwards 0.5s;
}

.footer ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #ffffff;
}

.footer p {
    margin: 0;
    line-height: 1.5;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .text-success {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.footer .text-white {
    color: #ffffff !important;
}

.footer .text-white:hover {
    color: #2D3292;
    transform: scale(1.05);
}

.footer .container {
    border-top: 1px solid #444;
    padding-top: 2rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 2s forwards 1s;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer ul {
        padding-bottom: 1rem;
    }

    .footer .container {
        border-top: none;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
