/* ================================================================
   Latbit Cards — Promotions & Payment Methods Grid
   ================================================================ */

/* --- Grid layout ------------------------------------------------ */
.latbit-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
}

/* --- Card ------------------------------------------------------- */
.latbit-card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.latbit-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* --- Image area ------------------------------------------------- */
.latbit-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 32px 24px;
    overflow: hidden;
}

.latbit-card__image img {
    max-width: 100%;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* --- Action / Button area --------------------------------------- */
.latbit-card__actions {
    padding: 14px 16px 16px;
    background: #fff;
}

.latbit-card__actions button:hover {
    background-color: #ca0101;
}

.latbit-card__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.latbit-card__toggle:hover {
    background: #f5f5f5;
}

.latbit-card__toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Chevron icon */
.latbit-card__toggle-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -3px;
}

.latbit-card__toggle[aria-expanded="true"] .latbit-card__toggle-icon {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* --- Expandable content ----------------------------------------- */
.latbit-card__content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.latbit-card__content[hidden] {
    display: block;
    /* Override default hidden — we animate via max-height */
    max-height: 0;
}

.latbit-card__content.is-open {
    max-height: var(--latbit-card-height, 600px);
}

.latbit-card__content-inner {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.latbit-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.latbit-card__description {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.latbit-card__description p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    .latbit-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .latbit-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .latbit-card__image {
        min-height: 140px;
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .latbit-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}