/* ============================================
   CARDS ROW SECTION - RESPONSIVE
============================================ */
.mhb-cards-header {
    margin-bottom: 40px;
}

.mhb-cards-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #0f172a;
}

.mhb-cards-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Grid base */
.mhb-cards-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}

/* MOBILE (default, <768px) */
.mhb-cards-mobile-1 {
    grid-template-columns: 1fr;
}

.mhb-cards-mobile-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Compact styles on mobile 2-col */
.mhb-cards-mobile-2 .mhb-card {
    padding: 14px !important;
}

.mhb-cards-mobile-2 .mhb-card-title {
    font-size: 15px;
}

.mhb-cards-mobile-2 .mhb-card-text {
    font-size: 12px;
}

.mhb-cards-mobile-2 .mhb-card-icon {
    font-size: 28px;
}

.mhb-cards-mobile-2 .mhb-card-image {
    aspect-ratio: 4/3;
    border-radius: 8px;
}

.mhb-cards-mobile-2 .mhb-card-badge {
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 9px;
}

.mhb-cards-mobile-2 .mhb-card-meta {
    font-size: 11px;
}

.mhb-cards-mobile-2 .mhb-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

/* TABLET */
@media (min-width: 768px) {
    .mhb-cards-grid { gap: 20px; }
    
    .mhb-cards-tablet-1 { grid-template-columns: 1fr; }
    .mhb-cards-tablet-2 { grid-template-columns: 1fr 1fr; }
    .mhb-cards-tablet-3 { grid-template-columns: 1fr 1fr 1fr; }
    
    /* Reset mobile styles */
    .mhb-cards-mobile-2 .mhb-card { padding: 24px !important; }
    .mhb-cards-mobile-2 .mhb-card-title { font-size: 20px; }
    .mhb-cards-mobile-2 .mhb-card-text { font-size: 14px; }
    .mhb-cards-mobile-2 .mhb-card-icon { font-size: 44px; }
    .mhb-cards-mobile-2 .mhb-card-image { aspect-ratio: 16/10; border-radius: 12px; }
    .mhb-cards-mobile-2 .mhb-card-badge { top: 16px; right: 16px; padding: 4px 12px; font-size: 11px; }
    .mhb-cards-mobile-2 .mhb-card-meta { font-size: 13px; }
    .mhb-cards-mobile-2 .mhb-btn { padding: 12px 24px !important; font-size: 14px !important; }
}

/* DESKTOP */
@media (min-width: 992px) {
    .mhb-cards-grid { gap: 24px; }
    
    .mhb-cards-desktop-1 { grid-template-columns: 1fr; }
    .mhb-cards-desktop-2 { grid-template-columns: 1fr 1fr; }
    .mhb-cards-desktop-3 { grid-template-columns: 1fr 1fr 1fr; }
    .mhb-cards-desktop-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Card base */
.mhb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: left;
}

