/* Home page redesign overrides */
:root {
    --yr-gold: #f2c230;
    --yr-gold-dark: #b9831f;
    --yr-ink: #1f2933;
    --yr-muted: #667085;
    --yr-soft: #f7f4ec;
    --yr-line: rgba(31, 41, 51, .12);
    --yr-shadow: 0 18px 45px rgba(20, 24, 31, .12);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--yr-ink);
    background: #fff;
}

section,
footer {
    margin-top: 0;
}

.content-wrapper--boxed {
    padding-bottom: 0;
}

.nav {
    min-height: 82px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.nav__holder,
.nav__holder.sticky {
    background: rgba(255, 255, 255, .96);
}

.logo {
    width: 74px;
    height: 74px;
    max-width: 74px;
    max-height: 74px;
    margin-top: 4px;
}

.nav__menu {
    gap: 4px;
}

.nav__header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-container {
    flex: 0 0 auto;
}

.Yemen {
    display: none !important;
    min-width: max-content;
    margin: 0 14px;
    color: var(--yr-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.nav__menu > li > a {
    line-height: 82px;
    padding: 0 12px;
    font-size: 14px;
    letter-spacing: 0;
}

.en-lang {
    border-radius: 999px;
    padding: 7px 14px;
    border-color: var(--yr-gold);
    background: #fffaf0;
}

.social {
    width: 32px;
    height: 32px;
    line-height: 32px;
}

.carousel-inner {
    height: min(720px, calc(100vh - 82px));
    min-height: 520px;
    max-height: none;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
}

.fill {
    max-width: none;
    opacity: .48;
}

/* The hero photography is now clean; the organization identity is a single stable layer. */
#myCarousel {
    position: relative;
    overflow: hidden;
}

#myCarousel .carousel-caption {
    display: none !important;
}

.hero-fixed-brand {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px;
    text-align: center;
    pointer-events: none;
}

.hero-fixed-brand img {
    display: block;
    width: clamp(78px, 9vw, 128px);
    height: clamp(78px, 9vw, 128px);
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .42));
}

.hero-fixed-brand h2 {
    max-width: min(900px, 92vw);
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4.6vw, 66px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 6px 22px rgba(0, 0, 0, .6);
    text-transform: none;
    overflow-wrap: anywhere;
}

#myCarousel .carousel-control {
    z-index: 10;
}

.carousel-caption {
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    top: 50% !important;
    width: min(920px, calc(100% - 32px));
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
    text-shadow: none !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-brand-lockup {
    width: min(820px, 100%);
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center !important;
}

.hero-brand-lockup h2 {
    color: #fff !important;
    font-size: clamp(34px, 5vw, 68px) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    max-width: 820px;
    margin: 0 auto !important;
    text-align: center !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
}

.carousel-caption h2 {
    text-transform: none !important;
}

.carousel-caption p {
    color: rgba(255, 255, 255, .92) !important;
    font-size: clamp(17px, 2vw, 24px) !important;
    line-height: 1.6 !important;
    max-width: 760px;
    margin: 14px auto !important;
    text-align: center !important;
}

.carousel-caption img,
.hero-brand-lockup .hero-logo {
    width: 104px !important;
    height: 104px !important;
    margin: 0 auto 18px !important;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35));
}

.hero-brand-lockup .hero-logo {
    display: block !important;
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}

.btn.btn-primary,
.card .content a,
.article-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 22px;
    background: var(--yr-gold);
    color: #191919;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(185, 131, 31, .2);
}

.btn.btn-primary:hover,
.card .content a:hover,
.article-links a:hover {
    background: var(--yr-gold-dark) !important;
    color: #fff !important;
}

.HERO {
    font-size: 1rem !important;
}

.about-video,
.our-vision,
.our-projects,
.gallery,
.contact {
    padding: 86px 0;
}

.about-video {
    background: linear-gradient(180deg, #fff 0%, var(--yr-soft) 100%);
}

.section-title {
    margin-bottom: 34px !important;
}

.about-video .content h3,
.section-title h1 {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--yr-ink);
    background: rgba(242, 194, 48, .18);
    font-size: 26px !important;
    line-height: 1.25;
}

.about-video .content h3::before,
.about-video .content h3::after {
    display: none;
}

.about-video .content p,
.vision-details p,
.article-body p,
.card .content p {
    color: var(--yr-muted);
    font-size: 16px;
    line-height: 1.8;
}

.video-box img {
    min-height: 360px;
    object-fit: cover;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--yr-shadow);
}

.play-btn {
    box-shadow: 0 18px 40px rgba(185, 131, 31, .26);
}

.our-vision {
    background: #fff;
}

