/* ==========================================================================
   AIoTHUB Blog Restored Premium Stylesheet (Minimal Header + Two-Column Layout)
   ========================================================================== */

:root {
    --blog-dark-bg: #090d22;
    --blog-darker-bg: #050714;
    --blog-primary: #0066ff;
    --blog-secondary: #00d4ff;
    --blog-card-border: rgba(0, 102, 255, 0.1);
    --blog-text-main: #2d3748;
    --blog-text-muted: #718096;
    --blog-pill-glow: 0 0 25px rgba(0, 212, 255, 0.15);
    --blog-divider-bg: rgba(0, 0, 0, 0.06);
    --blog-gradient-glow: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
}

/* Base layout & Page setup */
.blog-main {
    padding-top: 0;
    /* Changed from 110px to 0 so backgrounds run to the top */
    background-color: #fafbfc;
    min-height: 100vh;
}

/* ==========================================================================
   Display Toggle States (FIXES double content display bugs)
   ========================================================================== */
.blog-listing-section {
    display: none;
}

.blog-listing-section.active {
    display: block;
}

.blog-detail-section {
    display: none;
    animation: blogFadeIn 0.45s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.blog-detail-section.active {
    display: block;
}

.blog-not-found-section {
    display: none;
}

.blog-not-found-section.active {
    display: block;
}

@keyframes blogFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1200;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0066ff 0%, #00d4ff 100%);
    box-shadow: 0 1px 8px rgba(0, 212, 255, 0.4);
    transition: width 0.08s ease-out;
}

/* ==========================================================================
   SECTION A: Blog Listing Hub (Cards & Hero Filters)
   ========================================================================== */

.blog-hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(5, 7, 20, 0.92) 0%, rgba(9, 13, 34, 0.88) 100%), url('../images/blog-hero-bg.png') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    padding: 160px 0 90px 0;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-bg-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.4) 0%, transparent 40%);
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner-content .pill-label {
    background: rgba(0, 212, 255, 0.1);
    color: var(--blog-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: var(--blog-pill-glow);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-banner-content .hero-title {
    display: block !important;
    text-align: center !important;
    font-size: 2.85rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    letter-spacing: -0.5px !important;
}

.hero-banner-content .hero-title span.text-aesthetics {
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-banner-content .hero-subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box-wrapper {
    position: relative;
    max-width: 550px;
    margin: 0 auto 30px auto;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-box-wrapper:focus-within {
    border-color: var(--blog-secondary);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.2), 0 0 0 3px rgba(0, 212, 255, 0.08);
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    font-size: 1rem;
    color: #a0aec0;
    margin-right: 12px;
}

.search-box-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.search-box-wrapper input::placeholder {
    color: #718096;
}

.btn-search {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4);
}

.category-filters-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e0;
    padding: 6px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 15px rgba(0, 102, 255, 0.25);
}

.blog-grid-wrapper {
    padding: 50px 0 70px 0;
}

.listing-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--blog-divider-bg);
    padding-bottom: 15px;
}

.post-count-indicator {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blog-text-main);
}

.post-count-indicator span {
    color: var(--blog-primary);
}

.sort-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-text-muted);
    font-size: 0.9rem;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    color: var(--blog-text-main);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.blog-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.blog-listing-grid .blog-card {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-listing-grid .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.06);
    border-color: rgba(0, 102, 255, 0.15);
}

.blog-listing-grid .blog-card .blog-img-wrapper {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.blog-listing-grid .blog-card .blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-listing-grid .blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-listing-grid .blog-card .blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-listing-grid .blog-card .blog-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    color: var(--blog-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-card-meta span i {
    color: var(--blog-primary);
    margin-right: 4px;
}

.blog-listing-grid .blog-card .blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.25s;
}

.blog-listing-grid .blog-card:hover .blog-title {
    color: var(--blog-primary);
}

.blog-listing-grid .blog-card .blog-desc {
    color: var(--blog-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 15px;
}

.blog-author-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-mini-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 102, 255, 0.15);
}

.author-mini-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blog-text-main);
}

.blog-card-footer .blog-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.05);
    color: var(--blog-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-listing-grid .blog-card:hover .blog-arrow-btn {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #ffffff;
    transform: rotate(45deg);
}

.no-results-box {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    max-width: 450px;
    margin: 30px auto 0 auto;
}

.no-results-box.active {
    display: block;
}

.empty-icon {
    font-size: 2.5rem;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.no-results-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blog-text-main);
}

.no-results-box p {
    color: var(--blog-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.no-results-box .btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   SECTION B: Two-Column Reader layout styling
   ========================================================================== */

.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 24px 60px 24px;
    /* Increased from 30px to 150px to push content below navbar seamlessly */
}

/* Header Area (Minimalist light canvas) */
.detail-header-minimal {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--blog-divider-bg);
    padding-bottom: 30px;
}

