.hotel-gal-arr {
    position: absolute;
    background: transparent;
    width: 32px;
    height: 32px;
    padding: 4px;
    text-align: center;
    border-radius: 2px;
    font-size: 32px;
    color: #2563eb;
}
[dir="rtl"] .hotel-gal-arr {
    left: 24px;
}
[dir="ltr"] .hotel-gal-arr {
    right: 24px;
    left: auto;
}
.owl-prev {
    width: 15px;
    height: 100px;
    position: absolute;
    top: 40%;
    margin-left: -20px;
    display: block !important;
    border: 0px solid black;
}
.owl-next {
    width: 15px;
    height: 100px;
    position: absolute;
    top: 40%;
    right: -25px;
    display: block !important;
    border: 0px solid black;
}
.owl-prev i, .owl-next i {
    transform: scale(1, 6);
    color: #ccc;
}
.rtl {
    direction: rtl;
}
.pad-bot-redu {
    margin-top: 0rem;
}

.home-hero-section {
    padding-top: 90px;
}

@media (max-width: 768px) {
    .home-hero-section {
        padding-top: 74px;
    }
}

.home-carousel--news .home-news-card__title {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-slider-strip {
    position: relative;
}

.home-hero-shell {
    position: relative;
    margin-top: 34px;
}

.home-hero__counter {
    position: absolute;
    top: 14px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    pointer-events: none;
}

[dir="rtl"] .home-hero__counter {
    left: 14px;
    right: auto;
}

[dir="ltr"] .home-hero__counter {
    right: 14px;
    left: auto;
}

.home-hero__counter-sep {
    opacity: 0.65;
}

.home-hero__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 7;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    pointer-events: none;
}

.home-hero__progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
    transform-origin: left center;
}

[dir="rtl"] .home-hero__progress-bar {
    transform-origin: right center;
}

@keyframes homeHeroProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.home-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.home-hero-shell .home-hero {
    margin-top: 0;
}

#main-home-slider .owl-stage-outer {
    padding: 0 !important;
}

#main-home-slider.owl-theme .owl-nav {
    margin-top: 0 !important;
}

#main-home-slider.owl-theme .owl-nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#main-home-slider.owl-theme .owl-nav button.owl-prev,
#main-home-slider.owl-theme .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 5;
    transition: background 0.2s ease;
}

[dir="rtl"] #main-home-slider.owl-theme .owl-nav button.owl-prev {
    left: 14px;
    right: auto;
}

[dir="rtl"] #main-home-slider.owl-theme .owl-nav button.owl-next {
    right: 14px;
    left: auto;
}

[dir="ltr"] #main-home-slider.owl-theme .owl-nav button.owl-prev {
    left: 14px;
}

[dir="ltr"] #main-home-slider.owl-theme .owl-nav button.owl-next {
    right: 14px;
}

#main-home-slider.owl-theme .owl-nav button.owl-prev:hover,
#main-home-slider.owl-theme .owl-nav button.owl-next:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

#main-home-slider.owl-theme .owl-nav button.owl-prev:focus-visible,
#main-home-slider.owl-theme .owl-nav button.owl-next:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
}

#main-home-slider.owl-theme .owl-nav button.owl-prev span,
#main-home-slider.owl-theme .owl-nav button.owl-next span {
    font-size: 28px;
    line-height: 1;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

[dir="rtl"] #main-home-slider.owl-theme .owl-nav button.owl-prev span,
[dir="rtl"] #main-home-slider.owl-theme .owl-nav button.owl-next span {
    display: inline-block;
    transform: scaleX(-1);
}

#main-home-slider.owl-theme .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    margin: 0 !important;
    padding: 0 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    z-index: 6;
    list-style: none;
    pointer-events: auto;
}

#main-home-slider.owl-theme .owl-dots .owl-dot {
    margin: 0;
    padding: 0;
}

#main-home-slider.owl-theme .owl-dots .owl-dot span {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

#main-home-slider.owl-theme .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.85) !important;
    transform: scale(1.15);
}

#main-home-slider.owl-theme .owl-dots .owl-dot.active span {
    width: 26px;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#main-home-slider.owl-theme .owl-dots:has(> .owl-dot:only-child) {
    display: none;
}

.home-hero__item {
    position: relative;
    width: 100%;
    height: clamp(300px, 32vw, 460px);
    overflow: hidden;
}

.home-hero__item picture {
    display: block;
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
}

.home-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 7s ease-out;
}

.owl-item.active .home-hero__img {
    transform: scale(1.04);
}

.home-hero__content.is-slide-active .home-hero__title,
.home-hero__content.is-slide-active .home-hero__subtitle,
.home-hero__content.is-slide-active .home-hero__actions {
    animation: fadeInUp 0.6s ease-out both;
}

.home-hero__content.is-slide-active .home-hero__subtitle {
    animation-delay: 0.12s;
}

.home-hero__content.is-slide-active .home-hero__actions {
    animation-delay: 0.24s;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(15, 23, 42, 0.45) 40%,
        rgba(15, 23, 42, 0.68) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.home-hero__title {
    color: #ffffff;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0 0 16px 0;
    padding: 0;
    max-width: 800px;
}

.home-hero__subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin: 0 0 24px 0;
    padding: 0;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.home-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Animation keyframes for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero__btn {
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    min-width: 140px;
    text-align: center;
}

.home-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.home-hero__btn.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.home-hero__btn.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.home-hero__btn.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #ffffff;
}

.home-hero__btn.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1d4ed8;
}

/* RTL specific adjustments */
[dir="rtl"] .home-hero__title {
    line-height: 1.4;
}

[dir="rtl"] .home-hero__subtitle {
    line-height: 1.7;
}

.home-section--companies {
    padding-bottom: 28px;
}

