/* =========================
   BLOG PAGE
   ========================= */

body {
    background: #ffffff !important;
    color: #172033 !important;
}

.blogHero {
    background: linear-gradient(90deg, #faf7ff 0%, #ffffff 55%, #f3eaff 100%);
    border-bottom: 1px solid #eee7f7;
  /*  padding: 42px 0;*/
}

.blogHeroInner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 32px;
}

.blogBreadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    font-weight: 700;
}

    .blogBreadcrumb a {
        color: #6b7280;
        text-decoration: none;
    }

    .blogBreadcrumb span {
        margin: 0 8px;
        color: #9ca3af;
    }

    .blogBreadcrumb strong {
        color: #172033;
    }

.blogHero h1 {
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 10px;
    color: #172033;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.blogHero p {
    margin: 0;
    max-width: 650px;
    color: #5f6675;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.blogHeroImg {
    text-align: right;
}

    .blogHeroImg img {
        max-width: 360px;
        width: 100%;
        height: auto;
        display: block;
        margin-left: auto;
    }

/* =========================
   LAYOUT
   ========================= */

.blogLayout {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 20px 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.blogMain {
    min-width: 0;
}

/* =========================
   CATEGORY TABS
   ========================= */

.blogCats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

    .blogCats a {
        height: 42px;
        padding: 0 20px;
        border-radius: 10px;
        border: 1px solid #e5deee;
        background: #fff;
        color: #2b1744;
        font-weight: 800;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: .2s ease;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(76, 25, 130, .03);
    }

        .blogCats a.active,
        .blogCats a:hover {
            background: var(--mor);
            color: #fff;
            border-color: var(--mor);
            box-shadow: 0 10px 24px rgba(76, 25, 130, .18);
        }

/* =========================
   BLOG GRID
   ========================= */

.blogGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blogCard {
    border: 1px solid #e7e0ef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(76, 25, 130, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .blogCard:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgba(76, 25, 130, .12);
    }

.blogCardImage {
    display: block;
    height: 170px;
    overflow: hidden;
    background: #f3eaff;
}

    .blogCardImage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

.blogCard:hover .blogCardImage img {
    transform: scale(1.04);
}

.blogCardBody {
    padding: 14px;
}

.blogMeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #7b7288;
    margin-bottom: 10px;
}

.blogBadge {
    background: #f0e5ff;
    color: var(--mor);
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 900;
    font-size: 11px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blogDate {
    white-space: nowrap;
    font-size: 11.5px;
    color: #7b7288;
    font-weight: 700;
}

    .blogDate i {
        margin-right: 3px;
    }

.blogCard h2 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #172033;
    font-weight: 900;
}

    .blogCard h2 a {
        color: #172033;
        text-decoration: none;
    }

        .blogCard h2 a:hover {
            color: var(--mor);
        }

.blogCard p {
    font-size: 13px;
    line-height: 1.55;
    color: #5f6675;
    margin: 0 0 12px;
    font-weight: 600;
}

.blogReadMore {
    color: var(--mor);
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
}

    .blogReadMore:hover {
        text-decoration: underline;
    }

/* =========================
   SIDEBAR
   ========================= */

.blogSidebar {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
}

.blogSearchBox {
    display: flex;
    gap: 8px;
}

    .blogSearchBox input {
        width: 100%;
        height: 42px;
        border: 1px solid #e5deee;
        border-radius: 10px;
        padding: 0 14px;
        outline: none;
        color: #172033;
        font-weight: 700;
        background: #fff;
    }

        .blogSearchBox input:focus {
            border-color: var(--mor);
            box-shadow: 0 0 0 3px rgba(76, 25, 130, .12);
        }

    .blogSearchBox button {
        width: 46px;
        min-width: 46px;
        border: 0;
        border-radius: 10px;
        background: var(--mor);
        color: #fff;
        font-weight: 900;
        cursor: pointer;
    }

        .blogSearchBox button:hover {
            filter: brightness(.95);
        }

