/* ====== Membership Section Styles ====== */

/* Lato Regular */
@font-face {
    font-family: "Lato";
    src: url("../font/Lato/Lato-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

/* Lato Bold */
@font-face {
    font-family: "Lato";
    src: url("../font/Lato/Lato-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

/* Lato Light */
@font-face {
    font-family: "Lato";
    src: url("../font/Lato/Lato-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

/* Lato Black */
@font-face {
    font-family: "Lato";
    src: url("../font/Lato/Lato-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

/* Lato Italic */
@font-face {
    font-family: "Lato";
    src: url("../font/Lato/Lato-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

/* Section Container */
.membership-section {
    background: #f9f9f9;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.membership-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(78, 185, 244, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

/* Title */
.membership-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0d1f2d;
}

.membership-section .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 50px;
}

/* Blog Section */
.blog-section {
    /*background: #f9f9f9;*/
    padding: 80px 0;
    overflow: hidden;
}

.blog-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #0d1f2d;
    margin-bottom: 10px;
}

.blog-section .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

/* Blog Grid */
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Blog Card */
.blog-card {
    width: 320px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.blog-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    color: #0d1f2d;
    margin-bottom: 10px;
}

.blog-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-read {
    color: #4eb9f4;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.blog-read:hover {
    color: #0d1f2d;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card {
        width: 100%;
    }
}

.faq-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 15px;
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.08);*/
}

/* Responsive: في الموبايل تكون فوق */
@media (max-width: 768px) {
    .faq-image img {
        height: auto;
    }
}

.royal-statistics-section {
    /*background-color: #f9f9f9;*/
}

.section-title h5 {
    color: #4eb9f4;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 20px;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon i {
    color: #4eb9f4;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 16px;
    color: #555;
}

.logo-trans,
.logo-back {
    /* height: 60px; */
    height: 42px;
}

/* وضع الديسكتوب */
/* التابلت */
@media (max-width: 992px) and (min-width: 576px) {
    .logo-trans,
    .logo-back {
        height: 45px;
    }
}

/* الموبايل */
@media (max-width: 575px) {
    .logo-trans,
    .logo-back {
        /* height: 45px; */
        height: 36px;
    }
}

.img-choose {
    border: 10px solid white;
    border-radius: 10px;
}

/*!* modal *!*/
/*.modal {*/
/*    display: none;*/
/*    position: fixed;*/
/*    z-index: 999;*/
/*    left: 0;*/
/*    top: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    overflow: auto;*/
/*    background-color: rgba(0,0,0,0.6);*/
/*}*/

/*.modal-content {*/
/*    background-color: #fff;*/
/*    margin: 10% auto;*/
/*    padding: 20px;*/
/*    border-radius: 8px;*/
/*    width: 80%;*/
/*    max-width: 500px;*/
/*    text-align: left;   !* ✅ النص يبدأ من اليسار *!*/
/*    direction: ltr;     !* ✅ اتجاه الكتابة من اليسار لليمين *!*/
/*    position: relative;*/
/*}*/

/*.modal-content img {*/
/*    width: 100%;*/
/*    border-radius: 8px;*/
/*    margin-bottom: 15px;*/
/*}*/

/*.modal-content h2,*/
/*.modal-content h3 {   !* ✅ لو استخدمت h3 بدلاً من h2 *!*/
/*    margin-bottom: 10px;*/
/*    color: #333;*/
/*    text-align: center; !* عنوان الصورة يبقى في المنتصف *!*/
/*}*/

/*.modal-content p {   !* ✅ تنسيق الفقرة الجديدة *!*/
/*    color: #555;*/
/*    margin-bottom: 15px;*/
/*    line-height: 1.6;*/
/*}*/

/*.modal-content .location {*/
/*    font-weight: bold;*/
/*    color: #666;*/
/*    margin-top: 10px;*/
/*    text-align: center;  !* الموقع يبقى في المنتصف *!*/
/*}*/

/*.close {*/
/*    position: absolute;*/
/*    top: 10px;*/
/*    right: 15px;*/
/*    font-size: 24px;*/
/*    color: #aaa;*/
/*    cursor: pointer;*/
/*}*/

/*.close:hover {*/
/*    color: #333;*/
/*}*/

.tg-section-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #555; /* لون رمادي أنيق */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    padding: 0;
    display: inline-block;
    position: relative;
}

.tg-section-subtitle::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #6c63ff; /* خط بنفسجي تحت العنوان */
    margin-top: 8px;
}

.tg-section-su-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 0;
}

.promo-royal {
    background: linear-gradient(to right, #0d1f2d 0%, #4eb9f4 100%);
    padding: 80px 20px;
    color: white;
}

.promo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: auto;
    gap: 30px;
}

.promo-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    border: 3px solid #ffffff;
    padding: 10px;
}

.promo-text h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.promo-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.promo-btn {
    background-color: white;
    color: #0d1f2d;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.promo-btn:hover {
    background-color: #4eb9f4;
    color: white;
}

/* ✅ Media Query for Desktop Layout */
@media (min-width: 992px) {
    .promo-wrapper {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        gap: 60px;
    }

    .promo-text,
    .promo-image {
        flex: 1;
    }

    .promo-text {
        padding-left: 20px;
    }
}

.join-title {
    color: #ffffff;
}

.royal-section {
    background-color: #daecf6;
    padding: 80px 0px;
    box-sizing: border-box;
}

.royal-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: white;
    text-align: left;
    margin-bottom: 60px;
}