.footer {
    margin-top: 24px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.owl-carousel .reveal-on-scroll {
    opacity: 1;
    transform: none;
}

.home-adds-shell.reveal-on-scroll {
    opacity: 1;
    transform: none;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.to-ho-hotel-con {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 250ms ease, box-shadow 250ms ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.to-ho-hotel-con:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.home-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-news-card__media-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.home-news-card__media {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.home-news-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.home-news-card:hover .home-news-card__media::after {
    opacity: 1;
}

.home-news-card__img {
    transition: transform 0.35s ease;
}

.home-news-card:hover .home-news-card__img {
    transform: scale(1.04);
}

.home-news-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 14px 16px 16px;
    text-align: center;
}

.home-news-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.home-news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-news-card__meta {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #64748b;
}

.home-news-card__source {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    max-width: 100%;
    text-align: center;
}

.home-news-card__source .fa-building-columns {
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.home-news-card__source-text {
    min-width: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card__img {
    width: 100%;
    height: 238px;
    object-fit: cover;
    display: block;
}

.home-carousel .owl-nav button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 160ms ease, background 160ms ease;
}

.home-carousel .owl-nav button:hover {
    transform: translateY(-2px);
    background: #fff !important;
}

.home-carousel .owl-nav button i {
    color: #2563eb;
    font-size: 16px;
}

.home-carousel .owl-stage-outer {
    padding: 12px 6px 22px;
}

.home-carousel .owl-nav {
    margin: 0;
}

.home-carousel .owl-nav .owl-prev,
.home-carousel .owl-nav .owl-next {
    position: absolute;
    top: 40%;
    width: auto;
    height: auto;
    margin: 0;
}

[dir="rtl"] .home-carousel .owl-nav .owl-prev {
    right: -10px;
    left: auto;
}

[dir="rtl"] .home-carousel .owl-nav .owl-next {
    left: -10px;
    right: auto;
}

[dir="ltr"] .home-carousel .owl-nav .owl-prev {
    left: -10px;
}

[dir="ltr"] .home-carousel .owl-nav .owl-next {
    right: -10px;
}

.home-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.home-logo img {
    width: 100% !important;
    max-width: 220px;
    height: 110px;
    object-fit: contain;
}

/* Ensure all institution cards align at the same height */
#university-carousel.owl-carousel .owl-stage {
    display: flex;
}
#university-carousel.owl-carousel .owl-item {
    display: flex;
    height: auto;
}
#university-carousel.owl-carousel .owl-item .home-institution-card {
    height: 100% !important;
    min-height: 200px;
}

.home-institution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
    margin: 4px 2px 12px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-institution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.home-institution-card__media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem 0.5rem;
    min-height: 120px;
}

