.cms-public-section {
    padding: 65px 6%;
    background: #101010;
    color: #fff;
    border-top: 1px solid #292929;
}

.cms-public-section:nth-child(even) {
    background: #181818;
}

.cms-public-eyebrow {
    color: #d51f2a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.cms-public-heading {
    font-size: clamp(25px, 5vw, 38px);
    font-weight: 900;
    margin: 12px 0;
}

.cms-public-subtitle {
    color: #bbb;
    margin-bottom: 28px;
    line-height: 1.7;
}

.cms-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 22px;
}

.cms-public-card {
    min-width: 0;
    overflow: hidden;
    background: #202020;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 22px;
    transition: border-color .2s ease, transform .2s ease;
}

.cms-public-card:hover {
    border-color: #c21b24;
    transform: translateY(-3px);
}

.cms-public-card-title {
    color: #fff;
    font-size: 20px;
    margin: 0 0 12px;
}

.cms-public-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cms-public-image {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 17px;
}

.cms-public-quote {
    margin: 0;
    color: #eee;
    line-height: 1.8;
    white-space: pre-line;
}

.cms-public-author {
    color: #e34249;
    font-weight: bold;
    margin-top: 15px;
}

.cms-public-empty,
.cms-public-error {
    padding: 30px 6%;
    color: #bbb;
    background: #101010;
    text-align: center;
}

.cms-public-error {
    color: #e88b8b;
}

@media (max-width: 600px) {
    .cms-public-section {
        padding: 42px 5%;
    }

    .cms-public-grid {
        grid-template-columns: 1fr;
    }
}


/* KAIROS CATEGORY PAGE UPGRADE */
#cms-public-content {
    display: block;
    width: 100%;
}

#cms-public-content .cms-public-section {
    min-height: 180px;
}

#cms-public-content .cms-public-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#cms-public-content .cms-public-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

#cms-public-content .cms-public-card-title {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#cms-public-content .cms-public-description {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    #cms-public-content .cms-public-section {
        padding: 38px 5%;
    }
}


/* KAIROS CLICKABLE SPECIALS AND DETAIL VIEW */
.cms-public-special-card {
    border-color: #653037;
}

.cms-special-view-button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 14px 18px;
    border: 1px solid #d51f2a;
    border-radius: 5px;
    background: #c51e29;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.cms-special-view-button:hover,
.cms-special-view-button:focus-visible {
    background: #ed2935;
    transform: translateY(-2px);
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.cms-special-overlay[hidden] {
    display: none !important;
}

.cms-special-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .88);
    overflow-y: auto;
}

.cms-special-dialog {
    position: relative;
    width: min(100%, 760px);
    max-height: 92vh;
    overflow-y: auto;
    padding: 30px;
    border: 1px solid #633039;
    border-radius: 10px;
    background: #151515;
    color: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .65);
}

.cms-special-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 42px;
    height: 42px;
    margin: -12px -12px 8px 12px;
    border: 1px solid #555;
    border-radius: 50%;
    background: #252525;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cms-special-detail-image {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 7px;
    margin: 0 0 22px;
    background: #090909;
}

.cms-special-detail-eyebrow {
    color: #ed2935;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cms-special-detail-title {
    clear: both;
    margin: 10px 0 22px;
    color: #fff;
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cms-special-detail-body {
    color: #ddd;
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cms-special-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cms-special-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 190px;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .5px;
}

.cms-special-booking {
    background: #c51e29;
    color: #fff;
}

.cms-special-whatsapp {
    border: 1px solid #777;
    background: #242424;
    color: #fff;
}

.cms-special-action:hover {
    filter: brightness(1.2);
}

body.cms-special-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .cms-special-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .cms-special-dialog {
        width: 100%;
        max-height: 94vh;
        padding: 22px 18px;
        border-radius: 10px 10px 5px 5px;
    }

    .cms-special-detail-body {
        font-size: 14px;
    }

    .cms-special-detail-actions {
        flex-direction: column;
    }

    .cms-special-action {
        flex-basis: auto;
        width: 100%;
    }
}


/* KAIROS GALLERY SIZE FILTERS */
.kairos-gallery-section {
    background: #101010;
}

.kairos-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 5% 28px;
}

.kairos-gallery-filter {
    min-width: 76px;
    padding: 12px 18px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #181818;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.kairos-gallery-filter:hover,
.kairos-gallery-filter.active {
    border-color: #d51f2a;
    background: #c51e29;
    color: #fff;
}

.kairos-gallery-filter:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .kairos-gallery-filters {
        gap: 7px;
        padding-left: 4%;
        padding-right: 4%;
    }

    .kairos-gallery-filter {
        min-width: 0;
        flex: 1 1 28%;
        padding: 11px 8px;
    }
}