.btn-back-to-blogs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    transition: color 0.2s, transform 0.2s;
}

.btn-back-to-blogs i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.btn-back-to-blogs:hover {
    color: var(--blog-primary);
}

.btn-back-to-blogs:hover i {
    transform: translateX(-3px);
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.detail-category-badge {
    background: rgba(0, 102, 255, 0.05);
    color: var(--blog-primary);
    border: 1px solid rgba(0, 102, 255, 0.15);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.detail-meta-item {
    font-size: 0.85rem;
    color: var(--blog-text-muted);
    font-weight: 500;
}

.detail-meta-item i {
    color: var(--blog-primary);
    margin-right: 4px;
}

.detail-post-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1a202c;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}

.detail-header-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    border-radius: 10px;
}

/* Restored 2-Column Grid Wrapper */
.blog-content-layout-wrapper {
    margin-bottom: 40px;
}

.blog-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

/* Left Column: Highly Readable Article Styling */
.blog-article-content {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.015);
    border-radius: 20px;
    padding: 45px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--blog-text-main);
    letter-spacing: -0.011em;
}

/* Blog Feature Image styling */
.blog-feature-image-wrapper {
    width: 100%;
    max-width: 888px;
    aspect-ratio: 888 / 500;
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.05);
}

.blog-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-feature-image-wrapper:hover .blog-feature-image {
    transform: scale(1.025);
}

.blog-article-content p {
    margin-bottom: 1.85rem;
}

/* Headings within reading panel */
.blog-article-content h2,
.blog-article-content h3 {
    font-family: 'Poppins', sans-serif;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.blog-article-content h2 {
    font-size: 1.8rem;
    position: relative;
    padding-left: 15px;
}

.blog-article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    height: calc(100% - 12px);
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #0066ff 0%, #00d4ff 100%);
}

.blog-article-content h3 {
    font-size: 1.38rem;
}

/* Styled Blockquotes */
.blog-article-content blockquote {
    position: relative;
    margin: 35px 0;
    padding: 24px 30px;
    background: rgba(0, 102, 255, 0.02);
    border-left: 4px solid var(--blog-primary);
    border-radius: 0 12px 12px 0;
    font-size: 1.22rem;
    font-style: italic;
    color: #1a202c;
    font-weight: 500;
    line-height: 1.75;
}

.blog-article-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 5rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    color: rgba(0, 102, 255, 0.05);
    font-weight: 900;
    pointer-events: none;
}

/* Lists styling */
.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 2rem;
    padding-left: 20px;
}

.blog-article-content li {
    margin-bottom: 0.8rem;
}   

.blog-article-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 8px;
}

.blog-article-content ul li::before {
    content: '→';
    position: absolute;
    left: -18px;
    color: var(--blog-primary);
    font-weight: 700;
}

/* Callout boxes */
.blog-callout-box {
    margin: 35px 0;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.blog-callout-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #0066ff 0%, #00d4ff 100%);
}

.callout-icon-col {
    font-size: 1.5rem;
    color: var(--blog-primary);
    display: flex;
    align-items: flex-start;
}

.callout-content-col h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

.callout-content-col p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
    color: var(--blog-text-muted);
}

.blog-callout-box.warning {
    border-color: rgba(239, 104, 0, 0.12);
    background: rgba(239, 104, 0, 0.01);
}

.blog-callout-box.warning::before {
    background: #ef6800;
}

.blog-callout-box.warning .callout-icon-col {
    color: #ef6800;
}

/* Key Takeaway grids */
.key-takeaways-board {
    background: rgba(0, 102, 255, 0.025);
    border: 1px solid rgba(0, 102, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.key-takeaways-board h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.key-takeaways-board h4 i {
    color: var(--blog-primary);
}

.takeaway-list {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

.takeaway-list li {
    list-style: none !important;
    position: relative;
    padding-left: 26px !important;
    margin-bottom: 10px !important;
    font-size: 1rem;
    font-weight: 500;
    color: var(--blog-text-main);
}

.takeaway-list li::before {
    display: none !important;
}

.takeaway-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #25d366;
    font-size: 1rem;
}

/* Clean comparative tables */
.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-article-content th,
.blog-article-content td {
    padding: 12px 18px;
    text-align: left;
}

.blog-article-content th {
    background: rgba(0, 102, 255, 0.03);
    color: #1a202c;
    font-weight: 700;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.blog-article-content td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--blog-text-main);
}

.blog-article-content tr:last-child td {
    border-bottom: none;
}

.blog-article-content tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.005);
}

