/* Blog Page Styles */

.blog-hero {
    background: url('../img/home/szybki.png') center / cover no-repeat;
    color: #fff;
    padding: 160px 0 100px;
    min-height: 30vh;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.blog-hero__container {
    position: relative;
    z-index: 1;
}

.blog-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.blog-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

.blog-section {
    padding: 8.75rem 0;
    background-color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card__image {
    position: relative;
    height: 240px;
    width: 100%;
}

.blog-card__image img {
    object-fit: cover;
}

.blog-card__content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-size: 0.875rem;
    color: #00b1cf;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #303a4d;
    line-height: 1.3;
}

.blog-card__excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.blog-card__link {
    color: #303a4d;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.blog-card__link:hover {
    color: #00b1cf;
}

.blog-card__link svg {
    transition: transform 0.3s ease;
}

.blog-card__link:hover svg {
    transform: translateX(5px);
}

/* Single Post Styles */

.post-header {
    background: url('../img/home/szybki.png') center / cover no-repeat;
    padding: 160px 0 100px;
    min-height: 30vh;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.post-header__container {
    position: relative;
    z-index: 1;
}

.post-header__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.post-header__back:hover {
    color: #00b1cf;
}

.post-header__date {
    color: #00b1cf;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.post-header__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
}

.post-content {
    padding: 4rem 0 8rem;
    background: #fff;
}

.post-content__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.post-content__main-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
    position: relative;
    z-index: 5;
    aspect-ratio: 16/9;
}

.rich-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.rich-text h2 {
    font-size: 2rem;
    color: #1e293b;
    margin: 3rem 0 1.5rem;
    font-weight: 700;
}

.rich-text h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.rich-text p {
    margin-bottom: 1.5rem;
}

.rich-text blockquote {
    border-left: 4px solid #00b1cf;
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.5rem;
    color: #475569;
}

.rich-text ul,
.rich-text ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.rich-text li {
    margin-bottom: 0.5rem;
}

.rich-text figure {
    margin: 3rem 0;
}

.rich-text figure img {
    border-radius: 16px;
    width: 100%;
}

.rich-text figcaption {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-content__main-image {
        margin-top: -5rem;
        margin-bottom: 2.5rem;
        border-radius: 12px;
    }
}