/* =========================================================
   ALOR NACHON — WRITER DETAILS PAGE
   ========================================================= */

.an-writer-details-section {
    padding: 42px 0 70px;
    background: #ffffff;
}

.an-writer-details-section .container {
    max-width: 1320px;
}


/* =========================================================
   WRITER PROFILE
   ========================================================= */

.an-writer-profile {
    display: flex;
    align-items: center;
    gap: 35px;

    padding: 35px 40px;
    margin-bottom: 42px;

    border: 1px solid #e5ebe8;
    border-radius: 14px;

    background: #f8faf9;

    box-shadow: 0 6px 24px rgba(20, 45, 38, 0.06);
}


/* =========================================================
   WRITER PROFILE IMAGE
   ========================================================= */

.an-writer-profile-image-wrap {
    width: 150px;
    height: 150px;

    flex: 0 0 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #e8eeeb;

    border: 6px solid #ffffff;

    box-shadow: 0 7px 22px rgba(20, 45, 38, 0.13);
}

.an-writer-profile-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}

.an-writer-profile-default {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #68736f;

    font-size: 58px;
}


/* =========================================================
   WRITER PROFILE INFO
   ========================================================= */

.an-writer-profile-info {
    min-width: 0;
}

.an-writer-profile-label {
    display: inline-flex;

    margin-bottom: 9px;

    padding: 6px 11px;

    border-radius: 5px;

    background: #ef365b;
    color: #ffffff;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 12px;
    font-weight: 600;

    line-height: 1;
}

.an-writer-profile-name {
    margin: 0 0 10px;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;

    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;

    line-height: 1.2;
}

.an-writer-profile-short {
    max-width: 760px;

    margin: 0 0 18px;

    color: #68736f;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   TOTAL BLOG COUNT
   ========================================================= */

.an-writer-profile-total {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 9px 15px;

    border-radius: 7px;

    background: #ffffff;

    border: 1px solid #e3e9e6;
}

.an-writer-profile-total-number {
    color: #ef365b;

    font-family: "Noto Serif Bengali", serif;

    font-size: 23px;
    font-weight: 800;

    line-height: 1;
}

.an-writer-profile-total-label {
    color: #68736f;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 13px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.an-section-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 25px;
}

.an-section-heading-line {
    width: 5px;
    height: 29px;

    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;
}


/* =========================================================
   WRITER LONG DETAILS
   ========================================================= */

.an-writer-long-details {
    max-width: 1000px;

    margin-bottom: 55px;
}

.an-writer-long-details-content {
    color: #2c3531;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 17px;

    line-height: 1.95;
}

.an-writer-long-details-content p {
    margin: 0 0 20px;
}

.an-writer-long-details-content h2,
.an-writer-long-details-content h3,
.an-writer-long-details-content h4 {
    margin: 30px 0 14px;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;

    font-weight: 700;

    line-height: 1.4;
}

.an-writer-long-details-content h2 {
    font-size: 28px;
}

.an-writer-long-details-content h3 {
    font-size: 24px;
}

.an-writer-long-details-content h4 {
    font-size: 21px;
}

.an-writer-long-details-content img {
    max-width: 100%;
    height: auto;

    display: block;

    margin: 25px auto;

    border-radius: 9px;
}


/* =========================================================
   WRITER BLOGS
   ========================================================= */

.an-writer-blogs {
    padding-top: 5px;
}


/* =========================================================
   BLOG CARD
   ========================================================= */

.an-writer-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-writer-blog-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(20, 45, 38, 0.09);
}


/* =========================================================
   BLOG IMAGE
   ========================================================= */

.an-writer-blog-image {
    width: 100%;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #eef3f0;

    text-decoration: none;
}

.an-writer-blog-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.3s ease;
}

.an-writer-blog-card:hover .an-writer-blog-image img {
    transform: scale(1.03);
}

.an-writer-blog-image-empty {
    color: #87918d;

    font-size: 38px;
}


/* =========================================================
   BLOG CONTENT
   ========================================================= */

.an-writer-blog-content {
    padding: 18px 17px 18px;
}


/* Category */

.an-writer-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-writer-blog-title {
    margin: 0 0 10px;

    font-family: "Noto Serif Bengali", serif;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.4;
}

.an-writer-blog-title a {
    color: #17201d;

    text-decoration: none;

    transition: color 0.2s ease;
}

.an-writer-blog-title a:hover {
    color: #ef365b;
}


/* Subtitle */

.an-writer-blog-subtitle {
    margin: 0 0 13px;

    color: #737d79;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 13px;

    line-height: 1.65;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Date */

.an-writer-blog-date {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #7a8580;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 11px;
}


/* =========================================================
   EMPTY BLOG STATE
   ========================================================= */

.an-writer-empty {
    padding: 35px 20px;

    border: 1px dashed #d8e1dd;
    border-radius: 10px;

    background: #f8faf9;

    color: #737d79;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 15px;

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .an-writer-details-section {
        padding: 32px 0 55px;
    }

    .an-writer-profile {
        padding: 30px;

        gap: 28px;
    }

    .an-writer-profile-image-wrap {
        width: 125px;
        height: 125px;

        flex-basis: 125px;
    }

    .an-writer-blog-image {
        height: 200px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .an-writer-details-section {
        padding: 24px 0 45px;
    }

    .an-writer-profile {
        flex-direction: column;

        align-items: center;

        padding: 28px 22px;

        gap: 20px;

        text-align: center;
    }

    .an-writer-profile-image-wrap {
        width: 120px;
        height: 120px;

        flex-basis: 120px;
    }

    .an-writer-profile-name {
        font-size: 32px;
    }

    .an-writer-profile-short {
        font-size: 15px;
    }

    .an-writer-profile-total {
        justify-content: center;
    }

    .an-writer-long-details {
        margin-bottom: 42px;
    }

    .an-writer-long-details-content {
        font-size: 16px;
    }

    .an-section-heading h2 {
        font-size: 23px;
    }

    .an-writer-blog-image {
        height: 210px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .an-writer-profile {
        padding: 24px 18px;
    }

    .an-writer-profile-image-wrap {
        width: 105px;
        height: 105px;

        flex-basis: 105px;
    }

    .an-writer-profile-default {
        font-size: 43px;
    }

    .an-writer-profile-name {
        font-size: 28px;
    }

    .an-writer-profile-short {
        font-size: 14px;
    }

    .an-writer-profile-total-number {
        font-size: 21px;
    }

    .an-writer-profile-total-label {
        font-size: 12px;
    }

    .an-writer-blog-image {
        height: 190px;
    }

    .an-writer-blog-title {
        font-size: 18px;
    }
}