/* Home Page Styles */
.home-page {
    padding: 1rem 0;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: #0066cc;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #0052a3;
}

.latest-posts h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

/* Blog Page Styles */
.blog-page {
    padding: 1rem 0;
}

.blog-page h1 {
    margin-bottom: 2rem;
    color: #333;
}

/* Shared Post Card Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #0066cc;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.post-category {
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.post-author {
    font-size: 0.875rem;
    color: #666;
}

/* BlogPost Page Styles */
.blog-post {
    padding: 2rem 0;
}

.post-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.blog-post .post-title {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #333;
}

.blog-post .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-post .post-author {
    font-size: 0.95rem;
    color: #666;
}


.post-toc {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-toc h2 {
    margin-top: 0;
}

.post-toc ul {
    list-style: none;
    padding-left: 0;
}

.post-toc .toc-h2 {
    padding-left: 1.5rem;
}

 
.post-content {
    line-height: 1.7;
    color: #333;
    font-size: 1.05rem;
}

.post-content h1 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 1.75rem 0 0.75rem 0;
    color: #333;
}

.post-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #444;
}

.post-content p {
    margin: 1rem 0;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin: 0.5rem 0;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content a {
    color: #0066cc;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content blockquote {
    border-left: 4px solid #e0e0e0;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #666;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Search Page Styles */
.search-page {
    padding: 1rem 0;
}

.search-page h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #0066cc;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #0052a3;
}

.search-info {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
}

.result-title a {
    color: #333;
    text-decoration: none;
}

.result-title a:hover {
    color: #0066cc;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.result-category {
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.result-excerpt {
    color: #555;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 1rem 0;
    }

    .blog-post .post-title {
        font-size: 1.75rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h1 {
        font-size: 1.5rem;
    }

    .post-content h2 {
        font-size: 1.25rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }
}
