/* ============================================
   OBC Blog Design Revamp — Magazine Style
   ============================================ */

:root {
    --obc-red: #e31d2b;
    --obc-dark: #1a1a1a;
    --obc-gray: #666;
    --obc-light-gray: #f5f5f5;
    --obc-border: #e0e0e0;
}

/* === Blog Landing - Hero (compact) === */
.obc-blog-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 50px 0 45px;
    overflow: hidden;
}
.obc-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227,29,43,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.obc-blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.obc-blog-hero-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.obc-blog-hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* === Blog Content Wrap === */
.obc-blog-content-wrap {
    padding: 40px 0 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* === Featured Post === */
.obc-blog-featured-section {
    margin-bottom: 40px;
}
.obc-featured-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.obc-featured-post-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.obc-featured-post-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}
.obc-featured-post-image {
    flex: 0 0 45%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-color: var(--obc-light-gray);
}
.obc-featured-post-image-placeholder {
    background: linear-gradient(135deg, #e31d2b 0%, #c41622 100%);
}
.obc-featured-post-body {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.obc-post-category {
    display: inline-block;
    color: var(--obc-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-decoration: none;
}
.obc-featured-post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--obc-dark);
}
.obc-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 13px;
    margin-bottom: 14px;
}
.obc-post-dot {
    color: #ccc;
}
.obc-featured-post-excerpt {
    color: var(--obc-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px;
}
.obc-read-more {
    color: var(--obc-red);
    font-weight: 700;
    font-size: 14px;
    align-self: flex-start;
}

/* === Blog Grid === */
.obc-blog-grid-section {
    margin-top: 20px;
}
.obc-blog-grid-header {
    margin-bottom: 24px;
    border-bottom: 2px solid var(--obc-border);
    padding-bottom: 12px;
}
.obc-blog-grid-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--obc-dark);
    margin: 0;
}
.obc-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* === Post Card === */
.obc-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.obc-post-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.obc-post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.obc-post-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--obc-light-gray);
    transition: transform 0.3s ease;
}
.obc-post-card:hover .obc-post-card-image {
    transform: scale(1.05);
}
.obc-blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--obc-light-gray);
    color: #ccc;
}
.obc-blog-card-image-placeholder svg {
    opacity: 0.5;
}
.obc-post-card-body {
    padding: 20px;
}
.obc-post-card-category {
    display: inline-block;
    color: var(--obc-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-decoration: none;
}
.obc-post-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--obc-dark);
}
.obc-post-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}
.obc-post-card-excerpt {
    color: var(--obc-gray);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* === Pagination === */
.obc-blog-pagination {
    margin-top: 40px;
    text-align: center;
}
.obc-blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--obc-dark);
    background: #fff;
    border: 1px solid var(--obc-border);
    transition: all 0.2s ease;
}
.obc-blog-pagination .page-numbers:hover {
    background: var(--obc-red);
    color: #fff;
    border-color: var(--obc-red);
}
.obc-blog-pagination .page-numbers.current {
    background: var(--obc-red);
    color: #fff;
    border-color: var(--obc-red);
}

/* === Single Post — Magazine Style === */
.obc-single-post-wrap {
    background: #fff;
}

/* Compact header */
.obc-single-post-header {
    padding: 30px 0 16px;
    text-align: center;
}
.obc-single-post-header-inner {
    max-width: 800px;
    margin: 0 auto;
}
.obc-single-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--obc-dark);
    margin: 10px 0 12px;
    letter-spacing: -0.3px;
}
.obc-single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #888;
    font-size: 13px;
    flex-wrap: wrap;
}
.obc-single-post-date,
.obc-single-post-author,
.obc-single-post-reading {
    display: inline-flex;
    align-items: center;
}

/* Quick Answer box */
.obc-quick-answer {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 20px 24px;
    background: var(--obc-light-gray);
    border-left: 4px solid var(--obc-red);
    border-radius: 0 8px 8px 0;
}
.obc-quick-answer-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--obc-red);
    margin-bottom: 6px;
}
.obc-quick-answer-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Featured image inside content */
.obc-single-post-featured-image {
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
}
.obc-single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.obc-single-post-content-wrap {
    padding: 0 0 50px;
}
.obc-single-post-content-inner {
    max-width: 800px;
    margin: 0 auto;
}
.obc-single-post-article {
    margin-bottom: 30px;
}
.obc-single-post-content {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}
.obc-single-post-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--obc-dark);
    line-height: 1.3;
}
.obc-single-post-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 26px 0 10px;
    color: var(--obc-dark);
}
.obc-single-post-content p {
    margin: 0 0 18px;
}
.obc-single-post-content ul,
.obc-single-post-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.obc-single-post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.obc-single-post-content a {
    color: var(--obc-red);
    text-decoration: underline;
}
.obc-single-post-content blockquote {
    border-left: 4px solid var(--obc-red);
    padding: 14px 20px;
    margin: 20px 0;
    background: var(--obc-light-gray);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--obc-gray);
}
.obc-single-post-content img {
    border-radius: 8px;
    margin: 16px 0;
}

