/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* Style the intro section */
.intro-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem; /* Creates space between text and image */
}

.intro-text {
    flex: 1;
    max-width: 600px;
}

.intro-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.intro-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Style the Read More button */
.read-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Make it responsive */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }

    .intro-text {
        margin-bottom: 2rem;
    }

    .intro-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.tag {
    background: #e9ecef;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
}

.excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Adjust the read-more button for blog cards */
.blog-card .read-more {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}


/* Blog posts CSS */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.full-post {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.full-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.full-post {
    margin-top: 2rem;
}

.full-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.full-post h4 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #444;
}

.post-meta {
    margin-bottom: 2rem;
}

.tag {
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.full-post p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #333;
}

.full-post ul {
    margin-bottom: 1.2rem;
    padding-left: 0;
    list-style-position: inside;
}

.full-post li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #333;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.full-post h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.full-post h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #444;
}

.blog-nav {
    margin-bottom: 2rem;
}

.back-to-posts {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
}

.back-to-posts:hover {
    text-decoration: underline;
}

pre {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1em;
    margin: 1.5em 0;
    overflow-x: auto;
    line-height: 1.4;
}

code {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

pre code {
    display: block;
    color: #333;
    background: none;
    padding: 0;
    border: none;
}

/* Inline code styling */
p code {
    background-color: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: #d63384;
}

/* Optional: Add syntax highlighting colors */
.keyword { color: #007acc; }
.string { color: #690; }
.comment { color: #999; }
.number { color: #905; }
.function { color: #dd4a68; }

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
}

.social-links a {
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}