.home-institution-card__logo {
    width: 100%;
    max-width: 200px;
    height: 100px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.home-institution-card__footer {
    padding: 0.5rem 0.75rem 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
}

.home-institution-card__name {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-tile {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.home-tile img {
    width: 100%;
    height: clamp(120px, 12vw, 160px);
    object-fit: contain;
    background: #fff;
    display: block;
}

.home-tile--company {
    background: #fff;
    padding: 14px;
}

.home-tile--company img {
    height: 110px;
    object-fit: contain;
    background: #fff;
}
@media (min-width: 1024px) {
    .hotel-gal-arr {
        margin-top: 60%;
    }
}
@media (max-width: 1024px) {
    .home-slider-strip .pad-bot-redu {
        margin-top: 0;
        padding-bottom: 0;
    }

    .home-hero__item {
        height: clamp(280px, 52vh, 380px);
    }

    .home-hero-shell {
        margin-top: 28px;
    }

    .home-hero__img {
        object-fit: cover !important;
        object-position: center;
    }

    .home-hero__content {
        padding: 20px 20px 44px;
        max-width: 95%;
    }

    .home-hero__title {
        font-size: clamp(1.5rem, 4vw, 2.25rem);
        margin-bottom: 14px;
    }

    .home-hero__subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
        margin-bottom: 20px;
    }

    .home-hero__btn {
        padding: 11px 24px;
        font-size: 0.9rem;
    }
}
@media (min-width: 240px) and (max-width: 768px) {
    .two-columns li {
        width: 100%;
    }
    [dir="rtl"] .carousel-control {
        text-align: right;
        top: 20%;
    }
    [dir="ltr"] .carousel-control {
        text-align: left;
        top: 20%;
    }
    .home-slider-strip .pad-bot-redu {
        margin-top: 0;
        padding-bottom: 0 !important;
    }
    .slider {
        height: 190px !important;
    }

    .home-hero__item {
        height: auto;
        min-height: clamp(200px, 42vw, 320px);
        aspect-ratio: 1350 / 420;
    }

    .home-hero-shell {
        margin-top: 24px;
    }

    .home-hero {
        border-radius: 14px;
    }

    .home-hero__content {
        padding: 16px 16px 40px;
        max-width: 100%;
    }

    .home-hero__title {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem);
        line-height: 1.3;
        margin-bottom: 12px;
        letter-spacing: -0.01em;
    }

    .home-hero__subtitle {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        line-height: 1.5;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .home-hero__actions {
        gap: 8px;
        margin-top: 4px;
    }

    .home-hero__btn {
        padding: 10px 20px;
        font-size: 0.875rem;
        min-width: auto;
        flex: 1 1 auto;
        max-width: 200px;
    }

    .home-hero__item {
        background: transparent;
    }

    .home-hero__img {
        object-fit: cover !important;
        object-position: center;
    }

    .home-hero__counter {
        top: 10px;
        font-size: 0.72rem;
        padding: 0.3rem 0.6rem;
    }

    [dir="rtl"] .home-hero__counter {
        left: 10px;
    }

    [dir="ltr"] .home-hero__counter {
        right: 10px;
    }

    .home-card__img {
        height: 200px;
    }

    .home-logo img {
        height: 90px;
    }

    .home-institution-card__logo {
        height: 88px;
    }

    .home-tile img {
        height: clamp(120px, 34vw, 180px);
    }

    .home-section--companies {
        padding-bottom: 34px;
    }

    .footer {
        margin-top: 30px;
    }

    .home-carousel .owl-stage-outer {
        padding: 10px 2px 18px;
    }

    [dir="rtl"] .home-carousel .owl-nav .owl-prev {
        right: -2px;
    }

    [dir="rtl"] .home-carousel .owl-nav .owl-next {
        left: -2px;
    }

    [dir="ltr"] .home-carousel .owl-nav .owl-prev {
        left: -2px;
    }

    [dir="ltr"] .home-carousel .owl-nav .owl-next {
        right: -2px;
    }
    .tb-space {
        padding: 0px 0px;
    }
    .hotel-gal-arr {
        margin-top: 35%;
    }
    [dir="rtl"] .hotel-gal-arr {
        left: 2px;
    }
    [dir="ltr"] .hotel-gal-arr {
        right: 2px;
        left: auto;
    }
    [dir="rtl"] .fa-angle-right {
        right: 0px;
    }
    [dir="rtl"] .fa-angle-left {
        left: 0px;
    }
    [dir="ltr"] .fa-angle-right {
        right: 0px;
    }
    [dir="ltr"] .fa-angle-left {
        left: 0px;
    }
}
@media (min-width: 540px) and (max-width: 768px) {
    .hotel-gal-arr {
        margin-top: 50%;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .hotel-gal-arr {
        margin-top: 25%;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    [dir="rtl"] .carousel-control.left {
        padding-right: 15px;
    }
    [dir="ltr"] .carousel-control.right {
        padding-right: 15px;
    }
    [dir="rtl"] .carousel-control {
        text-align: right;
        top: 20%;
    }
    [dir="ltr"] .carousel-control {
        text-align: left;
        top: 20%;
    }
    .slider {
        height: 470px !important;
    }
}
@media all and (transform-3d), (-webkit-transform-3d) {
    .carousel.rtl .carousel-inner > .item.next,
    .carousel.rtl .carousel-inner > .item.active.right,
    .carousel.rtl .carousel-inner > .carousel-item-next,
    .carousel.rtl .carousel-inner > .carousel-item.active.carousel-item-end {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
    .carousel.rtl .carousel-inner > .item.prev,
    .carousel.rtl .carousel-inner > .item.active.left,
    .carousel.rtl .carousel-inner > .carousel-item-prev,
    .carousel.rtl .carousel-inner > .carousel-item.active.carousel-item-start {
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
    }
}
@media (min-height: 995px) {
    .icon-float {
        top: 15%;
    }
}
.slider .slides li img {
    height: auto;
    max-height: 100%;
    background-position-x: center;
    background-position-y: center;
}
.slider .slides li {
    text-align: center;
}
.slider.fullscreen ul.indicators {
    display: none;
}
.carousel-inner .item a img {
    height: auto;
    max-height: 100%;
    background-position-x: center;
    background-position-y: center;
}
.carousel-inner .carousel-item a img {
    height: auto;
    max-height: 100%;
    background-position-x: center;
    background-position-y: center;
}
.carousel-inner .item a {
    text-align: center;
}
.carousel-inner .carousel-item a {
    text-align: center;
}

#myCarousel1 .carousel-inner .carousel-item {
    display: none;
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    line-height: 0;
}

#myCarousel1 .carousel-inner1 {
    padding: 0 !important;
    margin: 0;
    background: transparent;
    height: clamp(140px, 18vw, 300px) !important;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

#myCarousel1 .carousel-inner .carousel-item.active,
#myCarousel1 .carousel-inner .carousel-item-next,
#myCarousel1 .carousel-inner .carousel-item-prev {
    display: block;
    padding: 0;
    margin: 0;
    line-height: 0;
    background: transparent;
    height: 100%;
}

#myCarousel1 picture.adds-image,
#myCarousel1 img.adds-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 0;
}

#myCarousel1 .carousel-item > a.home-adds-link,
#myCarousel1 .carousel-item > a,
#myCarousel1 .carousel-item > a > picture {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 100%;
}

#myCarousel1 .carousel-item > a.home-adds-link > picture > img,
#myCarousel1 .carousel-item > a > picture > img {
    height: 100%;
    object-fit: cover;
}

#myCarousel1.home-adds {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

#myCarousel1.home-adds .home-adds-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#myCarousel1.home-adds .home-adds-control:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
}

#myCarousel1.home-adds .home-adds-control-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#myCarousel1.home-adds .home-adds-control-inner i {
    font-size: 1.15rem;
    line-height: 1;
    color: #2563eb;
}

[dir="rtl"] #myCarousel1.home-adds .home-adds-control-inner i {
    transform: scaleX(-1);
}

[dir="rtl"] #myCarousel1.home-adds .carousel-control-prev.home-adds-control {
    right: 10px;
    left: auto;
}

[dir="rtl"] #myCarousel1.home-adds .carousel-control-next.home-adds-control {
    left: 10px;
    right: auto;
}

[dir="ltr"] #myCarousel1.home-adds .carousel-control-prev.home-adds-control {
    left: 10px;
}

[dir="ltr"] #myCarousel1.home-adds .carousel-control-next.home-adds-control {
    right: 10px;
}
#university-carousel .owl-item img {
    width: 85%;
}

/* ========== الصفحة الرئيسية — تصميم UniStudy (يُحمّل بعد uni-bridge) ========== */
html body.uni-ui .uni-home {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 35%, #f1f5f9 100%);
}

html body.uni-ui .uni-home-section {
    position: relative;
}

html body.uni-ui .uni-home-section:nth-child(odd) {
    background: rgba(255, 255, 255, 0.55);
}

html body.uni-ui .uni-home-section:nth-child(even) {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.35) 0%, rgba(255, 255, 255, 0.9) 100%);
}

html body.uni-ui .uni-home .uni-home-title.spe-title {
    margin-bottom: 2.5rem;
}

html body.uni-ui .uni-home .uni-home-title.spe-title h2 {
    margin-top: 0.5rem;
    padding-bottom: 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-transform: none;
}

html body.uni-ui .uni-home .uni-home-title .title-line {
    margin-top: -0.25rem;
}

html body.uni-ui .uni-home .uni-home-title .tl-1,
html body.uni-ui .uni-home .uni-home-title .tl-3 {
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0 40%, #e2e8f0 60%, transparent);
    vertical-align: middle;
}

