/* ═══════════════════════════════════════════════════════════════
   LICENSES SECTION — 4-card grid with image + content split
   ═══════════════════════════════════════════════════════════════ */

.licenses-section {
    position: relative;
    z-index: 20;
    padding-top: 0;
}

/* ── Grid ── */
.license-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;

    transform: translateY(-100px);
}

@media (max-width: 1024px) {
    .license-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .licenses-section {
        margin-top: 0;
    }
    .license-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ── Card ── */
.license-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.dark .license-card {
    background: #1e293b;
    border-color: rgba(100, 116, 139, 0.3);
}

.dark .license-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ── Image (top 1/3) ── */
.license-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.dark .license-card-image {
    background: #334155;
}

.license-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.license-card:hover .license-card-img {
    transform: scale(1.06);
}

/* ── Badge ── */
.license-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    color: #ffffff;
    text-transform: uppercase;
}

.license-badge--blue   { background: rgba(59, 130, 246, 0.9); }
.license-badge--teal   { background: rgba(20, 184, 166, 0.9); }
.license-badge--amber  { background: rgba(245, 158, 11, 0.9); }
.license-badge--violet { background: rgba(139, 92, 246, 0.9); }

/* ── Content (bottom 2/3) ── */
.license-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.license-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.dark .license-card-title {
    color: #f1f5f9;
}

.license-card-body {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748b;
    flex: 1;
    margin-bottom: 1rem;
}

.dark .license-card-body {
    color: #94a3b8;
}

.license-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-logo, #f69136);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.license-card-link:hover {
    gap: 0.625rem;
}

.dark .license-card-link {
    color: #f59e0b;
}
