/* =============================================================
   BLOG DETAIL PAGE (single.php) — single-post.css
   Premium dark theme with gold accents
   ============================================================= */

/* ── Banner Adjustments for Long Titles ── */
.blog-single-banner .inner h1 {
    font-size: 54px !important;
    /* Smaller than default 80px */
    line-height: 1.25em !important;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

@media only screen and (max-width: 767px) {
    .blog-single-banner .inner h1 {
        font-size: 36px !important;
    }
}

/* ── Featured Image Hero ── */
.blog-detail-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-detail-hero .hero-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 8s ease;
}

.blog-detail-hero:hover .hero-image {
    transform: scale(1.05);
}

.blog-detail-hero .hero-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(23, 24, 25, 0.3) 0%,
            rgba(23, 24, 25, 0.6) 60%,
            rgba(23, 24, 25, 1) 100%);
    z-index: 1;
}

.blog-detail-hero .hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 2;
}

/* ── Post Header / Meta Area ── */
.blog-detail-header {
    position: relative;
    padding: 0 0 40px;
    border-bottom: 1px solid rgba(228, 197, 144, 0.15);
    margin-bottom: 50px;
}

.blog-detail-header {
    border-bottom-color: rgba(228, 197, 144, 0.3);
    max-width: 820px;
    margin: 0 auto 50px;
}

.blog-detail-header .post-category {
    display: inline-block;
    font-family: var(--font-family-DMsans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--body-bg-color);
    background: var(--main-color);
    padding: 6px 18px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.blog-detail-header .post-category:hover {
    background: #fff;
    color: var(--body-bg-color);
}

.blog-detail-header .post-category a {
    color: inherit;
    text-decoration: none;
}

.blog-detail-featured-image {
    width: 100%;
    height: 450px;
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-detail-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.blog-detail-header .post-title {
    font-family: var(--font-family-Forum);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.blog-detail-header .post-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    font-family: var(--font-family-DMsans);
    font-size: 14px;
    color: #666;
}

.blog-detail-header .post-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-header .post-meta-bar .meta-item i {
    color: var(--main-color);
    font-size: 14px;
}

.blog-detail-header .post-meta-bar .meta-item a {
    color: #666;
    transition: color 0.3s ease;
}

.blog-detail-header .post-meta-bar .meta-item a:hover {
    color: var(--main-color);
}

.blog-detail-header .meta-divider {
    width: 1px;
    height: 16px;
    background: rgba(228, 197, 144, 0.3);
}

/* ── Main Content Area ── */
.blog-detail-section {
    position: relative;
    padding: 80px 0 100px;
    background-color: #faf6f0;
}

.blog-detail-content-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

/* ── Article Content ── */
.blog-detail-article {
    width: 100%;
}

.blog-detail-article .text-content {
    position: relative;
    font-family: var(--font-family-DMsans);
    font-size: 17px;
    line-height: 1.9;
    color: #444;
}

.blog-detail-article .text-content p {
    margin-bottom: 28px;
}

.blog-detail-article .text-content h2,
.blog-detail-article .text-content h3,
.blog-detail-article .text-content h4,
.blog-detail-article .text-content h5 {
    font-family: var(--font-family-Forum);
    color: #1a1a1a;
    margin-top: 45px;
    margin-bottom: 20px;
}

.blog-detail-article .text-content h2 {
    font-size: 36px;
}

.blog-detail-article .text-content h3 {
    font-size: 28px;
}

.blog-detail-article .text-content h4 {
    font-size: 22px;
}

.blog-detail-article .text-content a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.blog-detail-article .text-content a:hover {
    color: #1a1a1a;
}

.blog-detail-article .text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 30px 0;
}

.blog-detail-article .text-content blockquote,
.blog-detail-article .text-content .wp-block-quote {
    position: relative;
    margin: 40px 0;
    padding: 30px 35px 30px 40px;
    border-left: 4px solid var(--main-color);
    background: rgba(228, 197, 144, 0.12);
    font-family: var(--font-family-Forum);
    font-size: 22px;
    line-height: 1.6;
    color: #1a1a1a;
    font-style: italic;
}

.blog-detail-article .text-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 80px;
    color: var(--main-color);
    opacity: 0.25;
    font-family: var(--font-family-Forum);
    line-height: 1;
}

.blog-detail-article .text-content blockquote p {
    margin-bottom: 0;
}

.blog-detail-article .text-content blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    font-family: var(--font-family-DMsans);
    font-style: normal;
    color: var(--main-color);
    letter-spacing: 0.05em;
}

