/* Custom CSS for Capital Lending Header Replication */

/* Top Thin Green Line */
.top-green-line {
    height: 5px; /* Adjust height as needed */
    background-color: #e6f2e6; /* A light green color */
}

/* background image */
.hero-main.auto-hero {
    background: url('./assets/Auto-insurance.webp') no-repeat 50% 12% / cover;
}
section.auto-hero{
    min-height: 300px;
}

.hero-main.debt-hero {
    background: url('./assets/Debt-Consolidation.webp') no-repeat 50% 12% / cover;
}
section.debt-hero{
    min-height: 350px;
}

.hero-main.personal-hero {
    background: url('./assets/Personal-Loan.webp') no-repeat 50% 12% / cover;
}
section.personal-hero{
    min-height: 300px;
}

.hero-main.payday-hero {
    background: url('./assets/PayDay-Loan.webp') no-repeat 50% 12% / cover;
}
section.payday-hero{
    min-height: 300px;
}

.hero-main.emergency-hero {
    background: url('./assets/Emergency-Loan.webp') no-repeat 50% 12% / cover;
}
section.emergency-hero{
    min-height: 300px;
}

.hero-main.solar-hero {
    background: url('./assets/Sollar-Installation.webp') no-repeat 50% 12% / cover;
}
section.solar-hero{
    min-height: 300px;
}

.hero-main.home-hero {
    background: url('./assets/Home-Warranty.webp') no-repeat 50% 12% / cover;
}
section.home-hero{
    min-height: 300px;
}


.hero-main.bath-hero {
    background: url('./assets/bathtub.webp') no-repeat 50% 12% / cover;
}
section.bath-hero{
    min-height: 300px;
}

.hero-main.shower-hero {
    background: url('./assets/shower.webp') no-repeat 50% 12% / cover;
}
section.shower-hero{
    min-height: 300px;
}

.hero-main.floor-hero {
    background: url('./assets/floor.webp') no-repeat 50% 12% / cover;
}
section.floor-hero{
    min-height: 300px;
}

.hero-main.tiles-hero {
    background: url('./assets/tile.webp') no-repeat 50% 12% / cover;
}
section.tiles-hero{
    min-height: 300px;
}

.hero-main.windows-hero {
    background: url('./assets/windows.webp') no-repeat 50% 12% / cover;
}
section.windows-hero{
    min-height: 300px;
}

.hero-main.roofing-hero {
    background: url('./assets/roofing.webp') no-repeat 50% 12% / cover;
}
section.roofing-hero{
    min-height: 300px;
}

.hero-main.aca-hero {
    background: url('./assets/aca.webp') no-repeat 50% 12% / cover;
}
section.aca-hero{
    min-height: 300px;
}

.hero-main.contact-hero {
    background: url('./assets/contact.webp') no-repeat 50% 12% / cover;
}
section.contact-hero{
    min-height: 300px;
}

/* Header Buttons */
.btn-custom-green {
    background-color: #79b040; /* Specific green color from the image */
    color: white;
    border: none;
    border-radius: 5px; /* Adjust for desired roundness */
    padding: 8px 15px; /* Default padding for desktop */
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    white-space: nowrap; /* Prevent text wrapping on buttons */
}

.btn-custom-green:hover {
    background-color: #6a9c38; /* Slightly darker green on hover */
    color: white;
}

/* Icon spacing for desktop buttons */
.apply-today-btn .fa-solid,
.request-appointment-btn .fa-regular {
    margin-right: 5px; /* Space between icon and text */
}

/* Navigation Bar Customizations */
.navigation-bar-custom {
    background-color: white; /* Navigation bar background */
    border-bottom: 2px solid #e6f2e6; /* Light green line at the bottom of nav */
    padding-top: 0;
    padding-bottom: 0;
}

.navigation-bar-custom .navbar-nav .nav-link {
    color: #333; /* Darker text for navigation links */
    font-weight: 500;
    padding-top: 15px; /* Adjust vertical padding */
    padding-bottom: 15px; /* Adjust vertical padding */
    transition: color 0.2s ease-in-out;
}

.navigation-bar-custom .navbar-nav .nav-link:hover,
.navigation-bar-custom .navbar-nav .nav-link.active {
    color: #79b040; /* Green on hover/active */
}

