@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #000000;
    --text-color: #000000;
    --background-color: #FFFFFF;
    --card-background: #FFFFFF;
    --yellow-accent: #FFE600;
    --spacing-unit: 2rem;
    --body-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --code-bg: #f5f5f5;
    --code-color: #333;
    --code-bg-dark: #2a2a2a;
    --code-color-dark: #e0e0e0;
    --text-secondary: #666;
    --text-secondary-dark: #aaa;
    --border-color: #eaeaea;
    --border-color-dark: #444;
    --heading-color: #333;
    --heading-color-dark: #e0e0e0;
    --link-color: #0066cc;
    --link-color-dark: #66b3ff;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 1.125rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100vw;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Top Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
}

.nav-container {
    max-width: 100%;
    margin-left: 6rem;
    margin-top:1rem;
    margin-right: 6rem;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 180px;
    height: auto;
    display: block;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: var(--yellow-accent);
    width: 0%;
    transition: width 0.1s ease;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding-top: var(--spacing-unit);
}

.home-container {
    margin-left: 6rem;
    margin-top:1rem;
    margin-right: 6rem;
    max-width: 100%;
    
    padding: 0 var(--spacing-unit);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
    gap: 3rem;
}

.home-main {
    width: 100%;
}

/* Home Sidebar */
.home-sidebar {
    position: relative;
    width: 100%;
}

.home-sidebar .sidebar-content {
    position: sticky;
    top: 100px;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    width: 100%;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

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

.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: lowercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sidebar-link:hover {
    color: #003366;
    text-decoration: underline;
}

.sidebar-count {
    font-size: 0.8rem;
    color: #666;
    background-color: #e5e5e5;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-transform: lowercase;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: #e5e5e5;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-transform: lowercase;
}

.sidebar-tag:hover {
    background-color: var(--yellow-accent);
    color: var(--text-color);
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sidebar-newsletter-form input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: lowercase;
}

.sidebar-newsletter-form button {
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: lowercase;
}

.sidebar-newsletter-form button:hover {
    background-color: #003366;
    text-decoration: underline;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--heading-color);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--yellow-accent);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

/* Filters */
.filter-container {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background: var(--yellow-accent);
    border-radius: 4px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
    
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-background);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: none;
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
}

.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--yellow-accent);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-card:hover::after {
    opacity: 0.1;
}

.post-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
    background-image: url('/assets/img/default-post.png');
    background-size: cover;
    background-position: center;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    position: relative;
    z-index: 2;
    background: var(--card-background);
}

.post-categories {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* Post Title and Content Styles */
.post-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    display: inline;
    padding: 0.2rem 0;
    background-image: linear-gradient(var(--yellow-accent), var(--yellow-accent));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 8px;
    transition: background-size 0.3s ease-in-out, color 0.3s ease;
}

.post-title a:hover {
    background-size: 100% 8px;
    color: var(--primary-color);
}

/* Post Content Styles */
.post-content {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    max-width: 100%;
    overflow-x: hidden;
    margin-bottom: 2rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 { 
     
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-color);
    letter-spacing: -0.025em;
}

.post-content h1 {
    font-size: 2.42rem;
    padding-bottom: 0.5rem;
    font-weight: 900;
}