html body.uni-ui .uni-home .uni-home-title .tl-2 {
    width: 14px;
    height: 14px;
    top: 0;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

html body.uni-ui .uni-home .to-ho-hotel-con-2 h4,
html body.uni-ui .uni-home .home-news-card__title {
    font-weight: 700;
    line-height: 1.4;
}

html body.uni-ui .uni-home .to-ho-hotel-con-2 a,
html body.uni-ui .uni-home .home-news-card__title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

html body.uni-ui .uni-home .to-ho-hotel-con-2 a:hover,
html body.uni-ui .uni-home .home-news-card__title a:hover {
    color: #2563eb;
}

html body.uni-ui .uni-home .to-ho-hotel-con-3,
html body.uni-ui .uni-home .home-news-card__meta {
    color: #64748b;
    font-size: 0.9rem;
}

html body.uni-ui .uni-home .to-ho-hotel-con,
html body.uni-ui .uni-home .home-news-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 10px 24px -8px rgba(37, 99, 235, 0.08);
}

html body.uni-ui .uni-home .to-ho-hotel-con:hover,
html body.uni-ui .uni-home .home-news-card:hover {
    box-shadow:
        0 12px 28px -6px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.12);
}

html body.uni-ui .uni-home .home-logo {
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

html body.uni-ui .uni-home .home-tile {
    border: 1px solid rgba(226, 232, 240, 0.9);
}

html body.uni-ui .uni-home-empty-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

html body.uni-ui .uni-home-empty-hero__text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748b;
}

html body.uni-ui .home-slider-strip::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: min(200px, 32vh);
    pointer-events: none;
    background: radial-gradient(ellipse 72% 85% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 62%);
    z-index: 0;
}

html body.uni-ui .home-slider-strip .container {
    position: relative;
    z-index: 1;
}

html body.uni-ui .home-hero-shell {
    padding: 0.55rem;
    border-radius: 1.125rem;
    background: linear-gradient(152deg, rgba(239, 246, 255, 0.55) 0%, #ffffff 38%, rgba(241, 245, 249, 0.75) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 44px -18px rgba(37, 99, 235, 0.16);
}

html body.uni-ui .home-hero {
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow:
        0 10px 40px -10px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

html body.uni-ui .home-hero__overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.25) 45%, rgba(15, 23, 42, 0.65) 100%);
}

html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-prev span,
html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-next span {
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-prev,
html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-next {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-prev:hover,
html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-next:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-prev:focus-visible,
html body.uni-ui #main-home-slider.owl-theme .owl-nav button.owl-next:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
}

html body.uni-ui #main-home-slider.owl-theme .owl-dots .owl-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 4px;
    border-radius: 999px;
}

html body.uni-ui #main-home-slider.owl-theme .owl-dots .owl-dot span {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

html body.uni-ui #main-home-slider.owl-theme .owl-dots .owl-dot.active span {
    background: linear-gradient(90deg, #ffffff 0%, rgba(224, 231, 255, 0.98) 100%) !important;
}

html body.uni-ui .home-carousel .owl-nav button i {
    color: #2563eb;
}

html body.uni-ui .home-carousel .owl-nav button {
    border: 1px solid rgba(226, 232, 240, 0.95);
}

html body.uni-ui #myCarousel1.home-adds {
    border: none;
    box-shadow: none;
}

html body.uni-ui #myCarousel1.home-adds .home-adds-control-inner i {
    color: #2563eb;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

html body.uni-ui #myCarousel1.home-adds .home-adds-control {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

/* —— إعلانات الشركات —— */
html body.uni-ui .home-section--companies {
    position: relative;
}

html body.uni-ui .home-section--companies::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 55%);
}

html body.uni-ui .uni-home-companies-lead {
    text-align: center;
    margin: -1.25rem 0 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

html body.uni-ui .home-carousel--companies.owl-carousel .owl-stage {
    display: flex;
    align-items: flex-start;
}

html body.uni-ui .home-carousel--companies.owl-carousel .owl-item {
    display: flex;
    height: auto;
    align-items: flex-start;
}

/* Ensure all partner cards align at the same height */
html body.uni-ui .home-carousel--companies.owl-carousel .owl-item .home-company-card {
    height: 100% !important;
    min-height: 220px;
}

/* Force all owl items to align to top */
html body.uni-ui .home-carousel--companies.owl-carousel .owl-item,
html body.uni-ui .home-carousel--companies.owl-carousel .owl-item > * {
    align-self: flex-start !important;
}

html body.uni-ui .home-company-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 220px;
    max-height: 280px;
    padding: 0;
    margin: 0 2px 12px;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 10px 22px -10px rgba(37, 99, 235, 0.12);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

html body.uni-ui .home-company-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    opacity: 0.95;
}

html body.uni-ui .home-company-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow:
        0 16px 36px -12px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(37, 99, 235, 0.1);
}

html body.uni-ui .home-company-card:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.25),
        0 12px 28px -8px rgba(15, 23, 42, 0.12);
}

html body.uni-ui .home-company-card__badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: color 0.2s ease, background 0.2s ease;
}

html body.uni-ui [dir="rtl"] .home-company-card__badge {
    left: 12px;
    right: auto;
}

html body.uni-ui [dir="ltr"] .home-company-card__badge {
    right: 12px;
    left: auto;
}

html body.uni-ui .home-company-card:hover .home-company-card__badge {
    color: #2563eb;
    background: rgba(239, 246, 255, 0.95);
    border-color: rgba(37, 99, 235, 0.25);
}

html body.uni-ui .home-company-card__media {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 1rem 0.6rem;
    min-height: 110px;
    max-height: 140px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, transparent 100%);
}

html body.uni-ui .home-company-card__logo {
    width: 100%;
    max-width: 180px;
    height: 90px;
    max-height: 90px;
    object-fit: contain;
    object-position: center;
    display: block;
}

html body.uni-ui .home-company-card__footer {
    padding: 0.55rem 0.75rem 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.85);
    flex: 0 0 auto;
}

