:root {
    --bg-dark: #0a0a0c;
    --bg-card: #111116;
    --bg-card-hover: #1a1a20;

    /* New Brand Settings */
    --primary-gradient: linear-gradient(135deg, #f205fd, #8731f0, #07f6fe);
    --primary-glow: rgba(242, 5, 253, 0.4);
    --secondary-glow: rgba(7, 246, 254, 0.4);

    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a.text-gradient {
    text-decoration: none;
    position: relative;
}

a.text-gradient::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

a.text-gradient:hover::after {
    height: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    position: relative;
    background: #8731f0;
    /* Fallback/Base color to prevent dark edges */
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    z-index: 1;
}

/* The Organic Blob Background */
.btn-primary::before {
    content: '';
    position: absolute;
    /* Massive size to push blurred edges way outside the visible area */
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(from 0deg,
            #f205fd,
            #8731f0,
            #07f6fe,
            #8731f0,
            #f205fd);
    z-index: -1;
    filter: blur(40px);
    animation: blob-spin 20s linear infinite;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 0.5rem;
    /* Add gap for consistency */
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--primary);
    cursor: default;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-2px);
    /* No speed up - keep it chill */
}

/* Remove hover speed-up to maintain organic flow */
.btn-primary:hover::before {
    animation-duration: 20s;
}

@keyframes blob-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-secondary {
    background: transparent;
    border-color: var(--text-gray);
    color: var(--text-white);
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.nav-links a:not(.btn):hover {
    color: var(--text-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: 0.3s;
}

/* Mobile Menu - Hidden on Desktop */
.mobile-menu {
    display: none;
}

/* Blog Category Navigation */
.blog-category-nav {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 0 1.3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Firefox */
}

.blog-category-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.category-pill {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.category-pill.active {
    background: rgb(69, 69, 69);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

@media (max-width: 768px) {
    .blog-category-nav {
        justify-content: flex-start;
        /* Align left for scrolling */
        padding-left: 1rem;
        /* Add some padding so first item isn't flush */
        padding-right: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    text-align: center;
}

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

.badge,
#post-category-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: #a78bfa;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.glow-1 {
    top: 100px;
    /* Moved down to avoid logo */
    left: -250px;
    /* Moved further left */
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
}

/* Decorative Blobs */
.decorative-blob {
    position: absolute;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    border-radius: 50%;
}

.blob-magenta {
    background: #f205fd;
}

.blob-purple {
    background: #8731f0;
}

.blob-cyan {
    background: #07f6fe;
}

.blob-sm {
    width: 300px;
    height: 300px;
}

.blob-md {
    width: 500px;
    height: 500px;
}

.blob-lg {
    width: 700px;
    height: 700px;
}

.glow-2 {
    bottom: -100px;
    right: -100px;
}

/* Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), transparent);
    border-radius: 16px;
    border-left: 2px solid var(--primary);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

/* Impact Section */
.impact {
    background: linear-gradient(to bottom, var(--bg-dark), #0f0f13);
    overflow: hidden;
}

.impact-card {
    text-align: center;
    padding: 3rem 2rem;
}

.impact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(242, 5, 253, 0.05), rgba(7, 246, 254, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: none;
        /* Add JS to toggle flex */
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .mobile-menu.active {
        display: flex;
    }

    .hero h1,
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}

/* Tabs Section */
.use-cases {
    background: linear-gradient(to top, var(--bg-dark), #0f0f13);
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 1rem auto 0;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tabs-content {
    min-height: 250px;
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.tab-content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.text-content {
    flex: 2;
}

.visual-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-box.large {
    font-size: 5rem;
    background: radial-gradient(circle, rgba(242, 5, 253, 0.1) 0%, transparent 70%);
    padding: 2rem;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.tab-pane h3 {
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tab-pane h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .tab-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }

    .tab-pane h4 {
        font-size: 1.5rem;
    }
}

.tab-pane h4 {
    font-size: 1.5rem;
}

/* Glitter Canvas */
#glitter-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    #glitter-canvas {
        display: none;
    }
}

/* Impact Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr 1fr;
    /* Increased center column width */
    grid-gap: 1.5rem;
    grid-template-areas:
        "left1 title right1 right2"
        "left2 title right3 right3";
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-rows: minmax(300px, auto);
    /* Slightly reduced fixed min-height */
}

.bento-item {
    background: #111116;
    background: linear-gradient(145deg, #1a1a20, #111116);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-top: 1rem;
    line-height: 1.5;
}

/* 3D Flip Card Styles */
.bento-item.flip-card {
    background: transparent;
    border: none;
    padding: 0;
    perspective: 1000px;
    overflow: visible;
    /* Allow 3D effect */
}

.bento-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover effect on desktop */
@media (min-width: 993px) {
    .bento-item.flip-card:hover .bento-inner {
        transform: rotateY(180deg);
    }
}

/* Class toggle for mobile */
.bento-item.flip-card.flipped .bento-inner {
    transform: rotateY(180deg);
}

.bento-front,
.bento-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    /* Restored padding for better look, height increased to compensate */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.bento-front {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.bento-front {
    background: #111116;
    background: linear-gradient(145deg, #1a1a20, #111116);
}

.bento-back {
    background: #111116;
    background: linear-gradient(145deg, #1a1a20, #0f0f13);
    transform: rotateY(180deg);
}

/* Blog Styles */
.blog-hero {
    padding: 12rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(135, 49, 240, 0.15), transparent 70%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.02);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta span {
    color: var(--text-gray);
    font-weight: 400;
    text-transform: none;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-link {
    font-weight: 600;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.blog-link:hover {
    color: var(--primary);
    gap: 0.8rem;
    /* slight arrow movement */
}

/* Featured Post */
.featured-post-wrapper {
    margin-bottom: 6rem;
}

.featured-label {
    display: inline-block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.featured-post:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.featured-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    min-height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .featured-post img {
        min-height: 250px;
        order: -1;
        /* Image on top on mobile */
    }

    font-size: 2rem;
}
}

/* Blog Post Detail Styles */
.progress-container {
    position: fixed;
    top: 73px;
    /* Calculated based on nav height approx */
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 998;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 0 4px 4px 0;
}

.breadcrumbs {
    padding: 2rem 0 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-gray);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.article-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.article-hero h1 {
    font-size: 2rem;
    line-height: 1.1;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0 !important;
}

.article-image-wrapper {
    text-align: center;
    width: 100%;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 6rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2.2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.article-content h3 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.article-content p {
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    color: #cbd5e1;
}

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

.article-image {
    width: 100% !important;
    height: auto;
    border-radius: 16px;
    margin: 3rem 0 !important;
    /* Force top margin */
    display: block;
    /* Ensure it respects auto margins if wrapper doesn't handle it */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #333;
    /* Placeholder */
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2.5rem;
    }

    .article-content {
        font-size: 1.1rem;
    }
}

z-index: 2;
}

.bento-back {
    background: linear-gradient(145deg, #2d2d35, #1f1f26);
    transform: rotateY(180deg);
    border-color: rgba(79, 70, 229, 0.5);
    z-index: 1;
}

.bento-back p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.card-left-2 {
    grid-area: left2;
}

/* Title Card (Flip) Styles */
.title-card {
    grid-area: title;
    position: relative;
    z-index: 10;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    perspective: 1000px;
}

.title-card .bento-front {
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: none;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
}

.title-card h2 {
    font-size: 3rem;
    color: white;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.title-card .bento-back {
    background: #111116;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.title-card .bento-back h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-right-1 {
    grid-area: right1;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #a78bfa;
}

.bento-item h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-white);
    font-weight: 600;
}

.card-right-3 {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.card-right-3 .bento-icon {
    margin-bottom: 0;
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title title"
            "left1 left2"
            "right1 right2"
            "right3 right3";
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "left1"
            "left2"
            "right1"
            "right2"
            "right3";
    }

    .title-card h2 {
        font-size: 2.5rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Styles */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
}

.logo img {
    height: 47px;
    /* Reduced by 10% from 52px */
    width: auto;
}

.footer-logo img {
    height: 35px;
    /* Reduced by 10% from 39px */
    width: auto;
}

/* Language Picker */
.lang-picker {
    position: relative;
    margin-left: 1.5rem;
    display: inline-block;
}

.lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-gray);
    /* Neutral color */
}

.lang-toggle:hover {
    transform: scale(1.1);
    color: var(--text-white);
}

.globe-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.lang-picker.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.lang-dropdown .lang-flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* Nav Dropdown */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    text-align: left;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.dropdown-arrow {
    margin-left: 0.25rem;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Contact Page Styles */
.contact-hero {
    padding: 10rem 0 2rem;
    text-align: center;
}

.contact-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Reduce gap between hero and contact section */
.contact-hero+.section {
    padding-top: 0;
}

.contact-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 5rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.info-text p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(242, 5, 253, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
}

@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-container {
        padding: 2rem;
    }
}

/* Blog Styles (Restored) */
.blog-hero {
    padding: 12rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(135, 49, 240, 0.15), transparent 70%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.02);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta span {
    color: var(--text-gray);
    font-weight: 400;
    text-transform: none;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-link {
    font-weight: 600;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.blog-link:hover {
    color: var(--primary);
    gap: 0.8rem;
}

/* HubSpot-style Blog Layout - Corrected */
.blog-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-header-section {
    padding: 6rem 0 1rem;
    text-align: left;
}

.blog-header-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0px;
    /* Removed margin */
}

.blog-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
}

.blog-header-title h1 {
    font-size: 3.5rem;
    margin: 0;
}

.blog-header-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-gray);
    font-family: var(--font-body);
}

/* Dedicated Newsletter Strip */
.newsletter-strip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-text {
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 500px;
}

.newsletter-strip form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.newsletter-strip input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    color: white;
}

/* Featured Grid - 600px / 436px ratio approx */
.featured-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.main-featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-featured-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    /* Reduced gap */
}

.main-featured-content h2 {
    font-size: 1.5rem;
    /* Reduced from 2.2rem */
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Right Side List */
.featured-sidebar-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-item-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    /* Thumbnail | Content */
    gap: 1rem;
    align-items: start;
    text-decoration: none;
    group: hover;
}

.sidebar-item-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-item-content h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    transition: color 0.2s;
}

.sidebar-item-card:hover .sidebar-item-content h4 {
    color: var(--primary);
}

.sidebar-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Main Articles Grid Adjustment */
.articles-grid-header {
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .blog-header-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-strip {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .newsletter-strip form {
        flex-direction: column;
        max-width: 100%;
    }

    .featured-layout {
        grid-template-columns: 1fr;
    }
}

/* Featured Post */
.featured-post-wrapper {
    margin-bottom: 6rem;
}

.featured-label {
    display: inline-block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.featured-post:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.featured-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    min-height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .featured-post img {
        min-height: 250px;
        order: -1;
    }

    .featured-content h2 {
        font-size: 2rem;
    }
}

/* Blog Post Detail Styles */
.progress-container {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 998;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 0 4px 4px 0;
}

.breadcrumbs {
    padding: 2rem 0 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
}

.breadcrumbs a {
    color: var(--text-gray);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.article-hero {
    padding: 2rem 0 4rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.article-hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 6rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2.2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.article-content h3 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.article-content p {
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    color: #cbd5e1;
}

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

.article-image {
    width: 100% !important;
    height: auto;
    border-radius: 16px;
    margin: 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #333;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2.5rem;
    }

    .article-content {
        font-size: 1.1rem;
    }
}

#reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-gradient);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Blog Post Page Specifics */
body>article {
    padding-top: 6rem;
    min-height: 50vh;
}

/* Blog Post Left Alignment Enforcements */
.breadcrumb {
    width: 100%;
    margin: 0 0 1rem 0;
    padding-left: 0;
    display: flex;
    justify-content: flex-start;
}

.article-image-wrapper {
    max-width: 800px;
    margin: 3rem auto;
}

.blog-meta {
    justify-content: flex-start !important;
}


/* Revert Hero and Meta to Center */
.article-hero {
    text-align: center !important;
    max-width: 900px !important;
}

.article-hero h1 {
    text-align: center;
}

.article-meta {
    justify-content: center !important;
}

/* Enforce Left Alignment for Breadcrumbs ONLY */
.breadcrumb {
    width: 100%;
    margin: 0 0 1rem 0;
    padding-left: 0;
    display: flex;
    justify-content: flex-start;
}

/* Reset image wrapper alignment if needed */
.article-image-wrapper {
    margin: 3rem auto;
    /* remove left align constraint if any */
}


/* Center Category Pill */
.blog-meta {
    justify-content: center !important;
}


/* Blog Post Page Specifics - 2 Column Layout Refactor */
.blog-post-page .navbar {
    position: sticky;
}

/* Main Container */
.blog-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Grid System */
.blog-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 72%) minmax(0, 28%);
    gap: 4rem;
    padding-bottom: 6rem;
    align-items: start;
}

/* Left Content Column */
.content-column {
    display: flex;
    flex-direction: column;
}

/* Ensure content width is fluid within the column but readable */
.article-content {
    max-width: 100%;
    margin: 0 0 4rem;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e2e8f0;
    text-align: justify;
}

/* Sidebar (Right) */
.blog-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    color: var(--text-white);
}

/* Author Widget Specifics */
.author-widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-widget-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout-grid {
        gap: 2rem;
        grid-template-columns: minmax(0, 65%) minmax(0, 35%);
    }
}

@media (max-width: 850px) {
    .blog-layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-sidebar {
        position: static;
    }

    .article-hero {
        text-align: left;
    }
}

/* Overrides for Previous Styles to fit new layout */
.article-hero {
    max-width: 100% !important;
    text-align: left !important;
    padding: 0 0 0.2rem;
    margin: 0;
}

.article-hero h1 {
    font-size: 2.8rem;
    text-align: left !important;
}

.article-meta {
    justify-content: flex-start !important;
}

.article-image-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 3rem 0;
    display: block;
}


/* Force Left Alignment for Blog Meta (Category Pill) in New Layout */
.blog-layout-grid .blog-meta {
    justify-content: flex-start !important;
}

/* Neil Patel Style Author Profile Snippet */
.article-author-profile {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
}

.author-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.author-profile-info {
    flex: 1;
}

.author-profile-info p {
    margin: 0 0 0.5rem 0 !important;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-white);
}