/* ==========================================================================
   Right Column: Sticky Reader Sidebar Widgets
   ========================================================================== */
.blog-reader-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 110px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.012);
    border-radius: 12px;
    padding: 24px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.widget-title i {
    color: var(--blog-primary);
}

/* Dynamic Table of Contents (TOC) Highlight Widget */
.toc-links-list {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.toc-links-list::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(0, 0, 0, 0.04);
}

.toc-item {
    margin-bottom: 12px;
    position: relative;
    padding-left: 18px;
}

.toc-item:last-child {
    margin-bottom: 0;
}

.toc-link {
    color: var(--blog-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    line-height: 1.4;
}

.toc-link:hover {
    color: var(--blog-primary);
}

.toc-item::after {
    content: '';
    position: absolute;
    left: 2.5px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cbd5e0;
    transform: translateX(-50%);
    transition: all 0.25s ease;
}

.toc-item.active .toc-link {
    color: var(--blog-primary);
    font-weight: 700;
}

.toc-item.active::after {
    background: var(--blog-secondary);
    width: 7px;
    height: 7px;
    box-shadow: 0 0 8px var(--blog-secondary);
    left: 2.5px;
}

/* Newsletter Widget Card */
.widget-newsletter {
    position: relative;
    background: linear-gradient(135deg, var(--blog-dark-bg) 0%, var(--blog-darker-bg) 100%);
    color: #ffffff;
    overflow: hidden;
}

.newsletter-glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.widget-newsletter .widget-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.newsletter-icon {
    font-size: 2rem;
    color: var(--blog-secondary);
    margin-bottom: 12px;
    display: inline-block;
}

.widget-newsletter p {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.55;
    margin-bottom: 18px;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter-form input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    outline: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s;
}

.sidebar-newsletter-form input:focus {
    border-color: var(--blog-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-sidebar-submit {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
    transition: all 0.25s;
}

.btn-sidebar-submit:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 15px rgba(0, 102, 255, 0.35);
}

.form-privacy-note {
    font-size: 0.75rem !important;
    color: #718096 !important;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0 !important;
}

.form-privacy-note i {
    margin-right: 3px;
}

/* Sharing buttons */
.share-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.share-btn {
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.copy {
    background: rgba(0, 102, 255, 0.04);
    color: var(--blog-primary);
    border: 1px solid rgba(0, 102, 255, 0.08);
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.copy:hover {
    background: var(--blog-primary);
    color: #ffffff;
}

.copy-success-toast {
    display: none;
    background: #25d366;
    color: #ffffff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    animation: slideUpFade 0.25s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Post Navigation Footer Slider Panel
   ========================================================================== */
.post-navigation-panel {
    border-top: 1px solid var(--blog-divider-bg);
    padding-top: 40px;
    margin-top: 30px;
}

.navigation-panel-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-prev-post,
.nav-next-post {
    flex: 1;
    max-width: 48%;
}

.nav-next-post {
    text-align: right;
}

.nav-arrow-link {
    display: block;
    text-decoration: none;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.04);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.008);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-arrow-link:hover {
    border-color: var(--blog-primary);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.04);
    transform: translateY(-2px);
}

.arrow-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blog-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: block;
}

.nav-arrow-link h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    transition: color 0.25s;
}

.nav-arrow-link:hover h4 {
    color: var(--blog-primary);
}

/* ==========================================================================
   SECTION C: Blog Not Found State
   ========================================================================== */
.not-found-inner {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    padding: 160px 20px 80px 20px;
    /* Increased top padding from 80px to 160px */
}

.not-found-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(239, 104, 0, 0.08);
    color: #ef6800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.blog-not-found-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--blog-text-main);
}

.blog-not-found-section p {
    color: var(--blog-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 25px;
}

.blog-not-found-section .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    transition: all 0.25s;
}

.blog-not-found-section .btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 15px rgba(0, 102, 255, 0.3);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .blog-content-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .blog-reader-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero-banner {
        padding: 130px 0 60px 0;
    }

    .hero-banner-content h1 {
        font-size: 2.1rem;
    }

    .hero-banner-content .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .blog-listing-grid {
        grid-template-columns: 1fr;
    }

    .blog-detail-container {
        padding: 120px 16px 60px 16px;
    }

    .detail-post-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .blog-article-content {
        padding: 24px 18px;
        font-size: 1.05rem;
    }

    .blog-article-content h2 {
        font-size: 1.45rem;
    }

    .blog-article-content h3 {
        font-size: 1.25rem;
    }

    .navigation-panel-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav-prev-post,
    .nav-next-post {
        max-width: 100%;
    }
}

.nav-next-post {
    max-width: 100%;
}
}