/* ==========================================================================
   TigoCamp Premium Bento Grid & SEO Layout Styling
   Tailored for Camping & Outdoor Niche (Forest Green & Campfire Orange)
   ========================================================================== */

:root {
    --hm-primary: #2E7D32;         /* Forest Green */
    --hm-primary-hover: #1B5E20;   /* Deep Forest Green */
    --hm-accent: #E65100;          /* Campfire Orange */
    --hm-accent-light: #FFF3E0;    /* Soft Amber/Orange Tint */
    --hm-text: #1E293B;            /* Dark Slate Text */
    --hm-text-muted: #64748B;      /* Muted Slate Text */
    --hm-surface: rgba(255, 255, 255, 0.8);
    --hm-surface-border: rgba(46, 125, 50, 0.15);
    --hm-gradient-bg: linear-gradient(135deg, rgba(46,125,50,0.05) 0%, rgba(255,255,255,0.95) 100%);
    --hm-radius-md: 16px;
    --hm-radius-lg: 20px;
    --hm-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --hm-shadow-md: 0 10px 30px -10px rgba(46, 125, 50, 0.1);
    --hm-shadow-lg: 0 20px 40px -15px rgba(46, 125, 50, 0.15);
}

/* ---- BENTO GRID SYSTEM ---- */
.hm-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hm-bento-grid {
        grid-template-columns: 1fr;
    }
}

.hm-bento-item {
    position: relative;
    overflow: hidden;
    background: var(--hm-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--hm-surface-border);
    border-radius: var(--hm-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--hm-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    box-sizing: border-box;
}

.hm-bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-md);
    border-color: rgba(46, 125, 50, 0.35);
}

.hm-bento-hero {
    grid-column: span 2;
    background: var(--hm-gradient-bg);
}

@media (max-width: 768px) {
    .hm-bento-hero {
        grid-column: span 1;
    }
}

/* Horizontal card (spans 2 columns, flex row) */
.hm-bento-horizontal {
    grid-column: span 2;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
}

.hm-bento-horizontal .hm-bento-content {
    flex: 1;
    padding-right: 20px;
}

.hm-bento-horizontal .hm-bento-icon {
    margin-bottom: 0 !important;
    margin-left: 20px;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hm-bento-horizontal {
        grid-column: span 1;
        flex-direction: column !important;
        align-items: flex-start;
    }
    .hm-bento-horizontal .hm-bento-content {
        padding-right: 0;
        margin-bottom: 15px;
    }
    .hm-bento-horizontal .hm-bento-icon {
        margin-left: 0;
        width: 48px;
        height: 48px;
    }
}

/* Bento Typo & Icon */
.hm-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--hm-accent);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.hm-bento-item h3, .hm-bento-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 10px 0 !important;
    line-height: 1.4;
}

.hm-bento-item p {
    font-size: 14px;
    color: var(--hm-text-muted);
    line-height: 1.6;
    margin: 0 !important;
}

.hm-bento-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: var(--hm-primary);
    flex-shrink: 0;
}

.hm-bento-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- STEP BOX (Quy trình) ---- */
.hm-step-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--hm-primary);
    border-radius: var(--hm-radius-md);
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--hm-shadow-sm);
    box-sizing: border-box;
}

.hm-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hm-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.hm-step-content {
    flex: 1;
}

.hm-step-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 6px 0 !important;
}

.hm-step-content p {
    font-size: 14px;
    color: var(--hm-text-muted);
    line-height: 1.6;
    margin: 0 !important;
}

/* ---- ALERT / CALLOUT BOX ---- */
.hm-alert-box {
    padding: 20px;
    border-radius: var(--hm-radius-md);
    margin: 20px 0;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #3182CE;
    background: #EBF8FF;
    color: #2B6CB0;
    box-sizing: border-box;
}

.hm-alert-box.warning {
    background: #FFF5F5;
    border-color: #FEB2B2;
    border-left-color: #E53E3E;
    color: #9B2C2C;
}

.hm-alert-box.warning h4 {
    color: #9B2C2C !important;
}

.hm-alert-box.success {
    background: #F0FFF4;
    border-color: #9AE6B4;
    border-left-color: #38A169;
    color: #22543D;
}

.hm-alert-box.success h4 {
    color: #22543D !important;
}

.hm-alert-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-alert-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 !important;
}

/* ---- METRICS / WHY CHOOSE US ---- */
.hm-why-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.hm-metric-card {
    flex: 1 1 200px;
    max-width: 280px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #F1F5F9;
    border-radius: var(--hm-radius-md);
    padding: 25px 20px;
    box-shadow: var(--hm-shadow-sm);
    transition: transform 0.3s ease;
}

.hm-metric-card:hover {
    transform: translateY(-3px);
}

.hm-metric-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--hm-primary);
    margin-bottom: 5px;
}

.hm-metric-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 8px 0 !important;
}

.hm-metric-card p {
    font-size: 13px;
    color: var(--hm-text-muted);
    line-height: 1.5;
    margin: 0 !important;
}

/* ---- COMMITMENT & CHECKS ---- */
.hm-commitment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 25px 0 !important;
}

.hm-commitment-list li {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    color: var(--hm-text);
    line-height: 1.6;
}

.hm-commitment-list li:last-child {
    border-bottom: none;
}

.hm-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #38A169;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
}

.hm-check-icon svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
}

/* ---- SEO IMAGE STYLING ---- */
.hm-seo-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 30px auto;
    border-radius: var(--hm-radius-md);
    box-shadow: var(--hm-shadow-md);
    border: 4px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hm-seo-image:hover {
    transform: scale(1.01) translateY(-2px);
    box-shadow: var(--hm-shadow-lg);
}

/* ---- BOUNCING ARROW ---- */
@keyframes hm-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hm-bouncing-arrow {
    text-align: center;
    margin: 20px auto;
    animation: hm-bounce 2s infinite;
    display: block;
}

.hm-bouncing-arrow svg {
    width: 36px;
    height: 36px;
    color: var(--hm-primary);
    filter: drop-shadow(0 2px 4px rgba(46,125,50,0.2));
}
