/* Base styles */
:root {
    --primary-bg: #050a15; /* Slightly blue-black instead of pure black */
    --secondary-bg: #0c1e36;
    --primary-color: #ffffff;
    --secondary-color: #a0aec0;
    --accent-color: #3182ce;
    --accent-hover: #4299e1;
    --border-color: rgba(49, 130, 206, 0.3);
    --card-bg: rgba(49, 130, 206, 0.15); /* More visible blue background */
    --card-hover: rgba(49, 130, 206, 0.25);
    --header-gradient-start: rgba(30, 64, 130, 0.5);
    --header-gradient-end: rgba(0, 0, 0, 1);
    --blue-bg-light: rgba(49, 130, 206, 0.15);
    --blue-bg-medium: rgba(49, 130, 206, 0.25);
    --blue-bg-dark: rgba(12, 44, 86, 0.6);
    --panel-bg: rgba(12, 30, 54, 0.85);
    --translucent-bg: rgba(12, 30, 54, 0.7);
    --translucent-bg-hover: rgba(20, 40, 70, 0.7);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    min-height: 100vh;
    scroll-behavior: smooth; /* Enable smooth scrolling */
    /* Textured background */
    background-color: var(--primary-bg);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233182ce' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 20% 35%, rgba(49, 130, 206, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 44%, rgba(66, 153, 225, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 55% 80%, rgba(43, 108, 176, 0.05) 0%, transparent 35%);
    background-attachment: fixed;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--accent-color);
    width: 0%;
    z-index: 1000;
    transition: width 0.2s;
}

