/* card container content */
.ag__cc__slide-card-cta-wrapper {
    position: absolute;
    z-index: 1;
    display: flex;
    grid-template-columns: auto minmax(5.5rem, 1fr);
    flex-direction: column;
    bottom: 0;
    left: 0;
    gap: var(--ag__padding-m);
    width: 100%;
    /* height: 100%; */
    height: fit-content;
    padding: var(--ag__padding-m);
}

/* accordion */

.ag__cc__slide-card-cta-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: auto;
    overflow: hidden;
    transition: height 0.3s ease; /* Smooth transition */
}

.ag__cc-slide-card-seo {
    position: relative;
    display: flex;
    align-items: flex-end; /* Ensure p is aligned to the bottom */
    color: var(--ag__cc__color-white);
    width: 100%;
    height: fit-content; /* Start collapsed */
    overflow: hidden;
    transition: height 0.3s ease; /* Smooth transition */
}

.ag__cc-slide-card-seo p {
    margin: 0; /* Ensure no unexpected margins */
    color: var(--ag__cc__color-white);
    width: 100%;
    font-size: var(--ag__cc__slide-header);
    font-weight: var(--ag__cc__slide-cta-text-regular);
    line-height: var(--ag__cc__slide-cta-text-lh);
}

.ag__cc-slide-card-seo.expanded {
    height: auto; /* Expanded height will be dynamically set by JS */
}

.ag__cc-slide-card-seo.collapsed {
    height: 0; /* Collapsed state */
}

.ag__cc-slide-card-seo--trigger {
    background-color: transparent;
    border: none;
    color: var(--ag__cc__color-white);
    cursor: pointer;
    font-size: var(--ag__cc__slide-cta-text-xs);
    margin-top: 0;
    padding: 0 0 var(--ag__padding-m);
}

.ag__cc-slide-card-seo--trigger:hover {
    text-decoration: none;
}

.ag__cc-slide-card-seo--trigger:focus-visible {
    outline: none;

}

.ag__cc__slide-card-cta-content-wrapper h3,
.ag__cc__slide-card-cta-content-wrapper h4 {
    position: relative;
    color: var(--ag__cc__color-white);
    width: 100%;
    height: fit-content;
}

.ag__cc__slide-card-cta-content-wrapper h3 {
    font-size: var(--ag__cc__slide-header-strap);
    font-weight: var(--ag__cc__slide-header-bold);
    line-height: var(--ag__cc__slide-cta-text-lh);
    padding-top: var(--ag__padding-m-s);
}

.ag__cc__slide-card-cta-content-wrapper h4 {
    font-size: var(--ag__cc__slide-cta-text-s);
    font-weight: var(--ag__cc__slide-header-bold);
    line-height: var(--ag__cc__slide-cta-text-lh);
    position: relative;
    text-transform: uppercase;
}

.ag__cc__flex-stack-bl {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.ag__cc__flex-inline-b {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.ag__cc__flex-stack-tp-sb {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.ag__cc-badge {
    position: absolute !important;
    top: 0;
    left: var(--ag__padding-m);
    display: flex;
    padding: 0.5rem 1.5rem;
    color: var(--ag__cc__color-white);
    background-color: var(--ag__cc__color-green-m);
    border-radius: var(--ag__cc__border-radius-s);
    display: none;
}

.ag__cc__slide-card-cta--button-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: var(--ag__padding-m);
    justify-content: center;
    align-items: center;
    width: 100%;
    height: fit-content;
    z-index: 1;
    justify-self: end;
}

.ag__cc-button-flex-row {
    flex-direction: row;
}

.ag__cc-button-flex-column {
    flex-direction: column;
}

.ag__cc__slide-card-cta--button {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-width: 8rem;
    max-width: 8rem;
    height: fit-content;
    color: var(--ag__cc__color-black);
    background-color: var(--ag__cc__color-white);
    border-radius: calc(var(--ag__cc__border-radius-s) / 2);
    /* padding: var(--ag__padding-m-s) var(--ag__padding-m-sm); */
    padding: 0.35rem 1rem;
    cursor: pointer;
    text-decoration: none;
}

.ag__cc__slide-card-cta--button:hover {
    color: var(--ag__cc__color-white);
    /* background-color: var(--ag__cc__color-deep-blue); */
    background-color: #1e1e1e;
    transition: background-color ease-in-out 0.3s;
}

.ag__cc__slide-card-cta--button span {
    /* font-size: var(--ag__cc__slide-cta-text-xxs); */
    font-size: 0.85rem;
    font-weight: var(--ag__cc__slide-cta-text-bold);
    font-weight: 700;
    line-height: var(--ag__cc__slide-cta-text-lh);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

/* card text below slides */

.ag__cc-slide-card-text {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(96px, auto) auto;
    grid-template-rows:  auto;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    word-wrap: break-word;
    width: 100%;
    height: fit-content;
    margin-top: var(--ag__padding-m);
}

.ag__cc-slide-card-text h3 {
    font-size: calc(var(--ag__cc__slide-header) * 1.25);
    line-height: var(--ag__cc__slide-cta-text-lh);
    font-weight: var(--ag__cc__slide-header-bold);
    padding-right: var(--ag__padding-m);
    text-align: left;
    color: var(--ag__cc__color-black);
}

.ag__cc-slide-card-text p {
    font-size: var(--ag__cc__slide-text-seo);
    line-height: var(--ag__cc__slide-cta-text-lh);
    font-weight: var(--ag__cc__slide-cta-text-light);
    padding-right: var(--ag__padding-m);
    text-align: left;
    color: var(--ag__cc__color-off-black);
    padding-top: var(--ag__padding-m-s);
    padding-right: var(--ag__padding-m);
}

.ag__cc-slide-card-text h6 {
    font-size: var(--ag__cc__slide-text-seo);
    line-height: var(--ag__cc__slide-cta-text-lh);
    font-weight: var(--ag__cc__slide-cta-text-bold);
    padding-top: var(--ag__padding-m-s);
    padding-bottom: calc(var(--ag__padding-m-sm) / 2);
    text-align: left;
    color: var(--ag__cc__color-black);
    border-bottom: 1px solid var(--ag__cc__color-black);
    width: fit-content;
}

@media screen and (max-width: 768px) {
    .ag__cc-slide-card-seo p {
        font-size: var(--ag__cc__slide-cta-text-xs);
    }
}

@media only screen and (min-width: 1800px) {
    .ag__cc__slide-card-cta--button {
        min-width: 9rem;
        max-width: 9rem;
        padding: 0.6rem 1.5rem;
    }
    .ag__cc__slide-card-cta--button span {
        font-size: 0.9rem;
    }
}
/* @media only screen and (max-width: 1580px) {
    .ag__cc__slide-card-cta--button span {
        font-size: 0.8rem;
    }
    .ag__cc__slide-card-cta--button {
        min-width: 7.5rem;
        max-width: 7.5rem;
        padding: 0.35rem 1rem;
    }
} */
@media only screen and (max-width: 640px) {
    .ag__cc__slide-card-cta--button {
        min-width: 7rem;
        max-width: 7rem;
    }
}