/* ==========================================================================
   Combined Stylesheet for Taxonomy & Page Templates
   Organized by Template File Usage
   ========================================================================== */

/* --- Shared Styles (Used by Taxonomy & LOB) --- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.card-grid {
    display: grid;
    gap: 1.25rem;
}

/* --- Base Card System (Shared) --- */
.card {
    background: var(--color-bg-white);
    border-radius: 16px; /* No variable for 16px, using literal value */
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-border-light); /* Using a neutral background from palette */
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card__icon .dashicons {
    color: var(--color-primary); /* Using brand primary color */
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.card__title {
    font-weight: 600;
    color: var(--color-secondary-dark);
    line-height: 1.3;
}

.card__meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.card__meta-highlight {
    font-weight: 600;
    color: var(--color-primary); 
}


/* ==========================================================================
   Page: Lines of Business (page-lines-of-business.php)
   ========================================================================== */

/* --- LOB Filters --- */
.filter-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-toggle {
    display: inline-flex;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.filter-button {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.filter-button.active {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

/* --- LOB Grid & Card Variant --- */
.card-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.card--vertical {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    min-height: 140px;
}

.card--vertical .card__icon .dashicons {
    font-size: 40px;
    width: 40px;
    margin-bottom: 16px;
}

.card--vertical .card__title {
    font-size: 0.95rem;
    margin-top: auto;
}

.card--vertical .card__meta {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}


/* ==========================================================================
   Page: Taxonomy Archives (taxonomy.php)
   ========================================================================== */

/* --- Taxonomy Search --- */
.mobile-search-container {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

/* --- Taxonomy Grid & Card Variant --- */
.card-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card--horizontal {
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card__content {
    flex-grow: 1;
}

.card--horizontal .card__title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.card__arrow {
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.card:hover .card__arrow {
    transform: translateX(3px);
}

/* --- Legacy Taxonomy Styles (May no longer be in use) --- */
.content-section {
    margin-bottom: 2.5rem;
}

.content-section--boxed {
    background: var(--color-bg-white);
    border-radius: 20px; /* No variable for 20px, using literal value */
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary-dark);
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .content-section--boxed {
        padding: 1.5rem;
    }

    .filter-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    .card-grid {
        gap: 1rem;
    }

    .card-grid--large,
    .card-grid--small {
        grid-template-columns: 1fr;
    }

    .card--horizontal {
        padding: 1.25rem;
    }

    .card--vertical {
        padding: 1.25rem 0.875rem;
        min-height: 120px;
    }

    .card--vertical .card__icon {
        width: 40px;
        height: 40px;
    }

    .card--vertical .card__icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .card--vertical .card__title {
        font-size: 0.875rem;
    }

    .card--vertical .card__meta {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .card-grid--small {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* When line of business card doesnt have a sub category or carrier */
.card--is-inactive {
    opacity: 0.4;
    pointer-events: none;
}