.blog-detail-article .text-content ul,
.blog-detail-article .text-content ol {
    margin: 25px 0;
    padding-left: 25px;
}

.blog-detail-article .text-content ul li,
.blog-detail-article .text-content ol li {
    margin-bottom: 12px;
    padding-left: 8px;
}

.blog-detail-article .text-content ul li {
    list-style-type: disc;
}

.blog-detail-article .text-content ol li {
    list-style-type: decimal;
}

.blog-detail-article .text-content ul li::marker,
.blog-detail-article .text-content ol li::marker {
    color: var(--main-color);
}

.blog-detail-article .text-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.blog-detail-article .text-content table th,
.blog-detail-article .text-content table td {
    padding: 12px 18px;
    border: 1px solid rgba(228, 197, 144, 0.15);
    text-align: left;
}

.blog-detail-article .text-content table th {
    background: rgba(228, 197, 144, 0.08);
    color: var(--main-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
}

/* ── Tags Section ── */
.blog-detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid rgba(228, 197, 144, 0.3);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.blog-detail-tags .tags-label {
    font-family: var(--font-family-DMsans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--main-color);
    margin-right: 5px;
}

.blog-detail-tags a {
    display: inline-block;
    font-family: var(--font-family-DMsans);
    font-size: 13px;
    color: #555;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.blog-detail-tags a:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

/* ── Share Section ── */
.blog-detail-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 35px;
    border-bottom: none;
}

.blog-detail-share .share-label {
    font-family: var(--font-family-DMsans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--main-color);
}

.blog-detail-share .share-links {
    display: flex;
    gap: 10px;
}

.blog-detail-share .share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #555;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.blog-detail-share .share-links a:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    transform: translateY(-3px);
}

/* ── Author Box ── */
.blog-detail-author {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 50px;
    padding: 40px;
    background: rgba(228, 197, 144, 0.12);
    border: 1px solid rgba(228, 197, 144, 0.25);
}

.blog-detail-author .author-avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--main-color);
}

.blog-detail-author .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-author .author-info {
    flex: 1;
}

.blog-detail-author .author-label {
    font-family: var(--font-family-DMsans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--main-color);
    margin-bottom: 6px;
}

.blog-detail-author .author-name {
    font-family: var(--font-family-Forum);
    font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.blog-detail-author .author-bio {
    font-family: var(--font-family-DMsans);
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* ── Post Navigation ── */
.blog-detail-navigation {
    display: flex;
    margin-top: 60px;
    border-top: 1px solid rgba(228, 197, 144, 0.3);
    border-bottom: 1px solid rgba(228, 197, 144, 0.3);
}

.blog-detail-navigation .nav-item {
    flex: 1;
    padding: 35px 0;
    transition: background 0.3s ease;
}

.blog-detail-navigation .nav-item:hover {
    background: rgba(228, 197, 144, 0.1);
}

.blog-detail-navigation .nav-item.nav-next {
    text-align: right;
    border-left: 1px solid rgba(228, 197, 144, 0.3);
    padding-left: 30px;
}

.blog-detail-navigation .nav-item.nav-prev {
    padding-right: 30px;
}

.blog-detail-navigation .nav-item .nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-DMsans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--main-color);
    margin-bottom: 8px;
}

.blog-detail-navigation .nav-item.nav-next .nav-label {
    justify-content: flex-end;
}

.blog-detail-navigation .nav-item .nav-title {
    font-family: var(--font-family-Forum);
    font-size: 22px;
    line-height: 1.3;
    color: #1a1a1a;
}

.blog-detail-navigation .nav-item .nav-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-detail-navigation .nav-item .nav-title a:hover {
    color: var(--main-color);
}

/* ── Sidebar ── */
.blog-detail-sidebar {
    width: 340px;
    flex-shrink: 0;
}

.sidebar-widget {
    margin-bottom: 45px;
    padding: 35px;
    background: #fff;
    border: 1px solid rgba(228, 197, 144, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget .widget-title {
    font-family: var(--font-family-Forum);
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(228, 197, 144, 0.3);
    position: relative;
}

/* Recent Posts Widget */
.sidebar-recent-posts .recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-recent-posts .recent-post-item:first-child {
    padding-top: 0;
}

.sidebar-recent-posts .recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-recent-posts .recent-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 70px;
    overflow: hidden;
}

.sidebar-recent-posts .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sidebar-recent-posts .recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.1);
}