/* Tags */
.obc-single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    padding-top: 24px;
    border-top: 1px solid var(--obc-border);
}
.obc-post-tag {
    padding: 5px 12px;
    background: var(--obc-light-gray);
    border-radius: 20px;
    font-size: 12px;
    color: var(--obc-gray);
    text-decoration: none;
    transition: all 0.2s ease;
}
.obc-post-tag:hover {
    background: var(--obc-red);
    color: #fff;
}

/* Share */
.obc-single-post-share {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--obc-border);
    border-bottom: 1px solid var(--obc-border);
    margin-bottom: 30px;
}
.obc-share-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--obc-dark);
}

/* Author Bio */
.obc-single-post-author-bio {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--obc-light-gray);
    border-radius: 10px;
    margin-bottom: 30px;
}
.obc-author-avatar img {
    border-radius: 50%;
}
.obc-author-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.obc-author-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--obc-dark);
}
.obc-author-desc {
    font-size: 14px;
    color: var(--obc-gray);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.obc-single-post-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-radius: 12px;
    padding: 36px 30px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.obc-single-post-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227,29,43,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.obc-single-post-cta .obc-cta-inner {
    position: relative;
    z-index: 2;
}
.obc-single-post-cta h3.obc-cta-title,
.obc-single-post-cta .obc-cta-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
}
.obc-single-post-cta p.obc-cta-text,
.obc-single-post-cta .obc-cta-text {
    color: rgba(255,255,255,0.8) !important;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.obc-single-post-cta .obc-cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.obc-single-post-cta a.obc-cta-btn,
.obc-single-post-cta .obc-cta-btn {
    padding: 12px 24px !important;
    border-radius: 6px;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    -webkit-text-fill-color: #ffffff !important;
}
.obc-single-post-cta a.obc-cta-btn-primary,
.obc-single-post-cta .obc-cta-btn-primary {
    background: var(--obc-red) !important;
    color: #ffffff !important;
    border: none !important;
}
.obc-single-post-cta a.obc-cta-btn-primary:hover,
.obc-single-post-cta .obc-cta-btn-primary:hover {
    background: #c41622 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.obc-single-post-cta a.obc-cta-btn-primary:visited,
.obc-single-post-cta .obc-cta-btn-primary:visited {
    color: #ffffff !important;
}

/* Related Posts */
.obc-related-posts-section {
    margin-bottom: 40px;
}
.obc-related-posts-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--obc-dark);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--obc-border);
}
.obc-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.obc-related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.obc-related-post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.obc-related-post-card a {
    text-decoration: none;
    color: inherit;
}
.obc-related-post-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--obc-light-gray);
}
.obc-related-post-image-placeholder {
    background: linear-gradient(135deg, #e31d2b 0%, #c41622 100%);
}
.obc-related-post-body {
    padding: 16px;
}
.obc-related-post-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 6px;
    color: var(--obc-dark);
}
.obc-related-post-date {
    font-size: 12px;
    color: #999;
}

/* Comments */
.obc-single-post-comments {
    margin-top: 30px;
}

/* Empty State */
.obc-blog-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 16px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .obc-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .obc-related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .obc-featured-post-link {
        flex-direction: column;
    }
    .obc-featured-post-image {
        flex: none;
        min-height: 200px;
        width: 100%;
    }
    .obc-featured-post-body {
        padding: 24px;
    }
    .obc-featured-post-title {
        font-size: 18px;
    }
    .obc-blog-hero-title {
        font-size: 22px;
    }
    .obc-single-post-title {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .obc-blog-grid {
        grid-template-columns: 1fr;
    }
    .obc-related-posts-grid {
        grid-template-columns: 1fr;
    }
    .obc-blog-hero {
        padding: 35px 0 30px;
    }
    .obc-blog-hero-title {
        font-size: 20px;
    }
    .obc-blog-hero-subtitle {
        font-size: 13px;
    }
    .obc-featured-post-body {
        padding: 18px;
    }
    .obc-featured-post-title {
        font-size: 16px;
    }
    .obc-single-post-header {
        padding: 20px 0 10px;
    }
    .obc-single-post-title {
        font-size: 17px;
    }
    .obc-single-post-content {
        font-size: 15px;
    }
    .obc-single-post-content h2 {
        font-size: 18px;
    }
    .obc-quick-answer {
        padding: 16px 18px;
    }
    .obc-single-post-cta {
        padding: 24px 16px;
    }
    .obc-cta-title {
        font-size: 18px;
    }
    .obc-cta-buttons {
        flex-direction: column;
    }
    .obc-cta-btn {
        display: block;
        text-align: center;
    }
    .obc-single-post-author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .obc-single-post-share {
        flex-direction: column;
        gap: 10px;
    }
    .obc-blog-content-wrap {
        padding: 24px 0 30px;
    }
}
