/* TITLE HERO */
section.hero * {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

section.hero {
    padding-bottom: 0;
}

.blog-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

/* TITLE CONTAINER */

.container .blog-title h2 {
    margin: 0 auto 10px;
    width: fit-content
}

.blog-title p {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 75%;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 500;
}

/* BLOG POSTS SECTION */

main.image-background {
    padding-top: 100px;
    padding-bottom: 20px;
    min-height: 95vh;
    place-content: center;
    background-size: cover;
}

main .container {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 24px;
}

.blog-posts {
    padding: clamp(40px, 6vw, 80px) 0;
    background: #F2F2F2;
    background: linear-gradient(90deg, #23263a 0%, #121936 40%, #121936 60%, #23263a 100%);
    border-bottom: 1px solid var(--brand);
    border-top: 1px solid var(--brand);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.blog-post {
    background: var(--base100);
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--surface);
}

.blog-post:hover {
    transform: translateY(-5px);
    border: 1px solid var(--brand);
}

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

.blog-post:hover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.15);
}

/* BLOG POST CONTENT */

.post-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.btn.read-more {
    font-weight: 500;
    box-shadow: none;
    border: var(--accent) 1px solid;
}

.post-content h3 {
    color: var(--brand-2);
}