/* CA Post Detail v1.5 */
.ca-post-detail{background:#fff;color:#222328}
.ca-post-detail__container{width:min(1240px,calc(100% - 48px));margin:0 auto}
.ca-post-detail__top{border-bottom:1px solid #ececf0}
.ca-post-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:22px 0;color:#74747e;font-size:14px}
.ca-post-breadcrumbs a{color:#222328;text-decoration:none}
.ca-post-detail__title-block{max-width:920px;padding:34px 0 14px}
.ca-post-detail__category{display:inline-block;margin-bottom:14px;color:#b21e68;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.ca-post-detail__title{margin:0;font-size:clamp(38px,5vw,64px);line-height:1.05;letter-spacing:-.04em}
.ca-post-detail__meta{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0 26px;color:#666671;font-size:14px}
.ca-post-detail__meta-left{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.ca-post-detail__meta-left i{width:4px;height:4px;background:#bdbdc5;border-radius:50%}
.ca-post-detail__meta-left a{color:inherit;text-decoration:none}
.ca-post-detail__meta-label{color:#9a9aa3}
.ca-post-detail__share{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.ca-post-detail__share a{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border:1px solid #dddde3;border-radius:50%;color:#29292f;text-decoration:none}

.ca-post-layout{padding:56px 0 68px}
.ca-post-layout__grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:54px;align-items:start}
.ca-post-layout__main{min-width:0}

.ca-post-layout__grid--no-sidebar{grid-template-columns:minmax(0,1fr)}
.ca-post-layout__grid--sidebar-right .ca-post-layout__main{grid-column:1}
.ca-post-layout__grid--sidebar-right .ca-post-sidebar{grid-column:2}
.ca-post-layout__grid--sidebar-left{grid-template-columns:300px minmax(0,1fr)}
.ca-post-layout__grid--sidebar-left .ca-post-sidebar{grid-column:1;grid-row:1}
.ca-post-layout__grid--sidebar-left .ca-post-layout__main{grid-column:2;grid-row:1}

.ca-post-detail__sections,.ca-post-module-section{width:100%}
.ca-post-module-section{margin-bottom:34px}
.ca-post-module-section:last-child{margin-bottom:0}
.ca-post-detail__content{font-size:18px;line-height:1.75;color:#44444d}
.ca-post-detail__content img{max-width:100%;height:auto}
.ca-post-detail__tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-top:30px;margin-top:34px;border-top:1px solid #ececf0}
.ca-post-detail__tags a{padding:7px 12px;border:1px solid #dedee3;border-radius:999px;color:#55555e;text-decoration:none;font-size:13px}

.ca-post-sidebar__sticky{position:sticky;top:110px}
.ca-sidebar-card{padding:24px;margin-bottom:24px;border:1px solid #e7e7eb;border-radius:14px;background:#fff;box-shadow:0 8px 28px rgba(25,25,35,.05)}
.ca-sidebar-card h2{margin:0 0 18px;font-size:21px;line-height:1.2}
.ca-sidebar-search__form{display:flex;border:1px solid #dcdce2;border-radius:9px;overflow:hidden;background:#fff}
.ca-sidebar-search__form input[type=search]{min-width:0;flex:1;height:46px;padding:0 13px;border:0;outline:0;font-size:14px}
.ca-sidebar-search__form button{width:46px;border:0;background:#222328;color:#fff;font-size:21px;cursor:pointer}
.ca-sidebar-categories ul{list-style:none;margin:0;padding:0}
.ca-sidebar-categories li{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid #efeff2;color:#9a9aa3;font-size:13px}
.ca-sidebar-categories li:last-child{border-bottom:0;padding-bottom:0}
.ca-sidebar-categories li:first-child{padding-top:0}
.ca-sidebar-categories a{flex:1;color:#33333a;text-decoration:none;font-size:14px;font-weight:600}
.ca-sidebar-categories a:hover{color:#b21e68}

.ca-post-author{padding:54px 0;background:#f7f7f9}
.ca-post-author__card{display:flex;gap:24px;align-items:center;padding:30px;border-radius:16px;background:#fff}
.ca-post-author__avatar img{display:block;border-radius:50%}
.ca-post-author__eyebrow{display:block;margin-bottom:5px;color:#b21e68;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.ca-post-author h2{margin:0 0 8px;font-size:26px}
.ca-post-author p{margin:0;color:#686871;line-height:1.6}

.ca-related-posts{padding:68px 0 78px}
.ca-related-posts__title{margin:0 0 28px;font-size:40px}
.ca-related-posts__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.ca-related-card{overflow:hidden;border:1px solid #e8e8ec;border-radius:14px}
.ca-related-card__image{display:block;aspect-ratio:16/10;background:#eeeef2;overflow:hidden}
.ca-related-card__image img,.ca-related-card__image span{display:block;width:100%;height:100%;object-fit:cover}
.ca-related-card__body{padding:20px}
.ca-related-card__date{margin-bottom:8px;color:#909099;font-size:12px}
.ca-related-card h3{margin:0 0 14px;font-size:21px;line-height:1.3}
.ca-related-card h3 a{color:inherit;text-decoration:none}
.ca-related-card__link{color:#b21e68;font-weight:700;text-decoration:none;font-size:14px}

.ca-post-comments{padding:60px 0;background:#f7f7f9}
.ca-post-comments__inner{max-width:900px}
.ca-post-detail--header-hidden .ca-post-layout{padding-top:46px}

@media(max-width:1024px){
    .ca-post-layout__grid{grid-template-columns:minmax(0,1fr) 260px;gap:34px}
    .ca-related-posts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
    .ca-post-layout__grid{grid-template-columns:1fr}
    .ca-post-layout__grid--sidebar-left .ca-post-layout__main,.ca-post-layout__grid--sidebar-right .ca-post-layout__main{grid-column:1;grid-row:1}.ca-post-layout__grid--sidebar-left .ca-post-sidebar,.ca-post-layout__grid--sidebar-right .ca-post-sidebar{grid-column:1;grid-row:2}.ca-post-sidebar__sticky{position:static}
    .ca-post-sidebar{margin-top:10px}
    .ca-post-detail__meta{align-items:flex-start;flex-direction:column}
    .ca-sidebar-categories ul{columns:2;column-gap:28px}
    .ca-sidebar-categories li{break-inside:avoid}
}
@media(max-width:600px){
    .ca-post-detail__container{width:min(100% - 30px,1240px)}
    .ca-post-layout{padding:36px 0 48px}
    .ca-post-detail__title{font-size:38px}
    .ca-post-breadcrumbs{padding:16px 0;font-size:13px}
    .ca-post-detail__meta{padding:16px 0 20px}
    .ca-sidebar-card{padding:20px}
    .ca-sidebar-categories ul{columns:1}
    .ca-post-author__card{align-items:flex-start;flex-direction:column;padding:22px}
    .ca-related-posts{padding:50px 0}
    .ca-related-posts__grid{grid-template-columns:1fr}
    .ca-related-posts__title{font-size:32px}
}


/* =========================================================
   v1.4 Article Header / Information Bar
   ========================================================= */

.ca-post-title-area {
    padding: 52px 0 38px;
    background: #fff;
}

.ca-post-title-area .ca-post-detail__title {
    max-width: 980px;
}

.ca-article-info {
    position: relative;
    z-index: 3;
    padding: 0;
    background: #f7f7f9;
    border-top: 1px solid #efeff2;
    border-bottom: 1px solid #e7e7eb;
}

.ca-article-info__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    min-height: 126px;
    padding: 22px 0;
}

.ca-article-info__main {
    min-width: 0;
}

.ca-post-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 18px;
    color: #85858e;
    font-size: 13px;
    line-height: 1.45;
}

.ca-post-breadcrumbs a {
    color: #45454d;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.ca-post-breadcrumbs a:hover {
    color: #b21e68;
}

.ca-post-breadcrumbs__separator {
    color: #babac1;
}

.ca-post-breadcrumbs__current {
    max-width: 390px;
    overflow: hidden;
    color: #878790;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-article-info__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.ca-article-info__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ca-article-info__avatar {
    width: 34px;
    height: 34px;
    overflow: hidden;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #e8e8ec;
}

.ca-article-info__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ca-article-info__author > span:last-child,
.ca-article-info__detail {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ca-article-info__meta small,
.ca-article-share__label small {
    color: #9b9ba4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ca-article-info__meta strong,
.ca-article-info__detail time {
    color: #34343b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

a.ca-article-info__detail {
    text-decoration: none;
}

.ca-article-info__divider {
    width: 1px;
    height: 30px;
    background: #dedee3;
}

.ca-article-share {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 13px 16px 13px 19px;
    border: 1px solid #dedee4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(30, 30, 38, .05);
}

.ca-article-share__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 3px;
}

.ca-article-share__label strong {
    color: #34343b;
    font-size: 14px;
}

.ca-article-share__buttons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ca-article-share__buttons a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e5;
    border-radius: 50%;
    background: #fafafa;
    color: #33333a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.ca-article-share__buttons a:hover {
    transform: translateY(-2px);
    border-color: #b21e68;
    background: #b21e68;
    color: #fff;
}

/* Header hidden: keep the compact article/share bar */
.ca-post-detail--header-hidden .ca-article-info {
    border-top: 0;
}

.ca-post-detail--header-hidden .ca-post-layout {
    padding-top: 46px;
}

/* Remove legacy top strip styling if old selectors remain */
.ca-post-detail__top {
    display: none !important;
}

@media (max-width: 900px) {
    .ca-article-info__card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 0;
    }

    .ca-article-share {
        width: fit-content;
    }
}

@media (max-width: 600px) {
    .ca-post-title-area {
        padding: 34px 0 26px;
    }

    .ca-article-info__card {
        min-height: 0;
        padding: 18px 0;
    }

    .ca-post-breadcrumbs {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .ca-post-breadcrumbs__current {
        max-width: 220px;
    }

    .ca-article-info__meta {
        gap: 12px;
    }

    .ca-article-info__divider {
        display: none;
    }

    .ca-article-share {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
}


/* =========================================================
   v1.5 Previous / Next Post Navigation
   ========================================================= */

.ca-post-navigation {
    padding: 34px 0 72px;
    background: #f7f7f9;
    border-top: 1px solid #ededf1;
}

.ca-post-navigation__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.ca-post-navigation__grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 610px;
}

.ca-post-nav-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 170px;
    overflow: hidden;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    background: #fff;
    color: #292930;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(28, 28, 36, .045);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.ca-post-nav-card:hover {
    transform: translateY(-3px);
    border-color: #d7d7dd;
    box-shadow: 0 16px 36px rgba(28, 28, 36, .09);
}

.ca-post-nav-card__image {
    min-height: 170px;
    overflow: hidden;
    background: #ececf0;
}

.ca-post-nav-card__image img,
.ca-post-nav-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    transition: transform .35s ease;
}

.ca-post-nav-card:hover .ca-post-nav-card__image img {
    transform: scale(1.04);
}

.ca-post-nav-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
}

.ca-post-nav-card__direction {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #7e7e87;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ca-post-nav-card__direction span {
    color: #b21e68;
    font-size: 17px;
    line-height: 1;
}

.ca-post-nav-card__category {
    display: block;
    margin-bottom: 6px;
    color: #b21e68;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ca-post-nav-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: #24242b;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ca-post-nav-card time {
    color: #96969f;
    font-size: 12px;
}

.ca-post-nav-card--next .ca-post-nav-card__direction {
    justify-content: flex-start;
}

/* Author and comments are intentionally not used in v1.5 */
.ca-post-author,
.ca-post-comments {
    display: none !important;
}

@media (max-width: 960px) {
    .ca-post-navigation__grid {
        grid-template-columns: 1fr;
    }

    .ca-post-navigation__grid--single {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .ca-post-navigation {
        padding: 26px 0 48px;
    }

    .ca-post-nav-card {
        grid-template-columns: 115px minmax(0, 1fr);
        min-height: 145px;
        border-radius: 13px;
    }

    .ca-post-nav-card__image,
    .ca-post-nav-card__image img,
    .ca-post-nav-card__placeholder {
        min-height: 145px;
    }

    .ca-post-nav-card__content {
        padding: 17px;
    }

    .ca-post-nav-card h3 {
        font-size: 17px;
    }

    .ca-post-nav-card__direction {
        margin-bottom: 9px;
        font-size: 10px;
    }
}


/* =========================================================
   v1.6 Category Archive
   ========================================================= */

.ca-category-page {
    background: #fff;
    color: #222328;
}

.ca-category-hero {
    padding: 30px 0 54px;
    border-bottom: 1px solid #ececf0;
    background:
        radial-gradient(circle at 85% 15%, rgba(178,30,104,.06), transparent 24%),
        #fafafa;
}

.ca-category-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 44px;
    color: #8b8b94;
    font-size: 13px;
}

.ca-category-breadcrumbs a {
    color: #43434a;
    font-weight: 600;
    text-decoration: none;
}

.ca-category-breadcrumbs a:hover {
    color: #b21e68;
}

.ca-category-hero__content {
    max-width: 850px;
}

.ca-category-hero__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #b21e68;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ca-category-hero h1 {
    margin: 0 0 16px;
    color: #222328;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.ca-category-hero__description {
    max-width: 720px;
    color: #676770;
    font-size: 17px;
    line-height: 1.7;
}

.ca-category-hero__description p {
    margin: 0;
}

.ca-category-hero__count {
    margin-top: 18px;
    color: #95959d;
    font-size: 13px;
    font-weight: 600;
}

.ca-category-content {
    padding: 58px 0 80px;
}

.ca-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 52px;
    align-items: start;
}

.ca-category-main {
    min-width: 0;
}

.ca-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.ca-category-card {
    overflow: hidden;
    border: 1px solid #e9e9ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(28, 28, 36, .04);
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.ca-category-card:hover {
    transform: translateY(-4px);
    border-color: #ddddE3;
    box-shadow: 0 17px 38px rgba(28, 28, 36, .09);
}

.ca-category-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ececf0;
}

.ca-category-card__image img,
.ca-category-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ca-category-card:hover .ca-category-card__image img {
    transform: scale(1.035);
}

.ca-category-card__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #b21e68;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: 0 5px 16px rgba(0,0,0,.08);
}

.ca-category-card__body {
    padding: 22px 22px 24px;
}

.ca-category-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: #92929a;
    font-size: 11px;
    font-weight: 600;
}

.ca-category-card__meta > span[aria-hidden="true"] {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c2c2c8;
}

.ca-category-card h2 {
    margin: 0 0 11px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.ca-category-card h2 a {
    color: #24242b;
    text-decoration: none;
}

.ca-category-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 75px;
    margin: 0 0 18px;
    color: #707078;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ca-category-card__read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b21e68;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ca-category-card__read span {
    transition: transform .2s ease;
}

.ca-category-card:hover .ca-category-card__read span {
    transform: translateX(3px);
}

/* Pagination */
.ca-pagination {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ececf0;
}

.ca-pagination__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ca-pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #dedee4;
    border-radius: 9px;
    background: #fff;
    color: #44444c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ca-pagination a.page-numbers:hover {
    transform: translateY(-2px);
    border-color: #b21e68;
    color: #b21e68;
}

.ca-pagination .page-numbers.current {
    border-color: #b21e68;
    background: #b21e68;
    color: #fff;
}

.ca-pagination .page-numbers.prev,
.ca-pagination .page-numbers.next {
    gap: 6px;
    padding: 0 17px;
}

.ca-category-empty {
    padding: 55px;
    border: 1px solid #e6e6eb;
    border-radius: 16px;
    background: #fafafa;
    text-align: center;
}

.ca-category-empty h2 {
    margin: 0 0 10px;
}

.ca-category-empty p {
    margin: 0 0 20px;
    color: #777780;
}

.ca-category-empty a {
    display: inline-flex;
    padding: 11px 18px;
    border-radius: 8px;
    background: #b21e68;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* Current category */
.ca-category-sidebar .current-cat > a {
    color: #b21e68;
}

@media (max-width: 1040px) {
    .ca-category-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 34px;
    }

    .ca-category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .ca-category-layout {
        grid-template-columns: 1fr;
    }

    .ca-category-sidebar {
        margin-top: 10px;
    }

    .ca-category-sidebar .ca-post-sidebar__sticky {
        position: static;
    }
}

@media (max-width: 600px) {
    .ca-category-hero {
        padding: 22px 0 38px;
    }

    .ca-category-breadcrumbs {
        margin-bottom: 30px;
    }

    .ca-category-hero h1 {
        font-size: 42px;
    }

    .ca-category-content {
        padding: 38px 0 56px;
    }

    .ca-category-grid {
        gap: 20px;
    }

    .ca-category-card {
        border-radius: 13px;
    }

    .ca-category-card__body {
        padding: 18px;
    }

    .ca-category-card h2 {
        font-size: 21px;
    }

    .ca-pagination {
        margin-top: 36px;
    }

    .ca-pagination__inner {
        gap: 6px;
    }

    .ca-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
    }

    .ca-pagination .page-numbers.prev span,
    .ca-pagination .page-numbers.next span {
        display: none;
    }
}


/* =========================================================
   v1.7 Category Admin Layout / Hero Image support
   ========================================================= */

.ca-category-hero.ca-category-hero--image {
    position: relative;
    display: flex;
    min-height: var(--ca-cat-hero-height, 430px);
    align-items: flex-end;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--ca-cat-text, #fff);
}

.ca-category-hero.ca-category-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--ca-cat-overlay, .2));
    pointer-events: none;
}

.ca-category-hero.ca-category-hero--image .ca-post-detail__container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
}

.ca-category-hero.ca-category-hero--image .ca-category-breadcrumbs,
.ca-category-hero.ca-category-hero--image .ca-category-breadcrumbs a,
.ca-category-hero.ca-category-hero--image .ca-category-hero__description,
.ca-category-hero.ca-category-hero--image .ca-category-hero__count,
.ca-category-hero.ca-category-hero--image h1 {
    color: var(--ca-cat-text, #fff);
}

.ca-category-hero.ca-category-hero--image .ca-category-breadcrumbs {
    opacity: .88;
}

.ca-category-hero.ca-category-hero--image .ca-category-hero__eyebrow {
    color: var(--ca-cat-text, #fff);
    opacity: .88;
}

/* Category layout choices */
.ca-category-layout--full-width {
    grid-template-columns: minmax(0, 1fr);
}

.ca-category-layout--sidebar-right {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.ca-category-layout--sidebar-left {
    grid-template-columns: 300px minmax(0, 1fr);
}

.ca-category-layout--sidebar-left .ca-category-sidebar {
    grid-column: 1;
    grid-row: 1;
}

.ca-category-layout--sidebar-left .ca-category-main {
    grid-column: 2;
    grid-row: 1;
}

.ca-category-layout--full-width .ca-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1040px) {
    .ca-category-layout--sidebar-left {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .ca-category-layout--sidebar-right {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    .ca-category-layout--full-width .ca-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ca-category-layout--sidebar-left,
    .ca-category-layout--sidebar-right,
    .ca-category-layout--full-width {
        grid-template-columns: 1fr;
    }

    .ca-category-layout--sidebar-left .ca-category-main,
    .ca-category-layout--sidebar-right .ca-category-main {
        grid-column: 1;
        grid-row: 1;
    }

    .ca-category-layout--sidebar-left .ca-category-sidebar,
    .ca-category-layout--sidebar-right .ca-category-sidebar {
        grid-column: 1;
        grid-row: 2;
    }

    .ca-category-layout--full-width .ca-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ca-category-hero.ca-category-hero--image {
        min-height: var(--ca-cat-mobile-height, 300px);
    }

    .ca-category-hero.ca-category-hero--image .ca-post-detail__container {
        width: min(100% - 30px, 1240px);
    }
}

@media (max-width: 600px) {
    .ca-category-layout--full-width .ca-category-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   v1.8 Blog Landing / Posts Page
   ========================================================= */

.ca-blog-landing {
    background: #fff;
    color: #222328;
}

.ca-blog-hero {
    padding: 34px 0 62px;
    border-bottom: 1px solid #ececf0;
    background:
        radial-gradient(circle at 86% 18%, rgba(178,30,104,.075), transparent 25%),
        radial-gradient(circle at 70% 70%, rgba(41,41,47,.035), transparent 28%),
        #fafafa;
}

.ca-blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 48px;
    color: #898992;
    font-size: 13px;
}

.ca-blog-breadcrumbs a {
    color: #44444b;
    font-weight: 600;
    text-decoration: none;
}

.ca-blog-hero__content {
    max-width: 900px;
}

.ca-blog-hero__eyebrow,
.ca-blog-section-heading > div > span,
.ca-blog-categories__heading > div > span {
    display: block;
    margin-bottom: 9px;
    color: #b21e68;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ca-blog-hero h1 {
    margin: 0 0 18px;
    color: #222328;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .98;
}

.ca-blog-hero p {
    max-width: 760px;
    margin: 0;
    color: #666670;
    font-size: 18px;
    line-height: 1.7;
}

/* Category scroller */
.ca-blog-categories {
    padding: 32px 0 36px;
    border-bottom: 1px solid #ededf1;
    background: #fff;
}

.ca-blog-categories__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.ca-blog-categories__heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.ca-blog-categories__arrows {
    display: flex;
    gap: 8px;
}

.ca-blog-category-arrow {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddde3;
    border-radius: 50%;
    background: #fff;
    color: #2d2d34;
    font-size: 18px;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ca-blog-category-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #b21e68;
    background: #b21e68;
    color: #fff;
}

.ca-blog-category-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.ca-blog-category-track {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 3px 2px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.ca-blog-category-track::-webkit-scrollbar {
    display: none;
}

.ca-blog-category-pill {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid #e0e0e5;
    border-radius: 999px;
    background: #fff;
    color: #3b3b42;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color .2s ease,
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.ca-blog-category-pill:hover {
    transform: translateY(-2px);
    border-color: #b21e68;
    color: #b21e68;
}

.ca-blog-category-pill--all {
    border-color: #222328;
    background: #222328;
    color: #fff;
}

.ca-blog-category-pill--all:hover {
    color: #fff;
    background: #b21e68;
}

.ca-blog-category-pill__count {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #f1f1f4;
    color: #8a8a93;
    font-size: 10px;
}

.ca-blog-category-pill--all .ca-blog-category-pill__count {
    background: rgba(255,255,255,.14);
    color: #fff;
}

/* Featured */
.ca-blog-featured {
    padding: 62px 0 38px;
}

.ca-blog-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 26px;
}

.ca-blog-section-heading h2 {
    margin: 0;
    color: #222328;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -.03em;
}

.ca-blog-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #e6e6eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(26,26,34,.07);
}

.ca-blog-featured-card__image {
    min-height: 430px;
    overflow: hidden;
    background: #eeeef2;
}

.ca-blog-featured-card__image img,
.ca-blog-featured-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.ca-blog-featured-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
}

.ca-blog-featured-card__category {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    color: #b21e68;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.ca-blog-featured-card h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.ca-blog-featured-card h2 a {
    color: #24242b;
    text-decoration: none;
}

.ca-blog-featured-card p {
    margin: 0 0 20px;
    color: #6d6d76;
    font-size: 15px;
    line-height: 1.7;
}

.ca-blog-featured-card__meta,
.ca-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94949d;
    font-size: 11px;
    font-weight: 600;
}

.ca-blog-featured-card__meta {
    margin-bottom: 25px;
}

.ca-blog-featured-card__meta > span[aria-hidden="true"],
.ca-blog-card__meta > span[aria-hidden="true"] {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c1c1c8;
}

.ca-blog-featured-card__read {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 9px;
    padding: 12px 17px;
    border-radius: 9px;
    background: #222328;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease;
}

.ca-blog-featured-card__read:hover {
    background: #b21e68;
}

/* Main articles */
.ca-blog-content {
    padding: 46px 0 80px;
}

.ca-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 52px;
    align-items: start;
}

.ca-blog-main {
    min-width: 0;
}

.ca-blog-section-heading--articles {
    margin-bottom: 25px;
}

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

.ca-blog-card {
    overflow: hidden;
    border: 1px solid #e8e8ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 27px rgba(28,28,36,.04);
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.ca-blog-card:hover {
    transform: translateY(-4px);
    border-color: #dddde3;
    box-shadow: 0 16px 38px rgba(28,28,36,.09);
}

.ca-blog-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eeeef2;
}

.ca-blog-card__image img,
.ca-blog-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

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

.ca-blog-card__category {
    position: absolute;
    left: 15px;
    bottom: 15px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: #b21e68;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.ca-blog-card__body {
    padding: 22px 22px 24px;
}

.ca-blog-card__meta {
    margin-bottom: 11px;
}

.ca-blog-card h3 {
    margin: 0 0 11px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.ca-blog-card h3 a {
    color: #25252c;
    text-decoration: none;
}

.ca-blog-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 69px;
    margin: 0 0 17px;
    color: #71717a;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ca-blog-card__read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b21e68;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ca-blog-card__read span {
    transition: transform .2s ease;
}

.ca-blog-card:hover .ca-blog-card__read span {
    transform: translateX(3px);
}

.ca-blog-pagination {
    margin-top: 48px;
}

@media (max-width: 1080px) {
    .ca-blog-featured-card {
        grid-template-columns: 1.15fr .85fr;
    }

    .ca-blog-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 34px;
    }

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

@media (max-width: 820px) {
    .ca-blog-featured-card {
        grid-template-columns: 1fr;
    }

    .ca-blog-featured-card__image,
    .ca-blog-featured-card__image img,
    .ca-blog-featured-card__placeholder {
        min-height: 350px;
    }

    .ca-blog-featured-card__content {
        padding: 32px;
    }

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

    .ca-blog-sidebar {
        margin-top: 8px;
    }

    .ca-blog-sidebar .ca-post-sidebar__sticky {
        position: static;
    }
}

@media (max-width: 600px) {
    .ca-blog-hero {
        padding: 24px 0 42px;
    }

    .ca-blog-breadcrumbs {
        margin-bottom: 32px;
    }

    .ca-blog-hero h1 {
        font-size: 48px;
    }

    .ca-blog-hero p {
        font-size: 16px;
    }

    .ca-blog-categories {
        padding: 26px 0 28px;
    }

    .ca-blog-categories__heading h2 {
        font-size: 23px;
    }

    .ca-blog-category-arrow {
        width: 38px;
        height: 38px;
    }

    .ca-blog-featured {
        padding: 42px 0 24px;
    }

    .ca-blog-featured-card {
        border-radius: 14px;
    }

    .ca-blog-featured-card__image,
    .ca-blog-featured-card__image img,
    .ca-blog-featured-card__placeholder {
        min-height: 260px;
    }

    .ca-blog-featured-card__content {
        padding: 24px 20px;
    }

    .ca-blog-featured-card h2 {
        font-size: 30px;
    }

    .ca-blog-content {
        padding: 36px 0 58px;
    }

    .ca-blog-grid {
        gap: 20px;
    }

    .ca-blog-card {
        border-radius: 13px;
    }

    .ca-blog-card__body {
        padding: 18px;
    }

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