/* Dynamic Category Grid CSS */

.chemoil-dynamic-cat-grid-element {
    margin: 40px 0;
}

.dcg-grid {
    display: grid;
    grid-template-columns: repeat(var(--dcg-cols-desktop, 3), 1fr);
    gap: 24px;
}

.dcg-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--dcg-bg-color);
    border: 1px solid var(--dcg-border-color);
    border-radius: var(--dcg-border-radius);
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dcg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dcg-card-left {
    flex: 0 0 40%;
    max-width: 40%;
    padding-right: 20px;
    display: flex;
    justify-content: center;
}

.dcg-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.dcg-card-right {
    flex: 0 0 60%;
    max-width: 60%;
}

.dcg-title {
    color: var(--dcg-title-color) !important;
    font-size: var(--dcg-title-size) !important;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.2;
}

.dcg-desc {
    color: var(--dcg-desc-color) !important;
    font-size: var(--dcg-desc-size) !important;
    line-height: 1.5;
    margin-bottom: 15px;
}

.dcg-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.dcg-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: var(--dcg-list-color);
    font-size: var(--dcg-list-size);
    font-weight: 500;
}

.dcg-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--dcg-link-color);
    font-size: 18px;
}

.dcg-link {
    display: inline-block;
    color: var(--dcg-link-color) !important;
    font-size: var(--dcg-link-size) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dcg-link:hover {
    filter: brightness(0.8);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .dcg-grid {
        grid-template-columns: repeat(var(--dcg-cols-tablet, 2), 1fr);
    }
}

@media (max-width: 767px) {
    .dcg-grid {
        grid-template-columns: repeat(var(--dcg-cols-mobile, 1), 1fr);
    }
    .dcg-card {
        flex-direction: column;
        text-align: center;
    }
    .dcg-card-left {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    .dcg-card-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .dcg-list li {
        text-align: left;
    }
}