.royal-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
}

.royal-step {
    max-width: 320px;
    text-align: left;
}

.royal-step img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    /* border: 10px solid #0d1e2c; */
    display: block;
}

.royal-number-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.royal-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #223a8f;
    flex-shrink: 0;
}

.royal-line {
    height: 2px;
    background-color: #223a8f;
    flex-grow: 1;
}

.royal-text-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #223a8f;
    margin-bottom: 10px;
}

.royal-text-box p {
    font-size: 1.05rem;
    color: #223a8f;
    line-height: 1.6;
}

.royal-title span {
    font-weight: 700;
    color: #ffffff;
}

.royal-step {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.royal-feature-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 16px;
}

.royal-feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 64px;
    gap: 40px;
    flex-wrap: nowrap;
}

.royal-feature-block.reverse {
    flex-direction: row-reverse;
}

.royal-feature-media {
    flex: 1;
    border-radius: 16px;
    width: 100%;
    overflow: hidden;
}

.royal-feature-media img {
    width: 100%;
    height: 340px;
    border-radius: 16px;
    display: block;
}

.royal-feature-text {
    flex: 1;
    padding: 0 20px;
}

.royal-feature-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
}

.royal-feature-text p {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    color: #444;
}

@media (max-width: 991px) {
    .royal-feature-block {
        flex-direction: column;
        text-align: center;
    }
    .royal-feature-block.reverse {
        flex-direction: column;
    }
    .royal-feature-text {
        padding: 1px 0 0;
    }
    .royal-feature-text h2 {
        font-size: 22px;
        text-align: left;
    }
}

/*//all venues*/

/*.resort-section {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    justify-content: center;*/
/*    align-items: flex-start;*/
/*    padding: 40px 20px;*/
/*    gap: 40px;*/
/*    !*max-width: 1200px;*!*/
/*    margin: auto;*/

/*    max-width: 100%;*/
/*    width: 100%;*/
/*    !*padding-left: 15px;*!*/
/*    !*padding-right: 15px;*!*/
/*    !*margin-left: auto;*!*/
/*    !*margin-right: auto;*!*/
/*    box-sizing: border-box;*/
/*    overflow-x: hidden; !* تأكيد عدم خروج محتوى *!*/

/*}*/

/*.image-container img {*/
/*    display: block;*/
/*    width: 100%;*/
/*    height: 360px;*/
/*    max-width: 500px;*/
/*    min-width: 320px; !* ✅ الحد الأدنى للعرض *!*/
/*    border-radius: 15px;*/
/*    object-fit: cover;*/
/*    aspect-ratio: 16 / 9; !* ✅ يضمن تناسق الطول مع العرض *!*/
/*}*/

/*.content-container {*/
/*    flex: 1;*/
/*    min-width: 300px;*/
/*    max-width: 600px;*/
/*}*/

/*.content-container h2 {*/
/*    font-size: 28px;*/
/*    margin-bottom: 10px;*/
/*    margin-top: 15px;*/
/*}*/

/*.content-container p {*/
/*    font-size: 16px;*/
/*    !*margin-bottom: 20px;*!*/
/*    line-height: 1.6;*/
/*}*/

