﻿.guide-wrapper {
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    max-width: 1280px
}

.guide-grid {
    grid-gap: 2rem
}

.guide-card h2 {
    font-family: Saira,sans-serif !important;
    font-size: 1.5rem;
    font-weight: 600 !important;
    color: #fff
}

.guide-card img {
    aspect-ratio: 2/1
}

@media (min-width: 768px) {
    .guide-card {
        width: calc(50% - 1rem)
    }
}

@media (min-width: 1024px) {
    .guide-card {
        width: calc(25% - 1.5rem)
    }
}

.guide-card-text {
    background-color: #262626
}

.guide-card-text p {
    color: #b3b3b3
}

.guide-card-text .guide-card-excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4
}

.guide-panel {
    border-top: 2px solid #5f626b;
    padding: 2rem 0
}

.guide-panel .guide-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease,opacity .3s ease;
    opacity: 0;
    pointer-events: none
}

.guide-panel .guide-content-inner {
    overflow: hidden
}

.guide-panel .guide-content.is-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto
}

.guide-panel .guide-content.is-collapsed {
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none
}

.guide-panel .guide-toggle {
    margin: auto;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    padding-right: 2rem;
    padding-left: 2rem;
    max-width: 1280px;
    font-weight: 600;
    font-size: 1.5rem;
    color: #fff
}

.guide-panel .guide-toggle svg {
    transition: transform .3s ease
}

.guide-panel .guide-toggle[aria-expanded="false"] svg {
    transform: rotate(180deg)
}

.guide-cta-wrapper {
    margin-top: 2rem;
    text-align: center
}

.guide-cta-button {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
    padding: .75rem 2rem;
    background-color: #ece81a;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0
}

.guide-cta-button:hover,
.guide-cta-button:focus-visible {
    background-color: #ece81a;
    color: #000;
    text-decoration: none
}

.guide-cta-button::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    padding: 0 30px;
    display: block;
    background-color: #ffff33;
    transform: skewX(-45deg) scale(0,1);
    transition: 200ms
}

@media(hover: hover) {
    .guide-cta-button:hover::after {
        transition: 150ms;
        transform: skewX(-45deg) scale(1,1)
    }
}

.guide-cta-button:focus-visible::after {
    transition: 150ms;
    transform: skewX(-45deg) scale(1,1)
}

.guide-cta-button .guide-cta-label {
    position: relative;
    z-index: 10;
    margin: auto;
    font-weight: 600;
    color: #000
}
