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 #2D3292; /* 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: #2D3292; /* Green hover text */
        text-decoration: underline; /* Underline on hover */
        text-decoration-color: #2D3292; /* 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 */
    }
}

/* About Hero Section */
.about-hero {
    position: relative;
    background-image: url('service/maintenance.jpeg');
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-attachment: fixed;
}

.about-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.about-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.the-company p {
    text-align: justify;
}

/* Tab Pane Styling */
.tab-pane {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Images in Tab Pane */
.tab-pane img {
    max-width: 30%;
    border-radius: 8px;
    margin-right: 20px;
    height: auto;
}

/* Active Tab Link */
.nav-pills .nav-link.active {
    background-color: #2D3292;
    color: #fff;
    border-radius: 30px;
}

/* Non-active Tab Link */
.nav-pills .nav-link {
    color: #CFAB67;
    border-radius: 30px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: rgb(91, 3, 3);
}

/* Flexbox for Images in Tab Content */
.tab-content .tab-pane img {
    width: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Content Sections */
.about-content {
    transition: all 0.5s ease;
}

.content-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-text {
    font-size: 1rem;
    color: #333;
}

.img-fluid {
    transition: transform 0.3s ease;
}

.img-fluid:hover {
    transform: scale(1.05);
}

/* Push Tab Content Down */
#aboutTabsContent {
    margin-top: 20px;
}

/* Gallery Section Styles */
.gallery {
    background-color: #f8f9fa;
    margin-top: 100px;
}

.gallery h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Gallery Item Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.gallery-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 10px;
}

.gallery-img {
    width: 100%;
    height: 50vh;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: #fff;
    text-align: center;
}

.gallery-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-text p {
    font-size: 1rem;
    font-weight: bold;
}

.gallery-text span {
    font-size: 0.9rem;
}

.zoom-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zoom-icon:hover {
    transform: scale(1.2);
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.fullscreen-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .gallery-img-wrapper {
        margin: 0 auto 20px auto;
    }
}

/* Achievements Section Styles */
.achievements {
    background-color: #f8f9fa;
}

.achievements h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Carousel Styling */
.carousel-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
}

.carousel img {
    height: 300px;
    object-fit: cover;
}

.carousel h3 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.carousel p {
    font-size: 1rem;
    color: #333;
}

/* Carousel Controls */
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel img {
        height: 200px;
    }
}

/* Why Choose Us Section Styles */
.why-choose-us {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.why-choose-us h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.accordion-button {
    background-color: rgb(91, 3, 3);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 0;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: green;
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    display: flex;
    align-items: center;
    padding: 20px;
}

.accordion-body img {
    max-width: 50%;
    border-radius: 8px;
    margin-right: 20px;
}

.accordion-body p {
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .accordion-body {
        flex-direction: column;
    }

    .accordion-body img {
        max-width: 100%;
        margin-bottom: 15px;
    }
}



/* 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: #00ff00;
    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);
    }
}