html body.uni-ui .home-company-card__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html body.uni-ui .home-company-card:hover .home-company-card__name {
    color: #2563eb;
}

html body.uni-ui .home-carousel--companies .owl-nav button i {
    color: #2563eb;
}

/* —— خدمات تعليمية —— */
html body.uni-ui .home-section--services {
    position: relative;
}

html body.uni-ui .home-section--services::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 75% 55% at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 58%);
}

html body.uni-ui .uni-home-services-lead {
    text-align: center;
    margin: -1.25rem 0 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

/* Ensure all service cards align at the same height */
html body.uni-ui .home-carousel--services.owl-carousel .owl-stage {
    display: flex;
}
html body.uni-ui .home-carousel--services.owl-carousel .owl-item {
    display: flex;
    height: auto;
}
html body.uni-ui .home-carousel--services.owl-carousel .owl-item .home-service-card {
    height: 100% !important;
    min-height: 240px;
}

html body.uni-ui .home-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 240px;
    margin: 4px 2px 12px;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(165deg, #ffffff 0%, #ecfdf5 45%, #f8fafc 100%);
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 12px 24px -12px rgba(16, 185, 129, 0.18);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

html body.uni-ui .home-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #2563eb 100%);
    opacity: 0.95;
}

html body.uni-ui .home-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow:
        0 18px 38px -14px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(16, 185, 129, 0.15);
}

html body.uni-ui .home-service-card:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.28),
        0 12px 28px -8px rgba(15, 23, 42, 0.12);
}

html body.uni-ui .home-service-card__badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    font-size: 0.85rem;
    color: #059669;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

html body.uni-ui [dir="rtl"] .home-service-card__badge {
    left: 12px;
    right: auto;
}

html body.uni-ui [dir="ltr"] .home-service-card__badge {
    right: 12px;
    left: auto;
}

html body.uni-ui .home-service-card:hover .home-service-card__badge {
    color: #2563eb;
    background: rgba(239, 246, 255, 0.98);
    border-color: rgba(37, 99, 235, 0.25);
}

html body.uni-ui .home-service-card__media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 1rem 0.65rem;
    min-height: 128px;
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.55) 0%, transparent 100%);
}

html body.uni-ui .home-service-card__logo {
    width: 100%;
    max-width: 200px;
    height: 100px;
    object-fit: contain;
    object-position: center;
    display: block;
}

html body.uni-ui .home-service-card__footer {
    padding: 0.65rem 1rem 1rem;
    border-top: 1px solid rgba(167, 243, 208, 0.55);
    background: rgba(255, 255, 255, 0.88);
}

html body.uni-ui .home-service-card__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    text-align: center;
    margin-bottom: 0.35rem;
}

html body.uni-ui .home-service-card__desc {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    color: #64748b;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html body.uni-ui .home-service-card:hover .home-service-card__name {
    color: #059669;
}

html body.uni-ui .home-carousel--services .owl-nav button i {
    color: #059669;
}

/* —— شريط الإعلانات (كاروسيل الصفحة الرئيسية) —— */
html body.uni-ui .home-section--adds {
    position: relative;
}

html body.uni-ui .home-section--adds::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245, 158, 11, 0.07) 0%, transparent 55%);
}

html body.uni-ui .uni-home-adds-lead {
    text-align: center;
    margin: -1.25rem 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

html body.uni-ui .home-adds-shell {
    padding: 0.5rem;
    border-radius: 1.125rem;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.65) 0%, #ffffff 45%, rgba(236, 253, 245, 0.4) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 12px 28px -10px rgba(37, 99, 235, 0.12);
}

html body.uni-ui .home-adds-shell #myCarousel1.home-adds {
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html body.uni-ui #myCarousel1.home-adds:has(.home-adds-indicators) .carousel-inner1 {
    margin-bottom: 0;
}

html body.uni-ui .home-adds-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    z-index: 3;
    max-width: 90%;
}

html body.uni-ui .home-adds-indicators li {
    width: 9px;
    height: 9px;
    margin: 0;
    text-indent: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html body.uni-ui .home-adds-indicators li:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.15);
}

html body.uni-ui .home-adds-indicators li.active {
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transform: scale(1.35);
}

html body.uni-ui #myCarousel1 .carousel-item > a.home-adds-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

/* —— مؤسسات تعليمية (شريط الشعارات) —— */
html body.uni-ui .home-section--institutions {
    position: relative;
}

html body.uni-ui .home-section--institutions::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 58% at 50% 0%, rgba(37, 99, 235, 0.09) 0%, transparent 58%);
}

html body.uni-ui .uni-home-institutions-intro {
    margin: -1.25rem 0 1.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

html body.uni-ui .uni-home-institutions-lead {
    margin: 0;
    max-width: 42rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    line-height: 1.55;
}

html body.uni-ui .uni-home-institutions-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

html body.uni-ui .uni-home-institutions-view-all:hover {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(239, 246, 255, 0.95);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

html body.uni-ui .uni-home-institutions-view-all:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

html body.uni-ui .uni-home-institutions-view-all--block {
    margin-top: 0.35rem;
}

html body.uni-ui .home-institutions-shell {
    padding: 0.65rem 0.5rem 0.85rem;
    border-radius: 1.125rem;
    background: linear-gradient(155deg, rgba(239, 246, 255, 0.55) 0%, #ffffff 42%, rgba(241, 245, 249, 0.65) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 14px 32px -12px rgba(37, 99, 235, 0.14);
}

html body.uni-ui .uni-home-institutions-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #ffffff 100%);
}

html body.uni-ui .uni-home-institutions-empty__text {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

html body.uni-ui .home-carousel--institutions.owl-carousel .owl-stage {
    display: flex;
}

html body.uni-ui .home-carousel--institutions.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

html body.uni-ui .home-institution-card {
    min-height: 210px;
    margin: 6px 4px 14px;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 12px 26px -12px rgba(37, 99, 235, 0.14);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

html body.uni-ui .home-institution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 55%, #0ea5e9 100%);
    opacity: 0.95;
    z-index: 1;
}

html body.uni-ui .home-institution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow:
        0 16px 36px -14px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(37, 99, 235, 0.1);
}

html body.uni-ui .home-institution-card:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.28),
        0 12px 28px -8px rgba(15, 23, 42, 0.12);
}