/* Header */
header {
    background: linear-gradient(to bottom, var(--header-gradient-start), var(--header-gradient-end));
    padding: 1rem 0;
    position: relative;
    /* top: 0; */
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #e2e8f0;
    color: #000;
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main content */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.back-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.back-link:hover i {
    transform: translateX(-3px);
}

.hero-image {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.blog-header {
    margin-bottom: 2.5rem;
    background-color: var(--blue-bg-dark);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(49, 130, 206, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(49, 130, 206, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(49, 130, 206, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(49, 130, 206, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    z-index: -1;
}

.blog-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #3182ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.875rem;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--blue-bg-light);
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

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

.meta-item i {
    margin-right: 0.25rem;
}

.share-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.875rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background-color: rgba(49, 130, 206, 0.1);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: rgba(49, 130, 206, 0.2);
    transform: translateY(-2px);
}

.share-btn i {
    margin-right: 0.25rem;
}

/* Dynamic Table of Contents */
.table-of-contents {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(12, 30, 54, 0.95);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    max-height: 80vh;
    width: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
}

.table-of-contents.visible {
    display: block;
}

.toc-container {
    position: relative;
}

.toc-button {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 0.25rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.toc-button i {
    transition: transform 0.3s;
}

.toc-button.active i {
    transform: rotate(180deg);
}

.table-of-contents h4 {
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-of-contents h4 .toggle-toc {
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--accent-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.table-of-contents h4 .toggle-toc:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    max-height: calc(100vh - 8rem);
}

.table-of-contents li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.2;
}

.table-of-contents a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    padding: 0.15rem 0;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-of-contents a:hover {
    color: var(--accent-color);
}

.table-of-contents a.active {
    color: var(--accent-color);
    border-left: 2px solid var(--accent-color);
    font-weight: 500;
}

.table-of-contents .toc-h2 {
    padding-left: 0;
}

.table-of-contents .toc-h3 {
    padding-left: 0.5rem;
    font-size: 0.8em;
}

.table-of-contents .toc-h4 {
    padding-left: 1rem;
    font-size: 0.75em;
}

.toc-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 101;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .table-of-contents {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        max-height: 70vh;
    }
    
    .toc-container {
        position: static;
    }
}

/* Blog content styles */
.blog-content {
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #fff;
    padding: 0.75rem 1rem;
    background-color: var(--blue-bg-dark);
    border-radius: 0.25rem;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
    background-color: var(--blue-bg-medium);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
}

.blog-content h3::before {
    content: '§';
    margin-right: 0.5rem;
    opacity: 0.5;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.25rem 0 0.75rem;
    color: var(--primary-color);
    background-color: var(--blue-bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.blog-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.blog-content a:hover {
    color: var(--accent-hover);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--primary-color);
    background-color: var(--blue-bg-light);
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-content code {
    background-color: rgba(49, 130, 206, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9em;
    color: #e2e8f0;
}

.blog-content pre {
    background-color: rgba(49, 130, 206, 0.15);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
}


/* SVG visual styling */
.svg-container {
    position: relative;
    width: auto;
    max-width: 100%;
    margin: 2rem 0;
    z-index: 1;
    overflow: visible;
}

.svg-visual {
    width: 400px;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
    background-color: var(--blue-bg-dark);
    padding: 10px;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    max-width: 100%;
}

.svg-visual.visible {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 1;
    display: block;
}

.visual-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    max-width: 45%;
    position: relative;
    z-index: 1;
}

.visual-right {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    max-width: 45%;
    position: relative;
    z-index: 1;
}

.visual-center {
    display: block;
    margin: 2.5rem auto;
    float: none;
    clear: both;
    position: relative;
    z-index: 1;
}

/* Create improved text wrapping around visuals */
.text-with-visual {
    display: flow-root;
    margin-bottom: 1rem;
}

.text-with-visual p {
    margin-bottom: 1rem;
}.pull-quote {
    font-size: 1.5rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--accent-color);
    margin: 2rem 0;
    padding: 0 2rem;
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.pull-quote::before,
.pull-quote::after {
    content: '"';
    font-size: 3rem;
    line-height: 1;
    position: absolute;
    opacity: 0.2;
}

.pull-quote::before {
    left: 0.5rem;
    top: -1rem;
}

.pull-quote::after {
    right: 0.5rem;
    bottom: -2rem;
}

.highlight-box {
    background-color: rgba(49, 130, 206, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.with-sidebar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.sidebar {
    background-color: rgba(49, 130, 206, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
}

.sidebar h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.definition-card {
    background-color: rgba(49, 130, 206, 0.07);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-color);
}

.definition-card h4 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.step-by-step {
    counter-reset: step;
}

.step-by-step li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.step-by-step li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.glow-card {
    background: linear-gradient(45deg, rgba(12, 30, 54, 0.8), rgba(49, 130, 206, 0.2));
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 0 15px rgba(49, 130, 206, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fancy-list {
    list-style: none;
    padding-left: 0;
}

.fancy-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.fancy-list li::before {
    content: '→';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Author section */
.author-section {
    background-color: var(--blue-bg-dark);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 3rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(49, 130, 206, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(49, 130, 206, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(49, 130, 206, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(49, 130, 206, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.15;
    z-index: -1;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.author-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* References section */
.references-section {
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: var(--blue-bg-light);
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.references-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.references-section ol {
    padding-left: 1.5rem;
}

.references-section li {
    margin-bottom: 0.5rem;
}

/* Related posts */
.related-posts {
    margin: 3rem 0;
    background-color: var(--blue-bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: background-color 0.3s;
    color: var(--primary-color);
    display: block;
}

.post-card:hover {
    background-color: var(--card-hover);
}

.post-card img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
}

.post-content {
    padding: 1rem;
}

.post-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.post-card:hover h3 {
    color: var(--accent-color);
}

.post-card p {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--accent-color);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.25rem;
    transition: transform 0.3s;
}

.post-card:hover .read-more i {
    transform: translateX(3px);
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--secondary-color);
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media (min-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-nav {
        margin-top: 0;
    }
    
    .dual-column {
        grid-template-columns: 1fr 1fr;
    }
    
    .with-sidebar {
        grid-template-columns: 3fr 1fr;
    }
}

@media (max-width: 767px) {
    .dual-column,
    .with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .svg-container {
        width: 100%;
        margin: 2rem 0;
        float: none;
    }
    
    .svg-visual {
        width: 100%;
        height: auto;
        margin: 0 auto;
        float: none;
    }
    
    .visual-left,
    .visual-right,
    .visual-center {
        float: none;
        margin: 2rem auto;
        display: block;
        max-width: 100%;
    }
    
    .text-with-visual {
        display: block;
    }
    
    .table-of-contents {
        position: relative;
        top: 0;
    }
}

/* Dark mode adjustments for readability */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #f7fafc;
        --secondary-color: #a0aec0;
    }
    
    .blog-content {
        color: #e2e8f0;
    }
}
/* TOC nested structure */
.toc-sublist {
    list-style-type: none;
    padding-left: 0.75rem;
    margin-top: 0.1rem;
    margin-bottom: 0.25rem;
    border-left: 1px solid rgba(49, 130, 206, 0.3);
}

.table-of-contents.minimized .toc-list, 
.table-of-contents.minimized .toc-sublist {
    display: none;
}

/* Hover effect on table of contents when minimized */
.table-of-contents.minimized:before {
    content: "☰";
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* Ensure content isn't hidden behind fixed TOC */
@media (min-width: 1200px) {
    main.container {
        margin-right: 320px; /* Make room for the TOC */
    }
}

/* Enhanced Section Styling */
.styled-section {
    position: relative;
    padding: 2rem;
    margin: 3rem -2rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.styled-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 30, 54, 0.3);
    opacity: 0.6;
    z-index: -1;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.styled-section.gradient-blue {
    background-image: linear-gradient(to right, rgba(43, 108, 176, 0.1), rgba(49, 130, 206, 0.15));
    border-left: 4px solid var(--accent-color);
}

.styled-section.dark-blue {
    background-color: rgba(26, 54, 93, 0.4);
    border-top: 1px solid rgba(66, 153, 225, 0.3);
    border-bottom: 1px solid rgba(66, 153, 225, 0.3);
}

.styled-section.subtle {
    background-color: rgba(12, 30, 54, 0.15);
    border: 1px solid rgba(49, 130, 206, 0.15);
}

.styled-section.highlight {
    background-image: 
        linear-gradient(135deg, rgba(49, 130, 206, 0.1), rgba(66, 153, 225, 0.15)),
        repeating-linear-gradient(45deg, rgba(49, 130, 206, 0.05) 0px, rgba(49, 130, 206, 0.05) 1px, transparent 1px, transparent 10px);
}

.styled-section.pattern {
    background-image: 
        radial-gradient(circle at center, rgba(49, 130, 206, 0.1) 0, rgba(49, 130, 206, 0.05) 25%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(66, 153, 225, 0.1) 0, transparent 50%);
    background-size: 20px 20px, 100% 100%;
}

/* Section title styling */
.section-title {
    position: relative;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

/* Dynamic content sections */
.dynamic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    opacity: 0;
    padding: 0 1rem;
    border-left: 2px solid transparent;
}

.dynamic-content.expanded {
    max-height: 2000px;
    opacity: 1;
    padding: 1rem;
    border-left: 2px solid var(--accent-color);
}

.toggle-content {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(49, 130, 206, 0.1);
}

.toggle-content:hover {
    background-color: rgba(49, 130, 206, 0.2);
}

.toggle-content i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.toggle-content.active i {
    transform: rotate(90deg);
}

/* Accent elements */
.accent-line {
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    margin: 2rem 0;
    width: 50%;
}

.accent-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Enhanced card styling */
.enhanced-card {
    background: rgba(12, 30, 54, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), rgba(66, 153, 225, 0.5));
}

.enhanced-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Text highlights */
.text-highlight {
    background: linear-gradient(to bottom, transparent 50%, rgba(49, 130, 206, 0.2) 50%);
    padding: 0 3px;
}

.text-glow {
    text-shadow: 0 0 5px rgba(66, 153, 225, 0.5);
}
, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.with-sidebar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.sidebar {
    background-color: rgba(49, 130, 206, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-size: 0.875rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(49, 130, 206, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(49, 130, 206, 0.3);
}

.definition-card {
    background-color: rgba(49, 130, 206, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-color);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.definition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.definition-card h4 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.step-by-step {
    counter-reset: step;
}

.step-by-step li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--translucent-bg);
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 6px;
    backdrop-filter: blur(3px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.step-by-step li:hover {
    background-color: var(--translucent-bg-hover);
    transform: translateY(-2px);
}

.step-by-step li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.glow-card {
    background: linear-gradient(45deg, rgba(12, 30, 54, 0.8), rgba(49, 130, 206, 0.2));
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 0 15px rgba(49, 130, 206, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.glow-card:hover {
    box-shadow: 0 0 20px rgba(49, 130, 206, 0.5);
    transform: translateY(-3px);
}

.fancy-list {
    list-style: none;
    padding-left: 0;
}

.fancy-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    background-color: var(--translucent-bg);
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-radius: 4px;
    backdrop-filter: blur(3px);
}

.fancy-list li:hover {
    transform: translateX(3px);
    background-color: var(--translucent-bg-hover);
}

.fancy-list li::before {
    content: '→';
    color: var(--accent-color);
    position: absolute;
    left: 0.7rem;
    transition: transform 0.3s ease;
}

.fancy-list li:hover::before {
    transform: translateX(2px);
}

/* Author section */
.author-section {
    background-color: rgba(49, 130, 206, 0.1);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 3rem 0;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.4);
}

.author-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.author-info p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* References section */
.references-section {
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: rgba(49, 130, 206, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.references-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

.references-section ol {
    padding-left: 1.5rem;
}

.references-section li {
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
    padding: 0.3rem 0;
}

.references-section li:hover {
    transform: translateX(3px);
}

/* Related posts */
.related-posts {
    margin: 3rem 0;
    background-color: var(--translucent-bg);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.related-posts h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--primary-color);
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.post-card:hover {
    background-color: var(--card-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.post-card:hover h3 {
    color: var(--accent-color);
}

.post-card p {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--accent-color);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    background-color: rgba(49, 130, 206, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-flex;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: rgba(49, 130, 206, 0.2);
}

.read-more i {
    margin-left: 0.25rem;
    transition: transform 0.3s;
}

.post-card:hover .read-more i {
    transform: translateX(3px);
}


/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(49, 130, 206, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(66, 153, 225, 0.05) 0%, transparent 30%);
    pointer-events: none;
    opacity: 0.6;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

.footer-nav a:hover {
    color: var(--primary-color);
    background-color: rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.875rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
-top: 0;
    }
    
    .dual-column {
        grid-template-columns: 1fr 1fr;
    }
    
    .with-sidebar {
        grid-template-columns: 3fr 1fr;
    }
}

@media (max-width: 767px) {
    .dual-column,
    .with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .svg-visual {
        width: 100%;
        height: auto;
    }
    
    .visual-left,
    .visual-right {
        float: none;
        margin: 2rem 0;
    }
    
    .table-of-contents {
        position: relative;
        top: 0;
    }
}

/* Section title styling */
.section-title {
    position: relative;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    display: inline-block;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(49, 130, 206, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.5);
}

/* Dynamic content sections */
.dynamic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    opacity: 0;
    padding: 0 1rem;
    border-left: 2px solid transparent;
}

.dynamic-content.expanded {
    max-height: 2000px;
    opacity: 1;
    padding: 1rem;
    border-left: 2px solid var(--accent-color);
    background-color: var(--translucent-bg);
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(5px);
}

/* Loading animations */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(49, 130, 206, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Animated fade-in elements */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Animated background gradients */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    opacity: 0.07;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.gradient-circle.one {
    top: 20%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(49, 130, 206, 0.4) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite alternate;
}

.gradient-circle.two {
    bottom: 20%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.3) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}


/* Dynamic content animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Blog content dynamic styles */
.blog-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.blog-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dynamic content sections */
.dynamic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    opacity: 0;
    padding: 0 1rem;
    border-left: 2px solid transparent;
}

.dynamic-content.expanded {
    max-height: 2000px;
    opacity: 1;
    padding: 1rem;
    border-left: 2px solid var(--accent-color);
    background-color: var(--translucent-bg);
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(5px);
}

.toggle-content {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: var(--blue-bg-light);
}

.toggle-content:hover {
    background-color: var(--blue-bg-medium);
    transform: translateY(-2px);
}

.toggle-content i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.toggle-content.active i {
    transform: rotate(90deg);
}

/* Loading animations */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(49, 130, 206, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* SVG visual loading */
.svg-visual {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background-color: var(--blue-bg-light);
    padding: 10px;
}

.svg-visual.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced card elements */
.key-concept {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: linear-gradient(to right, var(--blue-bg-dark), var(--blue-bg-medium));
}

.key-concept.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated background gradients */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    opacity: 0.07;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.gradient-circle.one {
    top: 20%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(49, 130, 206, 0.4) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite alternate;
}

.gradient-circle.two {
    bottom: 20%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.3) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

/* Styled sections */
.styled-section {
    position: relative;
    padding: 2rem;
    margin: 3rem -2rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.styled-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 30, 54, 0.3);
    opacity: 0.6;
    z-index: -1;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.styled-section.gradient-blue {
    background-image: linear-gradient(to right, rgba(43, 108, 176, 0.1), rgba(49, 130, 206, 0.15));
    border-left: 4px solid var(--accent-color);
}

.styled-section.dark-blue {
    background-color: rgba(26, 54, 93, 0.4);
    border-top: 1px solid rgba(66, 153, 225, 0.3);
    border-bottom: 1px solid rgba(66, 153, 225, 0.3);
}

.styled-section.subtle {
    background-color: rgba(12, 30, 54, 0.15);
    border: 1px solid rgba(49, 130, 206, 0.15);
}

.styled-section.highlight {
    background-image: 
        linear-gradient(135deg, rgba(49, 130, 206, 0.1), rgba(66, 153, 225, 0.15)),
        repeating-linear-gradient(45deg, rgba(49, 130, 206, 0.05) 0px, rgba(49, 130, 206, 0.05) 1px, transparent 1px, transparent 10px);
}

.styled-section.pattern {
    background-image: 
        radial-gradient(circle at center, rgba(49, 130, 206, 0.1) 0, rgba(49, 130, 206, 0.05) 25%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(66, 153, 225, 0.1) 0, transparent 50%);
    background-size: 20px 20px, 100% 100%;
}


/* Enhanced clearfix for floated elements */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
    line-height: 0;
}

.clearfix {
    display: block;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 0;
}
