/* Grid */
.awd-scope-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Card */
.awd-scope-card {
    position: relative;
    height: 320px;
    border-radius: 20px;
    background: #f3f3f3;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.awd-scope-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.22);
    background: var(--ast-global-color-3);
}

.awd-scope-card__inner {
    position: relative;
    height: 100%;
    padding: 32px;
}

/* Default content */
.awd-scope-card__content {
    position: absolute;
    inset: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.awd-scope-card:hover .awd-scope-card__content {
    opacity: 0;
    transform: translateY(-12px);
}

/* Icon */
.awd-scope-card__icon {
    margin: 0 0 18px;
    line-height: 0;
}

.awd-scope-card__icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
}

/* Title */
.awd-scope-card__title {
    margin: 0;
    color: var(--ast-global-color-2);
    line-height: 1.15;
    text-align: center;
}

/* Hover description */
.awd-scope-card__desc {
    position: absolute;
    inset: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.3s ease, transform 0.35s ease;
    pointer-events: none;
}

.awd-scope-card:hover .awd-scope-card__desc {
    opacity: 1;
    transform: translateY(0);
}

.awd-scope-card__desc p {
    margin: 0;
    max-width: 300px;
    color: #ffffff;
    line-height: 1.66;
    text-align: center;
    font-size: 18px;
}

/* Prompt */
.awd-scope-card::after {
    content: "Learn More";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    color: rgba(0, 0, 0, 0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.awd-scope-card:hover::after {
    opacity: 0;
    transform: translateY(8px);
}

/* Responsive */
@media (max-width: 1024px) {
    .awd-scope-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .awd-scope-card {
        height: auto;
        min-height: 340px;
        background: var(--ast-global-color-3);
    }

    .awd-scope-card__inner {
        height: auto;
        min-height: 340px;
    }

    .awd-scope-card__content {
        position: relative;
        inset: auto;
        opacity: 1 !important;
        transform: none !important;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .awd-scope-card__icon {
        margin: 0 0 16px;
    }

    .awd-scope-card__icon img {
        filter: brightness(0) invert(1);
    }

    .awd-scope-card__title {
        color: #ffffff;
        text-align: left;
    }

    .awd-scope-card__desc {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        margin-top: 16px;
        pointer-events: auto;
    }

    .awd-scope-card__desc p {
        max-width: none;
        text-align: left;
        display: block;
    }

    .awd-scope-card::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .awd-scope-cards-grid {
        grid-template-columns: 1fr;
    }

    .awd-scope-card,
    .awd-scope-card__inner {
        min-height: auto;
    }
}
