/* Marquee Letters Showcase — CPOFL */

.cpofl-ml {
    padding: 50px 0 30px;
    background: transparent;
    overflow-x: hidden;
    width: 100%;
}

.cpofl-ml * { box-sizing: border-box; }

.cpofl-ml__inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.cpofl-ml__header {
    text-align: center;
    margin-bottom: 30px;
}

.cpofl-ml__header h2 {
    color: var(--cpofl-ml-heading, #36674f);
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.cpofl-ml__header h2:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--cpofl-ml-accent, #ad965c);
    bottom: 0;
    left: 20%;
}

.cpofl-ml__header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Letter grid ---------- */
.cpofl-ml__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.cpofl-ml__item {
    aspect-ratio: 404 / 301;
    width: 100%;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--cpofl-ml-heading, #36674f);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cpofl-ml__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpofl-ml__item:after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cpofl-ml-accent, #ad965c);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.cpofl-ml__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(54,103,79,0.2);
    border-color: var(--cpofl-ml-accent, #ad965c);
}

.cpofl-ml__item:hover:after { transform: scaleX(1); }

/* ---------- Pricing row (casino-themed) ---------- */
.cpofl-ml__pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.cpofl-ml__card {
    background: linear-gradient(170deg, #ffffff 0%, #fbf6ea 100%);
    border: 1px solid #e6dcc0;
    border-radius: 12px;
    padding: 30px 24px 28px;
    flex: 1 1 240px;
    max-width: 280px;
    box-shadow: 0 6px 20px rgba(54, 103, 79, 0.08), 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

/* Gold top accent bar */
.cpofl-ml__card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ad965c 0%, #d4b876 50%, #ad965c 100%);
}

.cpofl-ml__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(173, 150, 92, 0.25), 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d4b876;
}

.cpofl-ml__card--featured {
    background: linear-gradient(170deg, #ffffff 0%, #f5ead0 100%);
    border: 2px solid var(--cpofl-ml-heading, #36674f);
    box-shadow: 0 10px 28px rgba(173, 150, 92, 0.3), 0 4px 10px rgba(54, 103, 79, 0.15);
    transform: scale(1.04);
}

.cpofl-ml__card--featured:before {
    height: 6px;
}

.cpofl-ml__card--featured:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 24px 48px rgba(173, 150, 92, 0.4), 0 6px 16px rgba(54, 103, 79, 0.2);
}

.cpofl-ml__ribbon {
    position: absolute;
    top: 0; right: 0;
    background: linear-gradient(135deg, #ad965c 0%, #d4b876 100%);
    color: #ffffff;
    padding: 7px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0 0 0 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Casino suit accents on each card's label */
.cpofl-ml__pricing .cpofl-ml__card:nth-child(1) .cpofl-ml__price-label:before { content: '\2660  '; }
.cpofl-ml__pricing .cpofl-ml__card:nth-child(2) .cpofl-ml__price-label:before { content: '\2665  '; }
.cpofl-ml__pricing .cpofl-ml__card:nth-child(3) .cpofl-ml__price-label:before { content: '\2666  '; }
.cpofl-ml__pricing .cpofl-ml__card:nth-child(4) .cpofl-ml__price-label:before { content: '\2663  '; }

.cpofl-ml__price-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cpofl-ml-accent, #ad965c);
    margin-bottom: 8px;
}

.cpofl-ml__price-amount {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--cpofl-ml-heading, #36674f);
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(173, 150, 92, 0.15);
}

.cpofl-ml__features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.cpofl-ml__features li {
    font-size: 0.82rem;
    color: #555;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cpofl-ml__features li:before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--cpofl-ml-accent, #ad965c);
    font-weight: bold;
}

.cpofl-ml__btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--cpofl-ml-accent, #ad965c) 0%, #c9a960 100%);
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(173, 150, 92, 0.35);
}

.cpofl-ml__btn:hover {
    background: linear-gradient(135deg, var(--cpofl-ml-accent-hover, #97834f) 0%, var(--cpofl-ml-accent, #ad965c) 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(173, 150, 92, 0.5);
    transform: translateY(-1px);
}

.cpofl-ml__btn--outline {
    background: transparent;
    border: 2px solid var(--cpofl-ml-accent, #ad965c);
    color: var(--cpofl-ml-accent, #ad965c);
    box-shadow: none;
}

.cpofl-ml__btn--outline:hover {
    background: var(--cpofl-ml-accent, #ad965c);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(173, 150, 92, 0.5);
}

/* ---------- Disclaimer ---------- */
.cpofl-ml__disclaimer {
    width: 100%;
    max-width: 90%;
    margin: 10px auto;
    padding: 14px;
    background-color: #f0f0f0;
    border-radius: 6px;
    text-align: center;
    border: 1px dotted #ddd;
}

.cpofl-ml__disclaimer p {
    font-size: 0.78rem;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .cpofl-ml__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .cpofl-ml__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cpofl-ml__item { font-size: 2.4rem; }
    .cpofl-ml__card { max-width: 100%; }
}

/* ---------- Clickable tile (lightbox enabled) ---------- */
button.cpofl-ml__item {
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.cpofl-ml__item--clickable {
    cursor: pointer;
}

.cpofl-ml__item--clickable:focus-visible {
    outline: 3px solid var(--cpofl-ml-accent, #ad965c);
    outline-offset: 2px;
}

/* ---------- Lightbox ---------- */
.cpofl-ml-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cpofl-ml-lb.is-open {
    display: flex;
}

.cpofl-ml-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
    animation: cpofl-ml-lb-fade 0.2s ease;
}

.cpofl-ml-lb__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: cpofl-ml-lb-pop 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cpofl-ml-lb__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    z-index: 2;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpofl-ml-lb__close:hover,
.cpofl-ml-lb__close:focus {
    background: rgba(0, 0, 0, 0.8);
}

.cpofl-ml-lb__media {
    background: #f5f5f5;
    display: block;
    flex-shrink: 0;
}

.cpofl-ml-lb__img {
    width: 100%;
    aspect-ratio: 404 / 301;
    object-fit: cover;
    display: block;
}

.cpofl-ml-lb__body {
    padding: 28px 28px 32px;
    text-align: center;
    flex: 1;
}

.cpofl-ml-lb__heading {
    color: var(--cpofl-ml-heading, #36674f);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cpofl-ml-lb__desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.cpofl-ml-lb__cta {
    display: inline-block;
    background: var(--cpofl-ml-accent, #ad965c);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.cpofl-ml-lb__cta:hover,
.cpofl-ml-lb__cta:focus {
    background: var(--cpofl-ml-accent-hover, #97834f);
    color: #ffffff;
    text-decoration: none;
}

@keyframes cpofl-ml-lb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cpofl-ml-lb-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .cpofl-ml-lb__body { padding: 22px 20px 26px; }
    .cpofl-ml-lb__heading { font-size: 1.2rem; }
    .cpofl-ml-lb__desc { font-size: 0.9rem; }
}

@media (min-width: 768px) {
    .cpofl-ml-lb__dialog {
        flex-direction: row;
        align-items: stretch;
    }

    .cpofl-ml-lb__media {
        flex: 0 0 300px;
        align-self: stretch;
    }

    .cpofl-ml-lb__img {
        aspect-ratio: auto;
        height: 100%;
        min-height: 260px;
    }

    .cpofl-ml-lb__body {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 32px 36px;
    }

    .cpofl-ml-lb__cta {
        align-self: flex-start;
    }
}
