/* ==========================================================================
   Dhol.ai - Modern Editorial Blog Engine & Typography System (blog.css)
   ========================================================================== */

:root {
    --dhol-crimson: #C03248;
    --dhol-crimson-dark: #9E1F33;
    --dhol-crimson-light: rgba(192, 50, 72, 0.08);
    --dhol-bg: #F2E4E4;
    --dhol-text-dark: #0f172a;
    --dhol-text-body: #334155;
    --dhol-text-muted: #64748b;
    --dhol-border: #f1e2e5;
    --dhol-card-bg: #ffffff;
    --dhol-radius-xl: 24px;
    --dhol-radius-lg: 18px;
    --dhol-radius-md: 12px;
    --dhol-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --dhol-shadow-hover: 0 16px 40px rgba(192, 50, 72, 0.12);
}

/* Base Body Background */
body.dhol-blog-page {
    background-color: var(--dhol-bg);
    color: var(--dhol-text-body);
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. BLOG HUB HEADER & CATEGORY TABS
   ========================================================================== */
.dhol-blog-hero {
    padding: 130px 0 35px 0;
    text-align: center;
}

.dhol-blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(192, 50, 72, 0.1);
    color: var(--dhol-crimson);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.dhol-blog-hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.dhol-blog-hero p {
    font-size: 18px;
    color: var(--dhol-text-body) !important;
    max-width: 680px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* Category Filter Tabs */
.dhol-category-tabs-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.dhol-cat-pill {
    padding: 10px 20px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--dhol-border);
    color: var(--dhol-text-body) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.dhol-cat-pill:hover,
.dhol-cat-pill.active {
    background: var(--dhol-crimson);
    color: #ffffff !important;
    border-color: var(--dhol-crimson);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 50, 72, 0.25);
}

/* ==========================================================================
   2. FEATURED HERO ARTICLE CARD
   ========================================================================== */
.dhol-featured-story-card {
    background: #ffffff;
    border-radius: var(--dhol-radius-xl);
    overflow: hidden;
    border: 1px solid var(--dhol-border);
    box-shadow: var(--dhol-shadow-soft);
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

.dhol-featured-story-card:hover {
    box-shadow: var(--dhol-shadow-hover);
    border-color: #f7cbd2;
    transform: translateY(-4px);
}

.dhol-featured-img-wrap {
    position: relative;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}

.dhol-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dhol-featured-story-card:hover .dhol-featured-img {
    transform: scale(1.04);
}

.dhol-featured-content {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dhol-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dhol-text-muted);
}

.dhol-tag-badge {
    background: rgba(192, 50, 72, 0.1);
    color: var(--dhol-crimson);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.dhol-featured-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    line-height: 1.35;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.dhol-featured-story-card:hover h2 {
    color: var(--dhol-crimson);
}

.dhol-featured-content p {
    font-size: 16px;
    color: var(--dhol-text-body) !important;
    line-height: 1.7;
    margin-bottom: 24px;
}

.dhol-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f8eaed;
}

.dhol-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dhol-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dhol-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dhol-text-dark);
    margin: 0;
}

.dhol-author-title {
    font-size: 12px;
    color: var(--dhol-text-muted);
    margin: 0;
}

.dhol-btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dhol-crimson);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(192, 50, 72, 0.25);
}

.dhol-btn-read-more:hover {
    background: var(--dhol-crimson-dark);
    transform: translateX(4px);
    color: #ffffff !important;
}

/* ==========================================================================
   3. STANDARD BLOG POST CARDS GRID
   ========================================================================= */
.dhol-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.dhol-post-card {
    background: #ffffff;
    border-radius: var(--dhol-radius-lg);
    border: 1px solid var(--dhol-border);
    overflow: hidden;
    box-shadow: var(--dhol-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dhol-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dhol-shadow-hover);
    border-color: #f7cbd2;
}

.dhol-post-card-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.dhol-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dhol-post-card:hover .dhol-post-card-thumb img {
    transform: scale(1.06);
}

.dhol-post-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dhol-post-card-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dhol-text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.dhol-post-card:hover h3 {
    color: var(--dhol-crimson);
}

.dhol-post-card-body p {
    font-size: 14.5px;
    color: var(--dhol-text-body) !important;
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.dhol-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f8e8ec;
    font-size: 13px;
    color: var(--dhol-text-muted);
}

.dhol-post-footer .read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   4. STICKY SIDEBAR WIDGETS
   ========================================================================== */
.dhol-blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dhol-sidebar-widget {
    background: #ffffff;
    border-radius: var(--dhol-radius-lg);
    border: 1px solid var(--dhol-border);
    padding: 26px 24px;
    box-shadow: var(--dhol-shadow-soft);
}