/* Adjust dropdown menu styling if necessary */
.navigation-bar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navigation-bar-custom .dropdown-item {
    color: #333;
}

.navigation-bar-custom .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #79b040;
}

/* Submenu Styles */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: 0;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropend:hover .dropdown-submenu {
    display: block;
}

.dropend .dropdown-toggle::after {
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

/* Ensure the logo is properly aligned and doesn't get too big */
.header-logo img {
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure it's responsive */
    max-height: 60px; /* Default desktop height */
    vertical-align: middle; /* Align with text/buttons in flex container */
}

/* --- Responsive Adjustments for Header (Mobile View) --- */
/* For screens smaller than large (Bootstrap 'lg' breakpoint - 992px) */
@media (max-width: 991.98px) {
    .header-logo img {
        max-height: 50px; /* Smaller logo on mobile */
    }

    .header-main-row {
        /* Ensure equal spacing and alignment for logo, mobile apply button, and toggler */
        justify-content: space-between;
        padding-left: 15px; /* Standard Bootstrap container padding */
        padding-right: 15px;
    }

    /* Mobile Apply Today Button */
    .apply-today-btn.d-lg-none { /* Target the mobile-specific apply button */
        padding: 5px 10px; /* Smaller padding */
        font-size: 0.85rem; /* Smaller font size */
        margin-left: 15px !important; /* Specific margin from logo */
        margin-right: auto !important; /* Push it towards the toggler if needed */
        /* To make it appear after logo and before toggler */
        order: 1; /* Place after logo, before toggler */
    }

    .header-logo {
        order: 0; /* Ensure logo is first */
        margin-right: 0 !important; /* Remove any pushing margin */
    }

    .header-right-group {
        order: 2; /* Ensure toggler is last */
    }

    /* Navbar Toggler styling for mobile */
    .navbar-toggler {
        padding: 0.25rem 0.5rem; /* Smaller padding for toggler */
        font-size: 0.8rem;
        width: 40px; /* Fixed width */
        height: 40px; /* Fixed height */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em; /* Ensure icon has dimensions */
        height: 1.5em; /* Ensure icon has dimensions */
        vertical-align: middle;
    }

    /* When navbar is collapsed, it will be full width below the header */
    .navigation-bar-custom {
        padding-bottom: 10px; /* Add some padding when collapsed */
    }
    .navigation-bar-custom .navbar-collapse {
        margin-top: 10px; /* Space between header and collapsed nav */
        text-align: center; /* Center nav items when collapsed */
    }
    .navigation-bar-custom .navbar-nav .nav-item {
        width: 100%; /* Full width nav items when collapsed */
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Separator lines */
    }
    .navigation-bar-custom .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .navigation-bar-custom .navbar-nav .nav-link {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .navigation-bar-custom .dropdown-menu {
        position: static; /* Prevent dropdowns from flowing out of bounds when collapsed */
        float: none;
        width: 100%;
        text-align: center;
        background-color: #f8f9fa; /* Light background for dropdown in collapsed menu */
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .navigation-bar-custom .dropdown-item {
        padding: 8px 15px;
    }
}


/* --- Hero Section Styling --- */
.hero-main {
    position: relative;
    min-height: 500px; /* Adjust height as needed */
    background-image: url('#');
    background-size: cover;
    background-position: center;
    color: white;
    /* Ensure content is vertically and horizontally centered */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Ensures text inside is centered */
}

/* About page hero section with local banner image */
.hero-main.about-hero {
    background: url('assets/About-Us.webp') no-repeat 50% 12% / cover;
}

section.about-hero{
    min-height: 290px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/Home-page-2.webp');
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
    z-index: 0;
}

.hero-main .container {
    z-index: 1;
    display: flex; /* Make container a flex container */
    flex-direction: column; /* Stack items vertically by default */
    align-items: center; /* Center items horizontally */
    justify-content: center;
    height: 100%; /* Ensure container takes full height to allow vertical centering */
}

/* Hero Section Buttons */
.btn-primary-blue,
.btn-secondary-green {
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    padding: 10px 20px; /* Adjust larger padding for these buttons */
}
.btn-primary-blue {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}
.btn-primary-blue:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}
.btn-secondary-green {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}
.btn-secondary-green:hover {
    background-color: #218838;
    border-color: #218838;
    color: white;
}

/* Adjust Hero Section for Small Screens */
@media (max-width: 767.98px) { /* Bootstrap's 'md' breakpoint */
    .hero-main h1 {
        font-size: 2.3rem; /* Smaller heading on small screens */
        margin-bottom: 0.5rem !important; /* Reduce space after H1 */
    }
    .hero-main p.lead {
        font-size: 1.0rem; /* Smaller lead text */
        margin-bottom: 1.5rem !important; /* Adjust space after lead text */
    }
    .hero-main .row { /* Target the row containing buttons */
        padding-left: 15px; /* Add padding to match screenshot's margin */
        padding-right: 15px; /* Add padding to match screenshot's margin */
        gap: 10px; /* Space between stacked buttons */
    }
    .hero-main .col-12 {
        /* Buttons are full width on mobile due to col-12, no need for w-100 on button directly */
        margin-bottom: 0 !important; /* Remove individual button bottom margin */
    }
    .hero-main .btn-lg {
        padding-top: 12px; /* Ensure good vertical padding for large buttons */
        padding-bottom: 12px;
    }
}


/* Introductory Text Section */
.intro-text {
    background-color: #f8f9fa; /* Light background for separation */
    padding-top: 3rem; /* More space above content */
    padding-bottom: 3rem; /* More space below content */
}

.intro-text p {
    text-align: justify; /* Justify text as seen in original */
    margin-bottom: 1rem;
    color: #333;
}


/* --- Footer Section Styling --- */
.site-footer {
    background-color: #212529; /* Dark background color from the image */
    color: #dee2e6; /* Light gray text for readability */
}

.site-footer .footer-heading {
    color: white; /* White color for column headings */
    font-size: 1.15rem; /* Adjust font size if needed */
    margin-bottom: 1.5rem;
}

.site-footer .footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem; /* Adjust spacing between paragraphs */
}

.site-footer .footer-link,
.site-footer .footer-link-item {
    color: #adb5bd; /* Slightly lighter gray for links */
    text-decoration: none;
    font-size: 0.9rem;
    display: block; /* Make links stack vertically */
    padding: 3px 0;
    transition: color 0.2s ease-in-out;
}

.site-footer .footer-link:hover,
.site-footer .footer-link-item:hover {
    color: #e9ecef; /* Lighter on hover */
}

.site-footer .footer-links-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Thin white line for list items */
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.site-footer .footer-links-list li:last-child {
    border-bottom: none; /* No border for the last item */
}

.site-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.15); /* Light line for the separator */
}

