.md-card {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.md-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 0.3s;
}

.ripple:hover::after {
    opacity: 1;
}

.gold-bar {
    display: block;
    width: 48px;
    height: 4px;
    background: #9267dc;
    border-radius: 2px;
}

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.link-item {
    transition:
        background 0.18s,
        border-color 0.18s,
        color 0.18s;
}

.link-item:hover .link-arrow {
    transform: translateX(4px);
}

.link-arrow {
    transition: transform 0.18s ease;
}

/* Path cards */
.path-card {
    transition: box-shadow 0.28s ease;
}

.path-card:hover {
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}

.path-card img {
    transition: transform 0.7s ease;
}

.path-card:hover img {
    transform: scale(1.06);
}

.path-card-featured {
    height: 320px;
}

.path-card-featured-copy {
    max-width: 58%;
}

.path-card-compact {
    height: 280px;
}

/* Search */
#search-input {
    padding-right: 7rem;
}

#search-input:focus {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.2);
}

.intl-filter-panel {
    background:
        linear-gradient(135deg, rgba(255, 89, 0, 0.04), transparent 38%),
        #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 55px rgba(17, 24, 39, 0.08);
}

.intl-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #5d428c;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.intl-select-wrap {
    position: relative;
}

.intl-select-wrap::after {
    content: "expand_more";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Material Symbols Outlined";
    font-size: 1.35rem;
    color: #FF5900;
    pointer-events: none;
}

.intl-school-select {
    width: 100%;
    min-height: 3.25rem;
    appearance: none;
    padding: 0.9rem 3.1rem 0.9rem 3.25rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 89, 0, 0.24);
    background: #fff;
    color: #111827;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 89, 0, 0.08);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.intl-school-select:hover,
.intl-school-select:focus {
    border-color: #FF5900;
    box-shadow: 0 0 0 4px rgba(255, 89, 0, 0.13), 0 14px 28px rgba(255, 89, 0, 0.12);
    outline: 2px solid transparent;
}

.intl-select-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #FF5900;
    pointer-events: none;
}

.intl-filter-divider {
    width: 1px;
    min-height: 6.5rem;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.12), transparent);
}

.intl-search-btn {
    width: fit-content;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: #FF5900;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(255, 89, 0, 0.24);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.intl-search-btn:hover {
    background: #E04D00;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(255, 89, 0, 0.3);
}

.intl-search-btn:focus-visible {
    outline: 3px solid rgba(255, 89, 0, 0.22);
    outline-offset: 3px;
}

.intl-search-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.intl-search-reset {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.16);
    background: #fff;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 800;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.intl-search-reset:hover {
    border-color: rgba(255, 89, 0, 0.45);
    background: #fff8f4;
    color: #E04D00;
}

.intl-search-reset:focus-visible {
    outline: 3px solid rgba(255, 89, 0, 0.18);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .path-card-featured {
        height: auto;
        min-height: 470px;
    }

    .path-card-featured-overlay {
        background: linear-gradient(180deg,
                rgba(10, 4, 0, 0.7) 0%,
                rgba(10, 4, 0, 0.9) 52%,
                rgba(10, 4, 0, 0.98) 100%) !important;
    }

    .path-card-featured-copy {
        max-width: none;
        min-height: 470px;
        padding: 2rem 1.5rem;
        gap: 1.4rem;
    }

    .path-card-compact {
        height: auto;
        min-height: 360px;
    }
}

@media (max-width: 639px) {
    #search-input {
        padding-right: 1.5rem;
    }

    #search-icon {
        top: 0;
        bottom: auto;
        height: 58px;
    }

    #result-count {
        position: static;
        height: auto;
        justify-content: flex-end;
        padding-right: 0.25rem;
        margin-top: 0.625rem;
    }

    .intl-filter-divider {
        display: none;
    }
}

/* Uni card */
.uni-card {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.uni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
}

.uni-card .uni-img {
    transition: transform 0.5s ease;
}

.uni-card:hover .uni-img {
    transform: scale(1.06);
}

.uni-card .uni-overlay {
    transition: opacity 0.3s ease;
}

.uni-card:hover .uni-overlay {
    opacity: 1;
}

/* Testimonial */
.testimony-slide {
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

/* Region tab active */
.region-tab.active {
    background: #FF5900;
    color: #fff;
    border-color: #FF5900;
}

/* University grid expand */
.uni-hidden {
    display: none !important;
}

/* Calendar badge */
.cal-event {
    position: relative;
}

.cal-event::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #FF5900;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .events-stack {
        gap: 0 !important;
        perspective: 900px;
    }

    .events-calendar-card {
        position: relative;
        z-index: 2;
        transform: translateY(var(--event-calendar-y, 0px)) rotateX(0.8deg);
        transform-origin: center bottom;
        box-shadow:
            0 calc(34px + var(--event-depth, 0px)) calc(54px + var(--event-depth, 0px)) rgba(17, 24, 39, 0.22),
            0 16px 30px rgba(255, 89, 0, 0.14),
            0 2px 0 rgba(255, 255, 255, 0.95) inset,
            0 -1px 0 rgba(17, 24, 39, 0.03) inset;
        transition:
            transform 0.18s ease-out,
            box-shadow 0.18s ease-out;
    }

    .events-detail-card {
        position: relative;
        z-index: 1;
        min-height: 0 !important;
        margin-top: calc(-72px + (var(--event-card-gap, 0px) * 0.18));
        padding-top: 112px !important;
        transform: translateY(var(--event-detail-y, 0px));
        box-shadow:
            0 24px calc(46px + var(--event-depth, 0px)) rgba(17, 24, 39, 0.12),
            0 calc(-20px - var(--event-depth, 0px)) calc(38px + var(--event-depth, 0px)) rgba(17, 24, 39, 0.12),
            0 -12px 28px rgba(255, 89, 0, 0.08),
            0 1px 0 rgba(255, 255, 255, 0.88) inset;
        background: linear-gradient(180deg, #f8f8f6 0%, #ffffff 58%, #fbfbfa 100%);
        border-color: rgba(229, 231, 235, 0.95);
        transition:
            margin-top 0.18s ease-out,
            transform 0.18s ease-out,
            box-shadow 0.18s ease-out;
    }
}