.vision-item {
    align-items: flex-start;
    min-height: 170px;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--yr-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.vision-details.en,
.vision-details.ar {
    margin: 0;
}

.vision-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    margin: 0 0 0 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 194, 48, .18);
}

[dir="rtl"] .vision-icon,
.main-wrapper[style*="rtl"] .vision-icon {
    margin: 0 18px 0 0;
}

.vision-icon i {
    font-size: 26px;
}

.vision-img::before {
    width: min(28rem, 80vw);
    height: min(28rem, 80vw);
    background: #f3ead1;
}

.circle {
    width: min(31rem, 86vw);
    height: min(31rem, 86vw);
}

.vision-img img {
    width: min(25rem, 76vw);
    height: min(25rem, 76vw);
    object-fit: cover;
}

.counters {
    min-height: 380px;
    height: auto;
    padding: 92px 0;
    background-attachment: scroll;
}

.counter-items {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 14px;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.counter-items .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.counter-item {
    width: auto;
    min-height: 150px;
    margin: 8px 0;
    padding: 24px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 244, 236, .88));
    border: 1px solid rgba(185, 131, 31, .16);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.counter,
.counter-item h3 {
    color: var(--yr-ink);
}

.counter-item h3 {
    font-size: 17px;
    line-height: 1.5;
    margin-top: 10px;
    font-weight: 800;
}

.counter-item .counter-icon i {
    color: var(--yr-gold-dark);
    font-size: 30px;
}

.counter {
    min-height: 38px;
    font-size: 34px;
    font-weight: 900;
}

.our-projects {
    background: var(--yr-soft);
}

.our-projects .row {
    display: flex;
    flex-wrap: wrap;
}

.our-projects [class*="col-"] {
    display: flex;
}

.our-projects article {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    min-height: 510px;
    border: 1px solid var(--yr-line);
    border-radius: 8px;
    box-shadow: var(--yr-shadow);
}

.article-image {
    height: 240px;
    background-size: cover !important;
    background-position: center !important;
}

.article-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.article-heading {
    min-height: auto;
    font-size: 21px;
    line-height: 1.35;
    text-transform: none;
}

.article-links {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.chart {
    display: none;
}

.news {
    min-height: auto;
    padding: 90px 0 110px;
    overflow: hidden;
}

.news .swiper-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 52px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100% - min(360px, 82vw)) / 2);
    -webkit-overflow-scrolling: touch;
}

.news .swiper-container::-webkit-scrollbar {
    display: none;
}

.news .swiper-wrapper {
    display: flex;
    align-items: stretch;
    gap: 28px;
    transform: none !important;
}

.news .swiper-slide {
    flex-shrink: 0;
    width: min(360px, 78vw);
    height: auto;
    scroll-snap-align: center;
}

.card,
.news-card {
    width: 100%;
    min-height: 500px !important;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

.card .slider-text {
    height: 230px;
}

.card .content {
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 270px;
    padding: 24px;
}

.card .content h3 {
    height: auto;
    min-height: 58px;
    font-size: 20px;
    line-height: 1.4;
}

.card .content a {
    position: static;
    width: max-content !important;
    margin-top: auto !important;
}

html[lang="ar"] body,
html[lang="ar"] .main-wrapper {
    direction: rtl;
}

html[lang="ar"] .carousel-caption,
html[lang="ar"] .about-video .content,
html[lang="ar"] .vision-details,
html[lang="ar"] .article-body,
html[lang="ar"] .card .content,
html[lang="ar"] .footer {
    text-align: right;
}

html[lang="ar"] .carousel-caption {
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
}

html[lang="ar"] .vision-icon {
    margin: 0 18px 0 0;
}

html[lang="ar"] .article-links,
html[lang="ar"] .footer-social {
    justify-content: flex-start;
}

html[lang="ar"] .contact-links a i {
    margin-right: 0;
    margin-left: 8px;
}

html[lang="ar"] .nav .flex-parent {
    direction: rtl;
}

html[lang="ar"] .nav__header {
    order: 1;
}

html[lang="ar"] .nav__wrap {
    order: 2;
    padding-right: 24px;
    padding-left: 0;
}

html[lang="ar"] .nav__socials.d-lg-block {
    left: 2% !important;
    right: auto !important;
}

html[lang="ar"] .logo-container {
    order: 1;
}

html[lang="ar"] .Yemen {
    order: 2;
    text-align: right;
}

html[lang="ar"] .news .swiper-container,
html[lang="ar"] .gallery .swiper {
    direction: rtl;
}

.gallery {
    min-height: auto;
    background: #fff;
    overflow: hidden;
}

.gallery .section-title {
    position: static;
}

.gallery .swiper {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 72px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery .swiper::-webkit-scrollbar {
    display: none;
}

.gallery .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 34px;
    width: max-content;
    margin: 0 auto;
    transform: none !important;
}

.gallery .swiper-slide {
    flex-shrink: 0;
    width: min(360px, 82vw);
    height: 520px;
    border-radius: 8px;
    filter: none;
    overflow: hidden;
    background-color: #f4f4f4;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    opacity: .72;
    transform: scale(.9);
    scroll-snap-align: center;
    transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}

.gallery .swiper-slide.is-active,
.gallery .swiper-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 3;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
}

