/* ============================================================
 * Blog Kategori Listeleme Sayfası
 * Tasarım referansı: blog-kategori-list-dikey.html (ana yapı)
 *                    blog-kategori-list-yatay.html (yatay variant)
 * Tüm sınıflar .md-blog-category-page scope'unda — global stillerle
 * çakışmaz. Dikey/yatay listeleme tek class toggle ile değişir.
 * ============================================================ */

.md-blog-category-page {
    --md-red: #ff2442;
    --md-red-dark: #df1733;
    --md-soft-red: #fff1f4;
    --md-border: rgba(255, 36, 66, 0.16);
    --md-text: #161b28;
    --md-muted: #6f6670;
    --md-light: #fff7f8;
    --md-shadow: 0 18px 45px rgba(66, 29, 38, 0.08);
    --md-container: 1320px;

    width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--md-text);
}

.md-blog-category-page *,
.md-blog-category-page *::before,
.md-blog-category-page *::after {
    box-sizing: border-box;
}

.md-blog-category-page a {
    text-decoration: none;
}

.md-blog-category-page img {
    max-width: 100%;
    display: block;
} 

.md-blog-category-page .md-container {
    width: 100%;
    max-width: var(--md-container);
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* HERO */

.md-blog-category-page .md-hero {
    width: 100%;
    background: #fff;
}

.md-blog-category-page .md-hero-box {
    position: relative;
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #fff5f7 0%, #ffffff 50%, #fff5f7 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-blog-category-page .md-hero-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 36, 66, 0.08), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(255, 36, 66, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 245, 247, 0.5) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.md-blog-category-page .md-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 44px 20px 74px;
    text-align: center;
}

.md-blog-category-page .md-hero-content h1 {
    margin: 0;
    color: #131827;
    font-size: 42px;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.md-blog-category-page .md-title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 15px 0 17px;
    color: var(--md-red);
}

.md-blog-category-page .md-title-separator span {
    display: block;
    width: 86px;
    height: 1px;
    background: rgba(255, 36, 66, 0.45);
}

.md-blog-category-page .md-title-separator i {
    font-size: 16px;
}

.md-blog-category-page .md-hero-content p {
    margin: 0;
    color: #514b55;
    font-size: 15.5px;
    line-height: 1.75;
    font-weight: 500;
}

.md-blog-category-page .md-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #82757c;
    font-size: 13px;
    font-weight: 600;
}

.md-blog-category-page .md-breadcrumb a {
    color: #82757c;
    transition: color .25s ease;
}

.md-blog-category-page .md-breadcrumb a:hover {
    color: var(--md-red);
}

.md-blog-category-page .md-breadcrumb i {
    font-size: 11px;
    color: rgba(255, 36, 66, 0.72);
}

/* CATEGORY CARDS */

.md-blog-category-page .md-category-wrap {
    position: relative;
    z-index: 6;
    margin-top: -58px;
}

.md-blog-category-page .md-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.md-blog-category-page .md-category-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 28px 20px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--md-border);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(70, 35, 43, 0.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    color: inherit;
}

.md-blog-category-page .md-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 36, 66, 0.26);
    box-shadow: 0 22px 48px rgba(70, 35, 43, 0.11);
}

.md-blog-category-page .md-category-card.is-active {
    border-color: var(--md-red);
    box-shadow: 0 16px 38px rgba(255, 36, 66, 0.18);
}

.md-blog-category-page .md-category-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-red);
    font-size: 34px;
}

.md-blog-category-page .md-category-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: #202432;
}

.md-blog-category-page .md-category-card p {
    margin: 0 auto;
    max-width: 200px;
    color: #746b73;
    font-size: 12.5px;
    line-height: 1.6;
    font-weight: 500;
}

.md-blog-category-page .md-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--md-soft-red);
    color: var(--md-red);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 36, 66, 0.16);
}

/* FEATURED */

.md-blog-category-page .md-featured-section {
    padding-top: 32px;
}

.md-blog-category-page .md-featured-box {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--md-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--md-shadow);
}

.md-blog-category-page .md-featured-img {
    height: 310px;
    overflow: hidden;
    border-radius: 20px;
    background: #fff5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-blog-category-page .md-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.md-blog-category-page .md-featured-content {
    padding: 16px 18px 16px 0;
}

.md-blog-category-page .md-featured-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.md-blog-category-page .md-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--md-soft-red);
    color: var(--md-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.md-blog-category-page .md-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8c858b;
    font-size: 12px;
    font-weight: 500;
}

