@import 'variables.css';


.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-post {
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

.post-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
}

.post-header h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    justify-content: left;
    text-align: left;
}

.post-category {
    color: var(--accent-color);
    font-weight: 500;
}

.post-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.post-content * {
    text-align: left;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.project-content {
    text-align: left;
}

.project-content h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: left;
}

.post-date {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.section.content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    color: var(--text-color);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: justify;
}

.back-to-blog {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 2rem;  
}

.button-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.back-to-blog:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-to-blog i {
    transform: rotate(180deg);
}

.post-header-image {
    margin: -2rem -2rem 2rem -2rem; /* Negative margins to extend to container edges */
    position: relative;
    overflow: hidden;
}

.post-header-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px 12px 0 0; /* Round only top corners */
    display: block;
}

/* Adjust the first paragraph after the image */
.post-header-image + .subtitle {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-container {
        margin: 2rem auto;
        padding: 1rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}