/* ============================================================
   BLOG PAGE — PARALLAX + GLASS STYLE (Creativity-compatible)
   ============================================================ */

/* Убираем затемнения и фоновые конфликты */
body.blog-page {
    background: transparent !important;
}

body.blog-page .overlay-dark {
    display: none !important;
}

/* ============================================================
   PARALLAX SECTIONS (та же схема, что Creativity)
   ============================================================ */

.blog-section {
    position: relative;
    padding: 90px 20px;
    z-index: 1;
    min-height: 60vh;
}

.blog-section .layer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 1 !important;
    z-index: -2;
}

/* ============================================================
   BLOG BACKGROUND IMAGES (заменяй на свои)
   ============================================================ */

.blog-page .layer-1 .layer-bg {
    background-image: url('/templates/blog/images/IMG_1575.webp');
}

.blog-page .layer-2 .layer-bg {
    background-image: url('/templates/blog/images/IMG_1574.webp');
}

.blog-page .layer-3 .layer-bg {
    background-image: url('/templates/blog/images/IMG_1573.webp');
}

/* ============================================================
   FIRST SECTION UNDER HEADER
   ============================================================ */

.blog-section.layer-1 {
    margin-top: -270px;
    min-height: calc(100vh + 100px);
    padding-top: 100px;
}

/* ============================================================
   GLASS CARD (как в Creativity)
   ============================================================ */

.blog-glass {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px 35px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);

    color: #e3e7eb;
}

.blog-glass .title {
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 26px;
    color: #ffeacc;
}

/* ============================================================
   BLOG POSTS (адаптировано под стеклянный стиль)
   ============================================================ */

.blog-post {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);

    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    color: #e3e7eb;
}

/* Медиа */
.post-media img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Текст */
.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffeacc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.post-content {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #e3e7eb;
    white-space: pre-line;
}

.post-date {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .blog-glass,
    .blog-post {
        padding: 35px 25px;
    }
    .blog-glass .title,
    .post-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 700px) {
    .blog-glass .title,
    .post-title {
        font-size: 1.8rem;
    }
}
