/* Production guardrails: keep collection pages elegant, compact, and publish-safe */
.ak-collection-hero {
    padding: 128px 0 72px !important;
    min-height: auto !important;
}

.ak-collection-hero::after {
    height: 42px !important;
}

.ak-collection-hero-grid {
    align-items: center !important;
    gap: clamp(24px, 4vw, 56px) !important;
}

.ak-collection-hero h1 {
    max-width: 820px !important;
    margin: 10px 0 14px !important;
    font-size: clamp(3.2rem, 7vw, 5.9rem) !important;
    line-height: .92 !important;
    letter-spacing: .045em !important;
}

.ak-collection-hero p:not(.ak-eyebrow) {
    max-width: 640px !important;
    font-size: clamp(.98rem, 1.15vw, 1.08rem) !important;
    line-height: 1.75 !important;
}

.ak-collection-tags {
    margin-top: 22px !important;
}

.ak-collection-hero aside {
    padding: 24px !important;
    max-width: 390px !important;
}

.ak-collection-hero aside strong {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
}

.ak-collection-section {
    padding: 62px 0 94px !important;
}

.ak-collection-head {
    max-width: 760px !important;
    margin-bottom: 34px !important;
}

.ak-collection-head-split {
    max-width: none !important;
    grid-template-columns: minmax(0, .9fr) minmax(260px, .5fr) !important;
    align-items: end !important;
    gap: 26px !important;
}

.ak-collection-head h2 {
    max-width: 760px !important;
    margin-top: 8px !important;
    font-size: clamp(2.15rem, 4.4vw, 3.9rem) !important;
    line-height: .98 !important;
    letter-spacing: .035em !important;
}

.ak-collection-head p:not(.ak-eyebrow) {
    max-width: 470px !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

.ak-masonry-soft .col-md-6:nth-child(3n+2),
.ak-service-flow .col-md-6:nth-child(3n+2),
.ak-portfolio-flow .col-md-6:nth-child(3n+2),
.ak-article-flow .col-md-6:nth-child(3n+2) {
    margin-top: 18px !important;
}

.ak-masonry-soft .col-md-6:nth-child(3n+3),
.ak-service-flow .col-md-6:nth-child(3n+3),
.ak-portfolio-flow .col-md-6:nth-child(3n+3),
.ak-article-flow .col-md-6:nth-child(3n+3) {
    margin-top: 6px !important;
}

.ak-list-card {
    border-radius: 20px !important;
    box-shadow: 0 18px 52px rgba(41,29,15,.09) !important;
}

.ak-list-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 28px 70px rgba(41,29,15,.14) !important;
}

.ak-list-card figure img {
    height: 248px !important;
}

.ak-list-card-body {
    padding: 22px 24px 24px !important;
}

.ak-list-card h3 {
    font-size: clamp(1.12rem, 1.7vw, 1.38rem) !important;
    line-height: 1.22 !important;
}

.ak-list-card p {
    font-size: .97rem !important;
    line-height: 1.68 !important;
}

.ak-portfolio-list-card.is-wide {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .78fr) !important;
}

.ak-portfolio-list-card.is-wide figure img {
    min-height: 340px !important;
}

.ak-article-list-card.is-featured figure img {
    height: 300px !important;
}

.ak-pagination-wrap {
    margin-top: 28px !important;
}

.ak-detail-modern {
    padding-top: 128px !important;
}

.ak-detail-panel h1,
.ak-article-modern-hero h1 {
    font-size: clamp(3rem, 6vw, 5.4rem) !important;
    line-height: .95 !important;
}

@media (max-width: 991px) {
    .ak-collection-hero {
        padding: 118px 0 64px !important;
    }

    .ak-collection-hero-grid,
    .ak-collection-head-split {
        grid-template-columns: 1fr !important;
    }

    .ak-masonry-soft .col-md-6:nth-child(n),
    .ak-service-flow .col-md-6:nth-child(n),
    .ak-portfolio-flow .col-md-6:nth-child(n),
    .ak-article-flow .col-md-6:nth-child(n) {
        margin-top: 0 !important;
    }
}

@media (max-width: 575px) {
    .ak-collection-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.35rem) !important;
    }

    .ak-collection-head h2 {
        font-size: clamp(2.25rem, 12vw, 3.4rem) !important;
    }

    .ak-list-card figure img {
        height: 225px !important;
    }
}
