/* =========================================================
   BLOG PAGE
   Blog Listing & Blog Detail
   ========================================================= */

/* =========================================================
   BLOG
========================================================= */

.blog {
    background: var(--bg-surface);
}

.blog-card {
    height: 100%;
    overflow: hidden;

    background: var(--bg-dark);

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;

    transition: .35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);

    border-color: var(--gold);

    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.blog-image {
    height: 230px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--gold);
    font-size: .85rem;
}

.blog-content h5 {
    margin: 15px 0;

    color: var(--white);

    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.blog-content p {
    color: var(--text);

    font-size: .9rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 15px;

    color: var(--gold-light);

    text-decoration: none;
    font-weight: 600;

    transition: .3s;
}

.read-more:hover {
    gap: 15px;
    color: var(--white);
}


/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    position: relative;

    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(55, 9, 18, .82),
            rgba(18, 16, 14, .88)
        );

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            var(--bg-surface) 0%,
            #2A151B 100%
        );
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero .section-subtitle {
    display: inline-block;

    color: var(--gold);

    font-family: 'Inter', sans-serif;
    font-size: .9rem;

    letter-spacing: 4px;
    text-transform: uppercase;

    margin-bottom: 20px;
}

.blog-hero h1 {
    font-family: 'Cormorant Garamond', serif;

    font-size: 4rem;
    line-height: 1.15;

    color: var(--white);

    margin-bottom: 25px;
}

.blog-hero p {
    max-width: 700px;

    margin: 0 auto;

    color: #E8E2DA;

    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;

    line-height: 1.9;
}

/* ===========================================================
   BLOG SEARCH
=========================================================== */

.blog-search {
    width: 100%;
    max-width: 520px;
    margin: auto;
}

.search-box {
    position: relative;
}

.search-btn {
    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 2;

    padding: 0;

    background: none;
    border: none;

    color: rgba(255, 255, 255, .55);
    cursor: pointer;

    transform: translateY(-50%);
    transition: .3s;
}

.search-btn:hover {
    color: var(--gold);
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 52px;

    background: var(--surface);
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50px;

    transition: .3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.blog-result {
    text-align: center;
    color: rgba(255, 255, 255, .7);
}

/* =========================================================
   ARTICLE COUNT
========================================================= */

.article-count {
    color: var(--text);

    opacity: .8;
}


/* =========================================================
   EMPTY BLOG
========================================================= */

.empty-blog {
    padding: 80px 20px;

    text-align: center;
}

.empty-blog i {
    color: var(--gold);

    font-size: 4rem;
}

.empty-blog h4 {
    color: var(--white);

    margin-top: 20px;
}


/* =========================================================
   BLOG DETAIL HERO
========================================================= */

.blog-detail-hero {
    position: relative;

    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(55, 9, 18, .82),
            rgba(18, 16, 14, .88)
        );

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.blog-detail-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            var(--bg-surface) 0%,
            #2A151B 100%
        );
}

.blog-detail-heading {
    position: relative;

    z-index: 2;

    width: 100%;

    padding: 0 20px;
}

.blog-detail-heading h1 {
    max-width: 900px;

    margin: 15px auto;

    color: var(--gold-light);

    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;

    line-height: 1.2;

    overflow-wrap: anywhere;
}

.blog-meta {
    color: rgba(255, 255, 255, .75);

    font-size: .9rem;

    line-height: 1.6;
}


/* =========================================================
   BLOG DETAIL IMAGE
========================================================= */

.blog-detail-image {
    margin-bottom: 45px;
}

.blog-detail-image img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 18px;
}


/* =========================================================
   BLOG DETAIL CONTENT
========================================================= */

.blog-detail-content {
    margin-bottom: 30px;

    font-size: 1.05rem;

    line-height: 2;

    overflow-wrap: anywhere;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;

    line-height: 1.35;

    color: var(--white);
}

.blog-detail-content p {
    margin-bottom: 1.4rem;
}

.blog-detail-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 20px auto;

    border-radius: 12px;
}


/* =========================================================
   RELATED BLOG
========================================================= */

.related-blog {
    background: rgba(255, 255, 255, .02);
}


/* =========================================================
   BACK BUTTON
========================================================= */

.btn-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 24px;

    border: 2px solid var(--gold);

    border-radius: 50px;

    background: transparent;

    color: var(--gold);

    font-weight: 600;

    text-decoration: none;

    transition: all .3s ease;
}

.btn-back:hover {
    color: var(--white);

    border-color: var(--gold-light);

    transform: translateY(-2px);
}

.btn-back i {
    transition: transform .3s ease;
}

.btn-back:hover i {
    transform: translateX(-4px);
}


/* =========================================================
   TABLET
   max-width: 991.98px
========================================================= */

