/*
Theme Name: Blogs Webplus V8 Child
Theme URI: https://www.marbellavillage.es/blog/
Description: Child theme for Blogs Webplus V8
Author: Mustapha
Template: blogs-webplus-v8-master
Version: 1.0
*/

/* Child theme CSS goes here */

/* -----------------------------------------------------------------------
 * The Seasons – self-hosted font
 * --------------------------------------------------------------------- */
@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/The-Seasons-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/The-Seasons-Light-Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/The-Seasons-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/The-Seasons-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/The-Seasons-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/The-Seasons-Bold-Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}


/* CSS Reset & Base Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f7f1eb;
    /* Light beige background based on the design image */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'The Seasons', Georgia, serif;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    color: #e76046;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #d0533c;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#logo img{
	width: auto;
    max-width: 300px !important;
    height: 50px;

}

#its--global-container {
    background-color: #f5ede6;
}

/* Reset/Hide Parent Styles that conflict */
main.its--blog_content>.categories-box {
    display: none !important;
}

main.its--blog_content>.searchform {
    display: none !important;
}

div#primary>.page-title,
div#primary>hr.page-title {
    display: none !important;
}



.its--blog header#header #lower_header {
    border-bottom: none !important;
}

/* Hero Banner Tuning (contained, rounded) */
#top {
    background-color: #f7f1eb;
}

.ts-custom-blog-wrapper {
    padding: 50px 0 20px;
}

.custom-child-banner-wrapper {
    background-image:
        linear-gradient(to bottom,
            white 0%,
            white 50%,
            transparent 50%,
            transparent 100%);
    padding: 0 12.5px;

}



.custom-child-banner {
    max-width: 1500px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;


}

.caption-seccion.custom-hero-caption {
    padding: 44px 20px 24px;
}

.custom-child-banner {
    height: clamp(250px, 25vw, 328px);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
}

.custom-child-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
}



.custom-child-banner .caption-seccion.custom-hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.custom-hero-title {
    color: #FFF;
    text-align: center;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 700;
    line-height: normal;
    margin-bottom: clamp(10px, 2vw, 30px);
    font-family: 'The Seasons', Georgia, serif;

}

.custom-hero-subtitle {
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: clamp(16px, 2vw, 24px);
    font-style: normal;
    font-weight: 400;
    line-height: 133.333%;
    max-width: 50ch;
    margin: 0 auto;
}

/* Custom Grid */
.ts-custom-container {
    max-width: 100%;
    width: 1300px;
    padding: 0 12.5px;
    margin: 0 auto;
    display: flex;
    gap: calc(40px + 2vw);
    /* margin: 20px 0 60px; */
    align-items: flex-start;
}

.ts-blog-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ts-blog-main {
    flex: 1;
}

/* Sidebar Categories Widget */
.ts-categories-card {
    padding: 28px 28px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #FFF;
}


.ts-widget-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif !important;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

.ts-categories-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-categories-list ul li {
    margin: 0;
    /* border-bottom: 1px solid #f2f2f2; */
}

.ts-categories-list ul li:last-child {
    /* border-bottom: none; */
    margin-bottom: 8px;
    /* space above the ::after bar */
}

.ts-categories-list ul li a {
    display: block;
    padding: 11px 0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.15s ease, padding-left 0.15s ease;

    color: #5A5A5A;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
}

.ts-categories-list ul li a:hover {
    color: #D85135;
    padding-left: 4px;
}


/* Sidebar Book Button */
.ts-btn-book {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #e76046;
    color: #fff;
    padding: 16px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(231, 96, 70, 0.4);
    border-radius: 10px;
    background: #D85135;
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.ts-btn-book:hover {
    color: #fff;
    text-decoration: none;
    background: #FF7D62;
}

/* Sidebar Promo (Image Background) */
.ts-promo-card-widget {
    width: 100%;
}

.ts-promo-card {
    /* Using dummy landscape image, later users can replace it */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1542314831-c6a4d14d8c53?auto=format&fit=crop&q=80') center/cover;
    border-radius: 10px;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ts-promo-discount {
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Inter', sans-serif;
    color: #FFF;
    text-align: center;
    font-size: 23px;
    font-weight: 700;
    line-height: normal;
}

.ts-promo-center {
    margin: 25px 0 auto;
}

.ts-promo-highlight {
    margin-bottom: 5px;
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: 128.2%;
    /* 32.05px */
    text-transform: uppercase;
}

.ts-promo-tiny {
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 128.2%;
    max-width: 16ch;
    margin: 0 auto;
}

.ts-btn-promo {
    padding: 8px 24px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);


    color: #FFF;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border-radius: 70px;
    border: 1px solid #FFF;
    margin-top: clamp(40px, 4vw, 70px);
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ts-btn-promo:hover {
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.30);
    color: white;
}

/* Posts Grid */
.ts-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ts-post-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    height: 370px;
}

.ts-post-tb {
    flex: 0 0 45%;
    overflow: hidden;
}

.ts-post-tb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ts-post-card:hover .ts-post-tb img {
    transform: scale(1.05);
}

