/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-weight: 300;
}

/* Color Variables - Anthropic style theme */
:root {
    --bg-color: #F8F4F2; /* Warm neutral background */
    --text-color: #1a1a1a; /* Near black text */
    --primary-color: #ED6A5A; /* Use for CTA hover, not text */
    --secondary-color: #555555; /* Secondary color - dark gray */
    --accent-color: #ED6A5A; /* Soft coral for CTA only */
    --header-bg: #F8F4F2; /* Match body background */
    --footer-bg: #1a1a1a; /* Dark footer */
    --footer-text: #f8f9fa; /* Light text for footer */
    --link-color: #1a1a1a; /* Remove coral from links */
    --link-hover-color: #3a4664; /* Subtle dark for hover */
    --nav-link-color: #1a1a1a; /* Black for nav links */
    --nav-link-hover-active-color: #3a4664;
    --border-color: #e0ddd3; /* Light border color matching the theme */
    --card-bg: #ffffff; /* White card backgrounds for contrast */
    --feature-number-color: #555555; /* Remove coral from feature numbers */
    --button-text: #ffffff; /* White text for buttons */
    --button-hover-bg: #D65A4A; /* Slightly darker coral for hover */
}

/* Dark Theme (Uncomment or activate via JS) */
/*
body.dark-theme {
    --bg-color: #111111; 
    --text-color: #F5F5F5;
    --header-bg: #1a1a1a;
    --footer-bg: #0d0d0d;
    --footer-text: #cccccc;
    --link-color: #6cb2f7;
    --link-hover-color: #3e97f5;
    --border-color: #333;
    --card-bg: #1e1e1e;
}
*/

/* Container */
.container {
    width: 90%;
    max-width: 960px; /* Max width for content */
    margin: 0 auto;
    padding: 0 1rem;
}

main.container {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

/* Two-column layout for blog posts */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-main-content {
    width: 100%;
}

.blog-sidebar {
    width: 100%;
}

.popular-posts {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.popular-posts h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.popular-post-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.popular-post-number {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-right: 0.75rem;
    line-height: 1;
}

.popular-post-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        margin-top: 2rem;
    }
}

/* Header - Awwwards style */
.site-header {
    background-color: var(--header-bg);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hide the second Subscribe button */
.header-container .header-actions:nth-of-type(2) {
    display: none;
}

.logo {
    flex: 0 0 auto;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
}

nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    position: relative;
}

.header-actions {
    flex: 0 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.desktop-only {
    display: block;
}

.mobile-subscribe {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--header-bg);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 150;
        display: block;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .header-actions {
        display: none;
    }
    
    /* Show Subscribe button in mobile menu */
    nav.active .mobile-subscribe {
        display: block;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-subscribe .btn-subscribe {
        width: 100%;
        text-align: center;
    }
    
    /* Hide desktop header actions except on blog index page */
    .header-container .header-actions {
        display: none;
    }
    
    /* Show header actions on blog index page */
    .blog-listing-page .header-container .header-actions {
        display: flex;
    }
}

nav a {
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 500;
    padding: 0.25rem 0;
    transition: color 0.2s ease-in-out;
    position: relative;
}

nav a:hover {
    color: var(--nav-link-hover-active-color);
}

nav a.active {
    color: var(--nav-link-hover-active-color);
    font-weight: 700;
}

nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-subscribe {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--button-text);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
}

.btn-subscribe:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* Main Content */
main {
    flex-grow: 1;
    padding: 2rem 0;
}

/* Homepage Layout - Anthropic style */
.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem 2rem;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Main Feature */
.main-feature {
    position: relative;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.feature-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.feature-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.feature-title a:hover {
    color: var(--primary-color);
}

.feature-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-read {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--button-text);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.btn-read:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* Side Features */
.side-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.side-feature-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.side-feature-item:last-child {
    border-bottom: none;
}

.feature-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--feature-number-color);
    min-width: 1.5rem;
}

.side-feature-content {
    flex-grow: 1;
}

.side-feature-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.side-feature-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.side-feature-title a:hover {
    color: var(--primary-color);
}

.side-feature-meta {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.side-feature-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, #f8fafc 0%, #e0e7ef 100%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    gap: 2rem;
}

.hero-content {
    flex: 1 1 320px;
    min-width: 280px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #3a4664;
    margin-bottom: 2rem;
    max-width: 32rem;
}

.hero-cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    background: var(--button-hover-bg);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.hero-cta-amazon {
    background: #232F3E;
}

.hero-cta-amazon:hover {
    background: #131921;
}

.hero-image-placeholder {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    .hero-image-placeholder {
        margin-top: 2rem;
    }
}