html body.uni-ui .home-institution-card__badge {
    position: absolute;
    top: 14px;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

html body.uni-ui [dir="rtl"] .home-institution-card__badge {
    left: 12px;
    right: auto;
}

html body.uni-ui [dir="ltr"] .home-institution-card__badge {
    right: 12px;
    left: auto;
}

html body.uni-ui .home-institution-card:hover .home-institution-card__badge {
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.98);
    border-color: rgba(37, 99, 235, 0.25);
}

html body.uni-ui .home-institution-card__media {
    position: relative;
    z-index: 0;
    min-height: 128px;
    padding: 1.35rem 1rem 0.65rem;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.45) 0%, transparent 100%);
}

html body.uni-ui .home-institution-card__logo {
    height: 100px;
}

html body.uni-ui .home-institution-card__footer {
    position: relative;
    z-index: 0;
    padding: 0.65rem 0.85rem 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
}

html body.uni-ui .home-institution-card__name {
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
}

html body.uni-ui .home-institution-card:hover .home-institution-card__name {
    color: #2563eb;
}

html body.uni-ui .home-carousel--institutions .owl-nav button i {
    color: #2563eb;
}

/* —— الأخبار (شريط الصفحة الرئيسية) —— */
html body.uni-ui .home-section--news {
    position: relative;
}

html body.uni-ui .home-section--news::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 55% at 50% 0%, rgba(245, 158, 11, 0.09) 0%, transparent 58%);
}

html body.uni-ui .uni-home-news-intro {
    margin: -1.25rem 0 1.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

html body.uni-ui .uni-home-news-lead {
    margin: 0;
    max-width: 42rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    line-height: 1.55;
}

html body.uni-ui .uni-home-news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #d97706;
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

html body.uni-ui .uni-home-news-view-all:hover {
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.5);
    background: rgba(255, 251, 235, 0.98);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
}

html body.uni-ui .uni-home-news-view-all:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

html body.uni-ui .uni-home-news-view-all--block {
    margin-top: 0.35rem;
}

html body.uni-ui .home-news-shell {
    padding: 0.55rem 0.45rem 0.75rem;
    border-radius: 1.125rem;
    background: linear-gradient(148deg, rgba(255, 251, 235, 0.65) 0%, #ffffff 42%, rgba(241, 245, 249, 0.75) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 14px 32px -14px rgba(245, 158, 11, 0.14);
}

html body.uni-ui .uni-home-news-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.5) 0%, #ffffff 100%);
}

html body.uni-ui .uni-home-news-empty__text {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

html body.uni-ui .home-carousel--news.owl-carousel .owl-stage {
    display: flex;
}

html body.uni-ui .home-carousel--news.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

html body.uni-ui .home-section--news .home-news-card {
    position: relative;
    margin: 6px 4px 14px;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 55%, #f8fafc 100%);
    border: 1px solid rgba(251, 191, 36, 0.22);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 12px 26px -12px rgba(245, 158, 11, 0.16);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

html body.uni-ui .home-section--news .home-news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 2;
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 50%, #2563eb 100%);
    opacity: 0.95;
}

html body.uni-ui .home-section--news .home-news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow:
        0 16px 36px -14px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(245, 158, 11, 0.12);
}

html body.uni-ui .home-section--news .home-news-card:focus-within {
    box-shadow:
        0 0 0 3px rgba(245, 158, 11, 0.22),
        0 12px 28px -8px rgba(15, 23, 42, 0.12);
}

html body.uni-ui .home-section--news .home-news-card__media {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.35) 0%, #f8fafc 100%);
}

html body.uni-ui .home-section--news .home-news-card__body {
    padding: 0.85rem 1rem 1.1rem;
    border-top: 1px solid rgba(254, 243, 199, 0.65);
    background: rgba(255, 255, 255, 0.94);
}

html body.uni-ui .home-section--news .home-news-card__title a:focus-visible {
    outline: none;
    border-radius: 0.25rem;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

html body.uni-ui .home-section--news .home-news-card__media-link:focus-visible .home-news-card__img {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: -3px;
}

html body.uni-ui .home-carousel--news .owl-nav button i {
    color: #d97706;
}

@media (prefers-reduced-motion: reduce) {
    .owl-item.active .home-hero__img {
        transform: none;
        transition: none;
    }

    .home-hero__content.is-slide-active .home-hero__title,
    .home-hero__content.is-slide-active .home-hero__subtitle,
    .home-hero__content.is-slide-active .home-hero__actions {
        animation: none;
    }

    .home-hero__progress {
        display: none;
    }
}

.home-hero-shell:has(#main-home-slider .owl-dot:only-child) .home-hero__counter,
.home-hero-shell:has(#main-home-slider .owl-dots:empty) .home-hero__counter {
    display: none;
}

/* Extra small screens (phones less than 480px) */
@media (max-width: 480px) {
    .home-hero__content {
        padding: 12px 12px 36px;
    }

    .home-hero__title {
        font-size: 1.15rem;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .home-hero__subtitle {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .home-hero__actions {
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        max-width: 100%;
        flex: none;
    }
}

/* =====================================================
   Hero Search Bar
   ===================================================== */
.home-hero__search {
    margin-top: 20px;
    width: 100%;
    max-width: 560px;
    animation: fadeInUp 0.6s ease-out 0.45s both;
}

.home-hero__search-inner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255,255,255,0.35) inset;
    transition: box-shadow 0.25s ease;
}

.home-hero__search-inner:focus-within {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.28), 0 0 0 2px rgba(37, 99, 235, 0.5) inset;
}

.home-hero__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 20px;
    font-size: 0.97rem;
    color: #0f172a;
    min-width: 0;
}

[dir="rtl"] .home-hero__search-input {
    text-align: right;
}

[dir="ltr"] .home-hero__search-input {
    text-align: left;
}