.sidebar-recent-posts .recent-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-recent-posts .recent-post-date {
    font-family: var(--font-family-DMsans);
    font-size: 12px;
    color: var(--main-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-recent-posts .recent-post-title {
    font-family: var(--font-family-Forum);
    font-size: 17px;
    line-height: 1.3;
    color: #1a1a1a;
}

.sidebar-recent-posts .recent-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-recent-posts .recent-post-title a:hover {
    color: var(--main-color);
}

/* Categories Widget */
.sidebar-categories ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-categories ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family-DMsans);
    font-size: 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-categories ul li a:hover {
    color: var(--main-color);
    padding-left: 8px;
}

.sidebar-categories ul li a .count {
    font-size: 12px;
    background: rgba(228, 197, 144, 0.1);
    color: var(--main-color);
    padding: 2px 10px;
    min-width: 30px;
    text-align: center;
}

/* CTA Widget */
.sidebar-cta {
    text-align: center;
    background: rgba(228, 197, 144, 0.15) !important;
}

.sidebar-cta .widget-title.cta-title {
    text-align: left;
    border-bottom: 1px solid rgba(228, 197, 144, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* ── Related Posts Section ── */
.blog-related-section {
    position: relative;
    padding: 80px 0 100px;
    background-color: #faf6f0;
}

.blog-related-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-related-section .section-header .subtitle {
    font-family: var(--font-family-DMsans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--main-color);
    margin-bottom: 5px;
}

.blog-related-section .section-header .pattern-image {
    width: 100px;
    margin: 0 auto;
}

.blog-related-section .section-header h2 {
    font-family: var(--font-family-Forum);
    font-size: 48px;
    color: #1a1a1a;
    margin-top: 5px;
}

/* ── Decorative Separator ── */
.blog-detail-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}

.blog-detail-separator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 1px solid var(--main-color);
    transform: rotate(45deg);
}

.blog-detail-separator span:nth-child(2) {
    width: 10px;
    height: 10px;
}

/* ── Back to Blog Button ── */
.blog-detail-back {
    text-align: center;
    margin-top: 60px;
}

/* ── Responsive Styles ── */
@media only screen and (max-width: 1199px) {
    .blog-detail-content-wrapper {
        flex-direction: column;
    }

    .blog-detail-sidebar {
        width: 100%;
    }

    .blog-detail-hero {
        height: 400px;
    }

    .blog-detail-header .post-title {
        font-size: 40px;
    }
}

@media only screen and (max-width: 991px) {
    .blog-detail-section {
        padding: 60px 0 80px;
    }

    .blog-detail-hero {
        height: 350px;
    }

    .blog-detail-header .post-title {
        font-size: 34px;
    }

    .blog-detail-header .post-meta-bar {
        gap: 15px;
    }

    .blog-detail-header .meta-divider {
        display: none;
    }

    .blog-detail-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-detail-navigation .nav-item .nav-title {
        font-size: 18px;
    }

    .blog-related-section .section-header h2 {
        font-size: 38px;
    }
}

@media only screen and (max-width: 767px) {
    .blog-detail-section {
        padding: 40px 0 60px;
    }

    .blog-detail-hero {
        height: 280px;
    }

    .blog-detail-hero .hero-content {
        bottom: 30px;
    }

    .blog-detail-header {
        padding-bottom: 25px;
        margin-bottom: 35px;
    }

    .blog-detail-header .post-title {
        font-size: 28px;
    }

    .blog-detail-article .text-content {
        font-size: 16px;
    }

    .blog-detail-article .text-content blockquote {
        padding: 20px 20px 20px 25px;
        font-size: 18px;
    }

    .blog-detail-navigation {
        flex-direction: column;
    }

    .blog-detail-navigation .nav-item.nav-next {
        text-align: left;
        border-left: none;
        border-top: 1px solid rgba(228, 197, 144, 0.15);
        padding-left: 0;
    }

    .blog-detail-navigation .nav-item.nav-next .nav-label {
        justify-content: flex-start;
    }

    .blog-detail-navigation .nav-item.nav-prev {
        padding-right: 0;
    }

    .blog-detail-share {
        flex-wrap: wrap;
    }

    .blog-detail-author {
        padding: 25px;
    }

    .sidebar-widget {
        padding: 25px;
    }

    .blog-related-section {
        padding: 60px 0 70px;
    }

    .blog-related-section .section-header h2 {
        font-size: 32px;
    }
}

@media only screen and (max-width: 575px) {
    .blog-detail-header .post-title {
        font-size: 24px;
    }

    .blog-detail-header .post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-detail-content-wrapper {
        gap: 40px;
    }
}