.site-footer .powered-by-section {
    font-size: 0.85rem;
    color: #adb5bd;
}

.site-footer .powered-by-section img {
    height: 18px; /* Adjust logo height */
    vertical-align: middle; /* Align with text */
}

  .social-links {
    list-style: none;
    padding: 0;
    display: flex; /* Arrange icons in a row */
    gap: 15px; /* Space between icons */
  }

  .social-links li {
    display: inline-block; /* For older browser support or if flexbox is not desired for individual items */
  }

  .social-links a {
    color: #f8f9fa;
    width: 40px;
    height: 40px;
    background-color: #555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
  }

  .social-links a:hover {
    background-color: #007bff; /* Blue background on hover */
    color: #ffffff; /* White icon on hover */
  }

/* Responsive adjustments for footer columns */
@media (max-width: 767.98px) { /* Small screens (md breakpoint) */
    .site-footer .col-md-3,
    .site-footer [class*="col-"] { /* Target all columns to center them */
        text-align: center; /* Center content in columns on small screens */
    }
    .site-footer .footer-links-list li {
        text-align: center; /* Center list items too */
    }
    .site-footer .powered-by-section {
        text-align: center !important; /* Override text-end for small screens */
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        gap: 20px;
    }
    .w-60 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    .w-40 {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

h1.display-4.fw-bold.mb-3{
    font-family: Lato, "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 55px;
    line-height: 60px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 2px 2px 2px #333;
    margin-bottom: 30px !important;
}

p.lead.mb-4{
    font-weight: 700;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 2px 2px 2px #333;
}

.footer-col{
    padding-left: 30px;
    padding-right: 30px;
}