/* =========================================================
   BLOG DETAILS PAGE
   Header / Footer NOT INCLUDED
========================================================= */

.travel-blog-details {

    --primary: #6256e8;
    --secondary: #df4d9f;

    --dark: #17233b;
    --text: #5c6b80;
    --muted: #8994a6;

    --border: #e4e8f0;

    width: 100%;

    min-height: 100vh;

    background: #fff;

    color: var(--dark);

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    overflow: hidden;
}


/* =========================================================
   RESET
========================================================= */

.travel-blog-details *,
.travel-blog-details *::before,
.travel-blog-details *::after {

    box-sizing: border-box;
}

.travel-blog-details a {

    text-decoration: none;
}

.travel-blog-details img {

    max-width: 100%;
}


/* =========================================================
   CONTAINER
========================================================= */

.details-container {

    width: min(
        864px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding-top: 10px;

    padding-bottom: 80px;
}


/* =========================================================
   BACK TO BLOG
========================================================= */

.details-back {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 27px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;

    transition: .2s ease;
}

.details-back span {

    font-size: 20px;

    line-height: 1;
}

.details-back:hover {

    color: var(--secondary);
}


/* =========================================================
   ARTICLE
========================================================= */

.details-article {

    width: 100%;

    background: #fff;
}


/* =========================================================
   HEADER
========================================================= */

.details-header {

    width: 100%;

    margin-bottom: 28px;
}


/* Meta */

.details-meta {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 14px;

    flex-wrap: wrap;
}


/* Category */

.details-category {

    display: inline-flex;

    align-items: center;

    padding: 6px 13px;

    border: 1px solid #ddd9ff;

    border-radius: 50px;

    background: #f1efff;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    line-height: 1;
}


/* Date */

.details-date {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #8995a8;

    font-size: 11px;

    font-weight: 600;
}

.details-date span {

    color: #768399;

    font-size: 13px;
}


/* =========================================================
   TITLE
========================================================= */

.details-header h1 {

    margin: 0;

    color: var(--dark);

    font-family:
        "Plus Jakarta Sans",
        "DM Sans",
        Arial,
        sans-serif;

    font-size:
        clamp(
            36px,
            5vw,
            54px
        );

    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -1.8px;
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.details-featured-image {

    width: 100%;

    height: auto;

    overflow: hidden;

    border-radius: 16px;

    background: #f1f3f7;
}

.details-featured-image img {

    display: block;

    width: 100%;

    height: auto;

    max-height: 550px;

    object-fit: cover;
}


/* =========================================================
   ARTICLE BODY
========================================================= */

.details-body {

    width: 100%;

    padding-top: 70px;
}


/* Intro */

.details-intro {

    margin:
        0 0 45px;

    color: var(--text);

    font-size: 18px;

    line-height: 1.85;

    font-weight: 500;
}


/* =========================================================
   ARTICLE SECTION
========================================================= */

.article-section {

    margin-bottom: 42px;
}

.article-section h2 {

    margin:
        0 0 15px;

    padding-bottom: 13px;

    border-bottom:
        1px solid
        var(--border);

    color: var(--dark);

    font-family:
        "Plus Jakarta Sans",
        "DM Sans",
        Arial,
        sans-serif;

    font-size: 22px;

    line-height: 1.35;

    font-weight: 800;
}

.article-section p {

    margin:
        0 0 18px;

    color: var(--text);

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   CTA
========================================================= */

.details-cta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    margin-top: 55px;

    padding: 25px 28px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f2f0ff,
            #fff1f9
        );

    border:
        1px solid
        #e5e0ff;
}

.details-cta h3 {

    margin:
        0 0 5px;

    color: var(--dark);

    font-family:
        "Plus Jakarta Sans",
        "DM Sans",
        Arial,
        sans-serif;

    font-size: 17px;

    font-weight: 800;
}

.details-cta p {

    margin: 0;

    color: var(--text);

    font-size: 12px;

    line-height: 1.6;
}

.details-cta a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    flex: 0 0 auto;

    padding:
        12px 17px;

    border-radius: 9px;

    background:
        linear-gradient(
            100deg,
            var(--primary),
            var(--secondary)
        );

    color: #fff;

    font-size: 12px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(98,86,232,.18);
}

.details-cta a span {

    transition: .2s ease;
}

.details-cta a:hover span {

    transform:
        translateX(4px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .details-container {

        width:
            min(
                820px,
                calc(100% - 36px)
            );
    }

    .details-header h1 {

        font-size: 44px;
    }

    .details-featured-image img {

        max-height: 480px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .details-container {

        width:
            calc(100% - 28px);

        padding-top: 8px;

        padding-bottom: 55px;
    }


    /* Back */

    .details-back {

        margin-bottom: 22px;

        font-size: 13px;
    }


    /* Meta */

    .details-meta {

        gap: 9px;

        margin-bottom: 13px;
    }


    /* Title */

    .details-header h1 {

        font-size: 32px;

        line-height: 1.18;

        letter-spacing: -.8px;
    }


    /* Image */

    .details-featured-image {

        border-radius: 12px;
    }

    .details-featured-image img {

        width: 100%;

        height: auto;

        max-height: none;

        object-fit: cover;
    }


    /* Body */

    .details-body {

        padding-top: 42px;
    }


    /* Intro */

    .details-intro {

        margin-bottom: 35px;

        font-size: 15px;

        line-height: 1.8;
    }


    /* Section */

    .article-section {

        margin-bottom: 35px;
    }

    .article-section h2 {

        margin-bottom: 13px;

        padding-bottom: 11px;

        font-size: 20px;
    }

    .article-section p {

        margin-bottom: 16px;

        font-size: 14px;

        line-height: 1.85;
    }


    /* CTA */

    .details-cta {

        flex-direction: column;

        align-items: flex-start;

        gap: 17px;

        margin-top: 40px;

        padding: 21px;
    }

    .details-cta h3 {

        font-size: 16px;
    }

    .details-cta p {

        font-size: 11.5px;
    }

    .details-cta a {

        width: 100%;

        justify-content: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .details-container {

        width:
            calc(100% - 22px);
    }


    .details-header h1 {

        font-size: 28px;

        line-height: 1.2;
    }


    .details-category {

        padding:
            6px 11px;

        font-size: 10px;
    }

    .details-date {

        font-size: 10px;
    }


    .details-featured-image {

        border-radius: 10px;
    }


    .details-body {

        padding-top: 35px;
    }


    .details-intro {

        font-size: 14px;

        line-height: 1.8;
    }


    .article-section h2 {

        font-size: 18px;
    }

    .article-section p {

        font-size: 13.5px;

        line-height: 1.8;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 360px) {

    .details-container {

        width:
            calc(100% - 18px);
    }

    .details-header h1 {

        font-size: 25px;
    }

    .details-body {

        padding-top: 30px;
    }

    .article-section h2 {

        font-size: 17px;
    }

    .article-section p {

        font-size: 13px;
    }

}