/* 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: #ffffff;
    text-shadow: 0 2px 10px rgba(172, 255, 28, 0.3);
}

/* TITLE CONTAINER */

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

.blog-title p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 85%;
    margin: 0 auto 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* BLOG POSTS SECTION */

main.image-background {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: 95vh;
    place-content: center;
    background-size: cover;
    position: relative;
}

main.image-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(30, 30, 40, 0.8) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

main .container {
    background: rgba(30, 30, 40, 0.9);
    border-radius: 20px;
    box-shadow: 
        0 8px 40px rgba(172, 255, 28, 0.2),
        0 2px 0 rgba(255, 255, 255, 0.1) inset,
        0 -2px 0 rgba(172, 255, 28, 0.1) inset;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(172, 255, 28, 0.3);
    padding: 3rem;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

/* Separate content container */
main .post-content-container {
    background: rgba(30, 30, 40, 0.9);
    border-radius: 20px;
    box-shadow: 
        0 6px 30px rgba(172, 255, 28, 0.15),
        0 2px 0 rgba(255, 255, 255, 0.1) inset,
        0 -2px 0 rgba(172, 255, 28, 0.1) inset;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(172, 255, 28, 0.25);
    padding: 3rem;
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 2rem auto 0;
    overflow: hidden;
}

main .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(172, 255, 28, 0.05) 25%,
        rgba(172, 255, 28, 0.08) 50%,
        transparent 100%);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

main .container::after {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle,
        rgba(172, 255, 28, 0.1) 0%,
        transparent 70%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

/* Content container effects */
main .post-content-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(172, 255, 28, 0.03) 25%,
        rgba(172, 255, 28, 0.06) 50%,
        transparent 100%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

main .post-content-container::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle,
        rgba(172, 255, 28, 0.08) 0%,
        transparent 70%);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
}

.blog-posts {
    margin-top: 64px;
    padding: clamp(40px, 6vw, 80px) 0;
}

.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%;
    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 {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.post-content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(172, 255, 28, 0.8);
    text-shadow: 0 1px 5px rgba(172, 255, 28, 0.2);
}

.post-content h3:nth-child(1) {
    margin-top: 0;
}

.post-content h3:last-of-type {
    margin-bottom: 1rem;
}

.post-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.post-content li strong {
    color: rgba(172, 255, 28, 0.95);
    font-weight: 600;
}

.hover-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.post-meta-muted {
    background: rgba(30, 30, 40, 0.85);
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(172, 255, 28, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(172, 255, 28, 0.2);
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 1;
    font-size: 0.95rem;
    color: rgba(172, 255, 28, 0.9);
    font-weight: 500;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
}



.post-meta-muted .post-meta {
    margin: 0;
}

/* Animation for content */
.blog-title {
    animation: fadeInUp 0.8s ease-out;
}

.post-content {
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main.image-background {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .post-meta-muted {
        padding: 1.5rem;
        margin-bottom: 2rem;
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 12px;
    }

    main .container,
    main .post-content-container {
        padding: 2rem 1.5rem;
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 16px;
    }

    main .post-content-container {
        margin-top: 1.5rem;
    }

    .blog-title h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .blog-title p {
        font-size: 1rem;
        max-width: 95%;
    }

    .post-content h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
        padding-left: 0.75rem;
        border-left-width: 2px;
    }

    .post-content p,
    .post-content li {
        font-size: 1rem;
        text-align: left;
    }
}