.home-hero__search-input::placeholder {
    color: #94a3b8;
}

.home-hero__search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

[dir="rtl"] .home-hero__search-btn {
    border-radius: 50px 0 0 50px;
}

.home-hero__search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

@media (max-width: 480px) {
    .home-hero__search {
        max-width: 100%;
        margin-top: 14px;
    }
    .home-hero__search-btn span {
        display: none;
    }
    .home-hero__search-btn {
        padding: 11px 16px;
    }
}

/* =====================================================
   Stats Counter Section
   ===================================================== */
html body.uni-ui .home-section--stats {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.home-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.07), 0 1px 3px rgba(15, 23, 42, 0.05);
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(15, 23, 42, 0.07);
}

.home-stat-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.home-stat-card__number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1e40af;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.home-stat-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

/* =====================================================
   News Card Date
   ===================================================== */
.home-news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.home-news-card__date i {
    font-size: 0.72rem;
    color: #cbd5e1;
}

.home-news-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* =====================================================
   Why Choose Us Section
   ===================================================== */
html body.uni-ui .home-section--why {
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 55%, #f8fafc 100%);
}

.uni-home-why-lead {
    text-align: center;
    margin: -1.25rem 0 2rem;
    font-size: 0.97rem;
    font-weight: 500;
    color: #475569;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .home-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.home-why-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem 1.5rem;
    background: #fff;
    border-radius: 1.125rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.home-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.home-why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.1), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.home-why-card:hover::before {
    opacity: 1;
}

.home-why-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
    transition: background 0.22s ease, box-shadow 0.22s ease;
}

.home-why-card:hover .home-why-card__icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22);
}

.home-why-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.home-why-card__desc {
    font-size: 0.87rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
    margin: 0 0 1rem;
}

.home-why-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.home-why-card__link:hover {
    color: #1d4ed8;
    gap: 0.65rem;
    text-decoration: none;
}

.home-why-card__arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

[dir="ltr"] .home-why-card__arrow {
    transform: scaleX(-1);
}

.home-why-card__link:hover .home-why-card__arrow {
    transform: translateX(-3px);
}

[dir="ltr"] .home-why-card__link:hover .home-why-card__arrow {
    transform: scaleX(-1) translateX(-3px);
}

/* =====================================================
   Library Books Carousel
   ===================================================== */
html body.uni-ui .home-section--library {
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 60%, #f8fafc 100%);
}

.uni-home-library-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: -1rem 0 1.5rem;
}

.uni-home-library-lead {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    flex: 1;
}

.uni-home-library-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.uni-home-library-view-all:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* ── Book Card ── */
.home-book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 1rem 0.5rem 0.75rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.home-book-card:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-6px);
}

/* 3-D scene wrapper */
.home-book-card__scene {
    width: 120px;
    height: 168px;
    perspective: 800px;
    position: relative;
    margin: 0 auto 0.85rem;
    flex-shrink: 0;
}

.home-book-card__book {
    position: relative;
    width: 120px;
    height: 168px;
    transform-style: preserve-3d;
    transform: rotateY(-18deg) rotateX(4deg);
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
                filter 0.45s ease;
    filter: drop-shadow(6px 14px 18px rgba(15, 23, 42, 0.28));
}

.home-book-card:hover .home-book-card__book {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-4px);
    filter: drop-shadow(10px 22px 28px rgba(15, 23, 42, 0.35));
}

/* Front face */
.home-book-card__face {
    position: absolute;
    border-radius: 2px 6px 6px 2px;
    overflow: hidden;
}

.home-book-card__face--front {
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: stretch;
}

.home-book-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px 6px 6px 2px;
}

/* Spine face */
.home-book-card__face--spine {
    top: 2%;
    bottom: 2%;
    width: 10px;
    border-radius: 2px 0 0 2px;
    transform: rotateY(90deg) translateZ(-5px);
    transform-origin: left center;
}

[dir="rtl"] .home-book-card__face--spine {
    right: 0;
    left: auto;
    transform-origin: right center;
    border-radius: 0 2px 2px 0;
}

[dir="ltr"] .home-book-card__face--spine {
    left: 0;
}

/* Shine overlay */
.home-book-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.06) 40%,
        transparent 60%
    );
    pointer-events: none;
    border-radius: inherit;
    transition: opacity 0.35s ease;
}

.home-book-card:hover .home-book-card__shine {
    opacity: 0.4;
}

/* Shadow under the book */
.home-book-card__shadow {
    position: absolute;
    bottom: -10px;
    left: 8%;
    right: 8%;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(15,23,42,0.22) 0%, transparent 75%);
    filter: blur(4px);
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.home-book-card:hover .home-book-card__shadow {
    transform: scaleX(1.08) translateY(4px);
    opacity: 0.7;
}

/* Fake cover (no image) */
.home-book-card__fake-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    gap: 0.5rem;
    text-align: center;
}

.home-book-card__fake-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.home-book-card__fake-icon {
    font-size: 2rem;
    opacity: 0.92;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.home-book-card__fake-title {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    opacity: 0.92;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.home-book-card__fake-line {
    width: 70%;
    height: 3px;
    border-radius: 99px;
}

.home-book-card__fake-line--short {
    width: 45%;
    margin-top: -2px;
}

/* Card body below the book */
.home-book-card__body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.25rem;
}

.home-book-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    text-align: center;
    flex: 1;
    transition: color 0.2s ease;
}

.home-book-card:hover .home-book-card__title {
    color: #2563eb;
}

.home-book-card__read-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-book-card:hover .home-book-card__read-btn {
    background: #2563eb;
    color: #fff;
    transform: scale(1.1);
}

html body.uni-ui .home-carousel--library .owl-nav button i {
    color: #7c3aed;
}

[dir="rtl"] .home-carousel--library .owl-nav .owl-prev i {
    display: inline-block;
    transform: scaleX(-1);
}

[dir="rtl"] .home-carousel--library .owl-nav .owl-next i {
    display: inline-block;
    transform: scaleX(-1);
}


