/* Container Wrapper */
.mcg-grid-wrapper {
    width: 100%;
}

/* Grid Layout */
.mcg-grid {
    display: grid;
    grid-template-columns: repeat(var(--mcg-cols, 4), 1fr);
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
    .mcg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mcg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .mcg-grid { grid-template-columns: 1fr; }
}

/* Card Styling */
.mcg-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px 24px 20px 24px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.mcg-card:hover, .mcg-card:focus {
    border-color: #ffa31a; /* Orange border */
    box-shadow: 0 10px 30px rgba(255, 163, 26, 0.15); /* Soft orange shadow */
    transform: translateY(-2px);
    outline: none;
}

/* Content Area */
.mcg-content {
    width: 100%;
}

/* Icon */
.mcg-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 24px;
    color: #ffd699; /* Light orange default */
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcg-card:hover .mcg-icon {
    color: #ffa31a; /* Bright orange on hover */
}

/* Ensure inline SVGs scale and take color correctly */
.mcg-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.mcg-icon svg[stroke] {
    stroke: currentColor;
    fill: none;
}

.mcg-icon i {
    font-size: 32px;
}

/* Title */
.mcg-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: #2c2c2c;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.mcg-card:hover .mcg-title {
    color: #ffa31a;
}

/* Subtitle and Arrow Wrapper */
.mcg-subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mcg-subtitle {
    color: #999999;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* Arrow */
.mcg-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffa31a;
    display: flex;
    align-items: center;
}

.mcg-card:hover .mcg-arrow {
    opacity: 1;
    transform: translateX(0);
}
