/* =========================================================
   Blog Module Styles
   Bangla: Hind Siliguri
   English: Arial
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');


/* =========================================================
   Blog Page
========================================================= */

.blog-page {
    font-family: Arial, "Hind Siliguri", sans-serif;
    background: #f7f9fc;
    padding: 35px 0;
    color: #172033;
}

/*
|--------------------------------------------------------------------------
| Font handling
|--------------------------------------------------------------------------
| Arial প্রথমে থাকার কারণে English text Arial হবে।
| Arial বাংলা support না করায় Bangla text Hind Siliguri হবে।
*/

.blog-page *,
.blog-page input,
.blog-page textarea,
.blog-page select,
.blog-page button {
    font-family: Arial, "Hind Siliguri", sans-serif;
}


/* =========================================================
   Category Navigation
========================================================= */

.blog-cats {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 24px;
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.blog-cats::-webkit-scrollbar {
    height: 5px;
}

.blog-cats::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.blog-cats a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    padding: 9px 15px;
    border-radius: 999px;
    color: #172033;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.blog-cats a:hover,
.blog-cats a.active {
    color: #ffffff;
    background: #1769aa;
    border-color: #1769aa;
    transform: translateY(-1px);
}


/* =========================================================
   Blog Card
========================================================= */

.blog-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(20, 40, 80, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #d7e3ef;
    box-shadow: 0 16px 38px rgba(20, 40, 80, 0.11);
}

.blog-card > a {
    display: block;
    overflow: hidden;
}

.blog-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover img {
    transform: scale(1.035);
}

.blog-card-body {
    padding: 18px;
}

.blog-card h3 {
    margin: 8px 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
    color: #162033;
}

.blog-card h3 a {
    color: #162033;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h3 a:hover {
    color: #1769aa;
}

.blog-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    color: #7a8798;
    font-size: 13px;
}


/* =========================================================
   Category Pill
========================================================= */

.cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    background: #eaf4ff;
    color: #1769aa;
    padding: 5px 9px;
    border-radius: 999px;
    text-decoration: none;
}

.cat-pill:hover {
    color: #ffffff;
    background: #1769aa;
}


/* =========================================================
   Blog Slider
========================================================= */

.blog-slider {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(20, 40, 80, 0.08);
}

.blog-slider-item {
    position: relative;
    overflow: hidden;
}

.blog-slider-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 35%,
        rgba(0, 0, 0, 0.88) 100%
    );
}

.blog-slider-item img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.blog-slider-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 80px 35px 30px;
    color: #ffffff;
}

.blog-slider-caption h1,
.blog-slider-caption h2,
.blog-slider-caption h3 {
    max-width: 850px;
    margin: 10px 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.35;
}

.blog-slider-caption h1 a,
.blog-slider-caption h2 a,
.blog-slider-caption h3 a {
    color: #ffffff;
    text-decoration: none;
}

.blog-slider-caption p {
    max-width: 750px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   Our Picks
========================================================= */

.pick-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf0f4;
}

.pick-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.pick-item > a {
    flex: 0 0 auto;
    display: block;
}

.pick-item img {
    display: block;
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
}

.pick-item-content {
    min-width: 0;
    flex: 1;
}

.pick-item h4,
.pick-item h5 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.pick-item h4 a,
.pick-item h5 a {
    color: #172033;
    text-decoration: none;
}

.pick-item h4 a:hover,
.pick-item h5 a:hover {
    color: #1769aa;
}

.pick-item small {
    color: #8390a1;
    font-size: 12px;
}


/* =========================================================
   Article Details
========================================================= */

.article-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(20, 40, 80, 0.06);
}

.article-wrap h1 {
    margin: 8px 0 15px;
    color: #162033;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    line-height: 1.35;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #778497;
    font-size: 14px;
    line-height: 1.5;
}

.article-main {
    display: block;
    width: 100%;
    max-height: 560px;
    margin: 20px 0;
    border-radius: 18px;
    object-fit: cover;
}


/* =========================================================
   Article Content
========================================================= */

.blog-content {
    color: #263244;
    font-family: Arial, "Hind Siliguri", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-content p {
    margin: 0 0 18px;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin: 30px 0 14px;
    color: #162033;
    font-weight: 700;
    line-height: 1.45;
}

.blog-content h1 {
    font-size: 34px;
}

.blog-content h2 {
    font-size: 29px;
}

.blog-content h3 {
    font-size: 25px;
}

.blog-content h4 {
    font-size: 22px;
}

.blog-content h5 {
    font-size: 19px;
}

.blog-content h6 {
    font-size: 17px;
}

.blog-content a {
    color: #1769aa;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: #0f4f84;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 20px;
    padding-left: 28px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    color: #334155;
    background: #f3f8fd;
    border-left: 4px solid #1769aa;
    border-radius: 0 12px 12px 0;
}

.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 12px;
}