.md-blog-category-page .md-featured-content h2 {
    margin: 0;
    max-width: 560px;
    color: #151927;
    font-size: 31px;
    line-height: 1.22;
    letter-spacing: -0.7px;
    font-weight: 900;
}

.md-blog-category-page .md-featured-content h2 a {
    color: inherit;
}

.md-blog-category-page .md-featured-content h2 a:hover {
    color: var(--md-red);
}

.md-blog-category-page .md-featured-content p {
    margin: 16px 0 0;
    max-width: 620px;
    color: #6f6670;
    font-size: 14.5px;
    line-height: 1.8;
    font-weight: 500;
}

.md-blog-category-page .md-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
    padding: 15px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2442, #ff4560);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(255, 36, 66, 0.22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.md-blog-category-page .md-main-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 36, 66, 0.30);
}

/* SELECTED */

.md-blog-category-page .md-selected {
    padding: 40px 0 28px;
}

.md-blog-category-page .md-section-title {
    text-align: center;
    margin-bottom: 24px;
}

.md-blog-category-page .md-section-title h2 {
    margin: 0;
    color: #171b29;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.6px;
    font-weight: 900;
}

.md-blog-category-page .md-section-title .md-title-separator {
    margin-top: 12px;
    margin-bottom: 0;
}

.md-blog-category-page .md-selected-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--md-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(70, 35, 43, 0.05);
}

.md-blog-category-page .md-mini-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    align-items: center;
    color: inherit;
}

.md-blog-category-page .md-mini-img {
    height: 82px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-blog-category-page .md-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.md-blog-category-page .md-mini-content h4 {
    margin: 4px 0 9px;
    color: #131827;
    font-size: 14.5px;
    line-height: 1.28;
    font-weight: 900;
}

.md-blog-category-page .md-mini-card:hover .md-mini-content h4 {
    color: var(--md-red);
}

.md-blog-category-page .md-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-red);
    font-size: 12.5px;
    font-weight: 900;
    transition: gap .25s ease, color .25s ease;
}

.md-blog-category-page .md-read-link:hover {
    gap: 12px;
    color: var(--md-red-dark);
}

/* MAIN LAYOUT */

.md-blog-category-page .md-main-area {
    padding: 0 0 70px;
}

.md-blog-category-page .md-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 26px;
    align-items: start;
}

/* LIST TOP BAR (toggle + counts) */

.md-blog-category-page .md-blog-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.md-blog-category-page .md-list-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 40px;
    padding: 4px;
    border: 1px solid rgba(255, 36, 66, 0.18);
    border-radius: 999px;
    background: #fff8f9;
    box-shadow: 0 6px 14px rgba(70, 35, 43, 0.05);
}

.md-blog-category-page .md-list-toggle button {
    width: 36px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #aa8e95;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.md-blog-category-page .md-list-toggle button:hover {
    color: var(--md-red);
}

.md-blog-category-page .md-list-toggle button.is-active {
    background: var(--md-red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(255, 36, 66, 0.28);
}

.md-blog-category-page .md-blog-count {
    color: #151927;
    font-size: 13px;
    font-weight: 800;
}

/* DİKEY (GRID) LİSTE */

.md-blog-category-page .md-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.md-blog-category-page .md-post-grid .md-post-card {
    overflow: hidden;
    border: 1px solid var(--md-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(70, 35, 43, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}

.md-blog-category-page .md-post-grid .md-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 36, 66, 0.26);
    box-shadow: 0 22px 48px rgba(70, 35, 43, 0.11);
}

.md-blog-category-page .md-post-grid .md-post-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #fff5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-blog-category-page .md-post-grid .md-post-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.md-blog-category-page .md-post-grid .md-post-content {
    padding: 18px 18px 20px;
}

.md-blog-category-page .md-post-grid .md-post-content h3 {
    margin: 7px 0 10px;
    color: #141928;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.25px;
    font-weight: 900;
}

.md-blog-category-page .md-post-grid .md-post-content h3 a {
    color: inherit;
}

.md-blog-category-page .md-post-grid .md-post-card:hover h3 a {
    color: var(--md-red);
}

.md-blog-category-page .md-post-grid .md-post-content p {
    margin: 0 0 16px;
    color: #746b73;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
}

.md-blog-category-page .md-post-grid .md-post-action {
    display: none;
}

.md-post-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2442, #ff4560);
    color: #fff;
    font-size: 11.5px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(255, 36, 66, 0.22);
}

