/* =========================================================
   VEIC 2027 — QUICK ACTION CARDS
   File: assets/css/quickactions.css
   ========================================================= */

/* -----------------------------------------------------------
   FAILSAFE: force every GeneratePress container that could be
   restricting width on the Homepage to go full width. Uses
   !important because GeneratePress sometimes sets max-width
   via inline style (from Customizer settings), which only a
   stylesheet !important rule can override.
   Scoped to body.home only — no other page is affected.
   ----------------------------------------------------------- */
body.home .site,
body.home #page,
body.home .site-content,
body.home #content,
body.home .grid-container,
body.home .content-area,
body.home #primary,
body.home #main{
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    grid-template-columns: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.home #right-sidebar,
body.home .sidebar,
body.home .widget-area{
    display: none !important;
}


/* -----------------------------------------------------------
   Card itself — now centers normally with plain margin:auto,
   since its parent is guaranteed full width by the rules above.
   No vw/position hacks needed.
   ----------------------------------------------------------- */
.veic-quickactions-outer{
    width: 100%;
    margin-top: -60px;
    margin-bottom: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.veic-quickactions{
    background: var(--veic-white);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(10, 46, 115, 0.10);
    position: relative;
    z-index: 10;
}

.veic-quickactions-inner{
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 30px 20px;
}

.veic-qa-item{
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 4px 20px;
    border-right: 1px solid #E7ECF5;
}

.veic-qa-item.veic-qa-last{
    border-right: none;
}

.veic-qa-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    color: var(--veic-primary);
    transition: transform 0.25s ease, color 0.25s ease;
}

.veic-qa-icon svg{
    width: 100%;
    height: 100%;
    display: block;
}

.veic-qa-item:hover .veic-qa-icon{
    color: var(--veic-secondary);
    transform: translateY(-3px);
}

.veic-qa-title{
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.1px;
    color: var(--veic-primary);
    line-height: 1.35;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.veic-qa-item:hover .veic-qa-title{
    color: var(--veic-secondary);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px){
    .veic-quickactions-inner{ padding: 26px 15px; }
    .veic-qa-item{ padding: 4px 10px; }
}

@media (max-width: 991px){
    .veic-quickactions-inner{
        flex-wrap: wrap;
        justify-content: center;
    }
    .veic-qa-item{
        flex: 0 1 25%;
        border-right: none;
        border-bottom: 1px solid #E7ECF5;
        padding: 16px 10px;
    }
    .veic-qa-item.veic-qa-last{ border-bottom: none; }
}

@media (max-width: 768px){
    .veic-quickactions-outer{ margin-top: -30px; padding: 0 15px; }
    .veic-quickactions{ border-radius: 12px; }
    .veic-quickactions-inner{
        padding: 15px 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .veic-qa-item{
        flex: 0 1 33.333%;
        padding: 14px 6px;
    }
    .veic-qa-icon{ width: 26px; height: 26px; margin-bottom: 8px; }
    .veic-qa-title{ font-size: 11.5px; white-space: normal; }
}

@media (max-width: 480px){
    .veic-quickactions-outer{ margin-top: -20px; padding: 0 10px; }
    .veic-qa-item{ flex: 0 1 50%; }
}
