/* Main Section */
.wcub-section {
    background-color: var(--wcub-bg, #f9f9f9);
    padding: 3.75rem 1.25rem;
    border-radius: 8px;
    /* Optional overall radius */
    font-family: var(--wcub-font, inherit);
}

.wcub-main-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--wcub-title, #333);
}

.wcub-main-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Grid Layout */
.wcub-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Response Columns */
.wcub-grid.wcub-cols-1 {
    grid-template-columns: 1fr;
}

.wcub-grid.wcub-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wcub-grid.wcub-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wcub-grid.wcub-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Tablet Override: 2x2 for cols-4 */
@media (max-width: 900px) {
    .wcub-grid.wcub-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Override: Stacked */
@media (max-width: 768px) {
    .wcub-grid {
        display: flex;
        /* Switch to flex */
        overflow-x: auto;
        /* Enable scroll */
        scroll-snap-type: x mandatory;
        /* Snap effect */
        padding-bottom: 20px;
        /* Space for scrollbar */
        gap: 15px;
        /* Hide scrollbar for cleaner look if desired, but good to keep for usability */
        -webkit-overflow-scrolling: touch;
    }

    .wcub-card {
        min-width: 260px;
        /* Fixed width for cards */
        width: 260px;
        scroll-snap-align: center;
        /* Center snap */
        flex-shrink: 0;
        /* Prevent shrinking */
    }
}

/* Card Style */
.wcub-card {
    background-color: var(--wcub-card-bg, #ffffff);
    padding: 20px;
    border-radius: var(--wcub-radius, 12px);
    box-shadow: var(--wcub-shadow, 0 4px 12px rgba(0, 0, 0, 0.05));
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wcub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Icon */
.wcub-icon-wrap {
    flex-shrink: 0;
    color: var(--wcub-accent, #2b7de0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    /* slight align adjust */
}

/* Content */
.wcub-content {
    flex: 1;
}

.wcub-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #222;
}

.wcub-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Link Overlay */
.wcub-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wcub-card:has(.wcub-link-overlay):hover .wcub-title {
    color: var(--wcub-accent);
    transition: color 0.2s;
}