/* Card styles */
.mhb-card-style-flat { box-shadow: none; border: none; }
.mhb-card-style-elevated { box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); }
.mhb-card-style-outlined { box-shadow: none; border: 2px solid #e5e7eb; }
.mhb-card-style-glass {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

/* Hover effects */
.mhb-card-hover-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.mhb-card-hover-scale:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.mhb-card-hover-glow:hover { box-shadow: 0 0 30px rgba(2,132,199,0.25); border-color: rgba(2,132,199,0.4); }
.mhb-card-hover-border:hover { border-color: #0288d1 !important; box-shadow: 0 8px 20px rgba(2,132,199,0.15); }

/* Badge */
.mhb-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Image */
.mhb-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 8px;
}

.mhb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mhb-card:hover .mhb-card-image img { transform: scale(1.05); }

/* Icon */
.mhb-card-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 4px;
}

/* Title/Text */
.mhb-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.mhb-card-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Meta */
.mhb-card-meta {
    font-size: 13px;
    color: #94a3b8;
    padding: 8px 0;
    border-top: 1px dashed #e5e7eb;
    margin-top: auto;
    width: 100%;
}

/* Buttons */
.mhb-card-buttons {
    width: 100%;
    margin-top: 8px;
}

.mhb-card-buttons .mhb-btn-group {
    margin-top: 0;
    width: 100%;
}

.mhb-card-buttons .mhb-btn {
    width: 100%;
    justify-content: center;
}

/* Small mobile refinements */
@media (max-width: 640px) {
    .mhb-cards-grid { gap: 12px; }
    .mhb-cards-header { margin-bottom: 24px; }
}
/* ============================================
   CARDS ROW - FORCE RESPONSIVE (Override)
   Force mobile column layout
============================================ */

/* Reset any old rules that force single column on mobile */
.mhb-section-cards-row .mhb-columns {
    display: grid !important;
    width: 100%;
}

/* MOBILE (default, <768px) - Force column count */
.mhb-cards-grid.mhb-cards-mobile-1 {
    grid-template-columns: 1fr !important;
}

.mhb-cards-grid.mhb-cards-mobile-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

/* TABLET (768px+) - Reset and apply tablet columns */
@media (min-width: 768px) {
    .mhb-cards-grid.mhb-cards-tablet-1 {
        grid-template-columns: 1fr !important;
    }
    
    .mhb-cards-grid.mhb-cards-tablet-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    .mhb-cards-grid.mhb-cards-tablet-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* DESKTOP (992px+) - Reset and apply desktop columns */
@media (min-width: 992px) {
    .mhb-cards-grid.mhb-cards-desktop-1 {
        grid-template-columns: 1fr !important;
    }
    
    .mhb-cards-grid.mhb-cards-desktop-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
    
    .mhb-cards-grid.mhb-cards-desktop-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
    
    .mhb-cards-grid.mhb-cards-desktop-4 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
}

/* Override ANY conflicting rules that force column stacking on mobile */
@media (max-width: 767px) {
    /* Ensure cards-row grid DOES NOT get forced to 1 column */
    .mhb-section-cards-row .mhb-columns.mhb-cards-mobile-2 {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Override any conflicting card padding on mobile 2-col */
    .mhb-cards-mobile-2 .mhb-card {
        padding: 14px !important;
        min-width: 0 !important;
    }
    
    .mhb-cards-mobile-2 .mhb-card-title {
        font-size: 15px !important;
    }
    
    .mhb-cards-mobile-2 .mhb-card-text {
        font-size: 12px !important;
    }
    
    .mhb-cards-mobile-2 .mhb-card-icon {
        font-size: 28px !important;
    }
}
/* ============================================
   MOBILE 2 COLUMNS - MAXIMUM SPECIFICITY
   Overrides everything
============================================ */

@media (max-width: 767px) {
    
    /* Ultra specific selector */
    body .mhb-page .mhb-section.mhb-section-cards-row .mhb-section-inner .mhb-section-container div.mhb-columns.mhb-cards-mobile-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* Alternative selector using ID pattern */
    section[id^="section_"] .mhb-cards-mobile-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    /* Force cards to shrink */
    body .mhb-cards-mobile-2 > .mhb-card {
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }
    
    /* Compact styling for mobile 2-col */
    body .mhb-cards-mobile-2 > .mhb-card .mhb-card-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }
    
    body .mhb-cards-mobile-2 > .mhb-card .mhb-card-text {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    body .mhb-cards-mobile-2 > .mhb-card .mhb-card-icon {
        font-size: 28px !important;
    }
    
    body .mhb-cards-mobile-2 > .mhb-card .mhb-card-badge {
        top: 6px !important;
        right: 6px !important;
        padding: 2px 6px !important;
        font-size: 9px !important;
    }
    
    body .mhb-cards-mobile-2 > .mhb-card .mhb-card-meta {
        font-size: 10px !important;
    }
    
    body .mhb-cards-mobile-2 > .mhb-card .mhb-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        width: 100% !important;
    }
    
    body .mhb-cards-mobile-2 > .mhb-card .mhb-card-image {
        aspect-ratio: 1/1 !important;
        border-radius: 8px !important;
    }
}
/* ============================================
   FEATURE ICONS - Custom Support
============================================ */

/* Icon wrapper base */
.mhb-feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Icon Styles */
.mhb-feature-icon-none {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

.mhb-feature-icon-circle {
    border-radius: 50%;
}

.mhb-feature-icon-rounded {
    border-radius: 16px;
}

.mhb-feature-icon-square {
    border-radius: 0;
}

/* Icon content sizing */
.mhb-feature-icon-emoji {
    font-size: 32px;
    line-height: 1;
    display: block;
}

.mhb-feature-icon-none .mhb-feature-icon-emoji {
    font-size: 44px;
}

.mhb-feature-icon-img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    display: block;
}

.mhb-feature-icon-none .mhb-feature-icon-img {
    max-width: 100%;
    max-height: 100%;
    width: 60px;
    height: 60px;
}

/* Hover effect */
.mhb-feature-card:hover .mhb-feature-icon-wrap {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.2);
}

.mhb-feature-card:hover .mhb-feature-icon-img {
    transform: scale(1.1);
}

/* Backward compatibility - old emoji-only icons */
.mhb-feature-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mhb-feature-icon-wrap {
        margin-bottom: 12px;
    }
    
    .mhb-feature-icon-emoji {
        font-size: 28px;
    }
    
    .mhb-feature-icon-none .mhb-feature-icon-emoji {
        font-size: 36px;
    }
}