/**
 * Extended Tags Block - Frontend Styles
 * Matches VIPBC theme styling
 */

.extended-tags-block-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.extended-tags-block-container {
    max-width: 1200px;
    margin: 0 auto;
}

.extended-tags-top-content {
    margin-bottom: 3rem;
}

.extended-tags-tag {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.extended-tags-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: #172541;
    font-family: 'Roboto', sans-serif;
}

.extended-tags-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: #172541;
}

.extended-tags-grid {
    display: grid;
    width: 100%;
    justify-items: stretch;
    grid-auto-flow: row;
}

/* Last row wrapper for centering incomplete rows */
.extended-tags-last-row-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: inherit;
    flex-wrap: nowrap;
    width: 100%;
}

.extended-tag-card {
    background-color: #FAF7F3;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.extended-tag-card.icon-position-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
}

.extended-tag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #CCA43B;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.extended-tag-card.icon-position-left .extended-tag-icon {
    margin-bottom: 0;
    margin-top: 0.125rem;
}

.extended-tag-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.extended-tag-icon svg {
    width: 10px;
    height: 10px;
    color: #FFFFFF;
}

.extended-tag-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #172541;
    font-family: 'Roboto', sans-serif;
}

.extended-tag-description {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
    color: #172541;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .extended-tags-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
    
    /* Disable wrapper centering on responsive - let items flow normally in grid */
    .extended-tags-last-row-wrapper {
        display: contents !important; /* Remove wrapper, let items be direct grid children */
    }
    
    .extended-tags-last-row-wrapper .extended-tag-card {
        flex: none !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media screen and (max-width: 768px) {
    .extended-tags-heading {
        font-size: 1.75rem;
    }

    .extended-tags-top-content {
        margin-bottom: 2rem;
    }

    .extended-tags-grid {
        grid-template-columns: 1fr !important;
    }

    /* Disable wrapper on mobile - let items flow normally in single column grid */
    .extended-tags-last-row-wrapper {
        display: contents !important;
    }
    
    .extended-tags-last-row-wrapper .extended-tag-card {
        flex: none !important;
        width: auto !important;
        max-width: none !important;
    }

    .extended-tag-card {
        padding: 1.5rem;
    }
}

/* Wide and Full Width Support */
.extended-tags-block-wrapper.alignwide,
.extended-tags-block-wrapper.alignfull {
    max-width: 100%;
}

.extended-tags-block-wrapper.alignwide .extended-tags-block-container,
.extended-tags-block-wrapper.alignfull .extended-tags-block-container {
    max-width: 100%;
    padding: 0 2rem;
}

