/*
 * EGMP Correction #16 — Unified Public Card System
 * Approved shape: 10px radius across public card surfaces.
 * Motion: restrained lift + elevation on hover/focus.
 * Scope deliberately excludes frozen MOC presentation and circular/pill UI elements.
 */

:where(
    .eg-card,
    .eg-home-destination,
    .eg-home-feature,
    .eg-home-service,
    .eg-home-process-card,
    .eg-home-story,
    .eg-about-mission-grid article,
    .eg-about-feature-grid article,
    .eg-about-beyond-grid article,
    .eg-services-card,
    .eg-services-process-card,
    .eg-destination-card,
    .destination-card,
    .destination-document-card,
    .destination-timeline__content,
    .university-card,
    .scholarship-card-grid article,
    .scholarship-country-card,
    .scholarship-record-grid article,
    .scholarship-steps article,
    .scholarship-support-grid div,
    .scholarship-faqs article,
    .eg-scholarship-card,
    .eg-ejp__welcome-card,
    .eg-ejp__progress,
    .eg-ejp__panel,
    .eg-ejp__review article,
    .eg-ejp__benefits > div,
    .eg-ejp__success,
    .eg-contact__form-card,
    .eg-contact__map-card,
    .eg-assessment-report__meta-item,
    .eg-assessment-factor,
    .blog-featured-card,
    .blog-card,
    .success-story-card,
    .eg-contact__detail-card,
    .eg-campaign__card,
    .eg-student-auth__card
) {
    border-radius: 10px !important;
    box-shadow: 0 10px 28px rgba(8, 43, 92, .07) !important;
    transition:
        transform 220ms var(--eg-motion-ease, cubic-bezier(.2, .7, .2, 1)),
        box-shadow 220ms var(--eg-motion-ease, cubic-bezier(.2, .7, .2, 1)),
        border-color 220ms var(--eg-motion-ease, cubic-bezier(.2, .7, .2, 1)) !important;
}

:where(
    .eg-card,
    .eg-home-destination,
    .eg-home-feature,
    .eg-home-service,
    .eg-home-process-card,
    .eg-home-story,
    .eg-about-mission-grid article,
    .eg-about-feature-grid article,
    .eg-about-beyond-grid article,
    .eg-services-card,
    .eg-services-process-card,
    .eg-destination-card,
    .destination-card,
    .destination-document-card,
    .destination-timeline__content,
    .university-card,
    .scholarship-card-grid article,
    .scholarship-country-card,
    .scholarship-record-grid article,
    .scholarship-steps article,
    .scholarship-support-grid div,
    .scholarship-faqs article,
    .eg-scholarship-card,
    .eg-ejp__welcome-card,
    .eg-ejp__progress,
    .eg-ejp__panel,
    .eg-ejp__review article,
    .eg-ejp__benefits > div,
    .eg-ejp__success,
    .eg-contact__form-card,
    .eg-contact__map-card,
    .eg-assessment-report__meta-item,
    .eg-assessment-factor,
    .blog-featured-card,
    .blog-card,
    .success-story-card,
    .eg-contact__detail-card,
    .eg-campaign__card,
    .eg-student-auth__card
):hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 36px rgba(8, 43, 92, .12) !important;
}

:where(
    .eg-card,
    .eg-home-destination,
    .eg-home-feature,
    .eg-home-service,
    .eg-home-process-card,
    .eg-home-story,
    .eg-about-mission-grid article,
    .eg-about-feature-grid article,
    .eg-about-beyond-grid article,
    .eg-services-card,
    .eg-services-process-card,
    .eg-destination-card,
    .destination-card,
    .destination-document-card,
    .destination-timeline__content,
    .university-card,
    .scholarship-card-grid article,
    .scholarship-country-card,
    .scholarship-record-grid article,
    .scholarship-steps article,
    .scholarship-support-grid div,
    .scholarship-faqs article,
    .eg-scholarship-card,
    .eg-ejp__welcome-card,
    .eg-ejp__progress,
    .eg-ejp__panel,
    .eg-ejp__review article,
    .eg-ejp__benefits > div,
    .eg-ejp__success,
    .eg-contact__form-card,
    .eg-contact__map-card,
    .eg-assessment-report__meta-item,
    .eg-assessment-factor,
    .blog-featured-card,
    .blog-card,
    .success-story-card,
    .eg-contact__detail-card,
    .eg-campaign__card,
    .eg-student-auth__card
):focus-within {
    border-color: rgba(201, 162, 77, .55);
    box-shadow: 0 16px 36px rgba(8, 43, 92, .12);
}

/* Preserve image-card clipping after the unified 10px geometry is applied. */
.eg-home-destination,
.eg-destination-card,
.blog-featured-card,
.blog-card,
.success-story-card {
    overflow: hidden;
}

/* Image cards retain their existing restrained image zoom. */
.eg-home-destination:hover .eg-home-destination__image,
.eg-destination-card:hover .eg-destination-card__image {
    transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
    :where(
        .eg-card,
            .eg-home-destination,
        .eg-home-feature,
        .eg-home-service,
        .eg-home-process-card,
        .eg-home-story,
        .eg-about-mission-grid article,
        .eg-about-feature-grid article,
        .eg-about-beyond-grid article,
        .eg-services-card,
        .eg-services-process-card,
        .eg-destination-card,
        .destination-card,
        .destination-document-card,
        .destination-timeline__content,
        .university-card,
        .scholarship-card-grid article,
        .scholarship-country-card,
        .scholarship-record-grid article,
        .scholarship-steps article,
        .scholarship-support-grid div,
        .scholarship-faqs article,
        .eg-scholarship-card,
    .eg-ejp__welcome-card,
    .eg-ejp__progress,
    .eg-ejp__panel,
    .eg-ejp__review article,
    .eg-ejp__benefits > div,
    .eg-ejp__success,
    .eg-contact__form-card,
    .eg-contact__map-card,
    .eg-assessment-report__meta-item,
    .eg-assessment-factor,
        .blog-featured-card,
        .blog-card,
        .success-story-card,
        .eg-contact__detail-card,
        .eg-campaign__card,
    .eg-student-auth__card
) {
        transition: none;
    }

    :where(
        .eg-card,
            .eg-home-destination,
        .eg-home-feature,
        .eg-home-service,
        .eg-home-process-card,
        .eg-home-story,
        .eg-about-mission-grid article,
        .eg-about-feature-grid article,
        .eg-about-beyond-grid article,
        .eg-services-card,
        .eg-services-process-card,
        .eg-destination-card,
        .destination-card,
        .destination-document-card,
        .destination-timeline__content,
        .university-card,
        .scholarship-card-grid article,
        .scholarship-country-card,
        .scholarship-record-grid article,
        .scholarship-steps article,
        .scholarship-support-grid div,
        .scholarship-faqs article,
        .eg-scholarship-card,
    .eg-ejp__welcome-card,
    .eg-ejp__progress,
    .eg-ejp__panel,
    .eg-ejp__review article,
    .eg-ejp__benefits > div,
    .eg-ejp__success,
    .eg-contact__form-card,
    .eg-contact__map-card,
    .eg-assessment-report__meta-item,
    .eg-assessment-factor,
        .blog-featured-card,
        .blog-card,
        .success-story-card,
        .eg-contact__detail-card,
        .eg-campaign__card,
    .eg-student-auth__card
):hover {
        transform: none;
    }
}
