/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #EA2252;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

/* Remove main-content padding to eliminate white space */

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

.display-4 {
    font-weight: 800;
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    background-color: rgba(30, 41, 59, 0.95) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

/* Table of Contents */
.sticky-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.sticky-toc h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.toc-level-1 {
    font-weight: 600;
}

.toc-level-2 {
    padding-left: 1rem;
    font-weight: 500;
}

.toc-level-3 {
    padding-left: 2rem;
    font-weight: 400;
    font-size: 0.85rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    color: white;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-50px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    color: white !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(234, 34, 82, 0.2);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 6px rgba(234, 34, 82, 0.2), 0 0 0 0 rgba(234, 34, 82, 0.7);
    }
    70% {
        box-shadow: 0 4px 6px rgba(234, 34, 82, 0.2), 0 0 0 10px rgba(234, 34, 82, 0);
    }
    100% {
        box-shadow: 0 4px 6px rgba(234, 34, 82, 0.2), 0 0 0 0 rgba(234, 34, 82, 0);
    }
}

.hero-cta .btn:hover {
    background-color: #d91e47;
    border-color: #d91e47;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(234, 34, 82, 0.4);
    animation: none;
}

.hero-cta .btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 4px rgba(234, 34, 82, 0.2);
}

.hero-cta .btn i {
    transition: transform 0.3s ease;
}

.hero-cta .btn:hover i {
    transform: translateX(5px);
}

.hero-illustration {
    text-align: center;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Lottie Animation Container */
.lottie-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottie-container lottie-player {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .lottie-container {
        height: 300px;
    }
}

/* Blog and Article Headers */
.blog-header,
.article-header {
    padding-top: 6rem !important; /* Account for fixed navbar */
}

.blog-header h1,
.article-header h1 {
    color: white !important;
}

/* Mobile Table of Contents */
.mobile-toc {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-toc-header {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
}

.mobile-toc-header:hover {
    background: #1e40af;
}

.mobile-toc-header i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-toc-header[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-toc-content {
    padding: 1rem;
    background: white;
}

.mobile-toc-content .toc-list {
    margin-bottom: 0;
}

.mobile-toc-content .toc-list a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.mobile-toc-content .toc-list a:hover {
    color: var(--primary-color);
}

.mobile-toc-content .toc-list li:last-child a {
    border-bottom: none;
}

/* Value Propositions */
.value-props-section {
    padding: 5rem 0;
}

.value-prop-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.value-prop-description {
    font-size: 1.2rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.value-prop-icon {
    text-align: center;
}

.value-prop-icon img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Cards */
.article-card {
    border: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-card .card-text {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.article-genres {
    margin-bottom: 1rem;
}

.article-genres .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    padding: 5rem 0 3rem;
}

/* Filters */
.filters-section {
    border-bottom: 1px solid var(--border-color);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--secondary-color);
}

.article-body code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.article-body pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-featured-image img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Lottie Animation Embeds */
.lottie-container {
    max-width: 100%;
    margin: 2rem auto;
    text-align: center;
}

.lottie-container > div {
    max-width: 500px;
    max-height: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Social Media Embeds */
.twitter-tweet {
    margin: 2rem auto !important;
}

.twitter-fallback {
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
    background-color: #f8f9fa;
}

.twitter-fallback p {
    margin: 0;
    color: #666;
}

.twitter-fallback a {
    color: #1da1f2;
    text-decoration: none;
    font-weight: 500;
}

.twitter-fallback a:hover {
    text-decoration: underline;
}

.linkedin-embed {
    margin: 2rem 0;
}

.social-embed-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.social-embed-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-embed-header i {
    color: #0077B5; /* LinkedIn blue */
    font-size: 1.5rem;
}

.social-embed-body {
    color: var(--text-color);
}

.social-embed-body p {
    margin-bottom: 1rem;
}

/* Social Sharing */
.social-sharing {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.social-buttons .btn {
    margin: 0.25rem;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer h5,
footer h6 {
    color: white;
}

footer .social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--accent-color) !important;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

.page-link:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .value-prop-title {
        font-size: 2rem;
    }
    
    .value-prop-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding-top: 66px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .value-props-section {
        padding: 3rem 0;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

/* Error States */
.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

/* Table of Contents styles are defined in the sticky-toc section */

.toc-level-1 {
    font-weight: 600;
}

.toc-level-2 {
    padding-left: 1rem;
    font-weight: 500;
}

.toc-level-3 {
    padding-left: 2rem;
    font-weight: 400;
    font-size: 0.9rem;
}
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}
