/* ==========================================================================
   G24 — Single Post Styles
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.single-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.single-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease;
}

.single-post .single-hero__bg {
    animation: hero-zoom 8s ease forwards;
}

@keyframes hero-zoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

.single-hero__bg--dark {
    background: #111111;
}

.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 10, 14, .92) 0%,
            rgba(10, 10, 14, .55) 45%,
            rgba(10, 10, 14, .18) 100%);
}

.single-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ── Category badge ── */
.single-hero__cat {
    display: inline-flex;
    align-items: center;
    background: var(--g24-red, #c30a28);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    text-decoration: none;
    align-self: flex-start;
    transition: background .2s;
}

.single-hero__cat:hover {
    background: var(--g24-red-dark, #a00820);
    color: #fff;
}

/* ── Title ── */
.single-hero__title {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    letter-spacing: -.025em;
    max-width: 880px;
}

/* ── Meta row ── */
.single-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.single-hero__date,
.single-hero__read {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.single-hero__date i,
.single-hero__read i {
    font-size: .78rem;
    opacity: .8;
}

/* ── Article body ─────────────────────────────────────────────────────────── */

.single-body {
    background: linear-gradient(160deg, #f8f8f8 0%, #f0f0f0 50%, #f8f8f8 100%);
    padding: 0 0 7rem;
}

.single-body__inner {
    width: 100%;
    max-width: var(--g24-container, 1680px);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3rem);
    background: #fff;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

.single-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem .9rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.single-tag:hover {
    background: var(--g24-red, #c30a28);
    color: #fff;
}

/* ── Related posts ────────────────────────────────────────────────────────── */

.related-posts {
    background: var(--g24-gray, #f5f5f5);
    padding: 5.5rem 0 7rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ── Related card ── */
.related-card {
    background: #fff;
    overflow: hidden;
    transition: transform var(--g24-ease, .3s cubic-bezier(.4, 0, .2, 1)),
        box-shadow var(--g24-ease, .3s cubic-bezier(.4, 0, .2, 1));
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}

.related-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--g24-ease, .3s cubic-bezier(.4, 0, .2, 1));
}

.related-card:hover .related-card__img {
    transform: scale(1.05);
}

.related-card__body {
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.related-card__cat {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--g24-red, #c30a28);
}

.related-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: .25rem 0 0;
}

.related-card__title a {
    color: var(--g24-black, #111111);
    text-decoration: none;
    transition: color .2s;
}

.related-card__title a:hover {
    color: var(--g24-red, #c30a28);
}

.related-card__date {
    font-size: .68rem;
    color: var(--g24-text-muted, #666);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-top: .5rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .single-hero {
        min-height: 480px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-hero {
        min-height: 420px;
    }

    .single-hero__title {
        font-size: 1.9rem;
    }

    .single-body {
        padding: 3.5rem 0 5rem;
    }

    .related-posts {
        padding: 3.5rem 0 5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ── Products Carousel ────────────────────────────────────────────────────── */

.products-carousel-section {
    background: #2c2c2c;
    padding: 5.5rem 0 6rem;
}

.products-carousel-heading {
    font-family: var(--g24-font);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    margin: 0 0 2.5rem;
}

.products-carousel-swiper {
    padding-bottom: 3rem !important;
}

.products-carousel-pagination.swiper-pagination {
    bottom: 0;
}

.products-carousel-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    transition: background .2s, transform .2s;
}

.products-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--g24-red, #c30a28);
    transform: scale(1.3);
}

/* ── Responsive ── */

@media (max-width: 480px) {
    .single-hero {
        height: 380px;
    }

    .single-hero__meta {
        gap: 1rem;
    }

    .single-hero__title {
        font-size: 1.65rem;
    }
}