:root {
    --gray: #84817E;
    --cream: #F4F0E7;
    --lavender: #B6ADB9;
    --coral: #CB7F7F;
    --blue: #6C7CAB;
    --dark-blue: #2C3E50;
    --light-coral: #FFE8E8;
    --light-blue: #EBF3FC;
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
}

/* Main container for blog posts */
.blog-posts {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px;
}

/* Specific image sizing class */
.blog-post .small-thumbnail {
    width: 200px;
    height: 200px;
}

.blog-post-link {
    display: block; /* Make the link a block element so it wraps the entire blog-post div */
    text-decoration: none; /* Remove underline from the link */
    color: inherit; /* Inherit the text color from the parent */
}

.blog-post {
    border: 1px solid #ccc; /* Optional: add a border for better visualization */
    padding: 15px;
    background-color: #fff; /* Optional: add a background color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow */
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.blog-post:hover {
    transform: translateY(-5px); /* Subtle hover effect */
}

/* Title styling */
.blog-post h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.blog-post h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: #007bff;
}

/* Thumbnail image */
.blog-post img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Date styling */
.blog-post p {
    font-size: 0.9rem;
    color: #777;
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;  /* Stack the posts on smaller screens */
    }
}

/* Base styles */
body {
    background-color: var(--cream);
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Blog title */
.blog-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 700;
    border-bottom: 3px solid var(--coral);
    padding-bottom: 1rem;
}

/* Blog intro */
.blog-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--coral);
}

.blog-body {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    border-left: 4px solid var(--blue);
}

.ai-model:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

/* Headings */
h2 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.3rem;
    color: var(--blue);
    margin: 1.5rem 0 1rem;
}

/* Strong elements */
strong {
    color: var(--coral);
    font-weight: 600;
}

/* Lists */
ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.5rem;
}

li::marker {
    color: var(--coral);
}

/* Applications section */
.applications {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Choosing guide section */
.choosing-guide {
    background: var(--light-coral);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.choosing-guide ul {
    list-style-type: none;
    padding-left: 0;
}

.choosing-guide li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--coral);
}

.choosing-guide li:last-child {
    border-bottom: none;
}

/* Conclusion section */
.conclusion {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--blue);
    margin-top: 3rem;
}

.conclusion h2 {
    color: var(--blue);
}

.conclusion p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--coral);
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-post {
        padding: 1rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .ai-model {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .blog-intro {
        font-size: 1.1rem;
    }
}

/* Links */
a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Optional: Selection style */
::selection {
    background: var(--coral);
    color: white;
}

/* Optional: Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--coral);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}