/* Intro Section on Homepage */
.intro-section {
    padding: 3rem 2rem;
    background-color: var(--card-bg);
    border-radius: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.intro-section .section-title {
    border-bottom: none; /* Override default section title style */
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.intro-content {
    max-width: 760px; /* Optimal reading width */
    margin: 0 auto;
    text-align: left; /* Justify text for readability */
}

.intro-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.intro-section .benefits-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro-section .benefits-list li {
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

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

.text-center {
    text-align: center !important; /* Utility class */
}

.latest-posts h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.post-list {
    display: grid;
    gap: 1.5rem;
}

.post-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-item h3 a {
    text-decoration: none;
    color: var(--text-color);
}

.post-item h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Post (Single) */
.blog-post .post-header {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* CTA Section for About page */
.cta-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.cta-section .btn-subscribe {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.blog-post .post-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
}

.blog-post .post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-post .post-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post .post-content p,
.blog-post .post-content ul,
.blog-post .post-content ol,
.blog-post .post-content pre,
.blog-post .post-content blockquote {
    margin-bottom: 1.5rem;
}

.blog-post .post-content ul,
.blog-post .post-content ol {
    margin-left: 1.5rem;
}

.blog-post .post-content pre {
    background-color: #f4f4f4; /* Light gray for code blocks in light mode */
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    color: #333;
}

/* body.dark-theme .blog-post .post-content pre { background-color: #2a2a2a; color: #eee; } */

.blog-post .post-content code {
    font-family: "Courier New", Courier, monospace;
    background-color: #e9e9e9;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* body.dark-theme .blog-post .post-content code { background-color: #333; } */

.blog-post .post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* Blog post image styling */
.blog-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Post Main Image (Hero) */
.post-main-image {
    width: 100%;
    margin: 2rem 0;
    position: relative;
    background-color: var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
}

.post-main-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    font-size: 0.9rem;
}

/* Blog Index Hero Section */
.blog-listing-page .page-title-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.blog-listing-page .page-title-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.3s ease;
}

.blog-listing-page .page-title-section:hover .hero-background {
    transform: scale(1.05);
}

.blog-listing-page .page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: background 0.3s ease;
}

.blog-listing-page .page-title-section:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

.blog-listing-page .page-title-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    text-shadow: 0 2px 15px rgba(0,0,0,0.7);
}

.blog-listing-page .page-title-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    opacity: 0.9;
}

/* Regular post images */
.post-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post .post-content figcaption {
    text-align: center;
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Footer - Awwwards style */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--footer-text);
    opacity: 0.8;
}

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

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

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

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: var(--footer-text);
    opacity: 0.6;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Blog Listing Page Specific Styles */
.blog-listing-page .page-title-section {
    text-align: center;
    margin-bottom: 3rem; /* More space for a prominent title section */
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-listing-page .page-title-section h1 {
    font-size: 2.8rem; /* Larger title for the blog page */
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.blog-listing-page .page-title-section p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem; /* Space between cards */
    padding-bottom: 2rem;
}

.blog-post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Slightly more rounded corners */
    overflow: hidden; /* Ensures content respects border-radius */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-link:hover .card-title {
    color: var(--primary-color);
}

.blog-post-card .card-image-placeholder {
    height: 180px;
    background-color: #e9ecef; /* Placeholder color, replace with actual images */
    /* background-image: url('path/to/default-thumbnail.jpg'); */ /* Optional: default image */
    background-size: cover;
    background-position: center;
}

.blog-post-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill card height */
}

.blog-post-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.blog-post-card .card-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease-in-out;
}

.blog-post-card .card-title a:hover {
    color: var(--primary-color);
}

.blog-post-card .card-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-post-card .card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes button to bottom if card heights vary */
}

.blog-post-card .read-more-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: #fff; /* White text on primary color button */
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
    margin-top: auto; /* Aligns button to the bottom of the card content */
    cursor: pointer;
}

.blog-post-card .read-more-btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
    .blog-listing-page .page-title-section h1 {
        font-size: 2.2rem;
    }
    .blog-posts-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    .blog-post-card .card-title {
        font-size: 1.3rem;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .feature-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }
    
    .header-actions {
        margin-top: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .homepage-container {
        padding: 1rem;
    }
    
    .feature-title {
        font-size: 2rem;
    }
    
    .feature-image {
        height: 250px;
    }
    
    .blog-post .post-header h1 {
        font-size: 2.2rem;
    }
    .hero {
        padding: 1.2rem 0.5rem;
        gap: 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    .hero-cta {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    .hero-image-placeholder {
        max-width: 220px;
        margin: 0 auto;
    }
    .hero-image-placeholder img {
        max-width: 180px;
    }
}

/* Social Sharing and Table of Contents Styles */
.social-sharing {
    margin: 20px 0;
}

.share-button {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button.twitter {
    background-color: #1DA1F2;
}

.share-button.facebook {
    background-color: #4267B2;
}

.share-button i {
    margin-right: 5px;
}

.table-of-contents {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0 30px;
}

.table-of-contents h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.table-of-contents ol {
    padding-left: 20px;
    margin-bottom: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.table-of-contents a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: #004080;
    text-decoration: underline;
}