.author-profile-info p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.author-profile-info .author-credentials {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.author-profile-info .author-credentials span {
    color: var(--text-white);
    font-weight: 600;
}

.author-profile-info .published-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* Ensure images within content have some breathing room */
.article-content .article-image-wrapper {
    width: 100% !important;
    margin: 3rem 0;
}


/* Table of Contents Widget */
.toc-widget {
    position: sticky;
    top: 5rem;
    /* Adjust based on navbar height */
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.toc-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.toc-item {
    position: relative;
}

.toc-link {
    display: block;
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary);
    padding-left: 1.2rem;
    font-weight: 500;
}

.toc-item::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.toc-item:hover::before,
.toc-item.active::before {
    background: var(--primary);
}

/* Scrollbar for TOC if it gets too long */
.toc-widget::-webkit-scrollbar {
    width: 4px;
}

.toc-widget::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.toc-widget::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Mobile Optimizations for Above-the-Fold Visibility (Neil Patel Style) */
@media (max-width: 768px) {

    /* Tighten Header to bring content up */
    .article-hero h1 {
        font-size: 2rem !important;
        /* Reduce from 2.8rem */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .breadcrumbs {
        margin-bottom: 0.5rem !important;
        font-size: 0.8rem;
    }

    /* Compact Author Snippet on Mobile */
    .article-author-profile {
        padding: 0.8rem 0;
        margin-bottom: 1rem;
        gap: 1rem;
    }

    .author-avatar-small {
        width: 50px;
        height: 50px;
    }

    .author-profile-info p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem !important;
    }

    /* Reduce vertical padding of the main container */
    .blog-layout-grid {
        gap: 2rem;
    }

    .article-content {
        margin-bottom: 2rem;
    }

    /* Ensure TOC is hidden or moves to bottom on mobile, right now sidebar usually drops below */
    .blog-sidebar {
        order: 2;
        /* Ensure sidebar is after content on mobile */
    }
}