/* =========================================================
   ALOR NACHON
   CATEGORY DESIGN 1
   1 Category + 4 Blog Cards
   ========================================================= */

.an-category-section {
    padding: 45px 0 55px;
    background: #f1f0eb;
}

.an-category-section .container {
    max-width: 1320px;
}


/* =========================================================
   CATEGORY HEADER
   ========================================================= */

.an-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}


/* Left Heading */

.an-category-heading {
    min-width: 0;
}

.an-category-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    color: #ef365b;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.an-category-title {
    position: relative;
    margin: 0;
    padding-left: 15px;
    color: #17201d;
    font-family: "Noto Serif Bengali", serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

.an-category-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 5px;
    background: #ef365b;
}


/* View All */

.an-category-view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid #52605b;
    border-radius: 7px;
    color: #52605b;
    text-decoration: none;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.an-category-view-all i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.an-category-view-all:hover {
    color: #ef365b;
    border-color: #ef365b;
    background: #fff7f8;
}

.an-category-view-all:hover i {
    transform: translateX(3px);
}


/* =========================================================
   BLOG GRID
   ========================================================= */

.an-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================================
   BLOG CARD
   ========================================================= */

.an-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8eeeb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(20, 45, 38, 0.055);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.an-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20, 45, 38, 0.10);
}


/* =========================================================
   IMAGE
   ========================================================= */

.an-category-card-media {
    position: relative;
    display: block;
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #eef3f0;
}

.an-category-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.an-category-card:hover .an-category-card-image {
    transform: scale(1.045);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.an-category-card-content {
    padding: 18px 19px 20px;
}


/* =========================================================
   META
   ========================================================= */

.an-category-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
    color: #7b8581;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.an-category-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.an-category-card-meta i {
    font-size: 11px;
    color: #ef365b;
}


/* =========================================================
   TITLE
   ========================================================= */

