* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on mobile */
html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth; /* Enhance scroll behavior */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative; /* Ensure proper stacking context */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-radius: 50px;
    padding: 12px 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    width: auto; /* Dynamic width based on content */
    max-width: 90vw; /* Prevent overflow on small screens */
}

.floating-nav.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.floating-nav .nav-link {
    color: #fff;
    transition: color 0.4s;
}

.floating-nav.scrolled .nav-link {
    color: #fff !important;
}

.floating-nav.scrolled .nav-link:hover {
    color: #bb86fc !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the navigation content */
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center; /* Center the navigation links */
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #bb86fc !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    color: white;
    width: 100vw;
    min-height: 500px;
    /* Remove flex to prevent video from being a flex item */
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    background: url('/heroBanner.jpg') center/cover no-repeat;
    transition: opacity 0.5s;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    height: 100vh;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 20px;
    padding: 60px 80px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
}

@media (max-width: 700px) {
  .hero-content {
    max-width: 98vw;
    padding: 0 5vw;
    height: 80vh;
  }
  .hero-box {
    padding: 28px 10px;
    border-radius: 14px;
    margin-bottom: 18px;
  }
  .company-name {
    font-size: 2.1rem;
    letter-spacing: -0.5px;
  }
  .hero-logo {
    height: 38px;
  }
  .tagline {
    font-size: 1.05rem;
    padding: 0 2vw;
  }
}

.company-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -2px;
}

/* Page titles for individual feature pages */
.hero-box .company-name {
    margin-bottom: 20px; /* Add space below the title */
    letter-spacing: -1px; /* Adjust letter spacing for better readability */
}

/* Additional spacing for feature page titles specifically */
.hero-box .company-name + .tagline {
    margin-top: 10px; /* Add space above the tagline */
}

/* Alternative approach - add padding to the hero box for more overall spacing */
.hero-box {
    padding: 60px 80px; /* Increase from 50px to 60px for more vertical space */
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Hero Section Logo */
.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    white-space: nowrap;
}

.hero-logo {
    height: 60px; /* Smaller logo */
    width: auto;/* Make logo white to match text */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-logo:hover {
    opacity: 1;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #1e1e1e;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: #ffffff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly more transparent */
    backdrop-filter: blur(20px) saturate(200%); /* Stronger blur and saturation */
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-radius: 20px; /* More rounded corners */
    padding: 40px 30px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.1) inset, /* Top highlight */
        0 -1px 0 rgba(255, 255, 255, 0.05) inset; /* Bottom subtle shadow */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    border-radius: 20px;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12); /* Slightly more opaque on hover */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 -1px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(187, 134, 252, 0.2); /* Purple glow border */
    border-color: rgba(255, 255, 255, 0.2);
}

/* Enhanced card content with better contrast */
.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); /* Add depth to icons */
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
    position: relative;
    z-index: 1;
}

.card-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85); /* Slightly more opaque for better readability */
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.learn-more {
    color: #bb86fc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.learn-more:hover {
    color: #d1c4e9;
    text-shadow: 0 0 8px rgba(187, 134, 252, 0.3);
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: #121212;
}

.carousel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 350px; /* adjust as needed for your card height */
}

