/* =========================================================
   ALOR NACHON — BLOG DETAILS PAGE
   Main Content + Writer Sidebar + Related Blogs
   ========================================================= */


/* =========================================================
   PAGE SECTION
   ========================================================= */

.an-blog-details-section {
    padding: 42px 0 70px;
    background: #ffffff;
}

.an-blog-details-section .container {
    max-width: 1320px;
}


/* =========================================================
   MAIN BLOG CARD
   ========================================================= */

.an-blog-details-card {
    background: #ffffff;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.an-blog-details-category {
    display: inline-flex;
    align-items: center;

    margin-bottom: 16px;
    padding: 7px 13px;

    border-radius: 5px;

    background: #ef365b;
    color: #ffffff;

    font-family: "Hind Siliguri", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   BLOG TITLE
   ========================================================= */

.an-blog-details-title {
    max-width: 1000px;

    margin: 0 0 14px;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;

    line-height: 1.18;
    letter-spacing: -0.5px;
}


/* =========================================================
   BLOG SUBTITLE
   ========================================================= */

.an-blog-details-subtitle {
    max-width: 900px;

    margin: 0 0 20px;

    color: #66716d;

    font-family: "Hind Siliguri", sans-serif;
    font-size: 18px;
    font-weight: 400;

    line-height: 1.75;
}


/* =========================================================
   BLOG META
   ========================================================= */

.an-blog-details-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px 22px;

    margin-bottom: 26px;

    color: #737d79;

    font-family: "Hind Siliguri", sans-serif;
    font-size: 13px;
}


/* Writer Link */

.an-blog-details-writer {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #3c4743;
    text-decoration: none;

    transition: color 0.2s ease;
}

.an-blog-details-writer:hover {
    color: #ef365b;
}


/* Writer Small Image */

.an-blog-details-writer img,
.an-blog-details-default-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    object-fit: cover;

    background: #e8eeeb;

    color: #68736f;

    font-size: 16px;
}


/* Date */

