/*
 * Latitude 21 Site — conditional template CSS.
 * S4b-3: blog-slider (12) + blog-archive (6) rules migrated from Customizer Additional CSS.
 * Enqueued when is_front_page||is_home||is_search||is_archive||is_singular(post).
 */


/* ===== BLOG POST CARDS ===== */
.elementor-post__title a,
.elementor-post__title {
    font-family: 'Cammron', serif !important;
    font-size: 24px !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    color: #020202 !important;
    line-height: 1.3 !important;
}

.elementor-post__excerpt p,
.elementor-post__excerpt {
    font-family: 'Catamaran', sans-serif !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.elementor-post__read-more,
a.elementor-post__read-more {
    background-color: #D66E49 !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 0 !important;
    font-family: 'Catamaran', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Post image overlay */
.elementor-post__thumbnail__link::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    pointer-events: none;
    z-index: 1;
}
.elementor-post__thumbnail__link {
    position: relative;
    display: block;
    overflow: hidden;
}
.elementor-post__thumbnail__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FEATURED BLOG SLIDER ===== */
.blog-featured-slider {
    background-color: rgb(85, 153, 155) !important;
    width: 100%;
    padding: 0 !important;
    box-sizing: border-box;
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* slider-inner: centered container with exact height */
.blog-featured-slider .slider-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    padding: 75px 80px 75px 0;
    box-sizing: border-box;
}

.blog-featured-slider .slider-image {
    flex: 0 0 42%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.blog-featured-slider .slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
    display: block;
}

.blog-featured-slider .slider-content {
    background: #ffffff;
    flex: 0 0 58%;
    height: 75%;
    padding: 40px 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.blog-featured-slider .slider-title {
    font-family: 'Cammron', serif !important;
    font-size: 24px !important;
    font-weight: normal !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    color: #020202 !important;
    line-height: 1.4 !important;
    margin: 0 0 20px 0 !important;
}

.blog-featured-slider .slider-excerpt {
    font-family: 'Catamaran', sans-serif !important;
    font-size: 12px !important;
    color: #444 !important;
    line-height: 1.7 !important;
    margin: 0 0 24px 0 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.blog-featured-slider .slider-read-more {
    display: inline-block;
    background-color: #D66E49 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 24px;
    font-family: 'Catamaran', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    width: fit-content;
    flex-shrink: 0;
}

.blog-featured-slider .slider-read-more:hover {
    background: #1a3a4a;
    color: #fff !important;
}

/* Nav arrows: absolutely positioned inside slider-inner, at center-right */
.blog-featured-slider .slider-nav {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 60px;
}

.blog-featured-slider .slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
    padding: 0;
}

.blog-featured-slider .slider-nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* S4b-4: single-post rules (3) migrated from Customizer Additional CSS. Enqueued via is_singular(post). */


/* ===== HEADING HIERARCHY FIX (blog posts only: H1 700 / H2 section headers 500) ===== */
/* Scoped to single blog posts via body.single-post. High specificity to beat the blog template's
   .elementor-element h2 { font-weight:700 !important } rule. Weight-only – no content/structure edits.
   Subscribe widgets have no class, so they are not targeted and stay unchanged. */

/* H1 title -> 700 */
body.single-post h1.elementor-heading-title,
body.single-post .elementor-widget-heading h1.elementor-heading-title,
body.single-post .elementor-element h1.wp-block-heading,
body.single-post h1.wp-block-heading,
body.single-post .entry-content h1 { font-weight: 700 !important; }

/* H2 section headers -> 500 */
body.single-post h2.elementor-heading-title,
body.single-post .elementor-widget-heading h2.elementor-heading-title,
body.single-post .elementor-element h2.wp-block-heading,
body.single-post .elementor-widget-container h2.wp-block-heading,
body.single-post .entry-content h2.wp-block-heading,
body.single-post h2.wp-block-heading { font-weight: 500 !important; }

/* H2 <strong> wrappers -> 500 */
body.single-post .elementor-element h2.wp-block-heading strong,
body.single-post .elementor-element h2.wp-block-heading b,
body.single-post h2.wp-block-heading strong,
body.single-post h2.wp-block-heading b,
body.single-post h2.elementor-heading-title strong,
body.single-post h2.elementor-heading-title b { font-weight: 500 !important; }