/*
Theme Name: Hello Biz Child
Theme URI: https://github.com/elementor/hello-biz-child/
Description: Hello Biz Child is a child theme of Hello Biz, created by Elementor team
Author: Elementor Team
Template: hello-biz
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Version: 1.0.0
Stable tag: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-biz-child
Tags: flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready, style-variations
*/

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 30px);
    margin-top: 30px;
}

.blog-card {
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    color: #28292b !important;
    font-family: 'Poppins', 'sans-serif';
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: inherit !important;
    text-decoration: none !important;
}

.blog-card__link:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.blog-card:hover {
    color: #0073aa !important;
}

.blog-card:hover .blog-card__link {
    color: #0073aa !important;
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    height: clamp(220px, 28vw, 300px) !important;
    object-fit: cover;
    position: relative;
}

.card-categories {
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0;
    display: flex;
    transition: opacity 0.3s ease;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-card:hover .card-categories {
    display: flex;
    opacity: 1;
}

.blog-card:focus-within .card-categories {
    display: flex;
    opacity: 1;
}

.card-category-pill {
    font-size: 16px;
    font-weight: 400;
    color: #28292b !important;
    background: white;
    border: 1px solid #28292b;
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    font-family: 'Poppins', 'sans-serif';
}

.card-content {
    padding: 20px 0;
    display: flex;
    gap: 16px;
    flex-direction: column;
    flex-grow: 1;
    font-family: 'Poppins', 'sans-serif';
}

.card-title {
    font-size: clamp(22px, 2.2vw, 26px) !important;
    font-weight: 600;
    font-family: 'Poppins', 'sans-serif';
    color: #28292b !important;
    text-decoration: none;
    margin: 0;
}

.card-excerpt {
    color: #666;
    margin: 0;
}

.card-location {
    color: #0073aa !important;
    margin: 0;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Poppins', 'sans-serif';
    text-decoration: none !important;
}

.card-button {
    display: inline-block;
    margin-top: auto;
    color: inherit !important;
    text-decoration: none !important;
}

.card-button__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-button__arrow,
.blog-card:focus-within .card-button__arrow {
    transform: translateX(5px);
}

/* filters */
.blog-filters {
    background-color: #C8D5DC;
    padding: clamp(2rem, 3vw, 2.5rem);
    margin: 2.5rem 0;
    color: #28292b;
    font-family: 'Poppins', 'sans-serif';

    @media (max-width: 640px) {
        padding: 1rem;
    }
}

.blog-filters h2 {
    margin-bottom: 1.25rem;
    /* font-size: clamp(28px, 5vw, 48px); */
    font-weight: 600;

    @media (max-width: 640px) {
        /* font-size: clamp(24px, 4vw, 32px); */
        margin-bottom: 1rem;
    }
}

.blog-filters-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-filters a {
    display: inline-flex;
    align-items: center;
    color: #28292b !important;
    border: 1px solid #28292b;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', 'sans-serif';
}

.blog-filters a:hover, .blog-filters a.active {
    background: white;
}

/* responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-content {
        gap: 12px;
    }

    .card-category-pill {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .blog-filters {
        margin: 1.25rem 0;
    }

    .blog-filters-buttons {
        gap: 10px;
    }

    .blog-filters a {
        padding: 0.4rem 0.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .card-image img {
        height: 220px !important;
    }

    .card-content {
        padding: 14px 0;
    }
}

@media (hover: none) {
    .card-categories {
        opacity: 1;
    }
}

/* Single post (blog) */
@media (min-width: 1200px) {
    .type-post {
        max-width: min(100%, 1376px) !important;
    }
}

.single-post {
    --single-color-text: #252525;
    --single-color-accent: #0073aa;
    --single-font-heading: 'Poppins', sans-serif;
    --single-font-body: 'Manrope', sans-serif;

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.single-post h1,
.single-post h2 {
    margin: 0;
    font-family: var(--single-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--single-color-text) !important;
}

.single-post h1 {
    font-size: clamp(32px, 6vw, 56px);
}

.single-post h2 {
    font-size: clamp(28px, 4.8vw, 48px);
}

.single-post__location {
    margin: 0;
    font-family: var(--single-font-heading);
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--single-color-accent) !important;
    text-transform: uppercase;
}

.single-post__featured-img {
    width: 100%;
    height: clamp(260px, 56vw, 800px);
    border-radius: 10px;
    object-fit: cover;
}

.single-post__content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: clamp(36px, 8vw, 100px);
    margin-bottom: clamp(36px, 8vw, 100px);
}