.post-content h2 {
    font-size: 1.8rem;
    padding-bottom: 0.3rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content h5 {
    font-size: 1.1rem;
}

.post-content h6 {
    font-size: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.post-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    font-weight: 500;
}

.post-content a:hover {
    border-bottom-color: var(--link-color);
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content figure {
    margin: 2rem 0;
    text-align: center;
}

.post-content figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--link-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #f9f9f9;
    border-radius: 0 4px 4px 0;
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

.post-content li > p {
    margin-bottom: 0.5rem;
}

.post-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background-color: #f5f5f5;
    border-radius: 3px;
    color: #333;
}

.post-content pre {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    padding: 0;
    background-color: transparent;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    display: block;
}

.post-content hr {
    border: 0;
    height: 1px;
    background-color: #eaeaea;
    margin: 2rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem;
    border: 1px solid #eaeaea;
    text-align: left;
}

.post-content th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.post-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Dark mode adjustments */
[data-mode="dark"] .post-content {
    color: #e0e0e0;
}

[data-mode="dark"] .post-content h1,
[data-mode="dark"] .post-content h2,
[data-mode="dark"] .post-content h3,
[data-mode="dark"] .post-content h4,
[data-mode="dark"] .post-content h5,
[data-mode="dark"] .post-content h6 {
    color: #e0e0e0;
}

[data-mode="dark"] .post-content a {
    color: var(--link-color-dark);
}

[data-mode="dark"] .post-content a:hover {
    border-bottom-color: var(--link-color-dark);
}

[data-mode="dark"] .post-content blockquote {
    background-color: #2a2a2a;
    border-left-color: var(--link-color-dark);
}

[data-mode="dark"] .post-content code {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

[data-mode="dark"] .post-content pre {
    background-color: #2a2a2a;
}

[data-mode="dark"] .post-content pre code {
    color: #e0e0e0;
}

[data-mode="dark"] .post-content hr {
    background-color: #444;
}

[data-mode="dark"] .post-content th,
[data-mode="dark"] .post-content td {
    border-color: #444;
}

[data-mode="dark"] .post-content th {
    background-color: #2a2a2a;
}

[data-mode="dark"] .post-content tr:nth-child(even) {
    background-color: #2a2a2a;
}

/* Author Styles */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.post-meta .author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.author-image:hover {
    transform: scale(1.05);
}

.author-name {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Post card specific styles */
.post-card .post-meta {
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.post-card .author-image {
    width: 32px;
    height: 32px;
}

/* Post page specific styles */
.post-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.post-header h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1.0rem 0 2rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.post-header .post-meta {
    margin-bottom: 0.5rem;
}

.post-header .author {
    position: relative;
}

.post-header .author-image {
    width: 48px;
    height: 48px;
}

.post-header .author-name {
    font-size: 0.75rem;
}

.author-social {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.author-social:hover {
    color: #000;
}

.author-social i {
    margin-left: 0.5rem;
}

/* Author hover card */
.author-hover-card {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.author:hover .author-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.author-hover-card .author-bio {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.author-hover-card .author-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.author-hover-card .social-link {
    color: #666;
    transition: color 0.2s ease;
}

.author-hover-card .social-link:hover {
    color: #000;
}

/* Post Layout */
.post-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    width: 80%;
    padding: 0 var(--spacing-unit);
    margin-left: 6rem;
    margin-top: 1rem;
    margin-right: 6rem;
}

.post-main {
    width: 100%;
}

.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    width: 100%;
}

.sidebar-content {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.post-navigation-table {
    margin-bottom: 2rem;
}

.post-navigation-table h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow-accent);
    color: var(--text-color);
}

/* Table of Contents */
.nav-table {
    width: 100%;
    font-size: 0.95rem;
    padding-right: 1rem;
}

.nav-table ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-table ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
    border-left: 1px solid #eee;
}

.nav-table li {
    margin-bottom: 0.5rem;
}

.nav-table a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.nav-table a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-table a:hover {
    color: var(--text-color);
    padding-left: 1.5rem;
}

.nav-table a:hover::before {
    background: var(--text-color);
}

.nav-table a.active {
    color: var(--text-color);
    font-weight: 600;
}

.nav-table a.active::before {
    background: var(--yellow-accent);
    transform: scale(1.5);
}

/* TOC heading levels */
.nav-table a.toc-level-2 {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-table a.toc-level-3 {
    font-size: 0.9rem;
    padding-left: 1.25rem;
}

.nav-table a.toc-level-4 {
    font-size: 0.85rem;
    padding-left: 1.5rem;
    color: #666;
}

.nav-table a.toc-level-5,
.nav-table a.toc-level-6 {
    font-size: 0.8rem;
    padding-left: 1.75rem;
    color: #888;
}

.nav-table .no-toc {
    color: #666;
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.pagination-item {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background: #f8f8f8;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-item:hover {
    background: var(--yellow-accent);
    color: var(--primary-color);
}

.pagination-item.active {
    background: var(--yellow-accent);
    color: var(--primary-color);
    font-weight: 600;
}

/* Subscribe Form */
.subscribe-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.subscribe-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subscribe-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.subscribe-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: #333;
}

/* Tags */
.tags-section {
    margin-top: 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

.tags-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

.tags-list > *:nth-child(n+7) {
    display: none;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: #F0F0F0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.tag:hover {
    background: var(--yellow-accent);
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.related-card-content {
    padding: 1.25rem;
}

.related-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* Footer */
.site-footer {
    background: #f9f9f9;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin: 0 0 1.25rem;
    color: var(--text-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* Responsive Design */
@media (max-width: 1230px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-container {
        width:100%;
        grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-container {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .home-container {
        grid-template-columns: 1fr;
    }
    
    .home-sidebar {
        display: none;
    }
    
    .post-content {
        padding: 0 1rem;
    }
    
    .post-card-image {
        padding-top: 66.67%; /* 3:2 Aspect Ratio for mobile */
    }
    
    .related-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* TOC Styles based on Chirpy */
#toc-wrapper {
    position: sticky;
    top: 100px;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

#toc-wrapper .toc-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #000000;
    text-align: left;
}

#toc-wrapper .panel-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

#toc {
    margin-top: 0.5rem;
}

#toc .nav {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#toc .nav .nav {
    padding-left: 1rem;
    margin-top: 0.25rem;
    border-left: 1px solid #e5e5e5;
    width: calc(100% - 1rem);
}

#toc .nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
    padding: 0.3rem 0;
    opacity: 0.85;
    transition: all 0.2s ease;
}

#toc .nav-link:hover {
    opacity: 1;
    text-decoration: underline;
}

#toc .nav-link.active {
    opacity: 1;
    font-weight: 600;
}

/* TOC Newsletter Signup */
.toc-newsletter {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.toc-newsletter h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.toc-newsletter p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.toc-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-newsletter-form input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.toc-newsletter-form button {
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toc-newsletter-form button:hover {
    background-color: var(--primary-color-dark);
}

/* Taxonomy Pages */
.taxonomy-container {
    margin-top: 100px;
    padding-top: var(--spacing-unit);
}

.taxonomy-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
}

.taxonomy-section {
    margin-bottom: 4rem;
}

.taxonomy-heading {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    color: var(--heading-color);
    letter-spacing: -0.02em;
} 