/* BSB Natbook Frontend Styles - Dashboard Redesign */

/* --- General Reset & Utilities --- */
.bsb-natbook-dashboard {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--e-global-typography-text-font-family);
    color: var(--e-global-color-67833de);
}

.bsb-recent-articles-section .bsb-section-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--e-global-color-fe7ff33);
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family);
    margin: 0 0 32px;
}

.bsb-section-footer {
    text-align: center;
    margin-top: 72px;
}

.bsb-section-footer .bsb-btn-outline {
    display: inline-block;
    padding: 16px 38px;
    border: 1px solid var(--e-global-color-d536683);
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--e-global-color-d536683);
    background-color: transparent;
    transition: all 0.3s ease;
    line-height: 24px;
}

.bsb-btn-outline:hover {
    background-color: #fff;
    color: var(--e-global-color-d536683);
    border-color: var(--e-global-color-d536683);
}

/* --- Breadcrumbs --- */
.bsb-breadcrumbs-wrapper {
    background: var(--e-global-color-bd90e6c);
    padding: 0 10px;
}

.bsb-breadcrumbs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 0;
    font-size: 13px;
    line-height: 20.1px;
    color: var(--e-global-color-c4debf2);
    /* background: var(--e-global-color-b209b6e); */
    font-family: var(--e-global-typography-text-font-family), "DM Sans", Sans-serif;
}

.bsb-breadcrumbs-wrapper .bsb-breadcrumbs a {
    color: var(--e-global-color-c4debf2);
    font-size: 13px;
    line-height: 20.1px;
}

.bsb-breadcrumbs a:hover {
    color: var(--e-global-color-c4debf2);
    text-decoration: underline;
}

.bsb-breadcrumbs span {
    color: var(--e-global-color-c4debf2);
    font-size: 13px;
    line-height: 20.1px;
}

/* --- Destaque Principal (Hero Split) --- */
.bsb-hero-highlight {
    background-color: var(--e-global-color-cecd84d);
    position: relative;
    overflow: hidden;
}
.bsb-hero-wrapper {
    display: grid;
    align-items: center;
    justify-content: center;
    max-width: 1280px;
    padding: 0 20px;
    margin: 0 auto;
    height: 100%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 96px;
    grid-row-gap: 96px;
    min-height: 450px;
}

.bsb-hero-image {
    width: 100%;
}
.bsb-hero-image img.attachment-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bsb-hero-content-box {
    width: 100%;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.bsb-hero-category {
    font-size: 11px;
    text-transform: uppercase;
    line-height: 18.7px;
}

.bsb-hero-content-box .bsb-hero-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 43.2px;
    color: #fff;
    font-family: var(--e-global-typography-primary-font-family);
}

.bsb-hero-excerpt, .bsb-hero-excerpt p {
    font-size: 16px;
    line-height: 27.2px;
    margin: 0;
    margin-block-end: 0 !important;
}

.bsb-hero-content-box .bsb-hero-btn {
    font-size: 16px;
    color: #fff;
    line-height: 27.2px;
    font-weight: 400;
}

/* --- Artigos Recentes Grid --- */
.bsb-recent-articles-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px;
}

.bsb-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 20px;
}

@media (max-width: 991px) {
    .bsb-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .bsb-recent-grid {
        grid-template-columns: 1fr;
    }
}

.bsb-grid-item {
    display: flex;
    flex-direction: column;
}

.bsb-grid-img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 24px;
}

.bsb-grid-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.bsb-grid-cat {
    font-size: 11px;
    text-transform: uppercase;
    line-height: 18.7px;
    color: var(--e-global-color-c4debf2);
}

.bsb-grid-content h4, .bsb-grid-content h4 a {
    font-size: 24px;
    line-height: 31.2px;
    font-family: var(--e-global-typography-primary-font-family);
    color: var(--e-global-color-67833de);
    margin: 0;
}

.bsb-grid-excerpt {
    font-size: 13px;
    color: var(--e-global-color-7b04add);
    line-height: 20.1px;
    flex-grow: 1;
}

.bsb-grid-content .bsb-grid-readmore {
    font-size: 16px;
    line-height: 27.2px;
    color: var(--e-global-color-67833de);
    margin: 0;
}

.bsb-grid-date {
    font-size: 11px;
    color: var(--e-global-color-e517805);
    line-height: 18.7px;
    letter-spacing: 1.1px;
}

/* --- Receitas e Harmonizações --- */
.bsb-recipes-pairings-section {
    background-color: var(--e-global-color-b209b6e);
    padding: 80px 20px;
    margin-bottom: 0;
}

.bsb-recipes-pairings-section-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.bsb-recipes-pairings-section-wrapper h3.bsb-section-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--e-global-color-67833de);
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family);
    margin: 0 0 32px;
}

.bsb-rp-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 991px) {
    .bsb-rp-grid {
        grid-template-columns: 1fr;
    }
}