.team-card {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.team-card.active {
    display: block;
    opacity: 1;
    z-index: 1;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 30px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.team-position {
    font-size: 1.1rem;
    color: #bb86fc;
    font-weight: 500;
    margin-bottom: 20px;
}

.team-description {
    /* font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px; */
    display: none;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: #bb86fc;
    color: #121212;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: #d1c4e9;
}

/* Waitlist Section */
.waitlist-section {
    padding: 100px 0;
    background: #1e1e1e;
}

.waitlist-description {
    text-align: center;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 50px;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #2a2a2a;
    color: #e0e0e0;
}

.form-group input:focus {
    outline: none;
    border-color: #bb86fc;
    background: #333333;
}

.form-group input::placeholder {
    color: #888888;
}

.submit-btn {
    width: 100%;
    background: #bb86fc;
    color: #121212;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #d1c4e9;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

.form-message.success {
    color: #28a745;
}

.form-message.error {
    color: #dc3545;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; right: 0; bottom: 0;
    display: flex;
    align-items: flex-start; /* Changed from center */
    justify-content: center;
    overflow-y: auto;
    padding-top: 40px; /* Add space at the top */
    padding-bottom: 40px; /* Add space at the bottom */
}
.modal-backdrop {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1;
}
.modal-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    text-align: center;
    animation: modalPopIn 0.2s;
    max-height: 90vh;
    overflow-y: auto;
    margin-bottom: 40px; /* Optional: extra space at bottom */
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
}
@keyframes modalPopIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Prevent background scroll when modal is open, but allow modal scroll */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Terms & Conditions Page */
.terms-section {
    padding: 100px 0;
    background: #1e1e1e;
}
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.terms-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}
.terms-section h2 {
    font-size: 2rem;
    color: #bb86fc;
    margin-top: 40px;
    margin-bottom: 18px;
    font-weight: 600;
}
.terms-section ul, .terms-section ol {
    margin-left: 2em;
    margin-bottom: 20px;
}
.terms-section li {
    margin-bottom: 10px;
    font-size: 1.08rem;
    color: #b0b0b0;
}
.terms-section p {
    font-size: 1.08rem;
    color: #b0b0b0;
    margin-bottom: 18px;
}
.terms-section a {
    color: #bb86fc;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .terms-title { font-size: 2rem; }
    .terms-section h2 { font-size: 1.3rem; }
    .terms-container {
        padding: 0 10px;
    }
}

/* Privacy Policy Page */
.privacy-section {
    padding: 100px 0;
    background: #1e1e1e;
}
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.privacy-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}
.privacy-section h2 {
    font-size: 2rem;
    color: #bb86fc;
    margin-top: 40px;
    margin-bottom: 18px;
    font-weight: 600;
}
.privacy-section ul, .privacy-section ol {
    margin-left: 2em;
    margin-bottom: 20px;
}
.privacy-section li {
    margin-bottom: 10px;
    font-size: 1.08rem;
    color: #b0b0b0;
}
.privacy-section p {
    font-size: 1.08rem;
    color: #b0b0b0;
    margin-bottom: 18px;
}
.privacy-section a {
    color: #bb86fc;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .privacy-title { font-size: 2rem; }
    .privacy-section h2 { font-size: 1.3rem; }
    .privacy-container { padding: 0 10px; }
}