.blogSideCard {
    background: #fff;
    border: 1px solid #e7e0ef;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(76, 25, 130, .05);
}

    .blogSideCard h3 {
        margin: 0 0 14px;
        color: #172033;
        font-size: 17px;
        font-weight: 900;
    }

/* Popular */
.popularItem {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
}

    .popularItem:last-child {
        margin-bottom: 0;
    }

    .popularItem img {
        width: 58px;
        height: 46px;
        object-fit: cover;
        border-radius: 8px;
        background: #f3eaff;
    }

    .popularItem strong {
        display: block;
        font-size: 12.5px;
        font-weight: 900;
        line-height: 1.35;
        color: #172033;
    }

    .popularItem small {
        display: block;
        font-size: 11px;
        color: #7b7288;
        margin-top: 3px;
        font-weight: 700;
    }

    .popularItem:hover strong {
        color: var(--mor);
    }

/* Category list */
.blogCategoryList {
    display: grid;
    gap: 9px;
}

    .blogCategoryList a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #2b1744;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
    }

        .blogCategoryList a:hover span {
            color: var(--mor);
        }

    .blogCategoryList b {
        min-width: 22px;
        height: 22px;
        border-radius: 999px;
        background: var(--mor);
        color: #fff;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .blogCategoryList b::before {
            /*content: "";
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #fff;*/
        }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
    .blogLayout {
        grid-template-columns: 1fr;
    }

    .blogGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blogSidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blogSearchBox {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .blogHero {
        padding: 28px 0;
    }

    .blogHeroInner {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .blogHeroImg {
        display: none;
    }

    .blogHero h1 {
        font-size: 28px;
    }

    .blogHero p {
        font-size: 14px;
    }

    .blogLayout {
        padding: 18px 14px 32px;
    }

    .blogCats {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 18px;
        scrollbar-width: thin;
    }

        .blogCats a {
            white-space: nowrap;
            height: 38px;
            padding: 0 14px;
            font-size: 12.5px;
        }

    .blogGrid {
        grid-template-columns: 1fr;
    }

    .blogCardImage {
        height: 190px;
    }

    .blogSidebar {
        display: none;
    }
}
/* =========================
   BLOG DETAIL PAGE
   ========================= */

.blogDetailPage {
    background: #fff;
    color: #172033;
}

.blogDetailTop {
    background: linear-gradient(90deg, #faf7ff 0%, #ffffff 52%, #f3eaff 100%);
    border-bottom: 1px solid #eee7f7;
}

.blogDetailTopInner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 34px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 440px;
    gap: 34px;
    align-items: center;
}

.blogDetailBreadcrumb {
    margin-bottom: 16px;
}

.blogDetailMetaTop {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.blogDetailBadge {
    background: var(--mor);
    color: #fff;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 900;
}

.blogDetailDate {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.blogDetailTitle {
    margin: 0;
    max-width: 820px;
    color: #172033;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -0.7px;
    font-weight: 950;
}

.blogDetailSummary {
    margin: 16px 0 0;
    max-width: 760px;
    color: #5f6675;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 650;
}

.blogDetailImageBox {
    border-radius: 22px;
    overflow: hidden;
    background: #f3eaff;
    box-shadow: 0 20px 50px rgba(76, 25, 130, .13);
    border: 1px solid #e7e0ef;
}

    .blogDetailImageBox img {
        width: 100%;
        height: 310px;
        object-fit: cover;
        display: block;
    }

.blogDetailWrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 30px 20px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.blogDetailMain {
    min-width: 0;
}

.blogArticleCard {
    background: #fff;
    border: 1px solid #e7e0ef;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 34px rgba(76, 25, 130, .06);
}

.blogContent {
    color: #263246;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 500;
}

    .blogContent h2 {
        margin: 30px 0 12px;
        color: #172033;
        font-size: 26px;
        line-height: 1.25;
        font-weight: 950;
    }

    .blogContent h3 {
        margin: 24px 0 10px;
        color: #24113d;
        font-size: 21px;
        line-height: 1.3;
        font-weight: 900;
    }

    .blogContent p {
        margin: 0 0 16px;
    }

    .blogContent a {
        color: var(--mor);
        font-weight: 900;
        text-decoration: none;
    }

        .blogContent a:hover {
            text-decoration: underline;
        }

    .blogContent ul,
    .blogContent ol {
        margin: 14px 0 18px;
        padding-left: 22px;
    }

    .blogContent li {
        margin-bottom: 8px;
    }

    .blogContent img {
        max-width: 100%;
        height: auto;
        border-radius: 16px;
        margin: 18px 0;
    }

    .blogContent blockquote {
        margin: 22px 0;
        padding: 18px 20px;
        border-left: 5px solid var(--mor);
        background: #faf7ff;
        border-radius: 14px;
        color: #2b1744;
        font-weight: 800;
    }

.blogSalesBox {
    margin-top: 22px;
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(135deg, var(--mor), #7c3aed);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 18px 42px rgba(76, 25, 130, .18);
}

.blogSalesMini {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255,255,255,.18);
    padding: 6px 10px;
    border-radius: 999px;
}

.blogSalesBox h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 950;
}

.blogSalesBox p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 650;
}

.blogSalesActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .blogSalesActions a,
    .blogSalesBox > a {
        height: 42px;
        padding: 0 16px;
        border-radius: 12px;
        background: #fff;
        color: var(--mor);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 950;
        font-size: 13px;
        text-decoration: none;
    }

.blogDetailAside {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.blogAsideBox {
    background: #fff;
    border: 1px solid #e7e0ef;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 34px rgba(76, 25, 130, .06);
}

    .blogAsideBox h3 {
        margin: 0 0 14px;
        color: #172033;
        font-size: 18px;
        font-weight: 950;
    }

.blogInfoRow {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0e8f7;
    font-size: 13px;
}

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

    .blogInfoRow span {
        color: #7b7288;
        font-weight: 800;
    }

    .blogInfoRow strong {
        color: #24113d;
        font-weight: 950;
        text-align: right;
    }

.blogApplyBox {
    background: linear-gradient(180deg, #fff 0%, #faf7ff 100%);
}

    .blogApplyBox p {
        margin: 0 0 14px;
        color: #5f6675;
        font-size: 14px;
        line-height: 1.55;
        font-weight: 650;
    }

    .blogApplyBox a {
        height: 42px;
        border-radius: 12px;
        background: var(--mor);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 950;
        text-decoration: none;
    }

@media (max-width: 1050px) {
    .blogDetailTopInner {
        grid-template-columns: 1fr;
    }

    .blogDetailImageBox img {
        height: 340px;
    }

    .blogDetailWrap {
        grid-template-columns: 1fr;
    }

    .blogDetailAside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .blogDetailTopInner {
        padding: 24px 14px;
    }

    .blogDetailTitle {
        font-size: 30px;
    }

    .blogDetailSummary {
        font-size: 15px;
    }

    .blogDetailImageBox {
        border-radius: 16px;
    }

        .blogDetailImageBox img {
            height: 220px;
        }

    .blogDetailWrap {
        padding: 18px 14px 34px;
    }

    .blogArticleCard {
        padding: 20px;
        border-radius: 16px;
    }

    .blogContent {
        font-size: 15px;
        line-height: 1.78;
    }

        .blogContent h2 {
            font-size: 22px;
        }

    .blogSalesBox {
        grid-template-columns: 1fr;
    }

    .blogSalesActions {
        justify-content: flex-start;
    }

        .blogSalesActions a {
            width: 100%;
        }

    .blogDetailAside {
        grid-template-columns: 1fr;
    }
}