@media (max-width: 991.98px) {

    /* =========================
       BLOG HERO
    ========================= */

    .blog-hero {
        min-height: 65vh;

        padding: 100px 0;
    }

    .blog-hero h1 {
        font-size: 3.2rem;
    }

    .blog-hero p {
        font-size: .95rem;
    }


    /* =========================
       BLOG DETAIL HERO
    ========================= */

    .blog-detail-hero {
        min-height: 65vh;

        padding: 120px 0;
    }

    .blog-detail-heading {
        padding: 0 25px;
    }

    .blog-detail-heading h1 {
        max-width: 750px;

        font-size: 2.7rem;

        line-height: 1.25;
    }

    .blog-meta {
        font-size: .8rem;
    }


    /* =========================
       IMAGE
    ========================= */

    .blog-detail-image {
        margin-bottom: 35px;
    }

    .blog-detail-image img {
        border-radius: 15px;
    }


    /* =========================
       CONTENT
    ========================= */

    .blog-detail-content {
        font-size: .95rem;

        line-height: 1.85;
    }

    .blog-detail-content h2,
    .blog-detail-content h3 {
        margin-top: 1.7rem;
        margin-bottom: .8rem;
    }


    /* =========================
       BACK BUTTON
    ========================= */

    .btn-back {
        padding: 10px 20px;

        font-size: .85rem;
    }
}


/* =========================================================
   MOBILE
   max-width: 767.98px
========================================================= */

@media (max-width: 767.98px) {

    /* =========================
       BLOG HERO
    ========================= */

    .blog-hero {
        min-height: 60vh;

        padding: 90px 0;

        background-attachment: scroll;
    }

    .blog-hero .section-subtitle {
        font-size: .7rem;

        letter-spacing: 3px;

        margin-bottom: 12px;
    }

    .blog-hero h1 {
        font-size: 2.4rem;

        line-height: 1.15;

        margin-bottom: 18px;
    }

    .blog-hero p {
        max-width: 90%;

        font-size: .8rem;

        line-height: 1.7;
    }


    /* =========================
       BLOG DETAIL HERO
    ========================= */

    .blog-detail-hero {
        min-height: auto;

        padding: 95px 0 85px;

        background-attachment: scroll;
    }

    .blog-detail-heading {
        padding: 0 18px;
    }

    .blog-detail-heading h1 {
        max-width: 100%;

        margin: 12px auto;

        font-size: 2rem;

        line-height: 1.25;

        overflow-wrap: anywhere;
    }

    .blog-meta {
        font-size: .68rem;

        line-height: 1.6;
    }


    /* =========================
       IMAGE
    ========================= */

    .blog-detail-image {
        margin-bottom: 25px;
    }

    .blog-detail-image img {
        border-radius: 12px;
    }


    /* =========================
       CONTENT
    ========================= */

    .blog-detail-content {
        margin-bottom: 25px;

        font-size: .78rem;

        line-height: 1.8;
    }

    .blog-detail-content h2 {
        font-size: 1.35rem;

        margin-top: 1.5rem;
        margin-bottom: .7rem;
    }

    .blog-detail-content h3 {
        font-size: 1.15rem;

        margin-top: 1.4rem;
        margin-bottom: .6rem;
    }

    .blog-detail-content p {
        margin-bottom: 1.1rem;
    }

    .blog-detail-content img {
        margin: 15px auto;

        border-radius: 10px;
    }


    /* =========================
       BACK BUTTON
    ========================= */

    .btn-back {
        width: auto;

        padding: 9px 18px;

        border-width: 1.5px;

        font-size: .7rem;

        gap: 6px;
    }
}


/* =========================================================
   SMALL MOBILE
   max-width: 575.98px
========================================================= */

@media (max-width: 575.98px) {

    /* =========================
       BLOG HERO
    ========================= */

    .blog-hero {
        min-height: 55vh;

        padding: 75px 0;
    }

    .blog-hero .section-subtitle {
        font-size: .6rem;

        letter-spacing: 2px;
    }

    .blog-hero h1 {
        font-size: 2rem;

        line-height: 1.2;
    }

    .blog-hero p {
        font-size: .72rem;

        line-height: 1.65;
    }


    /* =========================
       BLOG DETAIL HERO
    ========================= */

    .blog-detail-hero {
        padding: 80px 0 70px;
    }

    .blog-detail-heading {
        padding: 0 15px;
    }

    .blog-detail-heading h1 {
        font-size: 1.65rem;

        line-height: 1.3;

        margin: 10px auto;
    }

    .blog-meta {
        font-size: .6rem;

        line-height: 1.55;
    }


    /* =========================
       IMAGE
    ========================= */

    .blog-detail-image {
        margin-bottom: 20px;
    }

    .blog-detail-image img {
        border-radius: 10px;
    }


    /* =========================
       CONTENT
    ========================= */

    .blog-detail-content {
        font-size: .72rem;

        line-height: 1.75;
    }

    .blog-detail-content h2 {
        font-size: 1.2rem;

        margin-top: 1.3rem;
    }

    .blog-detail-content h3 {
        font-size: 1rem;

        margin-top: 1.2rem;
    }

    .blog-detail-content p {
        margin-bottom: 1rem;
    }


    /* =========================
       BACK BUTTON
    ========================= */

    .btn-back {
        padding: 8px 16px;

        font-size: .65rem;

        border-radius: 40px;
    }
}
