.course-hero {
    background: #1c2f5a;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(40px);
    transition: all .9s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

.course-hero.hero-visible {
    opacity: 1;
    transform: translateY(0);
}

.course-hero-inner {
    display: flex;
    align-items: stretch;
    min-height: 520px;
}

.course-left {
    flex: 1;
    padding: 90px 80px;
    color: white;
}

.brand-name {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: .85;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.course-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 22px;
}

.course-university {
    font-size: 18px;
    opacity: .9;
    margin-bottom: 20px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.stars {
    color: #e31e24;
    font-size: 18px;
    letter-spacing: 4px;
}

.rating-number {
    font-size: 14px;
    opacity: .9;
}

.wishlist {
    display: inline-block;
    font-size: 15px;
    color: #d6deff;
    margin-bottom: 32px;
}

.apply-btn {
    background: white;
    color: #1c2f5a;
    padding: 16px 36px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    transition: all .25s ease;
}

.apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.course-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    height: 540px;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media(max-width:992px) {

    .course-hero-inner {
        flex-direction: column;
    }

    .course-left {
        padding: 50px 40px;
        text-align: center;
    }

    .course-title {
        font-size: 34px;
    }

    .course-right {
        width: 100%;
        height: 320px;
    }

    .course-image {
        height: 110%;
        transform: translateY(30px);
    }

}

@media(max-width:600px) {

    .course-title {
        font-size: 26px;
    }

    .course-university {
        font-size: 16px;
    }

    .apply-btn {
        width: 100%;
        text-align: center;
    }

    .course-right {
        height: 240px;
    }

    .course-image {
        transform: translateY(20px);
    }

}

.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: all 0.3s ease;
}

.wa-float svg {
    width: 30px;
    height: 30px;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.course-hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 18%, rgba(227, 30, 36, 0.16), transparent 28%),
        linear-gradient(135deg, #071b44 0%, #1c2f5a 48%, #0d2f75 100%);
}

.course-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.18;
    pointer-events: none;
}

.course-left {
    position: relative;
    z-index: 2;
}

.brand-name {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: rgba(255, 255, 255, 0.86);
}

.brand-name::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #e31e24;
}

.course-title {
    max-width: 720px;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(48px, 5.2vw, 82px);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.course-title span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(110deg, #ffffff 0%, #ff8a8f 42%, #e31e24 52%, #ffffff 100%);
    background-size: 230% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: facultyTitleShine 5.2s ease-in-out infinite;
}

.course-university {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.86);
}

.course-rating {
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.course-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.wishlist,
.apply-btn {
    position: relative;
    overflow: hidden;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.wishlist {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(12px);
}

.apply-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    color: #0d2f75;
    box-shadow: 0 18px 38px -26px rgba(0, 0, 0, 0.45);
}

.wishlist::after,
.apply-btn::after {
    content: "";
    position: absolute;
    inset: -55% auto -55% -70%;
    width: 48%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.wishlist:hover,
.wishlist:focus-visible,
.apply-btn:hover,
.apply-btn:focus-visible {
    transform: translateY(-3px);
    outline: none;
}

.wishlist:hover,
.wishlist:focus-visible {
    border-color: rgba(227, 30, 36, 0.5);
    background: rgba(227, 30, 36, 0.14);
    box-shadow: 0 18px 34px -24px rgba(227, 30, 36, 0.5);
}

.apply-btn:hover,
.apply-btn:focus-visible {
    background: linear-gradient(135deg, #e31e24 0%, #ffd1d4 100%);
    color: #071b44;
    box-shadow: 0 24px 48px -26px rgba(227, 30, 36, 0.74);
}

.wishlist:hover::after,
.wishlist:focus-visible::after,
.apply-btn:hover::after,
.apply-btn:focus-visible::after {
    opacity: 1;
    animation: facultyButtonShine 0.78s ease forwards;
}

.course-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 27, 68, 0.35), transparent 36%), linear-gradient(180deg, transparent 52%, rgba(7, 27, 68, 0.24));
    pointer-events: none;
}

.course-image {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.course-hero:hover .course-image {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.02);
}

@keyframes facultyTitleShine {
    0%, 25% {
        background-position: 0% 50%;
    }
    60%, 100% {
        background-position: 100% 50%;
    }
}

@keyframes facultyButtonShine {
    from {
        left: -70%;
    }
    to {
        left: 125%;
    }
}

@media(max-width:992px) {
    .course-hero-actions,
    .course-rating,
    .brand-name {
        margin-left: auto;
        margin-right: auto;
    }

    .course-hero-actions {
        justify-content: center;
    }
}

@media(max-width:600px) {
    .wishlist,
    .apply-btn {
        width: 100%;
    }
}

.course-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-title {
    margin-bottom: 26px;
}

.course-university {
    margin-bottom: 0;
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.55;
}

.course-right {
    min-height: 560px;
    height: auto;
}

.course-right::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    pointer-events: none;
}

.course-image {
    object-fit: cover;
    object-position: center center;
}

@media(max-width:992px) {
    .course-right {
        min-height: 340px;
        height: 340px;
    }
}

@media(max-width:600px) {
    .course-right {
        min-height: 260px;
        height: 260px;
    }
}
