/* ============================================================
   SINGLE BLOG POST
   Template: single.php
============================================================ */

/* Reset overrides */
#single-post-page,
#single-post-page * {
    box-sizing: border-box;
}
#single-post-page {
    text-align: left;
    background: transparent; /* inherits html background: #FBEEC8 + owl.png */
}
#single-post-page img {
    max-width: 100%;
    height: auto;
}
#single-post-page h1,
#single-post-page h2,
#single-post-page h3,
#single-post-page h4 {
    color: inherit;
    font-family: 'Playfair Display', Georgia, serif;
}
.single-content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================
   HERO
======================== */
.single-hero {
    position: relative;
    min-height: 64vh;
    background: #1c2b3a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.22) 40%,
        rgba(0,0,0,0.70) 100%
    );
}
.single-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 52px;
}

/* ========================
   BREADCRUMB
======================== */
.single-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 14px;
}
.single-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.single-breadcrumb a:hover {
    color: #fff;
}
.single-bc-sep {
    opacity: 0.5;
}

/* ========================
   HERO TITLE
======================== */
.single-hero-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(26px, 4.5vw, 54px) !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.15 !important;
    margin: 0 0 14px !important;
    max-width: 860px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.28);
}
.single-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0;
    max-width: 680px;
}

/* ========================
   META BAR
======================== */
.single-meta-bar {
    background: transparent;
    padding: 12px 24px;
}
.single-meta-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.single-meta-by {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #555;
}
.single-meta-by strong {
    color: #111;
    font-weight: 600;
}
.single-meta-sep {
    color: #ccc;
    font-size: 10px;
    flex-shrink: 0;
}
.single-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #777;
}
.single-meta-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.single-meta-social a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.single-meta-social a:hover {
    color: #111;
}

/* ========================
   CONTENT WRAPPER
======================== */
.single-content-wrapper {
    background: transparent;
    padding: 52px 0;
}
.single-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0 44px;
    align-items: start;
}


/* ========================
   POST CONTENT
======================== */
.single-post-main {
    min-width: 0;
}
.single-post-content {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.78;
    color: #333;
}
.single-post-content p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.78;
    color: #444;
}
.single-post-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 44px 0 18px;
    line-height: 1.25;
}
.single-post-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #111;
    margin: 36px 0 14px;
}
.single-post-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 30px 0 12px;
}
.single-post-content blockquote {
    margin: 36px 0;
    padding: 24px 28px 24px 36px;
    border-left: 4px solid #111;
    background: #f8f8f8;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 21px;
    line-height: 1.45;
    color: #111;
    position: relative;
}
.single-post-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 18px;
    font-size: 80px;
    color: #ddd;
    font-family: Georgia, serif;
    line-height: 1;
}
.single-post-content blockquote p {
    margin: 0;
    font-size: 21px;
}
.single-post-content ul,
.single-post-content ol {
    padding-left: 22px;
    margin: 0 0 22px;
}
.single-post-content ul li,
.single-post-content ol li {
    margin-bottom: 8px;
    line-height: 1.65;
    color: #444;
}
.single-post-content img {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 28px 0;
    border-radius: 3px;
}
.single-post-content a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.single-post-content a:hover {
    color: #555;
}
.single-post-content figure {
    margin: 28px 0;
}
.single-post-content figure img {
    margin: 0 0 8px;
}
.single-post-content figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    text-align: center;
}
.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
}
.single-post-content table th,
.single-post-content table td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 14px;
    text-align: left;
}
.single-post-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ========================
   SHARE ROW
======================== */
.single-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    padding: 18px 0;
    margin: 40px 0 24px;
}
.single-share-row-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-right: 6px;
}
.single-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-decoration: none;
    border: 1.5px solid;
    cursor: pointer;
    background: transparent;
    margin: 0;
    border-radius: 0;
    transition: all 0.2s;
}
.single-share-btn-fb {
    border-color: #3b5998;
    color: #3b5998;
}
.single-share-btn-fb:hover {
    background: #3b5998;
    color: #fff;
}
.single-share-btn-tw {
    border-color: #1da1f2;
    color: #1da1f2;
}
.single-share-btn-tw:hover {
    background: #1da1f2;
    color: #fff;
}
.single-share-btn-pi {
    border-color: #e60023;
    color: #e60023;
}
.single-share-btn-pi:hover {
    background: #e60023;
    color: #fff;
}


/* ========================
   RIGHT SIDEBAR
======================== */
.single-right-sidebar {
    position: sticky;
    top: 90px;
    min-width: 0;
}
.single-sidebar-widget {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #ebebeb;
}
.single-sidebar-widget:last-child {
    border-bottom: none;
}
.single-sidebar-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 16px !important;
    padding-bottom: 11px;
    border-bottom: 2px solid #111;
}


/* Latest posts */
.single-sidebar-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.single-sidebar-latest-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.single-sidebar-latest-thumb {
    flex-shrink: 0;
    width: 78px;
    height: 60px;
    overflow: hidden;
    display: block;
    border-radius: 2px;
}
.single-sidebar-latest-thumb img {
    width: 78px !important;
    height: 60px !important;
    object-fit: cover;
    max-width: none !important;
    display: block;
    transition: transform 0.3s;
}
.single-sidebar-latest-thumb:hover img {
    transform: scale(1.06);
}
.single-sidebar-latest-info {
    flex: 1;
    min-width: 0;
}
.single-sidebar-latest-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: color 0.2s;
}
.single-sidebar-latest-title:hover {
    color: #555;
}
.single-sidebar-latest-meta {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #aaa;
}
.single-sidebar-latest-meta span {
    font-style: italic;
}


/* ========================
   RELATED POSTS
======================== */
.single-related {
    padding: 60px 0;
    background: transparent;
}
.single-related-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.single-related-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 32px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;
}


/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1100px) {
    .single-content-grid {
        grid-template-columns: 1fr 260px;
        gap: 0 32px;
    }
}
@media (max-width: 900px) {
    .single-content-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .single-right-sidebar {
        position: static;
        border-top: 1px solid #ebebeb;
        padding-top: 40px;
        margin-top: 40px;
    }
    .single-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .single-hero {
        min-height: 45vh;
    }
    .single-content-wrapper {
        padding: 32px 0;
    }
    .single-related-grid {
        grid-template-columns: 1fr;
    }
    .single-share-row {
        flex-wrap: wrap;
    }
}