.md-post-badge i {
    font-size: 12px;
}

/* YATAY (LIST) LİSTE */

.md-blog-category-page.is-list-horizontal .md-post-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.md-blog-category-page.is-list-horizontal .md-post-grid .md-post-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 154px;
    padding: 14px 16px;
    border-radius: 16px;
    overflow: visible;
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr) auto;
    gap: 22px;
}

.md-blog-category-page.is-list-horizontal .md-post-grid .md-post-card:hover {
    transform: translateY(-2px);
}

.md-blog-category-page.is-list-horizontal .md-post-grid .md-post-img {
    width: 185px;
    height: 126px;
    border-radius: 13px;
    overflow: hidden;
}

.md-blog-category-page.is-list-horizontal .md-post-grid .md-post-img img {
    object-fit: cover;
}

.md-blog-category-page.is-list-horizontal .md-post-grid .md-post-content {
    padding: 4px 0;
    align-self: center;
    min-width: 0;
}

.md-blog-category-page.is-list-horizontal .md-post-grid .md-post-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.md-blog-category-page.is-list-horizontal .md-post-grid .md-post-content p {
    max-width: 680px;
    margin: 0 0 11px;
    font-size: 13px;
}

.md-blog-category-page.is-list-horizontal .md-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.md-blog-category-page .md-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
}

.md-blog-category-page .md-post-meta .md-date {
    color: #8c858b;
    font-size: 12px;
}

.md-blog-category-page.is-list-horizontal .md-post-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.md-blog-category-page.is-list-horizontal .md-post-action .md-read-link {
    min-width: 118px;
    height: 38px;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 36, 66, 0.45);
    border-radius: 999px;
    color: var(--md-red);
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.md-blog-category-page.is-list-horizontal .md-post-action .md-read-link:hover {
    gap: 8px;
    color: #fff;
    background: var(--md-red);
}

.md-blog-category-page.is-list-horizontal .md-post-badge {
    left: 18px;
    top: 18px;
}

/* SIDEBAR */

.md-blog-category-page .md-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.md-blog-category-page .md-side-box {
    padding: 24px;
    border: 1px solid var(--md-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(70, 35, 43, 0.06);
}

.md-blog-category-page .md-side-box h3 {
    margin: 0 0 18px;
    color: #151927;
    font-size: 18px;
    font-weight: 900;
}

.md-blog-category-page .md-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.md-blog-category-page .md-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(255, 36, 66, 0.18);
    color: #8a7379;
    font-size: 12px;
    font-weight: 600;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.md-blog-category-page .md-tags a:hover,
.md-blog-category-page .md-tags a.is-active {
    background: var(--md-red);
    border-color: var(--md-red);
    color: #fff;
}

.md-blog-category-page .md-cta-box {
    text-align: center;
    padding: 30px 22px 22px;
    background:
        radial-gradient(circle at top, rgba(255, 36, 66, 0.08), transparent 44%),
        #fff8f9;
}

.md-blog-category-page .md-cta-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-red);
    font-size: 34px;
}

.md-blog-category-page .md-cta-box h3 {
    margin: 0 0 10px;
    color: #171b29;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.md-blog-category-page .md-cta-box p {
    margin: 0 auto 18px;
    color: #746b73;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
}

.md-blog-category-page .md-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2442, #ff4560);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(255, 36, 66, 0.22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.md-blog-category-page .md-cta-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 36, 66, 0.30);
}

.md-blog-category-page .md-cta-img {
    height: 205px;
    margin-top: 22px;
    border-radius: 18px;
    overflow: hidden;
}

.md-blog-category-page .md-cta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PAGINATION */

.md-blog-category-page .md-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
}

.md-blog-category-page .md-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 11px 18px;
    border: 1px solid var(--md-border);
    border-radius: 12px;
    background: #fff;
    color: #6f6670;
    font-size: 13px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.md-blog-category-page .md-page-btn:hover {
    background: var(--md-red);
    color: #fff;
    border-color: var(--md-red);
}

.md-blog-category-page .md-page-btn.next {
    justify-self: end;
}

.md-blog-category-page .md-page-btn.is-disabled {
    pointer-events: none;
    opacity: 0.4;
}

.md-blog-category-page .md-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.md-blog-category-page .md-page-numbers a,
.md-blog-category-page .md-page-numbers span {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #171b29;
    font-size: 13px;
    font-weight: 900;
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.md-blog-category-page .md-page-numbers a:hover {
    background: var(--md-soft-red);
    color: var(--md-red);
}

.md-blog-category-page .md-page-numbers a.active,
.md-blog-category-page .md-page-numbers span.active {
    background: var(--md-red);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 36, 66, 0.22);
}

