/* Shared styles for series hierarchy components */

.lifco-series-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin-top: 0.25rem;
}

.lifco-series-hierarchy--index:last-of-type {
    padding-bottom: 5.25rem;
}

.lifco-group-title,
.lifco-card-title {
    font-family: "Oswald", sans-serif;
}

.lifco-group-description,
.lifco-card-description {
    font-family: "Roboto", sans-serif;
    margin-bottom: 1rem;
}

/* Descriptions should never look like links */
.lifco-card-item .lifco-card-description,
.lifco-group-row .lifco-group-description {
    color: #1a1a1a;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.55;
    letter-spacing: 0.1px;
    text-decoration: none !important;
    border-bottom: none !important;
}

.lifco-group-row {
    border-top: 1px solid rgba(33, 37, 41, 0.25);
    padding-top: 2rem;
    margin-top: 1rem;
}

.lifco-series-hierarchy > .lifco-group-row:first-child {
    margin-top: 1rem;
}

.lifco-group-title {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
}

@media (min-width: 40rem) {
    .lifco-group-title {
        font-size: 2.35rem;
    }
}

.lifco-group-title-link .lifco-group-title {
    font-size: 1.6rem;
}

@media (min-width: 40rem) {
    .lifco-group-title-link .lifco-group-title {
        font-size: 2rem;
    }
}

.lifco-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lifco-card-item {
    position: relative;
    padding-top: 1.5rem;
}

    .lifco-card-item:not(:has(h3)) {
        /* your styles here */
        padding-top: 0rem;
    }

.lifco-card-list .lifco-card-item:last-child {
    border-bottom: none;
}

.lifco-card-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: flex-start;
}

.lifco-card-image-column {
    display: none;
}

.lifco-card-item:hover .lifco-card-image-column,
.lifco-card-item:focus-within .lifco-card-image-column {
    /*
        display: block;
    */
}

.lifco-card-image-visible {
    display: block;
}

.lifco-card-image {
    display: block;
    max-width: 200px;
    width: auto;
}

/* Default hover behavior no longer expands series list height; modes can override if needed */

.lifco-card-title {
	font-size: 1.6rem; /* slightly smaller than group title link (1.6/2.0 rem) */
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
}

.lifco-card-item:hover .lifco-card-title {
    color: #1a1a1a;
    text-decoration: none;
}

.lifco-group-title-link {
    text-decoration: none;
    color: inherit;
}

.lifco-group-title-link .lifco-group-title {
    color: #1d70b8;
}

/* Sidebar variants: slightly smaller, non-underlined group titles */
.lifco-series-hierarchy[class*="lifco-series-hierarchy--sidebar"] .lifco-group-title {
    font-size: 1.25rem;
}

/* Sidebar variants: slightly smaller, non-underlined group titles */
.lifco-series-hierarchy[class*="lifco-series-hierarchy--sidebar"] .lifco-card-title {
    font-size: 1.1rem;
}

.lifco-series-hierarchy[class*="lifco-series-hierarchy--sidebar"] .lifco-group-title-link .lifco-group-title {
    text-decoration: none;
}

/* Sidebar variants: compact group rows without top border */
.lifco-series-hierarchy[class*="lifco-series-hierarchy--sidebar"] .lifco-group-row {
    border-top: none;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.lifco-group-title-link:hover .lifco-group-title,
.lifco-group-title-link:focus .lifco-group-title {
    color: #003078;
    text-decoration-thickness: 3px;
}

.lifco-series-links {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem 0;
    overflow: hidden;
    position: relative;
}

/* Sidebar variants: indent series links by default */
.lifco-series-hierarchy[class*="lifco-series-hierarchy--sidebar"] .lifco-series-links,
.lifco-series-hierarchy[class*="lifco-series-hierarchy--sidebar"] .lifco-series-links--sidebar-full {
    padding-left: 1.25rem;
}

.lifco-series-links li {
    opacity: 1;
    transform: none;
    transition: none;
}

a.lifco-series-link,
.lifco-series-link {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    color: #1d70b8;
    text-decoration: underline;
}

    a.lifco-series-link:hover,
    .lifco-series-link:hover {
        color: #003078;
        text-decoration-thickness: 3px;
        cursor: pointer;
    }

.lifco-series-link.active {
    color: #1d70b8 !important;
    text-decoration: underline !important;
}

.lifco-series-count {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    color: #1d70b8;
    text-decoration: underline;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    max-height: 3rem;
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

.lifco-card-item:hover .lifco-series-count,
.lifco-card-item:focus-within .lifco-series-count {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    max-height: 0;
    margin-top: 0;
    cursor: pointer;
    transition-delay: 0.75s;
}

.lifco-card-link-wrapper {
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit !important;
}

/* Shared styling for Request a Quote button used in hero-style headers */
.btn-quote {
    background-color: #f4dc76; /* match HeroSection base color */
    border-color: #f4dc76;
    color: #000000;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.btn-quote:hover,
.btn-quote:focus {
    background-color: rgb(230, 205, 105);
    border-color: rgb(230, 205, 105);
    color: #000000;
}

/* Sidebar variants: card items have no bottom border */
.lifco-series-hierarchy[class*="lifco-series-hierarchy--sidebar"] .lifco-card-item {
    border-bottom: none;
    padding: 0;
}

/* Mode specific modifiers (base hooks, empty by default) */

.lifco-series-hierarchy--index {
}

.lifco-series-hierarchy--sidebar {
}

.lifco-series-hierarchy--group {
}

.lifco-series-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