.an-category-card-title {
    margin: 0 0 10px;
    font-family: "Noto Serif Bengali", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.an-category-card-title a {
    color: #17201d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.an-category-card-title a:hover {
    color: #ef365b;
}


/* =========================================================
   EXCERPT
   ========================================================= */

.an-category-card-excerpt {
    display: -webkit-box;
    margin: 0 0 15px;
    overflow: hidden;
    color: #737d79;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   READ MORE
   ========================================================= */

.an-category-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ef365b;
    text-decoration: none;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.an-category-read-more i {
    transition: transform 0.2s ease;
}

.an-category-read-more:hover {
    color: #d9274d;
}

.an-category-read-more:hover i {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .an-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .an-category-card-media {
        height: 250px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .an-category-section {
        padding: 35px 0 42px;
    }

    .an-category-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .an-category-title {
        font-size: 26px;
    }

    .an-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .an-category-card-media {
        height: 240px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .an-category-title {
        font-size: 23px;
    }

    .an-category-view-all {
        padding: 8px 13px;
        font-size: 13px;
    }

    .an-category-card-media {
        height: 220px;
    }

    .an-category-card-content {
        padding: 16px 17px 18px;
    }

    .an-category-card-title {
        font-size: 19px;
    }

}









/* =========================================================
   ALOR NACHON
   CATEGORY DESIGN 2
   2 Categories
   Each Category:
   1 Large Featured Blog
   + 3 Small Horizontal Blogs
   ========================================================= */

.an-category-design-2 {
    padding: 45px 0 55px;
    background: #f1f0eb;
}

.an-category-design-2 .container {
    max-width: 1320px;
}


/* =========================================================
   CATEGORY WRAPPER
   ========================================================= */

.an-d2-category {
    min-width: 0;
}


/* =========================================================
   CATEGORY HEADER
   ========================================================= */

.an-d2-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.an-d2-category-label {
    display: block;
    margin-bottom: 4px;
    color: #ef365b;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.an-d2-category-title {
    position: relative;
    margin: 0;
    padding-left: 13px;
    color: #17201d;
    font-family: "Noto Serif Bengali", serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
}

.an-d2-category-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 5px;
    background: #ef365b;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.an-d2-view-all {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
    color: #555555;
    text-decoration: none;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.an-d2-view-all i {
    transition: transform 0.2s ease;
}

.an-d2-view-all:hover {
    color: #ef365b;
}

.an-d2-view-all:hover i {
    transform: translateX(4px);
}


/* =========================================================
   FEATURED CARD
   ========================================================= */

.an-d2-featured-card {
    overflow: hidden;
    border: 1px solid #e8eeeb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(20, 45, 38, 0.055);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.an-d2-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 28px rgba(20, 45, 38, 0.10);
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.an-d2-featured-media {
    display: block;
    width: 100%;
    height: 285px;
    overflow: hidden;
    background: #eef3f0;
}

.an-d2-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.an-d2-featured-card:hover .an-d2-featured-image {
    transform: scale(1.035);
}


/* =========================================================
   FEATURED CONTENT
   ========================================================= */

.an-d2-featured-content {
    padding: 17px 19px 19px;
}

.an-d2-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 13px;
    margin-bottom: 8px;
    color: #7b8581;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 11px;
}

.an-d2-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.an-d2-meta i {
    color: #ef365b;
    font-size: 10px;
}

.an-d2-featured-title {
    margin: 0 0 8px;
    font-family: "Noto Serif Bengali", serif;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.4;
}

.an-d2-featured-title a {
    color: #17201d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.an-d2-featured-title a:hover {
    color: #ef365b;
}

.an-d2-featured-excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #737d79;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   SMALL BLOG LIST
   ========================================================= */

.an-d2-small-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}


/* =========================================================
   SMALL CARD
   ========================================================= */

.an-d2-small-card {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8eeeb;
    border-radius: 10px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.an-d2-small-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(20, 45, 38, 0.08);
}


/* =========================================================
   SMALL IMAGE
   ========================================================= */

.an-d2-small-media {
    display: block;
    width: 100%;
    height: 112px;
    overflow: hidden;
    background: #eef3f0;
}

.an-d2-small-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.an-d2-small-card:hover .an-d2-small-image {
    transform: scale(1.045);
}


/* =========================================================
   SMALL CONTENT
   ========================================================= */

.an-d2-small-content {
    min-width: 0;
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.an-d2-small-content .an-d2-meta {
    margin-bottom: 5px;
}

.an-d2-small-title {
    margin: 0;
    font-family: "Noto Serif Bengali", serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.an-d2-small-title a {
    color: #17201d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.an-d2-small-title a:hover {
    color: #ef365b;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .an-d2-featured-media {
        height: 300px;
    }

    .an-d2-small-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .an-d2-category-title {
        font-size: 25px;
    }

    .an-d2-featured-media {
        height: 320px;
    }

    .an-d2-small-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .an-d2-small-media {
        height: 125px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .an-category-design-2 {
        padding: 35px 0 42px;
    }

    .an-d2-category-header {
        align-items: flex-start;
    }

    .an-d2-category-title {
        font-size: 22px;
    }

    .an-d2-category-label {
        font-size: 12px;
    }

    .an-d2-featured-media {
        height: 230px;
    }

    .an-d2-featured-content {
        padding: 15px 16px 17px;
    }

    .an-d2-featured-title {
        font-size: 20px;
    }

    .an-d2-small-card {
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .an-d2-small-media {
        height: 105px;
    }

    .an-d2-small-content {
        padding: 10px 12px;
    }

    .an-d2-small-title {
        font-size: 15px;
        line-height: 1.35;
    }

    .an-d2-meta {
        font-size: 10px;
        gap: 4px 8px;
    }

} 

/* =========================================================
   DESIGN 3
   3 CATEGORIES
   ========================================================= */

.an-category-design-3 {
    padding: 45px 0 55px;
    background: #f1f0eb;
}

.an-category-design-3 .container {
    max-width: 1320px;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.an-d3-category {
    min-width: 0;
}


/* =========================================================
   CATEGORY HEADER
   ========================================================= */

.an-d3-category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    min-height: 58px;
    margin-bottom: 16px;
}

.an-d3-category-label {
    display: block;
    margin-bottom: 3px;
    color: #ef365b;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.an-d3-category-title {
    position: relative;
    margin: 0;
    padding-left: 10px;

    color: #17201d;

    font-family: "Noto Serif Bengali", serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
}

.an-d3-category-title::before {
    content: "";

    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;

    width: 3px;

    border-radius: 4px;

    background: #ef365b;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.an-d3-view-all {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    gap: 4px;

    color: #697570;

    text-decoration: none;

    font-family: "Hind Siliguri", sans-serif;
    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
}

.an-d3-view-all:hover {
    color: #555555;
}


/* =========================================================
   FEATURED CARD
   ========================================================= */

.an-d3-featured-card {
    overflow: hidden;

    border: 1px solid #e7ece9;
    border-radius: 10px;

    background: #ffffff;

    box-shadow: 0 4px 16px rgba(20, 45, 38, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.an-d3-featured-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(20, 45, 38, 0.09);
}


/* =========================================================
   FEATURED IMAGE
   FIXED 200px
   ========================================================= */

.an-d3-featured-media {
    display: block;

    width: 100%;
    height: 200px;

    overflow: hidden;

    background: #eef3f0;
}

.an-d3-featured-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.3s ease;
}

.an-d3-featured-card:hover .an-d3-featured-image {
    transform: scale(1.04);
}


/* =========================================================
   FEATURED CONTENT
   ========================================================= */

.an-d3-featured-content {
    padding: 13px 15px 16px;
}


/* =========================================================
   META
   ========================================================= */

.an-d3-meta {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 7px;

    color: #7b8581;

    font-family: "Hind Siliguri", sans-serif;
    font-size: 10px;
}

.an-d3-meta span {
    display: inline-flex;
    align-items: center;

    gap: 4px;
}

.an-d3-meta i {
    color: #ef365b;
    font-size: 9px;
}


/* =========================================================
   FEATURED TITLE
   EXACTLY 2 LINES
   ========================================================= */

.an-d3-featured-title {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    font-family: "Noto Serif Bengali", serif;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.45;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    min-height: calc(18px * 1.45 * 2);
    max-height: calc(18px * 1.45 * 2);
}

.an-d3-featured-title a {
    color: #17201d;

    text-decoration: none;

    transition: color 0.2s ease;
}

.an-d3-featured-title a:hover {
    color: #ef365b;
}


/* =========================================================
   SMALL BLOG LIST
   ========================================================= */

.an-d3-small-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 11px;
}


/* =========================================================
   SMALL CARD
   ========================================================= */

.an-d3-small-card {
    display: grid;

    grid-template-columns: 105px minmax(0, 1fr);

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e7ece9;
    border-radius: 8px;

    background: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.an-d3-small-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(20, 45, 38, 0.07);
}


/* =========================================================
   SMALL IMAGE
   ========================================================= */

.an-d3-small-media {
    display: block;

    width: 100%;
    height: 82px;

    overflow: hidden;

    background: #eef3f0;
}

.an-d3-small-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.3s ease;
}

.an-d3-small-card:hover .an-d3-small-image {
    transform: scale(1.045);
}


/* =========================================================
   SMALL CONTENT
   ========================================================= */

.an-d3-small-content {
    min-width: 0;

    padding: 8px 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.an-d3-small-title {
    display: -webkit-box;

    margin: 0 0 3px;

    overflow: hidden;

    font-family: "Noto Serif Bengali", serif;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.an-d3-small-title a {
    color: #17201d;

    text-decoration: none;
}

.an-d3-small-title a:hover {
    color: #ef365b;
}


/* =========================================================
   WRITER
   ========================================================= */

.an-d3-small-writer {
    display: block;

    overflow: hidden;

    color: #858e8a;

    font-family: "Hind Siliguri", sans-serif;

    font-size: 9px;

    line-height: 1.3;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .an-d3-featured-media {
        height: 240px;
    }

    .an-d3-featured-title {
        font-size: 20px;

        min-height: calc(20px * 1.45 * 2);
        max-height: calc(20px * 1.45 * 2);
    }

    .an-d3-small-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .an-d3-small-media {
        height: 100px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .an-category-design-3 {
        padding: 30px 0 40px;
    }

    .an-d3-featured-media {
        height: 220px;
    }

    .an-d3-featured-title {
        font-size: 19px;

        min-height: calc(19px * 1.45 * 2);
        max-height: calc(19px * 1.45 * 2);
    }

    .an-d3-small-card {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .an-d3-small-media {
        height: 95px;
    }

}