/* ==========================================================================
   File: assets/css/single-blog.css
   ========================================================================== */

:root {
    --brand-dark-bg: #030712;
    --brand-deep-navy: #0a1128;
    --brand-accent-green: #00d084;
    --brand-accent-green-hover: #00a86b;
    --brand-text-main: #1f2937;
    --brand-text-muted: #6b7280;
    --brand-text-light: #f9fafb;
    --border-light-gray: #e5e7eb;
    
    --radius-premium-xl: 20px;
    --radius-premium-lg: 12px;
    --radius-premium-sm: 6px;
    --radius-pill: 50px;
    
    --shadow-premium-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-premium-lg: 0 20px 40px rgba(0, 0, 0, 0.06);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Layout Wrappers */
.premium-single-blog-wrapper {
    background-color: #f8fafc;
    color: var(--brand-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 80px;
}

.blog-custom-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Framework Agnostic Flexbox Layout Security Overrides */
.layout-main-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.content-primary-column {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.sidebar-primary-column {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

/* Breadcrumbs Section */
.blog-breadcrumbs {
    padding: 24px 0;
    font-size: 14px;
    color: var(--brand-text-muted);
}
.blog-breadcrumbs a {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.blog-breadcrumbs a:hover {
    color: var(--brand-accent-green-hover);
}
.blog-breadcrumbs .separator {
    font-size: 10px;
    margin: 0 8px;
    vertical-align: middle;
}
.blog-breadcrumbs .current-bread {
    color: var(--brand-text-main);
    font-weight: 500;
}

/* Core Article Element Architecture */
.blog-article-core {
    background: #ffffff;
    border-radius: var(--radius-premium-xl);
    padding: 40px;
    box-shadow: var(--shadow-premium-soft);
    border: 1px solid var(--border-light-gray);
    margin-bottom: 30px;
}

.featured-image-container-wrapper {
    border-radius: var(--radius-premium-lg);
    overflow: hidden;
    margin-bottom: 25px;
    aspect-ratio: 16 / 9;
}
.main-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-badge-container {
    margin-bottom: 15px;
}
.cat-pill-badge {
    display: inline-block;
    background-color: rgba(0, 208, 132, 0.1);
    color: var(--brand-accent-green-hover);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.main-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--brand-deep-navy);
    margin-bottom: 20px;
}

.dynamic-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light-gray);
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--brand-text-muted);
}
.dynamic-meta-row .meta-item i {
    color: var(--brand-accent-green-hover);
    margin-right: 6px;
}

/* Content Element Typography Styles */
.core-article-body-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 24px;
}
.core-article-body-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-deep-navy);
    margin-top: 40px;
    margin-bottom: 20px;
}
.core-article-body-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-deep-navy);
    margin-top: 30px;
    margin-bottom: 15px;
}
.core-article-body-content ul, .core-article-body-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}
.core-article-body-content li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #374151;
}

/* Content Blockquote Styling */
.core-article-body-content blockquote {
    border-left: 4px solid var(--brand-accent-green);
    background-color: #f9fafb;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0 var(--radius-premium-lg) var(--radius-premium-lg) 0;
}
.core-article-body-content blockquote p {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--brand-deep-navy);
    margin-bottom: 0;
}

/* Responsive Premium Table Structures */
.core-article-body-content table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
    border-radius: var(--radius-premium-lg);
    overflow: hidden;
    border: 1px solid var(--border-light-gray);
}
.core-article-body-content th {
    background-color: var(--brand-deep-navy);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
}
.core-article-body-content td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light-gray);
    background: #ffffff;
    font-size: 15px;
}

