body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    padding-top: 20px;
}

.text-primary {
    color: #009fe3 !important;
}

.bg-light-blue {
    background-color: #f0f9ff !important;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 50px;
}

.btn-quote {
    background-color: #579dc6;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.btn-quote:hover {
    background-color: #579dc6;
    color: #fff;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

#hero .btn-quote {
    padding: 0.75rem 1.5rem;
}

#welcome h2 {
    font-size: 2rem;
}

#welcome p {
    color: #555;
    line-height: 1.6;
}

#welcome .btn-outline-primary {
    border-color: #009fe3;
    color: #009fe3;
    font-weight: 500;
    border-radius: 4px;
}

#welcome .btn-outline-primary:hover {
    background-color: #009fe3;
    color: #fff;
}

#what-we-do .card {
    border: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#what-we-do .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#what-we-do .card-img {
    height: 300px;
    object-fit: cover;
}

#what-we-do .card-img-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.1));
}

#why-landlords .icon-item img {
    height: 60px;
}

#areas-required ul {
    padding-left: 20px;
}

#areas-required ul li {
    margin-bottom: 0.5rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #579dc6 !important;
}

.nav-link {
    padding: 0px 20px !important;
    font-weight: bold;
}

.nav-link.active {
    color: #009fe3 !important;
}

.bg-light-gray-dreytons {
    background-color: #f8f8fa;
    /* Very subtle light gray */
}

.bg-cta-dreytons {
    background-color: #579dc6;
}

.feature-box {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 5px solid transparent;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: #579dc6;
}

.icon-circle {
    background-color: #579dc6;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.map-section-bg {
    background-color: #2c326c;
    /* Use primary color for high-contrast section */
    color: white;
}

.map-image-placeholder {
    min-height: 350px;
    background-color: #2c326c;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-panel {
    /* Black background for sections */
    background-color: #000;
    color: #fff;
    padding: 3rem 1.5rem;
    /* Increased padding */
    text-align: center;
}

.contact-info-panel .bg-blue {
    /* Blue background for the phone section */
    background-color: #0080ff;
    /* A vibrant blue close to the image */
    padding: 1.5rem;
    margin: 2rem 0;
}

