/*
Theme Name: Exppress Car Wash Theme
Theme URI: https://www.exppresscarwash.com/
Description: Custom WordPress theme matching the Laravel frontend header and footer.
Version: 1.0.1
Author: Antigravity
Author URI: https://www.exppresscarwash.com/
Text Domain: ecw-blog-theme
*/

body.blog,
body.archive,
body.search,
body.single-post {
    background: #0b0b0b;
    color: #fff;
}



.ecw-blog-hero {
    min-height: 285px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    position: relative;
}

.ecw-blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.ecw-blog-hero .container {
    position: relative;
    z-index: 1;
}

.ecw-blog-hero .wptb-item--inner {
    padding: 158px 0;
    text-align: center;
}

.ecw-blog-hero .wptb-item--title {
    margin: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.ecw-blog-hero .wptb-breadcrumb {
    justify-content: center;
    margin-top: 16px;
}

.ecw-blog-archive {
    padding: 42px 0 135px;
    background: #0b0b0b;
}

.ecw-blog-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #111;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ecw-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 201, 10, 0.55);
}

.ecw-blog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #171717;
}

.ecw-blog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.ecw-blog-card:hover .ecw-blog-card__image {
    transform: scale(1.035);
}

.ecw-blog-card__date {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    border-radius: 4px;
    background: #d9c90a;
    color: #050505;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.ecw-blog-card__body {
    min-height: 178px;
    padding: 20px 22px 24px;
}

.ecw-blog-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: 0;
}

.ecw-blog-card__title a {
    color: #fff;
    text-decoration: none;
}

.ecw-blog-card__title a:hover {
    color: #d9c90a;
}

.ecw-blog-card__excerpt {
    display: -webkit-box;
    margin: 16px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.ecw-blog-pagination {
    margin-top: 64px;
}

.ecw-blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ecw-blog-pagination .page-numbers a,
.ecw-blog-pagination .page-numbers span {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #333;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ecw-blog-pagination .page-numbers .current,
.ecw-blog-pagination .page-numbers a:hover {
    background: #d9c90a;
    color: #050505;
}

.ecw-blog-empty {
    padding: 90px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #111;
}

body.single-post .blog-details {
    padding: 58px 0 120px;
    background: #0b0b0b;
}

body.single-post .blog-details-inner,
body.single-post .sidebar .widget {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #111;
}

body.single-post .blog-details-inner {
    padding: 34px;
}

body.single-post .post-title {
    color: #fff;
    font-size: 38px;
    line-height: 1.16;
    letter-spacing: 0;
}

body.single-post .fulltext,
body.single-post .fulltext p,
body.single-post .fulltext li {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.75;
}

body.single-post .fulltext h2,
body.single-post .fulltext h3,
body.single-post .fulltext h4 {
    color: #fff;
    letter-spacing: 0;
}

@media (max-width: 991.98px) {
    .ecw-blog-hero {
        min-height: 240px;
    }

    .ecw-blog-card__title {
        font-size: 21px;
    }

    body.single-post .post-title {
        font-size: 32px;
    }
}

@media (max-width: 575.98px) {
    .ecw-blog-hero .wptb-item--title {
        font-size: 34px;
    }

    .ecw-blog-archive {
        padding: 32px 0 90px;
    }

    .ecw-blog-card__body {
        min-height: auto;
        padding: 18px;
    }

    body.single-post .blog-details-inner {
        padding: 22px;
    }
}


/* Floating Action Buttons & Sidebar Tabs (Sticky Images) */
.sticky-images {
    position: fixed;
    top: 55%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
}

.sticky-images img {
    display: block;
    margin: 5px 0;
    width: auto;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 45px;
    height: 45px;
}

.franchise-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}

.franchise-button:hover {
    transform: scale(1.1);
}

.franchise-button img {
    width: 60px;
    height: 60px;
}

.tooltip-franchise {
    position: absolute;
    left: 70px;
    background: #ffffff;
    color: #000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
}

.tooltip-franchise.show {
    opacity: 1;
    transform: translateX(0);
}

.tooltip-franchise::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

@media (max-width: 767.98px) {
    .sticky-images,
    .franchise-button {
        display: none !important;
    }
}