/* Inline Page Content Dynamic CTA Box System */
.inline-content-cta-card {
    background: linear-gradient(135deg, var(--brand-deep-navy) 0%, #050814 100%);
    border-radius: var(--radius-premium-lg);
    padding: 30px;
    color: #ffffff;
    margin: 40px 0;
}
.cta-inner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.cta-text-side h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}
.cta-text-side p {
    color: var(--brand-text-muted);
    margin-bottom: 0;
    font-size: 14px;
}
.btn-premium-action {
    display: inline-block;
    background: linear-gradient(90deg, var(--brand-accent-green) 0%, #00b876 100%);
    color: var(--brand-deep-navy) !important;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-smooth);
    border: none;
}
.btn-premium-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.3);
    color: #ffffff !important;
}

/* Article Footing & Social Shares */
.share-section-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light-gray);
    margin-top: 40px;
}
.share-title-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--brand-deep-navy);
}
.share-icons-flex-container {
    display: flex;
    gap: 10px;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}
.share-btn.fb { background-color: #1877f2; }
.share-btn.tw { background-color: #000000; }
.share-btn.ln { background-color: #0a66c2; }
.share-btn.wa { background-color: #25d366; }
.share-btn.copy-link-btn { background-color: var(--brand-text-muted); }
.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Navigation Split Layout System */
.post-navigation-split-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}
.nav-card-container {
    flex: 1;
    background: #ffffff;
    border-radius: var(--radius-premium-lg);
    border: 1px solid var(--border-light-gray);
    box-shadow: var(--shadow-premium-soft);
    transition: var(--transition-smooth);
}
.nav-card-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium-lg);
}
.nav-card-link-wrapper {
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-decoration: none;
}
.nav-direction {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-accent-green-hover);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.nav-post-title-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-deep-navy);
    line-height: 1.4;
}

/* Premium Sidebar Component Architecture (Updated for Scrolling) */
.premium-sticky-sidebar {
    position: sticky;
    top: 40px;
    max-height: calc(100vh - 80px); /* Restricts height to viewport minus margins */
    overflow-y: auto;               /* Enables vertical scrolling */
    overscroll-behavior: contain;   /* Prevents the main page from scrolling when you reach the bottom of the sidebar */
    padding-right: 12px;            /* Adds breathing room so the scrollbar doesn't overlap the cards */
}

/* Premium Custom Scrollbar for the Sidebar */
.premium-sticky-sidebar::-webkit-scrollbar {
    width: 5px;
}
.premium-sticky-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.premium-sticky-sidebar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* Smooth, light gray */
    border-radius: var(--radius-pill);
}
.premium-sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand-text-muted);
}
.sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius-premium-xl);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-premium-soft);
    border: 1px solid var(--border-light-gray);
}
.widget-heading-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-deep-navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Sidebar Custom Search UI Controls */
.search-form-element-container form {
    display: flex;
    position: relative;
}
.search-form-element-container input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light-gray);
    background-color: #f9fafb;
    outline: none;
    font-size: 14px;
}
.search-form-element-container button,
.search-form-element-container input[type="submit"] {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border: none;
    background-color: var(--brand-deep-navy);
    color: #ffffff;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

/* Categories List Module Structure */
.clean-category-nodes {
    list-style: none;
    padding: 0;
    margin: 0;
}
.clean-category-nodes li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light-gray);
}
.clean-category-nodes li:last-child {
    border-bottom: none;
}
.clean-category-nodes a {
    color: var(--brand-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-smooth);
}
.clean-category-nodes li:hover a {
    color: var(--brand-accent-green-hover);
}
.count-badge-sidebar {
    background-color: #f3f4f6;
    color: var(--brand-text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* Recent Posts Module Architecture */
.recent-posts-flex-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.recent-post-node-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.node-thumb-frame {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-premium-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.node-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.node-info-block {
    display: flex;
    flex-direction: column;
}
.node-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}
.node-title a {
    color: var(--brand-deep-navy);
    text-decoration: none;
}
.node-title a:hover {
    color: var(--brand-accent-green-hover);
}
.node-date-meta {
    font-size: 12px;
    color: var(--brand-text-muted);
}

/* Cloud Tags Section Layout */
.tags-flex-wrapper-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-pill-node {
    background-color: #f3f4f6;
    color: var(--brand-text-main);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--border-light-gray);
    transition: var(--transition-smooth);
}
.tag-pill-node:hover {
    background-color: var(--brand-deep-navy);
    color: #ffffff;
    border-color: var(--brand-deep-navy);
}

/* Strategic Conversion Corporate CTA Sidebar Widget - Dark Mode Banner Constraints Only */
.widget-corporate-conversion-cta-card {
    background: linear-gradient(135deg, var(--brand-deep-navy) 0%, #040814 100%);
    color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
}
.card-interior-glow-effect {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: var(--brand-accent-green);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.25;
}
.cta-widget-title-heading {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}
.cta-bullet-checked-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    position: relative;
    z-index: 2;
}
.cta-bullet-checked-list li {
    font-size: 14px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    color: #e5e7eb;
}
.cta-bullet-checked-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--brand-accent-green);
}
.cta-action-btn-frame {
    position: relative;
    z-index: 2;
}
.btn-primary-gradient-cta {
    display: block;
    background: linear-gradient(90deg, var(--brand-accent-green) 0%, #00b876 100%);
    color: var(--brand-deep-navy);
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}
.btn-primary-gradient-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.4);
    color: #ffffff;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Grid System
   ========================================================================== */