.single-post__content__text {
    flex: 1 1 320px;
    min-width: 0;
    font-family: var(--single-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--single-color-text) !important;
}

.single-post__content__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
    width: min(100%, 520px);
    height: 100%;
}

.single-post__content__cta p {
    font-weight: 600;
}

.single-post__content__cta__button {
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    border: 1px solid var(--single-color-text);
    border-radius: 100px;
    background: transparent;
    font-family: var(--single-font-heading);
    font-weight: 400;
    color: var(--single-color-text) !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.single-post__content__cta__button:hover {
    background: var(--single-color-text);
    color: #fff !important;
}

@media (max-width: 1024px) {
    .single-post__content {
        gap: 24px;
    }

    .single-post__content__text {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .single-post {
        gap: 14px;
    }

    .single-post__featured-img {
        border-radius: 8px;
    }

    .single-post__content {
        flex-direction: column-reverse;
        gap: 18px;
    }

    .single-post__content__text {
        flex: 1 1 auto;
        width: 100%;
        font-size: 16px;
    }

    .single-post__content__cta {
        width: 100%;
        justify-content: flex-start;
        background: #C8D5DC;
        padding: 1rem;
    }

    .single-post__content__cta__button {
        width: 100%;
        text-align: center;
    }

    .breadcrumb {
        margin-top: 32px;
        margin-bottom: 20px;
        font-size: 14px;
    }
}

/**
 * Breadcrumb
 */
.breadcrumb {
    font-family: 'Manrope', 'sans-serif';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    margin-top: 80px;
    margin-bottom: 40px;
    display: none !important;

    @media (min-width: 640px) {
        display: block !important;
    }
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb ol li {
    color: #808080 !important;
}

.breadcrumb ol li a {
    color: #808080 !important;
    text-decoration: none;
}

.breadcrumb ol li a:hover {
    text-decoration: underline;
}

.breadcrumb ol li:last-child span:not(.breadcrumb-separator) {
    color: #252525 !important;
}

.breadcrumb-separator {
    color: #808080 !important;
    margin: 0 4px;
}

/* Lightbox base */
.acf-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.acf-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Image (below controls in paint order so arrows stay clickable) */
.acf-lightbox__img {
    position: relative;
    z-index: 0;
    max-width: 92%;
    max-height: 88%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Controls */
.acf-lightbox-close,
.acf-lightbox-prev,
.acf-lightbox-next {
    position: absolute;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* Close */
.acf-lightbox-close {
    top: 20px;
    right: 28px;
    font-size: 36px;
    padding: 8px;
}

/* Arrows */
.acf-lightbox-prev,
.acf-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    padding: 10px;
}

.acf-lightbox-prev { left: 20px; }
.acf-lightbox-next { right: 20px; }

/* Hover feedback */
.acf-lightbox-prev:hover,
.acf-lightbox-next:hover,
.acf-lightbox-close:hover {
    opacity: 0.7;
}

@media (max-width: 767px) {
    .acf-lightbox-close {
        top: 12px;
        right: 12px;
        font-size: 30px;
    }

    .acf-lightbox-prev,
    .acf-lightbox-next {
        font-size: 36px;
        padding: 8px;
    }

    .acf-lightbox-prev { left: 8px; }
    .acf-lightbox-next { right: 8px; }
}

body.lightbox-open {
    overflow: hidden;
}

.acf-gallery {
    column-count: 3;
    column-gap: 16px;
    margin-bottom: 100px;
}

@media (max-width: 900px) {
    .acf-gallery {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .acf-gallery {
        column-count: 1;
        margin-bottom: 60px;
    }
}

.acf-gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.acf-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}