/**
 * Chief Magazine - Single Post Editorial Styles
 * Scope: .chief-single-post-page
 */

.chief-single-post-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111111;
    background-color: #FFFFFF;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 60px;
}

.chief-post-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* BREADCRUMBS */
.chief-post-breadcrumbs {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chief-post-breadcrumbs a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chief-post-breadcrumbs a:hover {
    color: #BA0000;
}

.chief-post-breadcrumbs-sep {
    color: #CBD5E1;
}

/* POST HEADER */
.chief-post-header {
    margin-bottom: 32px;
}

.chief-post-title {
    font-size: 46px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    margin: 16px 0 20px 0;
    letter-spacing: -0.5px;
}

.chief-post-excerpt {
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
}

.chief-post-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748B;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.chief-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.chief-post-meta-author {
    font-weight: 700;
    color: #0F172A;
}

.chief-post-meta-dot {
    color: #CBD5E1;
}

/* FEATURED MEDIA */
.chief-post-featured-wrapper {
    margin-bottom: 36px;
}

.chief-post-featured-img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.chief-post-caption {
    font-size: 13px;
    color: #64748B;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.5;
}

/* MAIN LAYOUT: CONTENT (70%) & SIDEBAR (30%) */
.chief-post-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.chief-post-main {
    flex: 1 1 70%;
    min-width: 0;
    position: relative;
}

.chief-post-sidebar {
    flex: 0 0 320px;
    min-width: 0;
}

/* STICKY SOCIAL SHARE RAIL (DESKTOP) */
.chief-share-rail-desktop {
    position: absolute;
    top: 0;
    left: -64px;
    width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.chief-share-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 1px;
}

.chief-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chief-share-btn:hover {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ARTICLE BODY TYPOGRAPHY */
.chief-entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1E293B;
}

.chief-entry-content p {
    margin-bottom: 24px;
}

.chief-entry-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
    margin: 40px 0 16px 0;
    border-left: 4px solid #BA0000;
    padding-left: 14px;
    letter-spacing: -0.3px;
}

.chief-entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 32px 0 14px 0;
}

.chief-entry-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.chief-entry-content ol li {
    margin-bottom: 12px;
    font-weight: 500;
}

.chief-entry-content ol li strong {
    color: #0F172A;
    font-weight: 700;
}

.chief-entry-content ul {
    margin: 24px 0;
    padding-left: 24px;
}

.chief-entry-content ul li {
    margin-bottom: 10px;
}

.chief-entry-content blockquote {
    border-left: 4px solid #BA0000;
    background: #FFF5F5;
    padding: 24px 28px;
    border-radius: 0 8px 8px 0;
    margin: 36px 0;
    font-size: 19px;
    font-style: italic;
    font-weight: 600;
    color: #0F172A;
    position: relative;
}

.chief-entry-content blockquote::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 54px;
    color: #BA0000;
    line-height: 1;
    display: block;
    margin-bottom: -10px;
}

.chief-entry-content blockquote cite {
    display: block;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    color: #BA0000;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.chief-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

/* POST TAGS PILLS */
.chief-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

.chief-tag-pill {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chief-tag-pill:hover {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

/* BOTTOM SHARE & COMMENT BAR */
.chief-post-share-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin: 32px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.chief-share-bottom-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chief-share-bottom-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #0F172A;
    letter-spacing: 0.5px;
}

.chief-share-icons-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chief-comment-counter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chief-comment-counter-btn:hover {
    border-color: #BA0000;
    color: #BA0000;
}

/* PREVIOUS / NEXT POST NAVIGATION */
.chief-post-nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 36px 0;
}

.chief-post-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chief-post-nav-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chief-post-nav-thumb {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #F1F5F9;
}

.chief-post-nav-meta {
    flex: 1;
    min-width: 0;
}

.chief-post-nav-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #BA0000;
    letter-spacing: 0.5px;
}

.chief-post-nav-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	text-wrap:auto;
}

/* COMMENTS AREA */
.chief-comments-wrapper {
    margin-top: 48px;
    border-top: 2px solid #E2E8F0;
    padding-top: 36px;
}

.chief-comments-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 24px;
}

/* SIDEBAR MODULES */
.chief-sidebar-block {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 28px;
}

.chief-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #BA0000;
}

.chief-sidebar-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chief-sidebar-seeall {
    font-size: 12px;
    font-weight: 700;
    color: #BA0000;
    text-decoration: none;
}

.chief-sidebar-seeall:hover {
    text-decoration: underline;
}

/* RELATED ARTICLES MODULE */
.chief-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chief-related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
}

.chief-related-thumb {
    width: 84px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #F1F5F9;
}

.chief-related-content {
    flex: 1;
    min-width: 0;
}

.chief-related-cat {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #BA0000;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.chief-related-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin: 0 0 4px 0;
    transition: color 0.2s ease;
}

.chief-related-item:hover .chief-related-title {
    color: #BA0000;
}

.chief-related-meta {
    font-size: 11px;
    color: #64748B;
}

/* SIDEBAR NEWSLETTER BOX */
.chief-sidebar-newsletter {
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 28px 24px;
    margin-bottom: 28px;
    text-align: center;
}

.chief-sidebar-newsletter-title {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.chief-sidebar-newsletter-desc {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 20px;
}

.chief-sidebar-newsletter-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1E293B;
    color: #FFFFFF;
    font-size: 13px;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
}

.chief-sidebar-newsletter-input:focus {
    border-color: #BA0000;
}

.chief-sidebar-newsletter-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    background: #BA0000;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chief-sidebar-newsletter-btn:hover {
    background: #990000;
}

.chief-sidebar-newsletter-note {
    font-size: 11px;
    color: #64748B;
    margin-top: 10px;
}

/* CATEGORIES WIDGET */
.chief-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chief-cat-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
}

.chief-cat-list li:last-child {
    border-bottom: none;
}

.chief-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1E293B;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.chief-cat-list a:hover {
    color: #BA0000;
}

.chief-cat-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 10px;
}

/* PROMOTIONAL CARD WITH MOUNTAIN OVERLAY */
.chief-sidebar-promo-card {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=600&q=80') center/cover no-repeat;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 32px 24px;
    margin-bottom: 28px;
}

.chief-promo-title {
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.chief-promo-desc {
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* MOST POPULAR MODULE */
.chief-popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chief-popular-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
}

.chief-popular-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #BA0000;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chief-popular-content {
    flex: 1;
    min-width: 0;
}

.chief-popular-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin: 0 0 4px 0;
    transition: color 0.2s ease;
}

.chief-popular-item:hover .chief-popular-title {
    color: #BA0000;
}

.chief-popular-meta {
    font-size: 11px;
    color: #64748B;
}

/* RESPONSIVE DESIGN */
@media (min-width: 1200px) {
    .chief-post-main {
        padding-left: 54px; /* Room for left floating sticky share rail */
    }

    .chief-share-rail-desktop {
        left: 0;
    }
}

@media (max-width: 1199px) {
    .chief-share-rail-desktop {
        display: none;
    }

    .chief-post-main {
        padding-left: 0;
    }
}

@media (max-width: 992px) {
    .chief-post-layout {
        flex-direction: column;
    }

    .chief-post-main {
        width: 100%;
        flex: 1 1 100%;
    }

    .chief-post-sidebar {
        width: 100%;
        flex: 1 1 100%;
        margin-top: 40px;
    }

    .chief-post-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .chief-post-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .chief-post-title {
        font-size: 26px;
    }

    .chief-post-nav-wrapper {
        grid-template-columns: 1fr;
    }

    .chief-post-share-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
