
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    /* color: #1f2937; */
    background-color: #f9fafb;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: #b91c1c;
}

.logo svg {
    color: #dc2626;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #dc2626;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #374151;
    transition: all 0.2s;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin: 2rem 0;
}

.main-content {
    min-width: 0;
}

/* Blog Article */
.blog-article {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: 3rem;
    background: linear-gradient(135deg, #fef2f2, #f9fafb);
    border-bottom: 1px solid #f3f4f6;
}

.badge-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #fecaca;
}

.meta-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.meta-item svg {
    color: #9ca3af;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1.5rem;
}

.article-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.author-info svg {
    color: #9ca3af;
}

.social-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #f9fafb;
    color: #dc2626;
    border-color: #fecaca;
}

/* Article Content */
.article-content {
    padding: 3rem;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    scroll-margin-top: 100px;
}

.section-icon {
    font-size: 1.5rem;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 1.5rem 0 1rem 0;
}

/* Callouts */
.callout {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    border-left: 4px solid;
}

.callout-warning {
    background: #fef2f2;
    border-color: #dc2626;
}

.callout-success {
    background: #f0fdf4;
    border-color: #16a34a;
}

.callout-neutral {
    background: #f8fafc;
    border-color: #64748b;
}

.callout h3 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.callout ul, .callout ol {
    margin: 0;
    padding-left: 1.5rem;
}

.callout li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-header i
{
    color: #ff2d36;
    font-size: 20px;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon.ocean {
    color: #ff2d36;
}

.feature-icon.air {
    color: #ff2d36;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feature-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.feature-card li {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Technology Stack */
.tech-stack {
    margin: 2rem 0;
}

.tech-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.tech-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tech-marker {
    width: 4px;
    min-height: 60px;
    border-radius: 2px;
    margin-top: 0.5rem;
}

.tech-marker.blue {
    background: #2563eb;
}

.tech-marker.purple {
    background: #7c3aed;
}

.tech-marker.orange {
    background: #ea580c;
}

.tech-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.tech-content p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Implementation Steps */
.implementation-steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.implementation-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Future Grid */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.future-column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.future-column ul {
    margin: 0;
    padding-left: 1.5rem;
}

.future-column li {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.125rem;
    color: #fecaca;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #dc2626;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar Styles - Updated for sequential scrolling */
.sidebar {
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.social-share-vertical {
    display: flex;
    /* flex-direction: column; */
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.share-btn.vertical {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.share-btn.vertical:hover {
    background: #f9fafb;
    color: #dc2626;
    border-color: #fecaca;
    transform: translateY(-1px);
}

/* Only TOC is sticky */
.sticky-toc {
    position: sticky;
    /* top: 6rem; */
    z-index: 10;
    margin-bottom: 1.5rem;
}

/* Other sidebar cards - sequential scrolling behavior */
.toc-card,
.author-card,
.recent-posts-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Author and Recent Posts cards with delayed scroll */
.author-card,
.recent-posts-card {
    position: sticky;
    top: calc(100vh - 300px); /* Start moving when approaching bottom */
    margin-bottom: 1.5rem;
    transition: top 0.3s ease;
}

/* When TOC is fully scrolled, allow other cards to scroll normally */
.toc-scrolled .author-card,
.toc-scrolled .recent-posts-card {
    position: static;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.card-header svg {
    color: #dc2626;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Table of Contents */
.toc-nav {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-link:hover {
    background: #DC1414;
    color: #dc2626;
}

.toc-link.active {
    background: #DC1414;
    color: #dc2626;
    font-weight: 500;
}

.toc-icon {
    flex-shrink: 0;
    color: inherit;
}

/* Author Card */
.author-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar svg {
    color: #dc2626;
}

.author-details h4 {
    font-weight: 600;
    color: #111827;
    margin: 0;
    font-size: 1rem;
}

.author-details p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.author-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.visit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.visit-button:hover {
    background: #fef2f2;
}

/* Recent Posts */
.recent-posts-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.recent-post {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s;
}

.recent-post h4:hover {
    color: #dc2626;
}

.recent-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.recent-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
    
    .toc-card,
    .author-card,
    .recent-posts-card {
        position: static;
    }
    
    .social-share-vertical {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .article-header,
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .badge-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .future-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-content p,
    .article-content li {
        font-size: 1rem;
    }
    
    .article-header,
    .article-content {
        padding: 1.5rem 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background: #fef2f2;
    color: #dc2626;
}

/* Mobile Menu Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    z-index: 1000;
    transition: width 0.1s ease;
}

.borderRightN
{
    border-right: 1px solid #373737;
}

.future-column i
{
    color: #df0e0e;
    font-size: 21px;
    vertical-align: text-bottom;
}


/*STYLING SIDEBAR*/
.toc-card, .author-card, .recent-posts-card {
    background: #121212;
    border: 1px solid #2f2f2f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    color: #ffffff;
}

.card-header {
    border-bottom: 1px solid #313131;
}

.toc-link {
    color: #e7e7e7;
}

.toc-link:hover {
    background: #DC1414;
    color: #ffffff;
}

.author-details h4 {
    color: #ffffff;
}

.author-content p {
    color: #efefef;
}

.recent-post h4 {
    color: #efefef;
}

.share-btn.vertical {
    background: #1e1e1e;
    border: 1px solid #333333;
    color: #ebebeb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.share-blogs-head
{
   color: #dbdbdb;
    font-family: inherit;
    font-size: 22px;
}