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: #2D3292; /* 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: #1E824C; /* 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-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
}

.hero-subtitle, .hero-details {
    font-size: 1.2rem;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto; /* Center align the section */
}

.service {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    transition: all 0.6s ease;
    margin: 50px;
}

.service.visible {
    opacity: 1;
    transform: translateY(0);
}

.reverse {
    flex-direction: row-reverse;
}

.service-image {
    position: relative;
    flex: 1;
    max-width: 50%;
    margin: 0 1rem;
    overflow: hidden;
    cursor: pointer;
}

.service-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    display: none;
}

.service-image:hover .image-overlay {
    display: block;
}

.service-text {
    flex: 1;
    max-width: 50%;
    margin: 0 1rem;
    text-align: left;
}

.service-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-subimage {
    position: relative;
    margin-top: 1rem;
    cursor: pointer;
}

.service-subimage img {
    width: 50%;
    height: 35vh;
    transition: transform 0.3s ease;
}

.service-subimage:hover img {
    transform: scale(1.1);
}

.fullscreen-image {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 9999;
}

.fullscreen-image.visible {
    top: 0;
    opacity: 1;
}

.fullscreen-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .service {
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        margin-bottom: 20px; 
    }

    .service-image, .service-text {
        width: 90%; 
        margin-bottom: 15px; 
    }

    .service-text p {
        font-size: 1rem; 
    }

    .btn {
        width: 80%; 
        margin: 10px auto; 
    }

    .service-subimage {
        display: none; 
    }

    .modal-body {
        flex-direction: column; 
        text-align: center; 
    }

    .modal-image {
        width: 100%; 
        margin-bottom: 20px; 
    }

    .modal-text {
        width: 100%; 
    }
}



/* 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: #00ff00;
}

.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: #ffffff;
    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);
    }
}
