/* EZ Graftless – Card Widget Styles */

.ezg-section,
.ezg-section * {
    font-family: 'Montserrat', sans-serif;
}

.ezg-section {
    background-color: #111111;
    padding: 60px 40px;
    box-sizing: border-box;
}

/* ── Row ──────────────────────────────────────────────── */
.ezg-category-row + .ezg-category-row {
    margin-top: 40px;
}

.ezg-cards-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: stretch;
}

/* Card column widths */
.ezg-cards-2 .ezg-cards-row .ezg-card { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
.ezg-cards-3 .ezg-cards-row .ezg-card { flex: 0 0 calc(33.333% - 16px); max-width: calc(33.333% - 16px); }

/* 1-card: full width */
.ezg-cards-1 .ezg-cards-row .ezg-card {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ── Card ─────────────────────────────────────────────── */
.ezg-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.ezg-card:hover {
    background-color: #2d2d2d;
    border-top-color: #4db8d4;
}

/* ── Image ────────────────────────────────────────────── */
.ezg-card-image {
    width: 100%;
    height: 260px;          /* fixed height — same across 1, 2, and 3 card layouts */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: block;
    flex-shrink: 0;
}

/* ── Body ─────────────────────────────────────────────── */
.ezg-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ezg-card-heading {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #77CEE7;
}

.ezg-card-title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #ffffff;
    flex-grow: 1;
}

.ezg-highlight {
    color: #4db8d4;
}

/* ── Footer ───────────────────────────────────────────── */
.ezg-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.ezg-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cccccc;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    white-space: nowrap;
}

.ezg-know-more {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ezg-know-more:hover {
    color: #4db8d4;
}

/* ── Responsive ───────────────────────────────────────── */

/* Tablet: 3-card drops to 2 columns */
@media (max-width: 1024px) {
    .ezg-cards-3 .ezg-cards-row {
        flex-wrap: wrap;
    }
    .ezg-cards-3 .ezg-cards-row .ezg-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* Large mobile (landscape / small tablet): 2-card stays side-by-side,
   3-card third item goes full width */
@media (max-width: 768px) {
    .ezg-section {
        padding: 40px 20px;
    }
    .ezg-category-row + .ezg-category-row {
        margin-top: 32px;
    }
    /* 3-card: 2 + 1 layout — third card spans full row */
    .ezg-cards-3 .ezg-cards-row .ezg-card:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* Reduce image height slightly so cards don't tower on mobile */
    .ezg-card-image {
        height: 200px;
    }
}

/* Mobile: everything stacks to single column */
@media (max-width: 540px) {
    .ezg-section {
        padding: 32px 16px;
    }
    .ezg-cards-row {
        flex-direction: column;
    }
    .ezg-cards-1 .ezg-cards-row .ezg-card,
    .ezg-cards-2 .ezg-cards-row .ezg-card,
    .ezg-cards-3 .ezg-cards-row .ezg-card,
    .ezg-cards-3 .ezg-cards-row .ezg-card:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .ezg-card-image {
        height: 220px;
    }
    .ezg-card-title {
        font-size: 14px;
    }
}
