/* ============================================================
   Fatraly Fashion Theme – Single Post Override
   Override Flatsome single post featured header
   ============================================================ */

/* ========== FEATURED HEADER (blog_post_style = top) ========== */
.blog-featured-title.featured-title {
    position: relative;
    min-height: 400px !important;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Background image */
.blog-featured-title .page-title-bg {
    position: absolute;
    inset: 0;
}

.blog-featured-title .page-title-bg .title-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center !important;
}

/* Gradient overlay — tông vàng/be Fatraly */
.blog-featured-title .page-title-bg .title-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.5) 40%,
        rgba(166, 136, 93, 0.25) 100%
    ) !important;
}

/* Content container — LEFT ALIGN */
.blog-featured-title .page-title-inner {
    position: relative;
    z-index: 2;
    min-height: auto !important;
    padding-bottom: 48px !important;
    padding-top: 48px !important;
    justify-content: flex-start !important;
}

.blog-featured-title .page-title-inner > .flex-col,
.blog-featured-title .page-title-inner .flex-col.flex-center,
.blog-featured-title .page-title-inner .flex-col.text-center {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
}

/* Force single post content to full-width */
.blog-single .row.align-center > .large-10.col {
    flex-basis: 100% !important;
    max-width: 100% !important;
}

/* Breadcrumb */
.fatraly-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #8A8580;
    margin-bottom: 16px;
    flex-wrap: wrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fatraly-breadcrumb a {
    color: var(--primary-color, #a6885d) !important;
    transition: color 0.2s;
    text-decoration: none;
}

.fatraly-breadcrumb a:hover {
    color: #D4B86A !important;
}

.fatraly-breadcrumb .cur {
    color: #C8C4BE;
}

/* Ẩn category label (đã thay bằng breadcrumb) */
.blog-featured-title .entry-category {
    display: none !important;
}

/* Ẩn divider */
.blog-featured-title .entry-divider {
    display: none !important;
}

/* Ẩn entry-meta trong featured header */
.blog-featured-title .entry-meta {
    display: none !important;
}

/* Title */
.blog-featured-title .entry-title {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em;
}

/* ========== DEFAULT HEADER (non-featured) ========== */
.single-post .page-title:not(.blog-featured-title) {
    background: #1A1A1A !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.single-post .page-title:not(.blog-featured-title) .page-title-inner {
    padding: 48px 0;
}

.single-post .page-title:not(.blog-featured-title) .entry-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* ========== ARTICLE BODY ========== */

.single-post .entry-content p {
    font-size: 1.05rem;
    color: #3A3A3A;
    line-height: 2;
    margin-bottom: 24px;
}

.single-post .entry-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #a6885d);
    display: inline-block;
}

.single-post .entry-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 32px 0 12px;
}

.single-post .entry-content img {
    border-radius: 0;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content blockquote {
    position: relative;
    margin: 40px 0;
    padding: 24px 32px;
    background: rgba(166, 136, 93, 0.08);
    border-left: 4px solid var(--primary-color, #a6885d);
    border-radius: 0;
    font-style: italic;
    color: #3A3A3A;
    font-size: 1.05rem;
    line-height: 1.9;
}

.single-post .entry-content blockquote p {
    margin: 0;
    color: #3A3A3A;
}

/* ========== POST NAVIGATION (Previous/Next) ========== */
.single-post .navigation-post {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.single-post .navigation-post a {
    color: var(--primary-color, #a6885d) !important;
    transition: color 0.2s;
}

.single-post .navigation-post a:hover {
    color: #1A1A1A !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .blog-featured-title.featured-title {
        min-height: 280px !important;
    }

    .blog-featured-title .page-title-inner {
        padding-bottom: 32px !important;
        padding-top: 32px !important;
    }
}