.blog-content iframe,
.blog-content video {
    display: block;
    max-width: 100%;
    margin: 24px auto;
    border: 0;
    border-radius: 12px;
}

.blog-content table {
    width: 100%;
    margin: 22px 0;
    border-spacing: 0;
    border-collapse: collapse;
    overflow: hidden;
}

.blog-content table th,
.blog-content table td {
    padding: 12px 14px;
    border: 1px solid #dfe5ec;
    text-align: left;
    vertical-align: top;
}

.blog-content table th {
    color: #172033;
    background: #f4f7fa;
    font-weight: 700;
}

.blog-content pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 22px 0;
    padding: 18px;
    color: #e5edf7;
    background: #111827;
    border-radius: 12px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.7;
}

.blog-content code {
    font-family: Consolas, Monaco, monospace;
}


/* =========================================================
   Gallery
========================================================= */

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 28px 0;
}

.blog-gallery img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}


/* =========================================================
   Reactions
========================================================= */

.reactions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.reaction-btn:hover {
    color: #1769aa;
    background: #f4faff;
    border-color: #9fccec;
    transform: translateY(-1px);
}

.reaction-btn.active {
    color: #1769aa;
    background: #eefaff;
    border-color: #159bd3;
}


/* =========================================================
   Comments
========================================================= */

.comments-wrap {
    margin-top: 30px;
}

.comment {
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
}

.comment:last-child {
    border-bottom: 0;
}

.comment-author {
    margin-bottom: 5px;
    color: #172033;
    font-size: 16px;
    font-weight: 700;
}

.comment-date {
    color: #8a96a5;
    font-size: 12px;
}

.comment-body {
    margin-top: 8px;
    color: #465468;
    font-size: 15px;
    line-height: 1.75;
}

.blog-comment-form input,
.blog-comment-form textarea,
.blog-comment-form select {
    width: 100%;
    color: #172033;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-comment-form input,
.blog-comment-form select {
    min-height: 46px;
    padding: 10px 13px;
}

.blog-comment-form textarea {
    min-height: 140px;
    padding: 12px 13px;
    resize: vertical;
}

.blog-comment-form input:focus,
.blog-comment-form textarea:focus,
.blog-comment-form select:focus {
    border-color: #159bd3;
    box-shadow: 0 0 0 3px rgba(21, 155, 211, 0.12);
}




/* =========================================================
   Pagination
========================================================= */

.blog-page .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 30px;
}

.blog-page .page-item .page-link {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.blog-page .page-item.active .page-link {
    color: #ffffff;
    background: #1769aa;
    border-color: #1769aa;
}

.blog-page .page-item.disabled .page-link {
    color: #a6b0bd;
    background: #f7f9fc;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991px) {
    .blog-slider-item img {
        height: 350px;
    }

    .blog-slider-caption {
        padding: 65px 25px 25px;
    }

    .article-wrap {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .blog-page {
        padding: 22px 0;
    }

    .blog-slider {
        border-radius: 14px;
    }

    .blog-slider-item img {
        height: 260px;
    }

    .blog-slider-caption {
        padding: 55px 18px 18px;
    }

    .blog-slider-caption h1,
    .blog-slider-caption h2,
    .blog-slider-caption h3 {
        margin-bottom: 5px;
        font-size: 24px;
        line-height: 1.4;
    }

    .blog-slider-caption p {
        display: none;
    }

    .blog-card h3 {
        font-size: 19px;
    }

    .article-wrap {
        padding: 18px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .article-wrap h1 {
        font-size: 29px;
    }

    .article-main {
        margin: 16px 0;
        border-radius: 12px;
    }

    .blog-content {
        font-size: 17px;
        line-height: 1.85;
    }

    .blog-content h1 {
        font-size: 29px;
    }

    .blog-content h2 {
        font-size: 25px;
    }

    .blog-content h3 {
        font-size: 22px;
    }

    .blog-content h4 {
        font-size: 20px;
    }

    .blog-gallery {
        grid-template-columns: 1fr;
    }

    .blog-gallery img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .pick-item img {
        width: 82px;
        height: 62px;
    }
}

@media (max-width: 480px) {
    .blog-page {
        padding-top: 16px;
    }

    .blog-cats a {
        padding: 8px 13px;
        font-size: 13px;
    }

    .blog-slider-item img {
        height: 225px;
    }

    .blog-slider-caption h1,
    .blog-slider-caption h2,
    .blog-slider-caption h3 {
        font-size: 21px;
    }

    .blog-card-body {
        padding: 15px;
    }

    .article-wrap {
        padding: 15px;
    }

    .blog-content {
        font-size: 16.5px;
    }

    .reaction-btn {
        flex: 1 1 auto;
        padding: 9px 11px;
    }
}