html body.uni-ui .home-carousel--library.owl-carousel .owl-item {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

html body.uni-ui .home-carousel--library.owl-carousel .owl-stage-outer {
    padding: 16px 4px 24px;
    overflow: visible;
}

html body.uni-ui .home-carousel--library.owl-carousel {
    overflow: hidden;
}

/* =====================================================
   Bottom CTA Section
   ===================================================== */
html body.uni-ui .home-section--cta {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(160deg, #f0f7ff 0%, #e8f0fe 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

/* Decorative blobs */
.home-cta__blob {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(48px);
}

.home-cta__blob--1 {
    width: 400px;
    height: 400px;
    top: -150px;
    inset-inline-end: -100px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
}

.home-cta__blob--2 {
    width: 300px;
    height: 300px;
    bottom: -120px;
    inset-inline-start: -60px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
}

.home-cta__blob--3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}

/* Grid layout */
.home-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .home-cta-inner {
        grid-template-columns: 1fr auto;
    }
    .home-cta__icon-wrap {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .home-cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* Icon ring */
.home-cta__icon-wrap {
    flex-shrink: 0;
}

.home-cta__icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 3px solid rgba(255,255,255,0.9);
    font-size: 2rem;
    color: #fff;
    box-shadow:
        0 0 0 10px rgba(37,99,235,0.12),
        0 8px 32px rgba(37,99,235,0.3);
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 10px rgba(37,99,235,0.12), 0 8px 32px rgba(37,99,235,0.3); }
    50%       { box-shadow: 0 0 0 18px rgba(37,99,235,0.08), 0 8px 32px rgba(37,99,235,0.25); }
}

/* Content */
.home-cta__content {
    min-width: 0;
}

.home-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
}

.home-cta__eyebrow i {
    font-size: 0.65rem;
    color: #f59e0b;
}

.home-cta__heading {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-cta__lead {
    font-size: 1rem;
    color: #475569;
    margin: 0 0 1.25rem;
    line-height: 1.65;
    max-width: 520px;
}

@media (max-width: 768px) {
    .home-cta__lead {
        max-width: 100%;
    }
}

/* Trust badges */
.home-cta__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .home-cta__badges {
        justify-content: center;
    }
}

.home-cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e40af;
    background: rgba(37,99,235,0.07);
    border: 1px solid rgba(37,99,235,0.18);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
}

.home-cta__badge i {
    color: #059669;
    font-size: 0.72rem;
}

/* Actions */
.home-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-shrink: 0;
    align-items: stretch;
    min-width: 200px;
}

@media (max-width: 768px) {
    .home-cta__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: unset;
    }
}

.home-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.home-cta__btn:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.home-cta__btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.home-cta__btn:hover .home-cta__btn-icon {
    transform: scale(1.12);
}

.home-cta__btn-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: start;
}

.home-cta__btn-label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-cta__btn-sub {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.2;
}

/* Primary button */
.home-cta__btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 6px 24px rgba(37,99,235,0.35);
}

.home-cta__btn--primary .home-cta__btn-icon {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.home-cta__btn--primary .home-cta__btn-label {
    color: #fff;
}

.home-cta__btn--primary .home-cta__btn-sub {
    color: rgba(255,255,255,0.82);
}

.home-cta__btn--primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(37,99,235,0.45);
}

/* Outline button */
.home-cta__btn--outline {
    background: #fff;
    color: #1e40af;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15,23,42,0.08);
}

.home-cta__btn--outline .home-cta__btn-icon {
    background: #eff6ff;
    color: #2563eb;
}

.home-cta__btn--outline .home-cta__btn-label {
    color: #1e40af;
}

.home-cta__btn--outline .home-cta__btn-sub {
    color: #64748b;
}

.home-cta__btn--outline:hover {
    background: #f8faff;
    border-color: #bfdbfe;
    color: #1e40af;
    box-shadow: 0 6px 20px rgba(37,99,235,0.15);
}

@media (max-width: 480px) {
    .home-cta__btn {
        padding: 0.75rem 1.1rem;
        width: 100%;
    }
    .home-cta-inner {
        gap: 1.5rem;
    }
}

/* =====================================================
   News Card Placeholder (when no image)
   ===================================================== */
.home-news-card__media--no-image {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}

html body.uni-ui .home-news-card__media--no-image {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.5) 0%, #f8fafc 100%);
    min-height: 238px;
}

.home-news-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.home-news-card__placeholder i {
    font-size: 3rem;
    color: #94a3b8;
    opacity: 0.6;
}

html body.uni-ui .home-news-card__placeholder i {
    color: #cbd5e1;
    opacity: 0.8;
}

/* =====================================================
   Hero Slider Universal Stability Fixes
   Fixes empty slides after long runtime on all devices
   Mobile, Tablet, Laptop, Desktop - All Screen Sizes
   ===================================================== */
.home-hero__item,
.home-hero__img,
.owl-item {
    opacity: 1 !important;
    visibility: visible !important;
}

.home-hero__img {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Prevent Owl Carousel from hiding items */
.owl-item:not(.active) .home-hero__img {
    opacity: 1 !important;
}

/* Ensure cloned items are visible */
.owl-item.cloned,
.owl-item.cloned .home-hero__img,
.owl-item.cloned .home-hero__item {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Fix for all screen sizes: prevent transform issues */
.owl-item,
.owl-item.active,
.owl-item.cloned {
    transform: none !important;
}

/* Ensure images never disappear during transitions */
.home-hero .owl-stage,
.home-hero .owl-stage-outer,
.home-hero .owl-item,
.home-hero__item,
.home-hero__item picture {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override any fade animations that might hide slides */
.owl-carousel .animated {
    opacity: 1 !important;
}

/* Fix for high-resolution screens (laptops/desktops) */
@media (min-width: 1024px) {
    .home-hero__img {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Fix for tablets */
@media (min-width: 640px) and (max-width: 1023px) {
    .home-hero__img {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Fix for mobile - comprehensive */
@media (max-width: 639px) {
    .home-hero__img,
    .home-hero__item,
    .owl-item {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