.contact-info-panel h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-icon {
    font-size: 1.5rem;
    /* Size of the icon area */
    line-height: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Icon styling (using simple text characters as placeholders) */
.contact-icon-box {
    background-color: #579dc6;
    color: #fff;
    /* Blue or Black border, depending on context */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.contact-icon-box.dark {
    border: 1px solid #000;
    color: #000;
    background-color: #fff;
}

.contact-icon-box.light {
    border: 1px solid #fff;
    color: #0080ff;
    background-color: #fff;
}

.contact-form-section .btn-warning {
    /* Orange submit button */
    background-color: #ff9900;
    border-color: #ff9900;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    width: 100%;
}

.text-dark-gray {
    color: #555;
}

.captcha-box {
    width: 130px;
    height: 40px;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: cursive;
    font-size: 1.25rem;
    letter-spacing: 2px;
    border: 1px solid #ccc;
}

.text-secondary-dreytons {
    color: #579dc6;
}

.bg-orange-dreytons {
    background-color: var(--color-orange) !important;
}

.hero-section {
    background-image: url('https://placehold.co/1920x400/121212/CCCCCC?text=Landlords+Background+Image');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.feature-icon-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-icon-box:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-3px);
}

.feature-icon-box i {
    color: #579dc6;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.step-icon {
    background-color: var(--color-primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-card {
    border-top: 4px solid var(--color-secondary);
}

.category-sidebar {
    background-color: #fff;
    padding: 0;
    border-right: 1px solid #eee;
    /* Make sidebar occupy the full height of the main row */
    min-height: 100vh;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #f8f9fa;
}

.category-item:hover,
.category-item.active {
    background-color: #f2f2f2;
    font-weight: 600;
}

.category-icon {
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
    margin-right: 10px;
    color: #6c757d;
    /* Gray icons */
}

.main-content {
    padding: 30px;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 0.25rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.btn-black {
    background-color: #000;
    color: #fff;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
}

.btn-white {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    margin-right: 10px;
}

.bg-primary-dreytons {
    background-color: #2c326c;
}

.text-primary-dreytons {
    color: #000000;
}

.bg-secondary-dreytons {
    background-color: var(--color-secondary);
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: transparent;
    border-color: var(--color-primary);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.benefit-card {
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Override the default .btn-primary color to #579dc6 */
.btn-primary {
    color: #fff;
    /* Ensures white text on the new blue background */
    background-color: #579dc6;
    border-color: #579dc6;
}

/* Define the colors for the button's hover/focus/active states */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked+.btn-primary {
    /* Use a slightly darker blue for visual feedback on hover/click */
    background-color: #4988af;
    /* Slightly darker shade */
    border-color: #4988af;
    color: #fff;
}

/* Ensure the button looks correct when disabled */
.btn-primary:disabled {
    background-color: #579dc6;
    border-color: #579dc6;
}

/*
    Final Revised Custom CSS for Overlapping Logo Effect
*/

/* 1. Navbar Container - make it a positioning context */
.navbar {
    /* position: relative; */
    /* Add extra padding top/bottom to make vertical space for the logo overlap */
    padding-top: 20px;
    padding-bottom: 20px;
}

/* 3. Logo Image Styling */
.logo-container img {
    width: 200px;
    /* Logo width */
    height: auto;
    background-color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 4. Adjust the container padding to make space for the logo on the left */
/* This is the key change to keep the nav items aligned right, relative to the container. */
.navbar .container {
    /* Push the content (including the toggler and nav links) away from the logo */
    padding-left: 175px;
    /* Must be larger than the logo width (150px) + its left margin (15px) */
}

/* 5. Toggler (for small screens) */
.navbar-toggler {
    margin-left: auto;
    /* Ensure toggler stays to the right of the container content */
    margin-right: 0;
}

.logo-container {
    width: 20%;
    top: 50px;
    z-index: 1000;
    position: absolute;
    transform: translateY(-50%);
    left: 15px;
}

/* Prevent the absolutely-positioned logo container from blocking clicks
   on the navigation by allowing pointer events to pass through the
   container while keeping the image itself interactive. */
.logo-container {
    pointer-events: none;
}
.logo-container img {
    pointer-events: auto;
}

/* For larger screens (lg breakpoint and above) */
@media (min-width: 992px) {
    .logo-container {
        left: 200px;
        width: 100%;
        top: 85px;
        left: 200px;
    }

    /* Adjust container padding to maintain spacing on large screens */
    .navbar .container {
        padding-left: 200px;
        /* Use a slightly larger value for desktop */
        padding-right: 15px;
        /* Standard Bootstrap padding */
    }

    /* Ensure the main navigation list still uses ms-auto to align right */
    #mainNavbar .navbar-nav {
        margin-left: auto !important;
        /* Keep the ms-auto functionality */
        margin-right: 0;
    }
}

@media (max-width: 767.98px) {
    /* make logo inline and smaller so it doesn't overlap the menu */
    .logo-container {
        position: static !important;
        width: auto !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        padding: 0;
        margin: 0 12px 0 0;
        display: inline-block;
    }

    .logo-container img {
        width: 72px;
        height: auto;
        background: transparent;
        padding: 6px;
        box-shadow: none;
    }

    /* reset container padding so menu is not pushed under the logo */
    .navbar .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* keep toggler on the right, normal spacing */
    .navbar-toggler {
        margin-left: auto;
        margin-right: 0;
    }

    /* make the collapsed menu full-width, white background and left-aligned */
    .navbar-collapse {
        background-color: #fff;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        border-top: 1px solid #eee;
        padding-top: 8px;
        padding-bottom: 12px;
    }

    #mainNavbar .navbar-nav,
    .navbar-nav {
        margin-left: 0 !important;
        text-align: left;
        width: 100%;
    }

    /* nav links: left aligned, larger tap targets, no centring */
    .nav-link {
        display: block;
        padding: 12px 16px !important;
        text-align: left;
        font-weight: 600;
        color: #333;
    }

    /* add slight separation for list-like look */
    .nav-link + .nav-link {
        border-top: 1px solid #f1f1f1;
    }

    /* CTA / quote button: full width and spaced */
    .btn-quote,
    .btn-primary {
        display: block;
        width: calc(100% - 32px);
        margin: 12px 16px;
        text-align: center;
        padding: 10px 14px;
    }

    /* make sure brand + toggler align nicely */
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

     /* Mobile-only footer centering */
    footer {
        text-align: center;
    }

    /* Stack footer columns and centre their contents */
    footer .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Make column blocks full width and remove side padding so items sit centered */
    footer [class*="col-"] {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /* Centre common footer elements */
    footer h4,
    footer p,
    footer a,
    footer li,
    footer .contact-info-panel,
    footer .quick-links,
    footer .working-hours {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Reduce left padding on lists and keep bullets visible */
    footer ul {
        padding-left: 0.5rem;
        list-style-position: inside;
    }

    /* Centre logo inside the footer */
    footer .logo-container img,
    footer .navbar-brand img {
        display: block;
        margin: 0 auto;
        max-width: 140px;
        height: auto;
    }

    /* Small visual spacing for working hours block */
    footer .working-hours {
        margin-top: 0.5rem;
    }

    /* Stronger overrides to ensure Working Hours column is centred on mobile */
    footer .working-hours,
    footer .working-hours * {
        text-align: center !important;
        float: none !important;
    }

    /* If the working-hours column or its children were using column/float utilities, override them */
    footer .working-hours[class*="col-"],
    footer .working-hours .col,
    footer .working-hours .text-right,
    footer .working-hours .pull-right {
        float: none !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Also ensure any headings inside the working-hours block are centred */
    footer .working-hours h3,
    footer .working-hours h4,
    footer .working-hours h5 {
        text-align: center !important;
        margin: 0.25rem 0 !important;
    }

    /* Extra specific overrides: target the last footer column if it wasn't marked with .working-hours */
    footer .row > [class*="col-"]:last-child {
        text-align: center !important;
        float: none !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Ensure headings and any right-aligned utilities inside the footer are neutralised on mobile */
    footer .row > [class*="col-"]:last-child h3,
    footer .row > [class*="col-"]:last-child h4,
    footer .row > [class*="col-"]:last-child h5,
    footer .row > [class*="col-"]:last-child p,
    footer .row > [class*="col-"]:last-child ul,
    footer .row > [class*="col-"]:last-child li {
        text-align: center !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Neutralise common utility classes that might be forcing right alignment */
    footer .text-right,
    footer .text-md-right,
    footer .pull-right,
    footer .float-right {
        text-align: center !important;
        float: none !important;
    }

    /* Neutralise Bootstrap 5 end-alignment utilities (text-end) used in footer markup */
    footer .text-end,
    footer .text-md-end,
    footer .text-lg-end {
        text-align: center !important;
        float: none !important;
    }

    /* Centre contact items (icons + text) and quick links on mobile */
    footer .footer-contact-block .footer-contact-item {
        justify-content: center !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
    }

    footer .footer-contact-block .footer-contact-item i {
        margin-right: 8px !important;
        margin-left: 0 !important;
    }

    /* Quick links: centre the link text and icon */
    footer .quick-link-item a,
    footer .quick-link-item {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0.35rem 0 !important;
        width: 100% !important;
    }

    footer .quick-link-item i {
        margin-right: 8px !important;
        margin-left: 0 !important;
    }

    /* Ensure the small text spans in the contact block centre properly */
    footer .footer-contact-block .small {
        display: inline-block !important;
        text-align: center !important;
    }
}