/* BOŞ DURUM */

.md-blog-category-page .md-empty {
    padding: 50px 30px;
    border: 1px dashed rgba(255, 36, 66, 0.22);
    border-radius: 18px;
    background: #fff8f9;
    text-align: center;
    color: #6f6670;
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .md-blog-category-page .md-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .md-blog-category-page .md-featured-box {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .md-blog-category-page .md-featured-content {
        padding: 0 8px 8px;
    }

    .md-blog-category-page .md-selected-box {
        grid-template-columns: 1fr;
    }

    .md-blog-category-page .md-layout {
        grid-template-columns: 1fr;
    }

    .md-blog-category-page .md-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .md-blog-category-page .md-hero-box {
        min-height: 300px;
    }

    .md-blog-category-page .md-hero-content {
        padding-bottom: 62px;
    }

    .md-blog-category-page .md-hero-content h1 {
        font-size: 34px;
    }

    .md-blog-category-page .md-category-wrap {
        margin-top: -46px;
    }

    .md-blog-category-page .md-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-blog-category-page .md-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md-blog-category-page.is-list-horizontal .md-post-grid .md-post-card {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
    }

    .md-blog-category-page.is-list-horizontal .md-post-grid .md-post-img {
        width: 150px;
        height: 112px;
    }

    .md-blog-category-page.is-list-horizontal .md-post-action {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .md-blog-category-page .md-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .md-blog-category-page .md-hero-box {
        min-height: 260px;
    }

    .md-blog-category-page .md-hero-content {
        max-width: 100%;
        padding: 38px 16px 72px;
    }

    .md-blog-category-page .md-hero-content h1 {
        font-size: 28px;
        letter-spacing: -0.6px;
    }

    .md-blog-category-page .md-title-separator span {
        width: 48px;
    }

    .md-blog-category-page .md-hero-content p {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .md-blog-category-page .md-category-wrap {
        margin-top: -54px;
    }

    .md-blog-category-page .md-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .md-blog-category-page .md-category-card {
        min-height: auto;
        padding: 24px 18px;
    }

    .md-blog-category-page .md-featured-img {
        height: 230px;
    }

    .md-blog-category-page .md-featured-content h2 {
        font-size: 24px;
    }

    .md-blog-category-page .md-featured-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .md-blog-category-page .md-mini-card {
        grid-template-columns: 95px 1fr;
    }

    .md-blog-category-page .md-post-grid {
        grid-template-columns: 1fr;
    }

    .md-blog-category-page .md-sidebar {
        grid-template-columns: 1fr;
    }

    .md-blog-category-page .md-pagination {
        grid-template-columns: 1fr;
    }

    .md-blog-category-page .md-page-btn,
    .md-blog-category-page .md-page-btn.next {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .md-blog-category-page .md-blog-list-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .md-blog-category-page.is-list-horizontal .md-post-grid .md-post-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 13px;
        padding: 12px;
        min-height: auto;
    }

    .md-blog-category-page.is-list-horizontal .md-post-grid .md-post-img {
        width: 112px;
        height: 92px;
        border-radius: 12px;
    }

    .md-blog-category-page.is-list-horizontal .md-post-grid .md-post-content h3 {
        font-size: 14px;
        line-height: 1.32;
    }

    .md-blog-category-page.is-list-horizontal .md-post-grid .md-post-content p {
        display: none;
    }

    .md-blog-category-page.is-list-horizontal .md-post-meta {
        gap: 9px;
    }

    .md-blog-category-page.is-list-horizontal .md-post-meta .md-date {
        font-size: 11px;
    }

    .md-blog-category-page.is-list-horizontal .md-post-action {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .md-blog-category-page.is-list-horizontal .md-post-action .md-read-link {
        min-width: 112px;
        height: 34px;
        font-size: 11.5px;
    }
}

@media (max-width: 420px) {
    .md-blog-category-page .md-hero-content h1 {
        font-size: 25px;
    }

    .md-blog-category-page .md-section-title h2 {
        font-size: 23px;
    }

    .md-blog-category-page .md-featured-box {
        padding: 12px;
        border-radius: 20px;
    }

    .md-blog-category-page .md-featured-img {
        height: 200px;
        border-radius: 16px;
    }
}
