/* ═══════════════════════════════════════
   Card Design — Base Styles
   All responsive values are handled by
   Elementor's add_responsive_control system
   (device switcher in the panel) + one
   scoped <style> block per widget.
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&display=swap');

.cd-wrap { width: 100%; }

.cd-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.cd-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    height: 320px;
    background: #13152b;
    border-radius: 16px;
    transition: background 0.35s ease;
}

/* Icon — centered near top, animates on hover */
.cd-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        top       0.45s cubic-bezier(.22,.68,0,1.2),
        left      0.45s cubic-bezier(.22,.68,0,1.2),
        transform 0.45s cubic-bezier(.22,.68,0,1.2),
        width     0.45s cubic-bezier(.22,.68,0,1.2),
        height    0.45s cubic-bezier(.22,.68,0,1.2);
}
.cd-icon svg,
.cd-icon img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    transition:
        width  0.45s cubic-bezier(.22,.68,0,1.2),
        height 0.45s cubic-bezier(.22,.68,0,1.2);
}

/* Body */
.cd-body {
    position: relative;
    z-index: 2;
    font-family: 'Sora', sans-serif;
}

/* Title */
.cd-title {
    color: #ffffff;
    font-family: 'Sora', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

/* Description — hidden by default, shows on hover */
.cd-desc {
    color: #F8F8FC;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
}

/* CTA — hidden by default, slides up on hover */
.cd-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.85);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.cd-arrow {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
