/* Blog posts list styling */
.blog-posts-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.blog-post-item {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 400px;
}

.blog-post-item article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
}

.blog-post-preview a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.blog-post-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-post-preview:hover img {
    transform: scale(1.05);
}

.blog-post-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    font-size: 0.85em;
    font-weight: 600;
    color: #FFFFFF;
    font-family: 'Sora', sans-serif;
    line-height: 1.25;
    letter-spacing: 0.025rem;
    background: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.blog-post-preview:hover .blog-post-title-overlay {
    opacity: 0.9;
}

.blog-more-articles {
    margin: 2rem 0 0 0;
    text-align: center;
}

.blog-more-articles a {
    display: inline-block;
    text-decoration: none;
    color: #FFD900;
    transition: opacity 0.3s ease;
}

.blog-more-articles a:hover {
    opacity: 0.7;
}

/* Blog post container styling */
.container.style2>.wrapper>.inner.blog-post-container {
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    overflow: hidden;
}

#blog-post-content {
    margin-top: 1rem;
    text-align: left;
    color: #FFFFFF;
    line-height: 1.1;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

#blog-post-content * {
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Apply style1 from main page to regular text paragraphs */
#blog-post-content p {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.929);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.025rem;
    width: calc(100% + 0.025rem);
    font-size: 1em;
    line-height: 1.125;
    font-weight: 200;
}

#blog-post-content p:first-child {
    margin-top: 0;
}

#blog-post-content p:last-child {
    margin-bottom: 0;
}

/* Apply style1 link styles */
#blog-post-content p a {
    text-decoration: underline;
}

#blog-post-content p a:hover {
    text-decoration: none;
}

#blog-post-content strong,
#blog-post-content b {
    font-weight: 600;
}

#blog-post-content ul,
#blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    list-style-position: outside;
}

#blog-post-content ul {
    list-style-type: disc;
}

#blog-post-content ol {
    list-style-type: decimal;
}

#blog-post-content ul li::marker,
#blog-post-content ol li::marker {
    color: #FFD900;
}

#blog-post-content li {
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

#blog-post-content li:first-child {
    margin-top: 0;
}

#blog-post-content li:last-child {
    margin-bottom: 0;
}

#blog-post-content h1,
#blog-post-content h2,
#blog-post-content h3,
#blog-post-content h4,
#blog-post-content h5,
#blog-post-content h6 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.20;
    letter-spacing: 0.025rem;
}

#blog-post-content h1 {
    font-size: 1.5em;
    color: #FFD900;
}

#blog-post-content h2 {
    font-size: 1.2em;
    color: #FFD900;
}

#blog-post-content h3 {
    font-size: 1.15em;
}

#blog-post-content h4 {
    font-size: 1.1em;
}

#blog-post-content h5 {
    font-size: 1.05em;
}

#blog-post-content h6 {
    font-size: 0.95em;
}

#blog-post-content h1:first-child,
#blog-post-content h2:first-child,
#blog-post-content h3:first-child,
#blog-post-content h4:first-child,
#blog-post-content h5:first-child,
#blog-post-content h6:first-child {
    margin-top: 0;
}

#blog-post-content img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    width: auto;
    display: block;
    margin: 1.5rem auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

#blog-post-content a img {
    cursor: pointer;
}

#blog-post-content a:hover img {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-posts-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .blog-post-item {
        max-width: 200px;
    }
    
    .blog-post-preview {
        max-width: 200px;
    }
    
    .container.style2>.wrapper>.inner.blog-post-container {
        padding: 1.5rem !important;
        border-radius: 0.75rem !important;
    }
}