@media (max-width: 991px) {
    .content-primary-column, .sidebar-primary-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .sidebar-primary-column {
        margin-top: 40px;
    }
    .premium-sticky-sidebar {
        position: static;
    }
    .main-article-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .blog-article-core {
        padding: 20px;
    }
    .main-article-title {
        font-size: 1.75rem;
    }
    .cta-inner-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .btn-premium-action {
        width: 100%;
        text-align: center;
    }
    .post-navigation-split-cards {
        flex-direction: column;
    }
}


/* ==========================================================================
   Premium WordPress Comments Form
   ========================================================================== */

/* The Main Container Card */
#respond {
    background: #ffffff;
    border-radius: var(--radius-premium-xl);
    padding: 40px;
    box-shadow: var(--shadow-premium-soft);
    border: 1px solid var(--border-light-gray);
    margin-top: 50px;
}

#reply-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-deep-navy);
    margin-bottom: 10px;
    margin-top: 0;
}

#reply-title small a {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-accent-green-hover);
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-notes, 
.logged-in-as {
    color: var(--brand-text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.logged-in-as a {
    color: var(--brand-accent-green-hover);
    text-decoration: none;
    font-weight: 600;
}

/* Grid Layout for the Form Fields */
.comment-form {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.comment-form > * {
    padding: 0 10px;
    width: 100%;
    margin-bottom: 20px;
}

/* Split Name and Email 50/50 on Desktop */
@media (min-width: 768px) {
    .comment-form-author, 
    .comment-form-email {
        width: 50%;
    }
}

/* Hide labels visually but keep for screen readers, or just style them clean */
.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-deep-navy);
    margin-bottom: 8px;
}

/* Premium Input Fields */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-light-gray);
    border-radius: var(--radius-premium-lg);
    background-color: #f9fafb;
    color: var(--brand-text-main);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-smooth);
    outline: none;
    box-sizing: border-box;
}

/* Focus Glow State */
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--brand-accent-green);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Checkbox Alignment (Cookies Consent) */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-form-cookies-consent input {
    margin-top: 4px;
    accent-color: var(--brand-accent-green);
}

.comment-form-cookies-consent label {
    font-weight: 400;
    color: var(--brand-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Submit Button Match */
.form-submit {
    margin-top: 10px;
    margin-bottom: 0;
}

.form-submit #submit {
    display: inline-block;
    background: linear-gradient(90deg, var(--brand-accent-green) 0%, #00b876 100%);
    color: var(--brand-deep-navy);
    font-weight: 700;
    padding: 14px 35px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 16px;
}

.form-submit #submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 208, 132, 0.3);
    color: #ffffff;
}

/* Mobile Tweak for padding */
@media (max-width: 767px) {
    #respond {
        padding: 25px;
    }
}