:root {
    /* Color Scheme */
    --bg-light: #F9FAFB;
    /* Main background */
    --bg-card: #FFFFFF;
    --bg-header: #0D1117;
    /* Dark header to match website */
    --bg-footer: #000000;
    --border-light: #E5E7EB;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --brand-blue: #2563EB;
    --brand-blue-light: #EFF6FF;
    --brand-blue-text: #3B82F6;
    --brand-gradient: linear-gradient(to right, #3B82F6, #8B5CF6);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-family: "Nunito Sans", sans-serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-family);
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: var(--bg-header);
    border-bottom: 1px solid #30363d;
}

/* --- Main Content & Blog Listing --- */
main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: auto;
}

/* Slider Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    text-align: left;
}

.slider-nav {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover:not(:disabled) {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    transform: scale(1.05);
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slider-wrapper {
    position: relative;
}

.posts-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.posts-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, and Opera */
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    flex: 0 0 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card .card-content {
    padding: 1.5rem;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-blue);
    background-color: var(--brand-blue-light);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.75rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.card-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.card-meta .blog-author-name {
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

.card-meta .post-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}


/* --- Single Blog Post Page --- */
.blog-post {
    max-width: 800px;
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--brand-blue);
}

.post-header {
    margin-bottom: 3rem;
}

.post-header .category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-blue);
    background-color: var(--brand-blue-light);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.post-header .category-tag svg {
    width: 16px;
    height: 16px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blue-head {
    color: #0d6efd;
}

.post-header .subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.post-meta {
    margin-top: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-name {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.5;
    margin-bottom: 0;
    svg {
        width: 1em;
        height: 1em;
         transform: translateY(-10%)
        /* vertical-align: middle; */
    }
}

.blog-meta-details {
    display: flex;
    margin-top: 0px;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.feature-image {
    margin-bottom: 3rem;
}

.feature-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 4px solid #0d6efd;
}

.feature-mid-image {
    margin-bottom: 3rem;
}

.feature-mid-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.post-content {
    font-size: 1.125rem;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #374151;
}

.post-content h2 {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.post-content a {
    color: var(--brand-blue-text);
    text-decoration: none;
    font-weight: 500;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content ul {
    list-style-position: outside;
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.post-content ul li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--brand-blue);
    background-color: var(--brand-blue-light);
    font-size: 1.1rem;
    font-style: italic;
    color: #111827;
    border-radius: 0 0.5rem 0.5rem 0;
}

.post-content code {
    background-color: var(--border-light);
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    border-radius: 6px;
    font-family: monospace;
    color: var(--text-dark);
}

.code-block {
    background-color: #1F2937;
    border-radius: 0.75rem;
    margin: 2rem 0;
    overflow: hidden;
    color: #E5E7EB;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #374151;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #4B5563;
}

.code-header span {
    font-size: 0.75rem;
    color: #D1D5DB;
    text-transform: uppercase;
    font-weight: 500;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #D1D5DB;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: white;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.code-block pre {
    padding: 1rem;
    overflow-x: auto;
}

.code-block pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    color: inherit;
}

.author-bio {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--brand-blue-light);
    border-radius: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-bio .bio-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0px;
}

.author-bio h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.author-bio .bio-description {
    color: var(--text-muted);
    font-size: 1rem;
}
/* Table Wrapper for centering and styling */
.table-wrapper {
    font-family: 'Inter', sans-serif;
    color: #334155;
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Ensures the border-radius is respected by the table */
    border: 1px solid #e2e8f0;
    margin: 2rem auto; /* For spacing if placed inside another container */
}

/* Main Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

/* Table Header Styles */
.comparison-table th {
    padding: 1.25rem 1.5rem;
    background-color: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
}

.comparison-table th:first-child {
    width: 25%;
}

/* Table Body and Row Styles */
.comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease-in-out;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Table Data Cell Styles */
.comparison-table td {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    vertical-align: middle;
}

.comparison-table td:not(:first-child) {
    color: #475569;
}

/* Styling for the "Factor" column with icons */
.factor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #0f172a;
}

.factor svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #3b82f6;
    flex-shrink: 0;
}

/* Differentiating columns with icons or text styling */
.traditional-col {
    position: relative;
}

.virtual-col {
    position: relative;
    font-weight: 500;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .table-wrapper {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
        border: none;
        border-radius: 0;
        margin: 1rem auto;
    }

    /* Hide the original header */
    .comparison-table thead {
        display: none;
    }

    /* Make table and rows block-level */
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .comparison-table tr:last-child {
         margin-bottom: 0;
    }

    .comparison-table td {
        text-align: right;
        padding-left: 50%; /* Reserve space for the label */
        position: relative;
        border: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .comparison-table td:last-child {
        border-bottom: none;
    }

    /* Create pseudo-element labels from data attributes */
    .comparison-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1.5rem;
        width: calc(50% - 3rem);
        text-align: left;
        font-weight: 600;
        color: #0f172a;
    }

    .comparison-table td:first-child {
        background-color: #f8fafc;
        text-align: center;
        padding-left: 1.5rem; /* Reset padding for the first cell */
    }

    .comparison-table td:first-child::before {
        display: none; /* Hide pseudo-element for the factor cell */
    }

    .factor {
        justify-content: center;
    }
}


/* --- Responsive Design --- */
@media (min-width: 640px) {
    .blog-post {
        padding: 3rem;
    }

    .blog-card {
        flex-basis: calc(50% - (1.5rem / 2));
    }
}


@media (min-width: 1024px) {
    .blog-card {
        flex-basis: calc(33.333% - (1.5rem * 2 / 3));
    }

}