.bsb-rp-main-item {
    display: flex;
    flex-direction: column;
}

.bsb-rp-img-large img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 24px;
}

.bsb-rp-secondary-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bsb-rp-small-item {
    display: flex;
    flex-direction: column;
}

.bsb-rp-img-small img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 24px;
}

@media (min-width: 600px) and (max-width: 991px) {
    .bsb-rp-secondary-items {
        flex-direction: row;
    }
    .bsb-rp-small-item {
        flex: 1;
    }
}

.bsb-rp-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .bsb-rp-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
}

/* --- Navegação por Categoria (Footer) --- */
.bsb-category-nav-section {
    background-color: var(--e-global-color-8e40936);
    padding: 120px 20px;
    text-align: center;
    margin: 0 0 -120px;
}

.bsb-category-nav-section .bsb-category-nav-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #fff;
    font-weight: 500;
    font-family: var(--e-global-typography-text-font-family);
    margin: 0 0 32px;
}

.bsb-category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.bsb-category-pills .bsb-pill {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--e-global-color-bd90e6c);
    color: var(--e-global-color-67833de);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    line-height: 27.2px;
}
.bsb-pill:hover,
.bsb-pill.active {
    background-color: var(--e-global-color-67833de);
    color: var(--e-global-color-b209b6e);
}

/* --- Archive Grid Specific Styles --- */
.bsb-archive-header-container {
    border-bottom: 1px solid var(--e-global-color-3d017ca);
}

.bsb-archive-header {
    display: flex;
    padding: 0 20px;
    width: 1280px;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0 auto;
    min-height: 200px;
}

.bsb-archive-header .bsb-archive-main-title {
    margin: 0 0 32px;
    font-size: 36px;
    font-weight: 400;
    line-height: 43.2px;
    color: var(--e-global-color-67833de);
    font-family: 'Playfair Display', serif;
}

.bsb-archive-filters {
    margin: 48px 0;
}

.bsb-archive-filters .bsb-category-pills {
    justify-content: flex-start;
}

.bsb-archive-grid-section {
    max-width: 1280px;
    margin: 0 auto 0px;
    padding: 0 20px;
}