.ts-post-content {
    flex: 1;
    padding: 28px 30px 36px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Post Meta Top */
.ts-post-meta {
    display: flex;
    justify-content: start;
    gap: calc(10px + 1vw);
    align-items: center;
    margin-bottom: 18px;
    font-size: 11px;
    color: #777;
}

.ts-post-date {
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    color: #5A5A5A;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
}

.ts-post-tags {
    display: flex;
    gap: 6px;
}

.ts-post-tag {
    border: 1px solid #eba495;
    color: #e76046;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    color: #D85135;
    text-align: center;
    font-family: Inter;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* Post Content */
.ts-post-title {
    margin: 0 0 15px;
    line-height: 1.25;
    font-family: 'The Seasons', Georgia, serif;
    letter-spacing: -0.2px;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.ts-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.ts-post-title a:hover {
    color: #e76046;
    text-decoration: none;
}

.ts-post-excerpt {
    flex: 1;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    color: #5A5A5A;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    /* 169.231% */
}

.ts-post-excerpt p {
    margin-bottom: 0;
}

.ts-post-readmore {
    font-size: 11px;
    font-weight: bold;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ts-post-readmore:hover {
    color: #e76046;
}

/* Pagination */
.ts-pagination {
    margin-top: 50px;
    text-align: right;
}

.ts-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: #fff;
    color: #e76046;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ts-pagination a:hover {
    box-shadow: 0 4px 15px rgba(231, 96, 70, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .ts-custom-container {
        flex-direction: column;
    }

    .ts-blog-sidebar {
        width: 100%;
        flex: auto;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ts-categories-card {
        flex: 1;
        min-width: 250px;
    }

    .ts-book-btn-widget {
        width: 100%;
        order: -1;
    }

    .ts-promo-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 767px) {
    .ts-post-card {
        flex-direction: column;
        height: auto;
    }

    .ts-post-tb {
        height: 250px;
    }

    .ts-custom-container {
        gap: 20px;
    }
}

/* Single Page Specifics */
.ts-single-container {
    justify-content: center;
}

.ts-custom-container.ts-single-container {
    max-width: 1042px;
    width: 100%;
    padding: 0 12.5px;
}

.ts-single-main {
    width: 100%;
    max-width: 1042px;
}

.ts-single-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 50px 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.ts-single-tags {
    justify-content: start;
    margin-bottom: 25px;
}

.ts-single-tags .ts-post-tag {
    border-color: #333;
    color: #333;
    font-size: 11px;
    padding: 6px 18px;
}

.ts-single-title {
    font-size: 42px;
    text-align: start;
    margin-bottom: 40px;
    font-weight: 700;
}

.ts-single-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.ts-single-post-content img {
    border-radius: 8px;
    margin: 30px 0;
}

.ts-single-post-content h2,
.ts-single-post-content h3 {
    font-family: Inter, sans-serif;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.ts-single-post-content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.ts-related-container {
    flex-direction: column;
    align-items: stretch;
    margin-top: 40px;
}

.ts-custom-container.ts-related-container {
    max-width: 1042px;
    width: 100%;
    padding: 0 12.5px;
}

.ts-related-title {
    font-weight: 900;
    margin-bottom: 30px;
    text-align: start;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.ts-related-grid {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.ts-related-card {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.ts-related-tb {
    height: 200px;
    border-radius: 10px;
    aspect-ratio: 327/227;
    overflow: hidden;
}

.ts-related-tb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;

}

.ts-related-card:hover .ts-related-tb img {
    transform: scale(1.05);
}

.ts-related-content {
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.ts-related-post-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'The Seasons', Georgia, serif;
    line-height: 1.3;
    font-weight: 700;
    color: var(--Dark, #222);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.ts-related-post-title a {
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em;
}

.ts-related-post-title a:hover {
    color: #e76046;
}

.ts-related-footer {
    margin-top: 0px;
}

@media (max-width: 767px) {
    .ts-single-post-card {
        padding: 30px 20px;
    }

    .ts-single-title {
        font-size: 28px;
    }
}

.wpml-ls-statics-footer.wpml-ls.wpml-ls-legacy-list-horizontal {
    display: none;
}

/* -----------------------------------------------------------------------
 * Footer CTA Section & Chat Widget
 * --------------------------------------------------------------------- */

.ts-footer-cta-section {
    padding: 60px 0 80px;
}

/* Widget Container (reused ts-custom-container logic but no flex-sidebar) */
.ts-footer-cta-section .ts-custom-container {
    display: block;
    width: 100%;
    max-width: 1377px;
    margin: 0 auto;
    padding: 0 12.5px;
    /* Override flex */
}

.ts-chat-widget {
    background-color: #D85135;
    /* Primary orange/red from design */
    border-radius: 12px;
    padding: 60px;
    width: 100%;
    color: #FFF;
    box-shadow: 0 4px 20px rgba(216, 81, 53, 0.15);
}

.ts-chat-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 978px;
    margin: 0 auto;
}

.ts-chat-title {
    font-family: 'The Seasons', Georgia, serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    color: #FFF;
    flex: 1;
}

.ts-btn-chat {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    color: #FFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ts-btn-chat:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFF;
    color: #FFF;
}

.ts-btn-chat svg {
    width: 20px;
    height: 20px;
}

/* Responsive CTA */
@media (max-width: 991px) {
    .ts-chat-widget {
        padding: 40px;
    }

    .ts-chat-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .ts-chat-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .ts-footer-cta-section {
        padding: 40px 0 60px;
    }

    .ts-chat-widget {
        padding: 30px 20px;
    }

    .ts-chat-title {
        font-size: 24px;
    }
}