/**
 * CSG Knowledge Areas Widget Styles
 *
 * @package CsgPersonalized
 * @since   1.0.0
 */

/* Grid layout */
.csg-el-knowledge-areas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Card */
.csg-el-knowledge-areas__card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.csg-el-knowledge-areas__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.12), 0 0 0 1px rgba(30, 136, 229, 0.1);
}

/* Icon */
.csg-el-knowledge-areas__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(30, 136, 229, 0.1));
    color: var(--csg-primary, #D4AF37);
    font-size: 24px;
    margin-bottom: 24px;
    transition: background 0.3s ease, color 0.3s ease;
}

.csg-el-knowledge-areas__card:hover .csg-el-knowledge-areas__icon {
    background: linear-gradient(135deg, var(--csg-secondary, #0B1C2C), var(--csg-primary, #D4AF37));
    color: #ffffff;
}

.csg-el-knowledge-areas__icon i,
.csg-el-knowledge-areas__icon svg {
    font-size: inherit;
    width: 1em;
    height: 1em;
}

/* Title */
.csg-el-knowledge-areas__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--csg-dark, #0f172a);
    margin: 0 0 12px 0;
}

/* Description */
.csg-el-knowledge-areas__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 20px 0;
}

/* Link */
.csg-el-knowledge-areas__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--csg-primary, #D4AF37);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.csg-el-knowledge-areas__link:hover {
    gap: 10px;
    color: var(--csg-primary, #D4AF37);
}

.csg-el-knowledge-areas__link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .csg-el-knowledge-areas__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .csg-el-knowledge-areas__card {
        padding: 32px 24px;
    }

    .csg-el-knowledge-areas__icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 20px;
    }

    .csg-el-knowledge-areas__title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .csg-el-knowledge-areas__grid {
        grid-template-columns: 1fr !important;
    }

    .csg-el-knowledge-areas__card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .csg-el-knowledge-areas__icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
}