/* Mobile viewport constraints */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
        box-sizing: border-box;
    }
    
    /* Ensure all direct children of body respect viewport */
    body > * {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .floating-nav {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 8px 15px;
        border-radius: 25px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 5px 8px;
    }
    
    /* Hero section adjustments */
    .hero-box {
        padding: 30px 40px;
        margin: 0 10px;
        max-width: calc(100% - 20px);
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-title-container {
        gap: 20px;
        flex-wrap: nowrap;
    }
    
    .hero-logo {
        height: 35px; /* Smaller on mobile */
    }
    
    .company-name {
        font-size: 2.5rem !important;
        letter-spacing: -1px;
    }
    
    .tagline {
        font-size: 1.1rem !important;
    }
    
    /* Section padding adjustments */
    .about-section {
        padding: 60px 0;
    }
    
    .team-section {
        padding: 60px 0;
    }
    
    .waitlist-section {
        padding: 60px 0;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    /* Cards grid - stack on mobile */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    /* Contact form improvements */
    .container {
        padding: 0 15px;
    }
    
    .waitlist-form {
        padding: 0 10px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    /* Modal improvements for mobile */
    .modal {
        padding: 20px 10px;
        align-items: flex-start;
    }
    
    .modal-content {
        max-width: 95%;
        padding: 20px 15px;
        max-height: 85vh;
    }
    
    .modal-body {
        max-height: 200px;
        font-size: 0.9rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    /* Team carousel mobile adjustments */
    .carousel-container {
        margin: 0 10px;
    }
    
    .team-card {
        padding: 25px 20px;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    .team-position {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 30px 0;
        font-size: 0.9rem;
    }
    
    /* Blog Header Improvements */
    .blog-header-section {
        padding: 80px 0 40px;
    }
    
    .blog-main-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .blog-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Feature Page Hero Mobile Improvements */
    .feature-page-hero {
        height: 50vh; /* Even smaller on mobile */
        min-height: 350px; /* Smaller minimum height for mobile */
    }
    
    .feature-page-hero .hero-content {
        height: 50vh; /* Match the section height */
        padding: 0 20px;
    }
    
    .feature-page-hero .hero-box {
        padding: 30px 40px;
        margin: 0 10px;
        max-width: calc(100% - 20px);
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .feature-page-hero .company-name {
        font-size: 2.5rem !important;
        letter-spacing: -1px;
    }
    
    .feature-page-hero .tagline {
        font-size: 1.1rem !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .blog-post-title a {
        padding: 5px 0;
        display: block;
    }
    
    .category-link {
        padding: 10px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .pagination-link,
    .pagination-number {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .share-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .read-more-link {
        padding: 8px 0;
        display: inline-block;
    }
}

/* Improve text readability on mobile */
@media (max-width: 768px) {
    .blog-post-body {
        text-align: left;
        -webkit-text-size-adjust: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-post_body img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        margin: 15px 0;
        object-fit: cover;
        box-sizing: border-box;
    }
    
    .blog-post_body table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
        box-sizing: border-box;
        margin: 15px 0;
    }
    
    .blog-post_body table td,
    .blog-post_body table th {
        white-space: nowrap;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    /* Ensure all blog content respects container boundaries */
    .blog-post-body * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Handle wide tables */
    .blog-post-body table {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 15px 0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .blog-post-body table thead,
    .blog-post_body table tbody,
    .blog-post_body table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .blog-post-body table td,
    .blog-post-body table th {
        padding: 8px 6px;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Handle embedded content */
    .blog-post-body iframe,
    .blog-post-body embed,
    .blog-post_body object,
    .blog-post_body video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
        border-radius: 8px;
        margin: 15px 0;
    }
    
    /* Handle wide images */
    .blog-post-body img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        border-radius: 8px;
        margin: 15px auto;
        display: block;
        object-fit: cover;
    }
    
    /* Handle long URLs and unbreakable text */
    .blog-post-body a[href*="http"] {
        word-break: break-all;
        overflow-wrap: anywhere;
        text-decoration: underline;
        color: var(--primary-color);
    }
    
    .blog-post-body code,
    .blog-post_body pre code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}

/* Blog Styles */
/* Blog Header Section */
.blog-header-section {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(187, 134, 252, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(187, 134, 252, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.blog-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.blog-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #bb86fc 50%, #d1c4e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(187, 134, 252, 0.3);
}

.blog-subtitle {
    font-size: 1.3rem;
    color: #c0c0c0;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Blog Content Section */
.blog-content-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #121212 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
}

.blog-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(187, 134, 252, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(209, 196, 233, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.blog-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Category Filter */
.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.category-link {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(187, 134, 252, 0.2);
    border-radius: 30px;
    text-decoration: none;
    color: #c0c0c0;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 134, 252, 0.2), transparent);
    transition: left 0.5s;
}

.category-link:hover::before {
    left: 100%;
}

.category-link:hover,
.category-link.active {
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    color: #121212;
    border-color: #bb86fc;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.4);
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-post-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(187, 134, 252, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(187, 134, 252, 0.3) inset,
        0 8px 32px rgba(187, 134, 252, 0.2);
    border-color: rgba(187, 134, 252, 0.4);
}

.blog-post-card:hover::before {
    opacity: 1;
}

.blog-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

.blog-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    color: #121212;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.blog-post-title {
    margin: 0 0 15px 0;
}

.blog-post-title a {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-post-title a:hover {
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
}

.blog-post-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(187, 134, 252, 0.2);
    background: linear-gradient(90deg, rgba(187, 134, 252, 0.02) 0%, transparent 50%, rgba(187, 134, 252, 0.02) 100%);
}

.blog-post-author {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.read-more-link {
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    transition: width 0.3s ease;
}

.read-more-link:hover::after {
    width: 100%;
}

.read-more-link:hover {
    transform: translateX(3px);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
}

.no-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-number {
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(187, 134, 252, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #c0c0c0;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pagination-link::before,
.pagination-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 134, 252, 0.2), transparent);
    transition: left 0.5s;
}

.pagination-link:hover::before,
.pagination-number:hover::before {
    left: 100%;
}

.pagination-link:hover,
.pagination-number:hover,
.pagination-number.active {
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    color: #121212;
    border-color: #bb86fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.4);
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

/* Individual Blog Post Styles */
.blog-post-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 40% 30%, rgba(187, 134, 252, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 60% 70%, rgba(209, 196, 233, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.blog-post-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.blog-breadcrumb {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #999;
    font-weight: 500;
}

.blog-breadcrumb a {
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
    transform: translateX(2px);
}

.blog-post-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #bb86fc 50%, #d1c4e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(187, 134, 252, 0.3);
}

/* Blog Statistics Bar */
.blog-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.stat-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 134, 252, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-box:hover::before {
    left: 100%;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(187, 134, 252, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(187, 134, 252, 0.2);
}

.stat-icon {
    font-size: 1.4rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(187, 134, 252, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(187, 134, 252, 0.2);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #bb86fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Specific stat box styling */
.author-stat {
    border-left: 3px solid #4fc3f7;
}

.date-stat {
    border-left: 3px solid #81c784;
}

.reading-time-stat {
    border-left: 3px solid #ffb74d;
}

.category-stat {
    border-left: 3px solid #f06292;
}

/* Blog Post Content */
.blog-post-content-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #121212 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
    /* Remove overflow: visible and min-height constraints that might interfere */
}

.blog-post-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(187, 134, 252, 0.03) 0%, transparent 70%),
                radial-gradient(circle at 75% 75%, rgba(209, 196, 233, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.blog-post-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    position: relative;
    z-index: 1;
    /* Ensure container height allows sticky to work properly */
    min-height: calc(100vh - 200px);
}

.blog-post-main {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.blog-post-banner {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(187, 134, 252, 0.1) inset;
    position: relative;
}

.blog-post-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-banner:hover .blog-banner-image {
    transform: scale(1.02);
}

/* Blog Post Body */
.blog-post-body {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.blog-post-body h1 { font-size: 2.2rem; }
.blog-post-body h2 { font-size: 1.8rem; }
.blog-post-body h3 { font-size: 1.5rem; }
.blog-post-body h4 { font-size: 1.3rem; }

.blog-post-body p {
    margin-bottom: 20px;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-post-body li {
    margin-bottom: 8px;
}

.blog-post-body blockquote {
    background: rgba(187, 134, 252, 0.1);
    border-left: 4px solid #bb86fc;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    font-style: italic;
}

.blog-post-body pre {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.blog-post-body code {
    background: #1a1a1a;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post-body a {
    color: #bb86fc;
    text-decoration: underline;
}

.blog-post-body a:hover {
    color: #d1c4e9;
}

/* Blog Post Sidebar */
.blog-post-sidebar {
    position: sticky;
    top: 100px; /* Account for floating nav height */
    height: fit-content;
    max-height: calc(100vh - 120px); /* Account for nav and some padding */
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 10;
    align-self: flex-start;
    flex: 0 0 300px;
    min-width: 300px;
    /* Ensure sticky works by removing webkit prefix and adding more specificity */
    position: -webkit-sticky;
    position: sticky;
}

/* Fallback for browsers that don't support sticky */
@supports not (position: sticky) {
    .blog-post-sidebar {
        position: fixed;
        top: 120px; /* Account for nav */
        right: 20px;
        width: 280px;
        z-index: 999;
    }
}

/* Enhanced sticky behavior */
.blog-post-sidebar.scrolled {
    top: 90px; /* Adjust for scrolled nav state */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Smooth scrolling for sidebar content */
.blog-post-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-post-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.blog-post-sidebar::-webkit-scrollbar-thumb {
    background: rgba(187, 134, 252, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.blog-post-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(187, 134, 252, 0.5);
}

/* Table of contents list styling */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 0;
}

/* Different indentation levels for TOC */
.toc-level-1 .toc-link {
    padding-left: 12px;
    font-weight: 600;
}

.toc-level-2 .toc-link {
    padding-left: 24px;
    font-weight: 500;
}

.toc-level-3 .toc-link {
    padding-left: 36px;
    font-weight: 400;
}

.toc-level-4 .toc-link {
    padding-left: 48px;
    font-weight: 400;
    font-size: 0.9rem;
}

.table-of-contents,
.recent-posts-sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(187, 134, 252, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
    top: 30px; /* Adjust as needed for spacing from the top */
    z-index: 10;
}

.table-of-contents::before,
.recent-posts-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.table-of-contents h3,
.recent-posts-sidebar h3 {
    background: linear-gradient(135deg, #ffffff 0%, #bb86fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.toc-link {
    display: block;
    color: #b0b0b0;
    text-decoration: none;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toc-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 134, 252, 0.1), transparent);
    transition: left 0.5s ease;
}

.toc-link:hover::before {
    left: 100%;
}

.toc-link:hover,
.toc-link.active {
    color: #bb86fc;
    background: rgba(187, 134, 252, 0.1);
    border-left-color: #bb86fc;
    transform: translateX(5px);
}

/* Enhanced TOC Mobile Experience */
.table-of-contents {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toc-link {
    padding: 12px 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 44px; /* iOS recommended minimum touch target */
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.toc-link:hover,
.toc-link:focus {
    background-color: rgba(64, 130, 255, 0.1);
    transform: translateX(5px);
}

.toc-level-1 .toc-link { 
    padding-left: 15px; 
    font-weight: 500;
}
.toc-level-2 .toc-link { 
    padding-left: 25px; 
    opacity: 0.9;
}
.toc-level-3 .toc-link { 
    padding-left: 35px; 
    opacity: 0.8;
    font-size: 0.85rem;
}
.toc-level-4 .toc-link { 
    padding-left: 45px; 
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Mobile styles for blog-specific elements */
@media (max-width: 768px) {
    /* Blog Post Content - ensure full width and proper padding */
    .blog-post-content-section {
        padding: 40px 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .blog-post-content-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
        min-height: auto; /* Remove min-height constraint on mobile */
        width: 100%;
        box-sizing: border-box;
    }
    
    .blog-post-main {
        order: 2; /* Content comes after sidebar on mobile */
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-post-sidebar {
        order: 1; /* Sidebar comes first on mobile */
        position: static;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        max-height: none;
        margin-bottom: 20px;
    }
    
    /* Table of contents - mobile specific styles */
    .table-of-contents {
        margin-bottom: 25px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .toc-link {
        padding: 12px 15px;
        font-size: 0.9rem;
        line-height: 1.4;
        min-height: 44px; /* iOS recommended minimum touch target */
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
    }
    
    .toc-link:hover,
    .toc-link:focus {
        background-color: rgba(64, 130, 255, 0.1);
        transform: translateX(5px);
    }
    
    .toc-level-1 .toc-link { 
        padding-left: 15px; 
        font-weight: 500;
    }
    .toc-level-2 .toc-link { 
        padding-left: 25px; 
        opacity: 0.9;
    }
    .toc-level-3 .toc-link { 
        padding-left: 35px; 
        opacity: 0.8;
        font-size: 0.85rem;
    }
    .toc-level-4 .toc-link { 
        padding-left: 45px; 
        opacity: 0.7;
        font-size: 0.8rem;
    }
}

/* Enhanced Blog Post Body for Mobile */
@media (max-width: 768px) {
    .blog-post-body {
        font-size: 1rem;
        line-height: 1.7;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-post_body h1,
    .blog-post_body h2,
    .blog-post_body h3,
    .blog-post_body h4 {
        font-size: 1.4rem;
        margin-top: 30px;
        margin-bottom: 15px;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .blog-post-body h1 { font-size: 1.6rem; }
    .blog-post-body h2 { font-size: 1.5rem; }
    .blog-post-body h3 { font-size: 1.4rem; }
    .blog-post-body h4 { font-size: 1.3rem; }
    
    .blog-post-body p {
        margin-bottom: 18px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .blog-post-body pre {
        font-size: 0.85rem;
        padding: 15px;
        margin: 20px 0;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .blog-post-body code {
        font-size: 0.85rem;
        padding: 2px 4px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .blog-post-body blockquote {
        padding: 15px;
        margin: 20px 0;
        font-size: 0.95rem;
    }
    
    /* Mobile Sidebar Styling */
    .table-of-contents,
    .recent-posts-sidebar {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .table-of-contents h3,
    .recent-posts-sidebar h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .toc-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .toc-level-1 .toc-link { padding-left: 10px; }
    .toc-level-2 .toc-link { padding-left: 20px; }
    .toc-level-3 .toc-link { padding-left: 30px; }
    .toc-level-4 .toc-link { padding-left: 40px; font-size: 0.85rem; }
    
    .recent-post-item {
        padding: 10px;
        margin: 6px 0;
    }
    
    .recent-post-title a {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Blog Tags Mobile */
    .blog-post-tags {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .tags-container {
        gap: 8px;
    }
    
    .blog-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Social Sharing Mobile */
    .share-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .share-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex: 1;
        min-width: calc(50% - 5px);
        text-align: center;
    }
    
    /* Blog Navigation Mobile */
    .blog-post-navigation {
        margin-top: 40px;
        padding-top: 20px;
    }
    
    .back-to-blog {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Universal content overflow prevention for mobile */
@media (max-width: 768px) {
    /* Force all content to respect viewport width */
    .blog-post-body * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Handle wide tables */
    .blog-post-body table {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 15px 0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .blog-post-body table thead,
    .blog-post-body table tbody,
    .blog-post_body table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .blog-post-body table td,
    .blog-post-body table th {
        padding: 8px 6px;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Handle embedded content */
    .blog-post-body iframe,
    .blog-post-body embed,
    .blog-post_body object,
    .blog-post_body video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
        border-radius: 8px;
        margin: 15px 0;
    }
    
    /* Handle wide images */
    .blog-post-body img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        border-radius: 8px;
        margin: 15px auto;
        display: block;
        object-fit: cover;
    }
    
    /* Handle long URLs and unbreakable text */
    .blog-post-body a[href*="http"] {
        word-break: break-all;
        overflow-wrap: anywhere;
        text-decoration: underline;
        color: var(--primary-color);
    }
    
    .blog-post-body code,
    .blog-post_body pre code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}

/* Feature Pages Hero Section - Apply blog-style theming */
.feature-page-hero {
    position: relative;
    height: 60vh; /* Reduced from 100vh to make it thinner */
    overflow: hidden;
    text-align: center;
    color: white;
    width: 100vw;
    min-height: 400px; /* Reduced from 500px */
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.feature-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(187, 134, 252, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(187, 134, 252, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.feature-page-hero .hero-content {
    max-width: 800px;
    width: 100%;
    height: 60vh; /* Reduced from 100vh to match section height */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.feature-page-hero .hero-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 20px;
    padding: 60px 80px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
    border: 1px solid rgba(187, 134, 252, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

.feature-page-hero .hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.feature-page-hero .company-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #bb86fc 50%, #d1c4e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(187, 134, 252, 0.3);
    position: relative;
    z-index: 1;
}

.feature-page-hero .tagline {
    font-size: 1.5rem;
    color: #c0c0c0;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== NEWS SECTION ===== */
.news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(25, 25, 25, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(187, 134, 252, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(209, 196, 233, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(187, 134, 252, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.news-section .container {
    position: relative;
    z-index: 1;
}

.news-section .section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #bb86fc 50%, #d1c4e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.news-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #bb86fc 0%, #d1c4e9 100%);
    border-radius: 2px;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4,  0, 0.2, 1);
    position: relative;
    min-height: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(209, 196, 233, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(187, 134, 252, 0.2);
    border-color: rgba(187, 134, 252, 0.3);
}

.news-image {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(209, 196, 233, 0.05) 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(209, 196, 233, 0.05) 100%);
    font-size: 4rem;
    color: rgba(187, 134, 252, 0.6);
}

.news-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.news-source {
    font-size: 0.85rem;
    color: #bb86fc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.2) 0%, rgba(209, 196, 233, 0.1) 100%);
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(187, 134, 252, 0.3);
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

/* Responsive Design for News Section */
@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }
    
    .news-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .news-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-image {
        flex: 0 0 200px;
    }
    
    .news-content {
        padding: 25px 20px;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-description {
        font-size: 0.95rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    
    .news-grid {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .news-section .section-title {
        font-size: 1.8rem;
    }
    
    .news-image {
        flex: 0 0 180px;
    }
    
    .news-content {
        padding: 20px 15px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-description {
        font-size: 0.9rem;
    }
    
    .news-source {
        font-size: 0.8rem;
    }
}

/* ===== BREADCRUMB NAVIGATION STYLES ===== */
.breadcrumb-nav {
    background: transparent;
    padding: 20px 0;
    margin-top: 70px;
    position: relative;
}

.breadcrumb-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(187, 134, 252, 0.2) 50%, 
        transparent 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: #bb86fc;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(187, 134, 252, 0.08);
    border: 1px solid rgba(187, 134, 252, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    background: rgba(187, 134, 252, 0.15);
    border-color: rgba(187, 134, 252, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(187, 134, 252, 0.15);
}

.breadcrumb a::before {
    content: '🏠';
    font-size: 12px;
}

.breadcrumb-separator {
    margin: 0 12px;
    color: #666;
    font-size: 16px;
    font-weight: 300;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(187, 134, 252, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(187, 134, 252, 0.2);
    position: relative;
    overflow: hidden;
}

.breadcrumb-current::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mobile breadcrumb responsiveness */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 12px 0;
        margin-top: 60px;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .breadcrumb a,
    .breadcrumb-current {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
        font-size: 12px;
    }
}

/* Remove dark theme override to let natural background show */