.news .swiper-container.is-dragging,
.gallery .swiper.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.gallery .swiper-button-next,
.gallery .swiper-button-prev {
    top: auto;
    bottom: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--yr-gold);
    background-image: none;
    background-size: auto;
    box-shadow: 0 12px 28px rgba(185, 131, 31, .25);
}

.gallery .swiper-button-disabled {
    opacity: .45;
}

.gallery .swiper-button-next::after,
.gallery .swiper-button-prev::after {
    display: none;
}

.gallery .swiper-button-next::before,
.gallery .swiper-button-prev::before {
    color: #151515;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
}

.gallery .swiper-button-next::before {
    content: "\f104";
}

.gallery .swiper-button-prev::before {
    content: "\f105";
}

.gallery .swiper-button-next {
    right: calc(50% - 58px);
}

.gallery .swiper-button-prev {
    left: calc(50% - 58px);
}

.contact {
    height: auto;
    min-height: 620px;
    background: linear-gradient(180deg, #fff 0%, var(--yr-soft) 100%);
}

.contact form {
    max-width: 560px;
}

form .form-control {
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--yr-line);
    box-shadow: none;
}

form .form-control:focus {
    border-color: var(--yr-gold);
    box-shadow: 0 0 0 4px rgba(242, 194, 48, .16);
    transform: none;
}

.footer {
    background-size: cover;
    background-position: center;
    animation: none;
}

.footer-details,
.footer-contact {
    margin-top: 54px;
}

.photo img {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain;
}

.footer-contact h3,
.footer-details h3 {
    font-size: 24px;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
}

.contact-links a {
    overflow-wrap: anywhere;
}

@media (max-width: 991px) {
    .nav {
        min-height: 72px;
    }

    .nav__header {
        height: 72px;
    }

    .nav__wrap {
        background: #fff;
        padding: 0 0 14px;
    }

    .nav__menu > li > a {
        line-height: 48px;
        height: auto;
        padding: 0 4px;
    }

    .logo {
        width: 58px;
        height: 58px;
    }

    .carousel-inner {
        height: 620px;
        min-height: 560px;
        border-radius: 0;
    }

    .carousel-caption img {
        width: 86px;
        height: 86px;
    }

    .hero-brand-lockup {
        width: min(560px, 100%);
        gap: 10px;
    }

    .hero-brand-lockup h2 {
        font-size: clamp(29px, 7vw, 44px) !important;
        line-height: 1.14 !important;
    }

    .about-video,
    .our-vision,
    .our-projects,
    .gallery,
    .contact {
        padding: 58px 0;
    }

    .video-box img {
        min-height: 260px;
    }

    .vision-item {
        min-height: auto;
    }

    .counters {
        min-height: auto;
        padding: 56px 0;
    }

    .counter-items {
        padding: 8px;
    }

    .news .swiper-wrapper {
        gap: 20px;
    }

    .gallery .swiper-wrapper {
        gap: 26px;
    }

    .contact {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .hero-fixed-brand {
        gap: 10px;
        padding: 24px 18px;
    }

    .hero-fixed-brand img {
        width: 74px;
        height: 74px;
    }

    .hero-fixed-brand h2 {
        max-width: 94vw;
        font-size: clamp(25px, 7.4vw, 34px);
        line-height: 1.2;
    }

    .carousel-caption {
        width: calc(100% - 28px) !important;
        gap: 8px;
    }

    .hero-brand-lockup h2 {
        font-size: clamp(26px, 8vw, 36px) !important;
        line-height: 1.16 !important;
        max-width: 100%;
    }

    .carousel-caption p {
        font-size: 15px !important;
        max-width: 96%;
    }

    .hero-brand-lockup .hero-logo {
        width: 76px !important;
        height: 76px !important;
    }

    .section-title h1,
    .about-video .content h3 {
        font-size: 22px !important;
    }

    .article-links {
        flex-direction: column;
    }

    .article-links a {
        width: 100%;
    }
}
