/* html,
body {
    overflow-x: hidden;
    overflow-x: clip;
} */

body {
    font-family: "Jost", sans-serif;
    background: var(--cream);
    color: var(--text);
}

.blog-page {
    min-height: 100vh;
    background: var(--cream);
}

h1,
h2,
h3,
h4 {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.02em;
    color: var(--text);
}

a {
    text-decoration: none;
}

.hero-blog {
    position: relative;
    overflow: hidden;
    margin-top: 86px;
    background:
        linear-gradient(
            135deg,
            rgba(8, 8, 8, 0.88),
            rgba(15, 15, 15, 0.92),
            rgba(25, 25, 25, 0.88)
        ),
        url("https://images.unsplash.com/photo-1503342217505-b0a15ec3261c?auto=format&fit=crop&w=1600&q=80")
            center/cover no-repeat;
    min-height: 70vh;
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    gap: 2rem;
    padding: 4rem 6%;
    color: var(--text);
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
}

.hero-blog::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(240, 208, 128, 0.1),
        transparent 45%
    );
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-copy p {
    max-width: 460px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-copy .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.hero-copy .hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #1a100a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-copy .hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(212, 168, 75, 0.35);
}

.hero-figure {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(61, 32, 20, 0.25);
}

.hero-figure img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0 2.5%;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.filters button {
    border: 1px solid transparent;
    background: rgba(212, 168, 75, 0.2);
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.filters button.active,
.filters button:hover {
    background: var(--blush);
    border-color: var(--gold);
    color: #f0e0c0;
    /* transform: translateY(-2px); */
}

.blog-grid {
    background: var(--bg-section);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 6% 8%;
}

.blog-card {
    background: #342720;
    border-radius: 26px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6);
}

.blog-card figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.blog-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}

.blog-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.blog-card .category {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.blog-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.blog-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    transition: transform 0.3s ease;
}

.blog-card .read-more:hover {
    transform: translateX(5px);
}

.cta-section {
    margin: 3rem 6%;
    background: #342720;
    border-radius: 32px;
    border: 1px solid var(--border);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.cta-section h2 {
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

.cta-section p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.cta-button {
    padding: 0.9rem 2rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: var(--gold);
    color: #1a100a;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: var(--gold-light);
    color: #1a100a;
}

.before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 6% 3rem;
}

.before-after-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 25px 40px rgba(61, 32, 20, 0.22);
}

.before-after-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.before-after-card:hover img {
    transform: scale(1.05);
}

.before-after-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
    color: #fff;
}

.before-after-card .tag {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.before-after-card .title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.journal-cta {
    margin: 4rem 6% 4rem;
    padding: 2.5rem;
    border-radius: 30px;
    background: linear-gradient(
        120deg,
        rgba(52, 39, 32, 0.95),
        rgba(46, 34, 26, 0.95)
    );
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.journal-cta h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.6rem;
    color: var(--gold-light);
}

.journal-cta p {
    max-width: 640px;
    margin: 0 auto 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--muted);
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 6%;
    }

    .filters {
        justify-content: center;
    }

    .cta-section {
        margin: 2rem 4%;
        padding: 2rem;
    }

    .journal-cta {
        margin: 3rem 4% 3rem;
    }
}

/* ==========================================
   Blog Category Slider
========================================== */

.category-slider-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#categorySlider {
    flex: 1;
    overflow: hidden;
}

#categorySlider .swiper-wrapper {
    align-items: center;
    gap: 4px;
}

#categorySlider .swiper-slide {
    width: auto !important;
    flex-shrink: 0;
}

#categorySlider .swiper-slide button {
    width: auto;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 400;
    border-radius: 25px;
}

.category-prev,
.category-next {
    position: static !important;
    width: 42px;
    height: 42px;
    margin-top: -20px;
    color: var(--gold);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-prev::after,
.category-next::after {
    font-size: 18px;
    font-weight: 700;
}

.no-blogs-message {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}

.no-blogs-message i {
    font-size: 4rem;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.no-blogs-message h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 2rem;
}

.no-blogs-message p {
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Media query for blog */

/* ==========================================
   Tablet (768px - 1024px)
========================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .hero-blog {
        min-height: 55vh;
        padding: 5rem 8%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-copy {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-copy p {
        max-width: 600px;
        margin: 0 auto 2rem;
        font-size: 1rem;
        line-height: 1.9;
    }

    .hero-copy h1 {
        font-size: clamp(2.8rem, 5vw, 4rem);
        margin-bottom: 1rem;
    }

}

@media (max-width:1024px){

    .hero-copy .hero-cta{

        padding:14px 32px;
        font-size:.9rem;
        letter-spacing:.12rem;
    }

}

.category-slider-wrapper{

    margin-top:40px;
    padding:0 4%;
}


@media (min-width:768px) and (max-width:1024px){

    .blog-grid{

        grid-template-columns:repeat(2,1fr);
        gap:24px;
        padding:40px 5% 80px;
    }

}

@media(max-width:1024px){

    .blog-card h3{

        font-size:1.5rem;

    }

}

.hero-copy p{

    font-size:17px;
}