.bsb-pagination {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bsb-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f1ede5;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.bsb-pagination .page-numbers:hover,
.bsb-pagination .page-numbers.current {
    background-color: #274b48;
    color: #fff;
}

/* --- Single Template Styles --- */

.bsb-single-natbook-wrapper {
    background-color: #F6F4ee;
    padding-bottom: 80px;
}

.bsb-single-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.bsb-single-cat {
    margin-bottom: 20px;
}

.bsb-single-title-main {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 3.5rem;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    color: #333;
}

.bsb-single-meta-top {
    font-size: 0.9rem;
    color: #777;
}

.bsb-single-featured-image {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    margin-bottom: 60px;
}

.bsb-single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bsb-single-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.bsb-single-author-box {
    position: absolute;
    left: -200px;
    top: 0;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bsb-author-avatar {
    border-radius: 50%;
    margin-bottom: 10px;
}

.bsb-author-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.bsb-author-date {
    font-size: 0.8rem;
    color: #777;
    display: block;
}

.bsb-single-article {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.bsb-single-article p {
    margin-bottom: 25px;
}

.bsb-single-article blockquote {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #333;
    border-left: 4px solid #274b48;
    padding-left: 20px;
    margin: 40px 0;
}

.bsb-single-related-wines {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.bsb-single-related-wines .bsb-section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* --- New Single Harmonizacao Layout --- */
.bsb-single-natbook-wrapper-new {
    padding-bottom: 80px;
    font-family: 'Inter', sans-serif;
}

.bsb-container {
    max-width: 1280px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.bsb-single-natbook-wrapper-new {
    /* background-color: #F8F6F0; */
    padding-bottom: 80px;
    font-family: var(--e-global-typography-text-font-family);
}


.bsb-single-back-wrapper {
    padding: 16px 0;
}

.bsb-single-back-wrapper .bsb-btn-voltar {
    font-size: 13px;
    color: var(--e-global-color-c4debf2);
    line-height: 20.1px;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.bsb-single-back-wrapper .bsb-btn-voltar img {
    width: 10px;
}

.bsb-single-header-new {
    text-align: left;
    width: 100%;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bsb-single-cat-text {
    color: var(--e-global-color-408f40e);
    font-size: 11px;
    text-transform: uppercase;
    line-height: 18.7px;
    /* font-weight: 700; */
    /* margin-bottom: 15px; */
}

.bsb-single-header-new .bsb-single-title-main {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--e-global-color-67833de);
    margin: 0;
    line-height: 43.2px;
    text-align: left;
}

.bsb-single-subtitle {
    font-size: 1.25rem;
    font-family: 'Inter', sans-serif;
    color: #555;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.bsb-single-meta-top-new {
    font-size: 11px;
    color: var(--e-global-color-e517805);
    line-height: 18.7px;
    letter-spacing: 1.1px;
}

.bsb-single-meta-top-new strong {
    color: #333;
}

.bsb-single-meta-top-new .sep {
    margin: 0 3px;
    color: var(--e-global-color-e517805);
}

.bsb-single-featured-image-full {
    width: 100%;
    margin-bottom: 60px;
}

.bsb-single-featured-image-full img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

.bsb-single-content-wrapper-new {
    max-width: 800px;
    margin: 0 auto;
}

.bsb-single-article-new {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.bsb-single-article-new p {
    margin-bottom: 25px;
}

.bsb-single-article-new h2, 
.bsb-single-article-new h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
}

.bsb-single-article-new blockquote {
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #333;
    border-left: 4px solid #d1c8ab; /* Bege dourado */
    padding-left: 25px;
    margin: 40px 0;
    background: #fdfbf7;
    padding: 25px;
}

@media (max-width: 768px) {
    .bsb-single-header-new .bsb-single-title-main {
        font-size: 2.5rem;
    }
    
    .bsb-single-subtitle {
        font-size: 1.1rem;
    }
}

/* --- Elementor Widget: Natbook Articles --- */

.bsb-natbook-elementor-widget {
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout A (Destaque + 2 Empilhados) */
.bsb-natbook-grid-a {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.bsb-natbook-grid-a > .bsb-card-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}

.bsb-natbook-grid-a > .bsb-card-small a.bsb-card-img-link {
    flex: 100%;
}

.bsb-natbook-grid-a > .bsb-card-small a.bsb-card-img-link img.bsb-card-img {
    aspect-ratio: 1 / 1;
}

.bsb-natbook-grid-a > .bsb-card-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.bsb-natbook-grid-a > .bsb-card-small:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin: 0 0 -16px;
}

.bsb-natbook-grid-a > .bsb-card-small:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Layout B (Destaque + 2 Lado a Lado) */
.bsb-natbook-grid-b {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.bsb-natbook-grid-b > .bsb-card-large {
    grid-column: 1 / 2;
}

.bsb-natbook-grid-b > .bsb-card-small:nth-child(2) {
    grid-column: 2 / 3;
}

.bsb-natbook-grid-b > .bsb-card-small:nth-child(3) {
    grid-column: 3 / 4;
}

/* Layout C (Grelha 3 Colunas) */
.bsb-natbook-grid-c {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Card Styles */
.bsb-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bsb-card-img-link {
    display: block;
    overflow: hidden;
}

.bsb-article-card img.bsb-card-img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    margin: 0 0 16px;
}

.bsb-card-large img.bsb-card-img {
    aspect-ratio: 15 / 10;
}

.bsb-card-small img.bsb-card-img {
    aspect-ratio: 4/3;
}

.bsb-card-img-link:hover img.bsb-card-img {
    transform: scale(1.03);
}

.bsb-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

span.bsb-card-cat {
    font-size: 11px;
    text-transform: uppercase;
    line-height: 18.7px;
    color: var(--e-global-color-e517805);
    display: block;
}

.bsb-card-content h3.bsb-card-title, .bsb-card-content h3.bsb-card-title a {
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: 400;
    color: #000;
    line-height: 31.2px;
    font-size: 24px;
    margin: 0;
}

.bsb-card-excerpt {
    font-size: 16px;
    line-height: 27.2px;
    color: var(--e-global-color-f2f53bb);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

a.bsb-card-read-more {
    font-size: 16px;
    line-height: 27.2px;
    color: var(--e-global-color-67833de);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bsb-natbook-widget-footer {
    text-align: center;
    margin: 72px 0 0;
}

.bsb-natbook-widget-footer a.bsb-btn-outline {
    border: 1px solid var(--e-global-color-67833de);
    color: var(--e-global-color-67833de);
    text-transform: none;
    font-family: var(--e-global-typography-text-font-family);
    line-height: 27.2px;
    font-size: 16px;
    padding: 14px 32px;
    font-weight: 400;
    background: transparent;
}

.bsb-natbook-widget-footer .bsb-btn-outline:hover {
    color: var(--e-global-color-67833de);
    background: transparent;
}

/* Responsive */
@media (max-width: 991px) {
    .bsb-natbook-grid-a,
    .bsb-natbook-grid-b,
    .bsb-natbook-grid-c {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bsb-natbook-grid-a > .bsb-card-large,
    .bsb-natbook-grid-b > .bsb-card-large {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    
    .bsb-natbook-grid-a > .bsb-card-small:nth-child(n),
    .bsb-natbook-grid-b > .bsb-card-small:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 767px) {
    .bsb-natbook-grid-a,
    .bsb-natbook-grid-b,
    .bsb-natbook-grid-c {
        grid-template-columns: 1fr;
    }

    .bsb-natbook-grid-a > .bsb-card-large,
    .bsb-natbook-grid-b > .bsb-card-large {
        grid-column: 1 / 2;
    }
}