/*.logos-wrapper {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    overflow: hidden;*/
/*    gap: 10px;*/
/*    !*margin-bottom: 20px;*!*/
/*}*/

/*.logos {*/
/*    display: flex;*/
/*    overflow-x: auto;*/
/*    scroll-behavior: smooth;*/
/*    gap: 8px; !* ✅ المسافة المثالية *!*/
/*    max-width: 400px;*/
/*    padding: 10px 0;*/
/*}*/

/*.logos img {*/
/*    height: 130px;         !* ⬅️ حجم مو كبير *!*/
/*    flex-shrink: 0;*/
/*    transition: transform 0.3s ease;*/
/*    !*padding: 4px;         !* ✅ يخليها "تتنفس" بشكل أنيق *!*!*/
/*}*/

/*.logos img:hover {*/
/*    transform: scale(1.1);*/
/*}*/

/*.arrow {*/
/*    font-size: 28px;*/
/*    cursor: pointer;*/
/*    padding: 10px;*/
/*    background: #eee;*/
/*    border-radius: 50%;*/
/*    user-select: none;*/
/*}*/

/*.explore-btn {*/
/*    padding: 12px 20px;*/
/*    font-size: 16px;*/
/*    background: white;*/
/*    border: 2px solid black;*/
/*    border-radius: 8px;*/
/*    cursor: pointer;*/
/*}*/

/*.explore-btn:hover {*/
/*    background: black;*/
/*    color: white;*/
/*}*/

/*.logos {*/
/*    display: flex;*/
/*    overflow-x: auto;*/
/*    scroll-behavior: smooth;*/
/*    gap: 8px;*/
/*    padding: 10px 0;*/
/*    -webkit-overflow-scrolling: touch;*/
/*}*/

/*!* ✅ إخفاء شريط التمرير في كل المتصفحات *!*/

/*.logos::-webkit-scrollbar {*/
/*    display: none; !* Chrome, Safari, Opera *!*/
/*}*/

/*.logos {*/
/*    -ms-overflow-style: none;  !* IE and Edge *!*/
/*    scrollbar-width: none;     !* Firefox *!*/
/*}*/

/*@media (max-width: 991px) {*/
/*    .image-container img {*/
/*        height: 241px;*/
/*    }*/
/*}*/

/*@media (max-width: 991px) {*/
/*    .arrow {*/
/*        display: none; !* 🟢 نخفي الأسهم *!*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .image-container {*/
/*        display: flex;*/
/*        justify-content: center;*/
/*    }*/

/*    .image-container img {*/
/*        height: auto;*/
/*        width: 100%;*/
/*        max-width: 90vw;*/
/*        min-width: 320px;*/
/*        aspect-ratio: 16/9;*/
/*    }*/
/*}*/

.resort-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    gap: 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.image-container img {
    display: block;
    width: 100%;
    height: 360px;
    max-width: 500px;
    min-width: 320px;
    border-radius: 15px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* ✅ عشان نسمح بالرابط حوالين الصورة */
.image-container a {
    display: block;
    width: 100%;
    max-width: 500px;
}

.content-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.content-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.content-container p {
    font-size: 16px;
    line-height: 1.6;
}

.logos-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 10px;
    margin-bottom: 30px;
}

