/* Grid Hover Card v2 */
.grid-hover-card {
    --ghc-border-width: 6px;
    --ghc-border-color: #ffffff;
    --ghc-hover-color-1: #ff2288;
    --ghc-hover-color-2: #387ef0;
    --ghc-band-width: 90px;
    --ghc-band-height: 560px;
    --ghc-rotation-speed: 8000ms;
    --ghc-glow-size: 28px;
    --ghc-glow-opacity: 0.9;
    --ghc-radius-top: 16px;
    --ghc-radius-right: 16px;
    --ghc-radius-bottom: 16px;
    --ghc-radius-left: 16px;
    width: 320px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    background: var(--ghc-border-color);
    padding: var(--ghc-border-width);
    border-radius: var(--ghc-radius-top) var(--ghc-radius-right) var(--ghc-radius-bottom) var(--ghc-radius-left);
    box-sizing: border-box;
    isolation: isolate;
}

.grid-hover-card,
.grid-hover-card * {
    box-sizing: border-box;
}

.grid-hover-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--ghc-band-width);
    height: var(--ghc-band-height);
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    background: linear-gradient(var(--ghc-hover-color-1), var(--ghc-hover-color-2));
    opacity: 0;
    transition: opacity 300ms;
    animation: grid-hover-card-rotation var(--ghc-rotation-speed) infinite linear;
    animation-play-state: paused;
    z-index: 0;
    filter: saturate(1.65) brightness(1.25)
        drop-shadow(0 0 var(--ghc-glow-size) var(--ghc-hover-color-1))
        drop-shadow(0 0 calc(var(--ghc-glow-size) * 1.2) var(--ghc-hover-color-2));
}

.grid-hover-card:hover::before,
.grid-hover-card.editor-hover::before {
    opacity: var(--ghc-glow-opacity);
    animation-play-state: running;
}

.grid-hover-card__surface {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: inherit;
    background: #ffffff;
    border-radius: max(0px, calc(var(--ghc-radius-top) - var(--ghc-border-width))) max(0px, calc(var(--ghc-radius-right) - var(--ghc-border-width))) max(0px, calc(var(--ghc-radius-bottom) - var(--ghc-border-width))) max(0px, calc(var(--ghc-radius-left) - var(--ghc-border-width)));
    overflow: hidden;
}

.grid-hover-card__content {
    width: 100%;
    min-height: inherit;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.grid-hover-card__image {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.grid-hover-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.grid-hover-card__title {
    color: #111111;
    margin-bottom: 10px;
}

.grid-hover-card__text {
    color: #111111;
}

.grid-hover-card__button-wrap {
    margin-top: auto;
}

.grid-hover-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 18px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}

.grid-hover-card__button:hover,
.grid-hover-card__button:focus {
    text-decoration: none;
}

@keyframes grid-hover-card-rotation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* v2.0.2: top-anchored card layout */
.grid-hover-card__content {
    justify-content: flex-start;
}

.grid-hover-card__image {
    margin-top: 0;
    flex: 0 0 auto;
}

.grid-hover-card__title,
.grid-hover-card__text,
.grid-hover-card__button-wrap {
    flex: 0 0 auto;
}


/* v2.0.3: bottom-aligned button for consistent multi-card grids */
.grid-hover-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.grid-hover-card__button-wrap {
    margin-top: auto;
    flex: 0 0 auto;
}


/* v2.0.4: full Elementor-style button controls */
.grid-hover-card__button {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 0.3s;
    gap: 0;
}

.grid-hover-card__button-wrap[style*="stretch"],
.grid-hover-card__button-wrap[style*="width: stretch"] {
    width: 100%;
}

.grid-hover-card__button-wrap {
    display: flex;
}

.grid-hover-card__button-wrap[style*="align-self: stretch"] .grid-hover-card__button {
    width: 100%;
}

.grid-hover-card__button-icon {
    display: inline-flex;
    align-items: center;
}

.grid-hover-card__button-icon svg {
    width: 1em;
    height: 1em;
}


/* v2.0.5: button centering and complete icon styling */
.grid-hover-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
}

.grid-hover-card__button-wrap {
    justify-content: center;
}

.grid-hover-card__button-wrap[style*="align-self: stretch"] {
    width: 100%;
}

.grid-hover-card__button-wrap[style*="align-self: stretch"] .grid-hover-card__button {
    width: 100%;
}

.grid-hover-card__button-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.grid-hover-card__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: currentColor;
}

.grid-hover-card__button-icon i {
    font-size: 16px;
}

.grid-hover-card__button-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* v2.0.6: explicit class-based button alignment */
.grid-hover-card__button-wrap {
    display: flex;
    margin-top: auto;
}

.grid-hover-card__button-align-left {
    align-self: flex-start;
}

.grid-hover-card__button-align-center {
    align-self: center;
}

.grid-hover-card__button-align-right {
    align-self: flex-end;
}

.grid-hover-card__button-align-justify {
    align-self: stretch;
    width: 100%;
}

.grid-hover-card__button-align-justify .grid-hover-card__button {
    width: 100%;
}

.grid-hover-card__button,
.grid-hover-card__button-text {
    justify-content: center;
    text-align: center;
}