.dhol-sidebar-widget h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #fbf0f2;
}

.dhol-sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dhol-crimson);
}

/* Search Box */
.dhol-sidebar-search-box {
    position: relative;
}

.dhol-sidebar-search-box input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #faf8f9;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.dhol-sidebar-search-box input:focus {
    border-color: var(--dhol-crimson);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(192, 50, 72, 0.1);
}

.dhol-sidebar-search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--dhol-crimson);
    font-size: 18px;
    cursor: pointer;
}

/* In-Sidebar Profile Match CTA */
.dhol-sidebar-cta {
    background: linear-gradient(135deg, #C03248 0%, #9E1F33 100%);
    color: #ffffff;
    text-align: center;
    border: none;
}

.dhol-sidebar-cta h4 {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dhol-sidebar-cta h4::after {
    background: #ffffff;
}

.dhol-sidebar-cta p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dhol-sidebar-cta .btn-cta-white {
    background: #ffffff;
    color: var(--dhol-crimson) !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.dhol-sidebar-cta .btn-cta-white:hover {
    background: #fdf2f4;
    transform: scale(1.03);
}

/* Category List */
.dhol-sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dhol-sidebar-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dhol-text-body);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dhol-sidebar-cat-list li a:hover {
    background: #fdf2f4;
    color: var(--dhol-crimson);
    padding-left: 16px;
}

.dhol-sidebar-cat-list li span.count {
    font-size: 12px;
    color: var(--dhol-text-muted);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Recent Posts List */
.dhol-sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dhol-recent-item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.dhol-recent-item img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.dhol-recent-item .info h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dhol-text-dark);
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.dhol-recent-item:hover .info h5 {
    color: var(--dhol-crimson);
}

.dhol-recent-item .info span {
    font-size: 11.5px;
    color: var(--dhol-text-muted);
}

/* ==========================================================================
   5. SINGLE BLOG ARTICLE EDITORIAL LAYOUT
   ========================================================================== */
.dhol-article-header {
    padding: 125px 0 20px 0;
}

.dhol-article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    color: var(--dhol-text-muted);
    margin-bottom: 20px;
}

.dhol-article-breadcrumbs a {
    color: var(--dhol-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dhol-article-breadcrumbs a:hover {
    color: var(--dhol-crimson);
}

.dhol-article-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.dhol-article-subtitle {
    font-size: 19px;
    color: var(--dhol-text-body) !important;
    line-height: 1.6;
    margin-bottom: 24px;
}

.dhol-article-byline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid #ebd7dc;
    border-bottom: 1px solid #ebd7dc;
    margin-bottom: 30px;
}

.dhol-article-hero-cover {
    width: 100%;
    border-radius: var(--dhol-radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--dhol-shadow-soft);
    border: 1px solid var(--dhol-border);
    background: #faf4f5;
    text-align: center;
}

.dhol-article-hero-cover img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #fdf8f9;
}

.dhol-article-hero-cover figcaption {
    padding: 14px 22px;
    background: #ffffff;
    font-size: 13.5px;
    color: var(--dhol-text-muted);
    font-style: italic;
    border-top: 1px solid #f1e2e5;
    text-align: center;
}

/* Main Article Content Typography */
.dhol-article-body {
    background: #ffffff;
    border-radius: var(--dhol-radius-xl);
    border: 1px solid var(--dhol-border);
    padding: 50px 48px;
    box-shadow: var(--dhol-shadow-soft);
    font-size: 17px;
    line-height: 1.8;
    color: #1e293b !important;
}

.dhol-article-body p {
    color: #334155 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    margin-bottom: 24px !important;
}

/* High-Visibility Interlinking & Anchor Styling (Guarantees prominent href visibility) */
.dhol-article-body a,
.dhol-article-body a:link,
.dhol-article-body a:visited,
.dhol-article-body p a,
.dhol-article-body p a:link,
.dhol-article-body p a:visited,
.dhol-article-body li a,
.dhol-article-body span a,
.dhol-article-body h2 a,
.dhol-article-body h3 a,
.dhol-article-body h4 a,
.dhol-article-body a span,
.dhol-article-body a strong,
.dhol-article-body a em,
.dhol-article-body a b,
.dhol-article-body a i,
.dhol-article-body a * {
    color: var(--dhol-crimson) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--dhol-crimson) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.dhol-article-body a:hover,
.dhol-article-body a:hover span,
.dhol-article-body a:hover strong,
.dhol-article-body a:hover em,
.dhol-article-body a:hover b,
.dhol-article-body a:hover *,
.dhol-article-body p a:hover,
.dhol-article-body p a:hover span,
.dhol-article-body p a:hover * {
    color: var(--dhol-crimson-dark) !important;
    background-color: rgba(192, 50, 72, 0.08) !important;
    text-decoration-color: var(--dhol-crimson-dark) !important;
    text-decoration-thickness: 2.5px !important;
    border-radius: 4px !important;
}

.dhol-article-body a:focus-visible {
    outline: 2px solid var(--dhol-crimson);
    outline-offset: 2px;
}

.dhol-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--dhol-radius-md);
    margin: 24px auto;
    display: block;
    box-shadow: var(--dhol-shadow-soft);
}