/* ✅ تعديل الـ logos تدعم a > img */
.logos {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 8px;
    max-width: 400px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.logos a {
    flex-shrink: 0;
    display: inline-block;
}

.logos img {
    height: 130px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logos img:hover {
    transform: scale(1.1);
}

.arrow {
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    background: #eee;
    border-radius: 50%;
    user-select: none;
}

.explore-btn {
    padding: 12px 20px;
    font-size: 16px;
    background: white;
    border: 2px solid black;
    border-radius: 8px;
    cursor: pointer;
}

.explore-btn:hover {
    background: black;
    color: white;
}

/* ✅ إخفاء الشريط الجانبي */
.logos::-webkit-scrollbar {
    display: none;
}

.logos {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 991px) {
    .image-container img {
        height: 241px;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .image-container {
        display: flex;
        justify-content: center;
    }

    .image-container img {
        height: auto;
        width: 100%;
        max-width: 90vw;
        min-width: 320px;
        aspect-ratio: 16 / 9;
    }
}
/* المسافة في الموبايل */
@media (max-width: 767px) {
    .content-container {
        padding-bottom: 40px;
    }
}

/* المسافة في التابلت */
@media (min-width: 768px) and (max-width: 991px) {
    .content-container {
        padding-bottom: 40px;
    }
}

.modal-content {
    animation: fadeInUp 0.4s ease-in-out;
    background-color: #fff;
    border-radius: 20px;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.img-thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.floating-button {
    width: 50px;
    height: 50px;
    background-color: #4eb9f4;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.element-container {
    position: absolute;
    bottom: 60px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-container.open .element-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-icon {
    width: 50px;
    height: 50px;
    background-color: #0d1f2d;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

.float-icon.whatsapp {
    background-color: #25d366;
}
.float-icon.instagram {
    background-color: #e1306c;
}
.float-icon.facebook {
    background-color: #3b5998;
}

.float-icon:hover {
    opacity: 0.9;
}

/* الوضع الطبيعي للديسكتوب */
.footer-col {
    order: unset;
}

/* فقط في الموبايل والتابليت: 0px إلى 991px */
@media (max-width: 991px) {
    .footer-logo {
        order: 1;
    }
    .mr-80 {
        margin-right: 0 !important;
    }
    .footer-links {
        order: 2;
    }

    .footer-info {
        order: 3;
    }

    .footer-app {
        order: 4;
    }
}

/*loading*/
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #0d1f2d;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-wrapper {
    text-align: center;
}

.loader-logo {
    width: 120px;
    animation: zoomIn 1.2s ease-out forwards;
    opacity: 0;
}

.loader-text span {
    font-family: "Cairo", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    opacity: 0;
    animation: typing 1s forwards;
    display: inline-block;
}

.loader-text span:nth-child(1) {
    animation-delay: 1.3s;
}
.loader-text span:nth-child(2) {
    animation-delay: 1.4s;
}
.loader-text span:nth-child(3) {
    animation-delay: 1.5s;
}
.loader-text span:nth-child(4) {
    animation-delay: 1.6s;
}
.loader-text span:nth-child(5) {
    animation-delay: 1.7s;
}
.loader-text span:nth-child(6) {
    animation-delay: 1.8s;
}
.loader-text span:nth-child(7) {
    animation-delay: 1.9s;
}
.loader-text span:nth-child(8) {
    animation-delay: 2s;
}
.loader-text span:nth-child(9) {
    animation-delay: 2.1s;
}
.loader-text span:nth-child(10) {
    animation-delay: 2.2s;
}
.loader-text span:nth-child(11) {
    animation-delay: 2.3s;
}
.loader-text span:nth-child(12) {
    animation-delay: 2.4s;
}
.loader-text span:nth-child(13) {
    animation-delay: 2.5s;
}
.loader-text span:nth-child(14) {
    animation-delay: 2.6s;
}
.loader-text span:nth-child(15) {
    animation-delay: 2.7s;
}
.loader-text span:nth-child(16) {
    animation-delay: 2.8s;
}

@keyframes typing {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* موبايل وتابلت حتى عرض 991px */
@media (max-width: 991px) {
    .royal-feature-media img {
        height: 248px;
    }
}

/* تمنع RTL في الموبايل فقط */
@media (max-width: 991px) {
    .rtl-mobile {
        direction: ltr !important;
    }

    .rtl-mobile ul.navigation {
        flex-direction: column !important;
    }

    .rtl-mobile ul.navigation li {
        text-align: left !important;
    }
}

@media (max-width: 991.98px) {
    .custom-flex {
        display: flex;
        flex-direction: column;
    }
    .image-col {
        order: 1;
    }
    .content-col {
        order: 2;
    }
}

/* footer icon info */
.tg-footer-widget svg path {
    stroke: #2c377e !important;
    color: #2c377e !important;
}

/* modal view venues */
:root {
    --rm-primary: #4eb9f4;
    /* Royal */
    --rm-dark: #2c377e;
    --rm-white: #fff;
    --rm-form-bg: #2c377e;
    /* لوحة يمين قريبة من الشكل */
    --rm-form-bg-2: #2c377e;
    --rm-overlay: rgba(13, 31, 45, 0.55);
}

/* demo trigger (اختياري) */
.rm-demo-open {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
}

/* ===== Overlay ===== */
.rm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.rm-modal[data-open="1"] {
    pointer-events: auto;
}

.rm-backdrop {
    position: absolute;
    inset: 0;
    background: var(--rm-overlay);
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.rm-modal[data-open="1"] .rm-backdrop {
    opacity: 1;
}

/* ===== Dialog ===== */
.rm-modal-dialog {
    position: relative;
    width: min(92vw, 920px);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.rm-modal[data-open="1"] .rm-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close */
.rm-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 22px;
    line-height: 36px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.rm-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Left media */
.rm-modal-media {
    position: relative;
    min-height: 320px;
}

.rm-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right panel */
.rm-modal-body {
    background: linear-gradient(160deg, var(--rm-form-bg), var(--rm-form-bg-2));
    color: #f8fafc;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rm-title {
    margin: 0 0 8px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #ffffff;
}

.rm-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Form fields */
.rm-form {
    display: grid;
    gap: 12px;
}

.rm-field {
    display: block;
}

.rm-field input,
.rm-field select {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease,
        box-shadow 0.2s ease;
}

.rm-field input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.rm-field select {
    appearance: none;
    padding-right: 28px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.25 7.5L10 12.25 14.75 7.5" stroke="white" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.rm-field input:focus,
.rm-field select:focus {
    border-color: rgba(78, 185, 244, 0.95);
    box-shadow: 0 0 0 3px rgba(78, 185, 244, 0.25);
    background: rgba(255, 255, 255, 0.18);
}

/* Phone group */
.rm-phone {
    display: flex;
    gap: 8px;
}

.rm-code {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 0 8px 0 6px;
    min-width: 120px;
    height: 48px;
}

.rm-code .rm-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.rm-phone input[type="tel"] {
    flex: 1;
}

/* Button */
.rm-btn {
    height: 48px;
    border-radius: 24px;
    background: #fff;
    color: var(--rm-dark);
    border: 0;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease,
        color 0.2s ease;
}

.rm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.rm-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .rm-modal-dialog {
        grid-template-columns: 1fr;
        width: min(94vw, 560px);
    }

    .rm-modal-media {
        display: none;
    }

    .rm-modal-body {
        padding: 26px 20px 24px;
    }
}

/* royal featues */
:root {
    --rm-bg: #2c377e;
    /* خلفية السكشن المطلوبة */
    --rm-primary: #4eb9f4;
    /* لون Royal الأساسي */
    --rm-dark: #0d1f2d;
    --rm-white: #fff;
    --rm-glow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.rm-trust-strip {
    position: relative;
    background: var(--rm-bg);
    color: var(--rm-white);
    padding: 48px 0 40px;
    overflow: hidden;
    isolation: isolate;
}

/* حبيبات/إضاءة خفيفة */
.rm-trust-strip::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    background: radial-gradient(
            700px 300px at 20% 10%,
            rgba(255, 255, 255, 0.08),
            transparent 60%
        ),
        radial-gradient(
            500px 260px at 80% 0%,
            rgba(78, 185, 244, 0.1),
            transparent 60%
        );
    pointer-events: none;
    z-index: 0;
}

.rm-trust-head {
    position: relative;
    text-align: center;
    margin-bottom: 22px;
    z-index: 1;
}

.rm-trust-title {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 0.2px;
}

.rm-trust-sub {
    margin: 0;
    opacity: 0.9;
    font-size: clamp(13px, 1.6vw, 15px);
}

.rm-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rm-primary);
    box-shadow: 0 0 0 6px rgba(78, 185, 244, 0.18);
    margin-inline-end: 8px;
    vertical-align: 2px;
}

/* الشبكة الأساسية */
.rm-trust-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

/* بطاقة */
.rm-trust-card {
    grid-column: span 6;
    /* 2 بالصف على التابلت */
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--rm-glow);
    transition: transform 0.25s ease, background 0.25s ease,
        border-color 0.25s ease;
}

.rm-trust-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(78, 185, 244, 0.35);
}

.rm-badge {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.rm-badge img {
    width: 72%;
    height: auto;
    display: block;
}

.rm-text h4 {
    font-size: 16px;
    margin: 0 0 4px;
    font-weight: 700;
    color: #4eb9f4;
}

.rm-text p {
    font-size: 13px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* شريط شعارات للموبايل */
.rm-logo-strip {
    display: none;
    margin-top: 16px;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}

.rm-logo-strip img {
    height: 32px;
    width: auto;
    flex: 0 0 auto;
    margin-inline: 8px;
    filter: brightness(1) saturate(0) invert(1) opacity(0.9);
    scroll-snap-align: center;
}

/* الموجة السفلية */
.rm-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 80px;
    width: 100%;
    z-index: 0;
}

.rm-wave path {
    fill: #24306e;
    opacity: 0.9;
}

/* رسبونسف */
@media (min-width: 992px) {
    .rm-trust-card {
        grid-column: span 3;
    }

    /* 4 كروت في الصف على الديسكتوب */
}

@media (max-width: 767.98px) {
    .rm-trust-grid {
        grid-template-columns: 1fr;
    }

    .rm-trust-card {
        grid-template-columns: 56px 1fr;
        grid-column: auto;
    }

    .rm-logo-strip {
        display: flex;
    }
}

/* دعم RTL/LTR تلقائي */
[dir="ltr"] .rm-trust-strip {
    direction: ltr;
}

/* plan section  */
:root {
    /* Royal primary */
    --rm-dark: #0d1f2d;
    --rm-bg-deep: #2c377e;
    /* الخلفية الأزرق الداكن */
    --rm-white: #fff;
}

.rm-how-royal {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 70px 16px 78px;
    color: var(--rm-white);
    text-align: center;
    background: #163a66;
}

/* خلفية البحر + طبقة لونية */
.rm-how-royal .rm-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(
            180deg,
            rgba(44, 55, 126, 0.92),
            rgba(44, 55, 126, 0.86) 30%,
            rgba(44, 55, 126, 0.85) 60%,
            rgba(44, 55, 126, 0.92)
        ),
        url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=1800&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

/* موجات */
.rm-wave-plan {
    position: absolute;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: -1;
}

.rm-wave-top {
    top: 0;
    transform: translateY(-1px);
}

.rm-wave-bottom {
    bottom: 0;
    height: 100px;
    transform: translateY(1px);
}

.rm-wave-plan path {
    opacity: 0.85;
    fill: #cdecfc;
}

.rm-wave-bottom path {
    fill: #cfefff;
    opacity: 1;
}

/* المحتوى */
.rm-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.rm-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    background: #cfefff;
    color: #153a68;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rm-title {
    font-size: clamp(22px, 3vw, 36px);
    margin: 16px 0 8px;
    font-weight: 800;
}

.rm-sub {
    max-width: 820px;
    margin: 0 auto 26px;
    opacity: 0.92;
    line-height: 1.6;
    font-size: clamp(13px, 1.4vw, 16px);
}

/* بطاقات الخطط */
.rm-plans {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    align-items: start;
    margin: 18px auto 26px;
    max-width: 900px;
}

.rm-plan {
    border-radius: 20px;
    padding: 16px 16px 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        background 0.25s ease;
}

.rm-plan:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* صورة البطاقة */
.rm-media {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 4 / 5;
    /* نفس النسبة مثل المثال */
    background: #0c2240;
}

.rm-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* عناوين ونصوص */
.rm-plan-title {
    margin: 4px 0 6px;
    color: #e8f5ff;
}

.rm-plan-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.95;
    color: #f0f6ff;
}

/* زر أسفل */
.rm-cta {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: #cfefff;
    color: #1b366b;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rm-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.rm-cta:active {
    transform: translateY(0);
}

/* استجابة */
@media (max-width: 992px) {
    .rm-plans {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 576px) {
    .rm-wave {
        height: 64px;
    }

    .rm-how-royal {
        padding: 60px 12px 66px;
    }
}

/* about us  */
/* خلفية بيضا للسكشن */
.bg-white {
    background: #fff;
}

/* زوايا دائرية موحدة */
.rm-rounded-22 {
    border-radius: 22px;
}

/* تخطيط الكولاج */
.rm-collage {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "a b"
        "a c"
        "d d";
    gap: 18px;
}

.rm-c-a {
    grid-area: a;
}

.rm-c-b {
    grid-area: b;
}

.rm-c-c {
    grid-area: c;
}

.rm-c-d {
    grid-area: d;
}

.rm-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rm-collage img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

/* نسب ارتفاعات للكوادر */
.rm-c-a img {
    min-height: 460px;
}

.rm-c-b img {
    min-height: 160px;
}

.rm-c-c img {
    min-height: 160px;
}

.rm-c-d img {
    min-height: 210px;
}

/* تباعد النص */
.tg-location-section-title p {
    margin-bottom: 0;
}

/* رسبونسف */
@media (max-width: 991.98px) {
    .rm-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "a a"
            "b c"
            "d d";
    }

    .rm-c-a img {
        min-height: 300px;
    }

    .rm-c-b img,
    .rm-c-c img {
        min-height: 160px;
    }

    .rm-c-d img {
        min-height: 200px;
    }
}

@media (max-width: 575.98px) {
    .rm-collage {
        grid-template-columns: 1fr;
        grid-template-areas:
            "a"
            "b"
            "c"
            "d";
    }

    .rm-collage img {
        min-height: 220px;
    }
}

/* about us after update design section */
/* نص */
.rm-text-short-description {
    color: #223a8f;
    margin-top: 0.35rem;
}

/* كروت الصور */
.rm-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(16, 45, 70, 0.08);
    background: #fff;
}

.rm-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* الصورة العريضة تحت النص (ارتفاع موحد ريسبونسف) */
.rm-left-landscape {
    height: clamp(180px, 24vw, 240px);
}

/* الموزاييك */
.rm-mosaic {
    --tile: clamp(150px, 18vw, 220px);
    /* ارتفاع البلاطة الواحدة */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: var(--tile);
    gap: 22px;
}

.rm-tile {
    height: var(--tile);
}

.rm-tile--tall {
    grid-row: span 2;
    height: calc(var(--tile) * 2 + 22px);
}

/* نقاط توقف ريسبونسف */
@media (max-width: 991.98px) {
    .rm-mosaic {
        --tile: clamp(150px, 28vw, 220px);
    }
}

@media (max-width: 767.98px) {
    .rm-left-landscape {
        height: clamp(180px, 38vw, 260px);
    }

    .rm-mosaic {
        grid-template-columns: 1fr 1fr;
        /* اتنين جنب بعض */
        --tile: clamp(130px, 34vw, 200px);
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .rm-mosaic {
        grid-template-columns: 1fr 1fr;
        /* في الموبايل كل صف فيه صورتين */
        grid-auto-rows: clamp(140px, 44vw, 200px);
    }

    .rm-tile--tall {
        grid-row: span 2;
        height: auto;
    }
}

/* fonts */
/* Roboto Regular */
@font-face {
    font-family: "Roboto";
    src: url("/fonts/roboto/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Roboto Italic */
/* Roboto Regular */
@font-face {
    font-family: "Roboto";
    src: url("/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Roboto Italic */
@font-face {
    font-family: "Roboto";
    src: url("/fonts/Roboto/Roboto-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Roboto Medium (500) */
@font-face {
    font-family: "Roboto";
    src: url("/fonts/Roboto/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Roboto Bold (700) */
@font-face {
    font-family: "Roboto";
    src: url("/fonts/Roboto/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.royal-about-image img {
    height: 480px;
}

@media (max-width: 767px) {
    .royal-about-image img {
        height: 100%;
    }
}

.tg-section-subtitle {
    width: 100%;
}

.accordion-button::after {
    display: none !important;
}

/* الأرقام تظهر دايمًا بالشكل الصحيح مع + */
.ltr-number {
    direction: ltr;
    unicode-bidi: bidi-override;
    text-align: left;
    display: inline-block;
}

/* افتراضي: كتابة LTR + محاذاة شمال */
.rm-phone {
    direction: ltr !important;
    unicode-bidi: plaintext;
    text-align: left;
}

/* لو الصفحة عربية: محاذاة يمين */
html[lang^="ar"] .rm-phone {
    text-align: right !important;
}

/* صفحات إنجليزي (أو en-US…): محاذاة شمال */
html[lang^="en"] .rm-phone {
    text-align: left !important;
}

/* خَلّي الـ placeholder يرِث المحاذاة */
.rm-phone::placeholder {
    text-align: inherit;
}

/* additional for footer */
.app-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-badge {
    display: inline-flex;
}

.app-badge img {
    height: 40px;
    display: block;
}

/* لو عايز ترتيب RTL في العربي */
html[dir="rtl"] .app-badges {
    flex-direction: row-reverse;
}