.an-blog-details-date {
    display: inline-flex;
    align-items: center;

    gap: 7px;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.an-blog-details-image-wrap {
    width: 100%;

    margin-bottom: 32px;

    overflow: hidden;

    border-radius: 12px;

    background: #f4f6f5;
}

.an-blog-details-image {
    width: 100%;
    height: auto;

    max-height: 720px;

    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   BLOG ARTICLE CONTENT
   ========================================================= */

.an-blog-details-content {
    max-width: 920px;

    color: #252d2a;

    font-family: "Hind Siliguri", sans-serif;
    font-size: 18px;

    line-height: 2;
}


/* Paragraph */

.an-blog-details-content p {
    margin: 0 0 22px;
}


/* Headings */

.an-blog-details-content h2 {
    margin: 38px 0 17px;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;
    font-size: 30px;
    font-weight: 700;

    line-height: 1.4;
}

.an-blog-details-content h3 {
    margin: 32px 0 14px;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;
    font-size: 25px;
    font-weight: 700;

    line-height: 1.45;
}

.an-blog-details-content h4 {
    margin: 28px 0 12px;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;
    font-size: 21px;
    font-weight: 700;

    line-height: 1.5;
}


/* Links */

.an-blog-details-content a {
    color: #ef365b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* Images inside article */

.an-blog-details-content img {
    max-width: 100%;
    height: auto;

    display: block;

    margin: 28px auto;

    border-radius: 9px;
}


/* Lists */

.an-blog-details-content ul,
.an-blog-details-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.an-blog-details-content li {
    margin-bottom: 8px;
}


/* Blockquote */

.an-blog-details-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;

    border-left: 4px solid #ef365b;

    background: #f8faf9;

    color: #53605b;

    font-family: "Noto Serif Bengali", serif;
    font-size: 19px;

    line-height: 1.8;
}


/* Tables */

.an-blog-details-content table {
    width: 100%;

    margin: 28px 0;

    border-collapse: collapse;
}

.an-blog-details-content th,
.an-blog-details-content td {
    padding: 10px 12px;

    border: 1px solid #dfe6e2;

    text-align: left;
}


/* =========================================================
   WRITER SIDEBAR
   ========================================================= */

.an-blog-sidebar {
    position: sticky;
    top: 25px;
}


/* =========================================================
   WRITER CARD
   ========================================================= */

.an-writer-card {
    padding: 28px 22px 24px;

    border: 1px solid #e5ebe8;
    border-radius: 12px;

    background: #ffffff;

    box-shadow: 0 6px 24px rgba(20, 45, 38, 0.07);

    text-align: center;
}


/* =========================================================
   WRITER PHOTO
   ========================================================= */

.an-writer-photo-link {
    width: 112px;
    height: 112px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    overflow: hidden;

    border-radius: 50%;

    background: #f1f5f3;

    border: 5px solid #ffffff;

    box-shadow:
        0 5px 18px rgba(20, 45, 38, 0.13);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.an-writer-photo-link:hover {
    transform: scale(1.04);

    box-shadow:
        0 8px 22px rgba(20, 45, 38, 0.17);
}


/* Writer Image */

.an-writer-photo {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}


/* Default Avatar */

.an-writer-default-avatar {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8eeeb;

    color: #68736f;

    font-size: 42px;
}


/* =========================================================
   WRITER NAME
   ========================================================= */

.an-writer-name {
    margin: 0 0 12px;

    font-family: "Noto Serif Bengali", serif;

    font-size: 23px;
    font-weight: 700;

    line-height: 1.4;
}

.an-writer-name a {
    color: #17201d;

    text-decoration: none;

    transition: color 0.2s ease;
}

.an-writer-name a:hover {
    color: #ef365b;
}


/* =========================================================
   WRITER DESCRIPTION
   ========================================================= */

.an-writer-description {
    margin: 0 0 20px;

    color: #707b76;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   WRITER TOTAL
   ========================================================= */

.an-writer-total {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 0 0 20px;
    padding: 15px;

    border-radius: 9px;

    background: #f7f9f8;
}

.an-writer-total-number {
    color: #ef365b;

    font-family: "Noto Serif Bengali", serif;

    font-size: 28px;
    font-weight: 800;

    line-height: 1.1;
}

.an-writer-total-label {
    margin-top: 4px;

    color: #68736f;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 12px;
}


/* =========================================================
   VIEW WRITER BUTTON
   ========================================================= */

.an-writer-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 10px 14px;

    border-radius: 7px;

    background: #173b34;

    color: #ffffff;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.an-writer-view-btn:hover {
    background: #ef365b;

    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   RELATED BLOGS
   ========================================================= */

.an-related-blogs {
    margin-top: 58px;
    padding-top: 35px;

    border-top: 1px solid #e7ece9;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.an-section-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 25px;
}

.an-section-heading-line {
    width: 5px;
    height: 28px;

    flex: 0 0 auto;

    border-radius: 3px;

    background: #ef365b;
}

.an-section-heading h2 {
    margin: 0;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;

    font-size: 27px;
    font-weight: 700;

    line-height: 1.35;
}


/* =========================================================
   RELATED BLOG CARD
   ========================================================= */

.an-related-blog-card {
    height: 100%;

    overflow: hidden;

    border: 1px solid #e5ebe8;
    border-radius: 11px;

    background: #ffffff;

    box-shadow: 0 5px 18px rgba(20, 45, 38, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.an-related-blog-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(20, 45, 38, 0.09);
}


/* =========================================================
   RELATED BLOG IMAGE
   ========================================================= */

.an-related-blog-image {
    width: 100%;
    height: 205px;

    display: block;

    overflow: hidden;

    background: #eef3f0;
}

.an-related-blog-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.3s ease;
}

.an-related-blog-card:hover .an-related-blog-image img {
    transform: scale(1.03);
}


/* =========================================================
   RELATED BLOG CONTENT
   ========================================================= */

.an-related-blog-content {
    padding: 18px 17px 17px;
}


/* Category */

.an-related-blog-category {
    display: inline-flex;

    margin-bottom: 9px;

    padding: 5px 8px;

    border-radius: 4px;

    background: #3478e5;

    color: #ffffff;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 10px;
    font-weight: 600;

    line-height: 1;
}


/* Title */

.an-related-blog-title {
    margin: 0 0 12px;

    font-family: "Noto Serif Bengali", serif;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.4;
}

.an-related-blog-title a {
    color: #17201d;

    text-decoration: none;

    transition: color 0.2s ease;
}

.an-related-blog-title a:hover {
    color: #ef365b;
}


/* Date */

.an-related-blog-date {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #7a8580;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 11px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .an-blog-details-section {
        padding: 32px 0 55px;
    }

    .an-blog-sidebar {
        position: static;
    }

    .an-writer-card {
        max-width: 420px;

        margin: 0 auto;
    }

    .an-blog-details-content {
        max-width: none;
    }

    .an-related-blogs {
        margin-top: 45px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .an-blog-details-section {
        padding: 24px 0 45px;
    }

    .an-blog-details-title {
        font-size: 34px;

        line-height: 1.25;
    }

    .an-blog-details-subtitle {
        font-size: 16px;

        line-height: 1.7;
    }

    .an-blog-details-meta {
        gap: 9px 15px;

        margin-bottom: 20px;

        font-size: 12px;
    }

    .an-blog-details-image-wrap {
        margin-bottom: 24px;

        border-radius: 9px;
    }

    .an-blog-details-image {
        max-height: none;

        object-fit: contain;
    }

    .an-blog-details-content {
        font-size: 16px;

        line-height: 1.9;
    }

    .an-blog-details-content h2 {
        margin-top: 30px;

        font-size: 25px;
    }

    .an-blog-details-content h3 {
        margin-top: 25px;

        font-size: 22px;
    }

    .an-section-heading h2 {
        font-size: 23px;
    }

    .an-related-blog-image {
        height: 190px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .an-blog-details-title {
        font-size: 29px;
    }

    .an-blog-details-subtitle {
        font-size: 15px;
    }

    .an-blog-details-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .an-blog-details-content {
        font-size: 15px;

        line-height: 1.85;
    }

    .an-writer-card {
        padding: 24px 18px 21px;
    }

    .an-writer-photo-link {
        width: 96px;
        height: 96px;
    }

    .an-writer-name {
        font-size: 21px;
    }

    .an-related-blog-image {
        height: 180px;
    }

    .an-related-blog-title {
        font-size: 18px;
    }
}