.dhol-article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.35;
    position: relative;
    padding-left: 18px;
    border-left: 4px solid var(--dhol-crimson);
}

.dhol-article-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--dhol-text-dark);
    margin-top: 30px;
    margin-bottom: 14px;
}

.dhol-article-body ul,
.dhol-article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.dhol-article-body li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.7;
}

/* Drop Cap */
.dhol-drop-cap::first-letter {
    font-size: 64px;
    line-height: 52px;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 4px;
    float: left;
    font-weight: 800;
    color: var(--dhol-crimson);
    font-family: inherit;
}

/* Key Takeaway Callout Box */
.dhol-callout-box {
    background: #fdf6f7;
    border-left: 4px solid var(--dhol-crimson);
    border-radius: 0 var(--dhol-radius-md) var(--dhol-radius-md) 0;
    padding: 24px 28px;
    margin: 35px 0;
}

.dhol-callout-box h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--dhol-crimson);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dhol-callout-box p {
    margin-bottom: 0 !important;
    font-size: 15.5px !important;
    color: #1e293b !important;
    font-weight: 500;
}

/* In-Article Matchmaking CTA Card */
.dhol-in-article-cta {
    background: linear-gradient(135deg, #faf3f4 0%, #ffffff 100%);
    border: 2px dashed #f1cbd1;
    border-radius: var(--dhol-radius-lg);
    padding: 35px 30px;
    text-align: center;
    margin: 45px 0;
}

.dhol-in-article-cta .cta-icon {
    font-size: 38px;
    color: var(--dhol-crimson);
    margin-bottom: 12px;
}

.dhol-in-article-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    margin-bottom: 10px;
}

.dhol-in-article-cta p {
    max-width: 540px;
    margin: 0 auto 20px auto !important;
    font-size: 15px !important;
}

.dhol-in-article-cta .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dhol-crimson);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(192, 50, 72, 0.25);
    transition: all 0.25s ease;
}

.dhol-in-article-cta .btn-cta-primary:hover {
    background: var(--dhol-crimson-dark);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Floating / Sticky Social Share Bar */
.dhol-social-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dhol-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dhol-share-btn.whatsapp { background: #25D366; }
.dhol-share-btn.facebook { background: #1877F2; }
.dhol-share-btn.linkedin { background: #0A66C2; }
.dhol-share-btn.twitter { background: #000000; }
.dhol-share-btn.copy-link { background: #64748b; }

.dhol-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Author Box at Bottom of Article */
.dhol-author-bio-card {
    background: #faf6f7;
    border-radius: var(--dhol-radius-lg);
    border: 1px solid var(--dhol-border);
    padding: 30px;
    display: flex;
    gap: 22px;
    align-items: center;
    margin-top: 45px;
}

.dhol-author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.dhol-author-bio-content h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    margin-bottom: 4px;
}

.dhol-author-bio-content .role {
    font-size: 13px;
    color: var(--dhol-crimson);
    font-weight: 700;
    margin-bottom: 8px;
}

.dhol-author-bio-content p {
    font-size: 14.5px !important;
    color: var(--dhol-text-body) !important;
    margin: 0 !important;
    line-height: 1.6;
}

/* Table of Contents */
.dhol-toc-widget {
    background: #faf7f8;
    border: 1px solid var(--dhol-border);
    border-radius: var(--dhol-radius-md);
    padding: 22px 24px;
    margin: 30px 0;
}

.dhol-toc-widget h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--dhol-text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dhol-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dhol-toc-list a {
    color: var(--dhol-text-body);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dhol-toc-list a:hover {
    color: var(--dhol-crimson);
    padding-left: 4px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .dhol-blog-hero h1 {
        font-size: 34px;
    }
    .dhol-article-title {
        font-size: 30px;
    }
    .dhol-article-body {
        padding: 30px 22px;
    }
    .dhol-featured-content {
        padding: 30px 24px;
    }
}
