.main-menu {
    display: flex;
}

.nav-image {
    height: 35px;
}

.custom_burger {
    .burger-icon {
        left: 0px;
    }
}

.box-search-advance .box-top-search {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .box-banner-home5-search .box-search-advance {
        top: -14px;
    }
}

.card-custom {
    width: 40%;
    height: 40%;
}

.corner-ribbon-ksa-img {
    position: absolute;
    top: -7px;
    right: 195px;
    width: 24px;
    height: auto;
    z-index: 11;
}

.special-border-ksa {
    position: relative;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(to bottom, #a8e063, #56ab2f, #2e7d32);
    transform: scale(1.1);
}

.special-border-ksa > *:not(.corner-ribbon):not(.corner-ribbon-ksa) {
  border-radius: 8px; /* أقل شوية من الخارجي */
  background: white;
  height: 100%;
  width: 100%;
}

.margin-right-185 {
    padding-right: 185px;
}

/* على الموبايل يرجع للحجم الطبيعي */
@media (max-width: 767px) {
    .margin-right-185{
        padding-right: 0px;
    }
    .special-border-ksa {
        transform: scale(1);
    }
}

.corner-ribbon-ksa {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #a8e063, #56ab2f, #2e7d32);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(86, 171, 47, 0.7);
    z-index: 10;
    user-select: none;
    pointer-events: none;
}

.special-border {
  position: relative;
  border-radius: 12px;
  padding: 4px; /* سماكة البوردر */
  background: linear-gradient(to bottom, #f3c66c, #c79614, #a47f0d);
  transform: scale(1.1);
}

.special-border > *:not(.corner-ribbon):not(.corner-ribbon-ksa) {
  border-radius: 8px; /* أقل شوية من الخارجي */
  background: transparent;
  height: 80px;
  width: 80px;
}

/* على الموبايل يرجع للحجم الطبيعي */
@media (max-width: 767px) {
  .special-border {
    transform: scale(1);
  }
}

.font-size {
    font-size: 21px;
}

.font-size-2 {
    font-size: 19px;
}

.corner-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #f36c6c, #c74714, #a42b0d);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(243, 198, 108, 0.7);
  z-index: 10;
  user-select: none;
  pointer-events: none;
}


.card-popular-destination.card-popular-destination-type-2 .card-image {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.card_border {
    border-radius: 5%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-right: 1%;
    cursor: pointer;
}

#services-navigation-button .button-container {
  position: relative;
  width: 130px;
  height: 45px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #a47f0d;
  background-color: transparent;
}

.mask-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #f3c66c, #c79614, #a47f0d);
  -webkit-mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png");
  mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png");
  -webkit-mask-size: 2300% 100%;
  mask-size: 2300% 100%;
  animation: ani2 0.7s steps(22) forwards;
  z-index: 1;
}

#services-navigation-button .mask-button:hover,
#services-navigation-button .mask-button:active {
  color: #c79614 !important;
  background-color: transparent !important;
  border-color: #fff !important;
}

#services-license_and_visa .mask-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #7ddd7a, #468d26, #024f06);
  -webkit-mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png");
  mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png");
  -webkit-mask-size: 2300% 100%;
  mask-size: 2300% 100%;
  animation: ani2 0.7s steps(22) forwards;
  z-index: 1;
}

#services-license_and_visa .mask-button:hover,
#services-license_and_visa .mask-button:active {
  color: #fff !important;
  background: linear-gradient(45deg, #a8e063, #56ab2f, #2e7d32) !important;
  border-color: #fff !important;
}

.button-container:hover .mask-layer {
  animation: ani 0.7s steps(22) forwards;
}

/* 🔥 New attention-grabbing animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(199, 150, 20, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(199, 150, 20, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(199, 150, 20, 0.7);
  }
}

#services-license_and_visa .button-container {
  position: relative;
  width: 130px;
  height: 45px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #a47f0d;
  background-color: transparent;
}

#services-license_and_visa .button-container {
  animation: pulse 1.5s infinite;
  transition: transform 0.3s ease;
}

/* 📱 Make button smaller on mobile */
@media (max-width: 576px) {
    #services-license_and_visa .button-container {
        width: 80px;
        height: 26px;
        font-size: small;
    }
}

.mask-button {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: none;
  color: #fff;
  border: none;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 1px;
}


@keyframes ani {
  from {
    -webkit-mask-position: 0 0;
            mask-position: 0 0;
  }
  to {
    -webkit-mask-position: 100% 0;
            mask-position: 100% 0;
  }
}

@keyframes ani2 {
  from {
    -webkit-mask-position: 100% 0;
            mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0 0;
            mask-position: 0 0;
  }
}


#services-navigation {
    .card-popular.card-top-destination {
        border-radius: 16px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-between;
    }

    .card_border {
        border-radius: 5%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        margin-right: 1%;
    }

    .card-custom {
        width: 40%;
        height: 40%;
    }

    .left-label {
        position: relative;
        left: 0%;
        padding: 5px 10px;
        /* border: 1px solid #000; */
        box-shadow: 3px 2px 5px rgba(0, 0, 0, 0.3);
        background-color: white;
        border-radius: 25px;
        color: #fff;
        background: linear-gradient(to bottom, #f3c66c, #c79614, #a47f0d);
        font-weight: 700;
        width: fit-content;
    }

    /* Ensure Swiper container has a fixed height */
    .swiper {
        height: 500px;
        /* Set your desired fixed height */
    }

    .swiper-wrapper {
        display: flex;
        align-items: stretch;
        /* Make all slides stretch to same height */
    }

    .swiper-slide {
        height: auto;
        /* Allow slides to inherit wrapper height */
    }

    .card-popular {
        height: 100%;
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .card-custom {
        flex: 1;
        /* Make image container grow to fill space */
        display: flex;
        flex-direction: column;
        width: initial;
    }

    .card-custom img {
        flex: 1;
        object-fit: contain;
        width: 147px;
        margin-bottom: -18px;
    }
}

@media (max-width: 1410px) {
    .icon-lang {
        span {
            visibility: hidden;
        }
    }
}

.footer {
    background: linear-gradient(to bottom, #f3c66c, #c79614, #a47f0d);
}

[data-bs-theme=dark] .footer {
    background: #000000 !important;
}

.neutral-1000 {
    color: #c79614 !important;
}

.neutral-2000 {
    color: #022e6d !important;
}

.blue_text_mode_light {
    color: #FFFFFF !important;
}

.form-newsletter .form-control {
    border-color: #022e6d;
    border-width: revert;
}

.blue_title_mode_light {
    color: #022e6d !important;
}

[data-bs-theme=dark] .blue_title_mode_light {
    color: #c79614 !important;
}

#scrollUp {
    background: #c79614;
}

a.icon-socials {
    background-color: transparent;
    border: 1px solid #022e6d;
}

[data-bs-theme=dark] a.icon-socials svg {
    fill: wheat;
}

.tour-title-main {
    text-align: center;
}

.custom-alert {
    position: fixed;
    top: 20px;
    /* Adjust distance from the top */
    right: 20px;
    /* Adjust distance from the right */
    z-index: 1050;
    /* Ensure it appears above other elements */
    width: auto;
    /* Auto-width based on content */
    max-width: 300px;
    /* Limit width if needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Optional shadow effect */
}

#blog_list {
    .btn.btn-gray {
        padding: 14px 23px !important;
    }

    .card-news .card-info .card-meta {
        justify-content: flex-end;
    }
}

/* Custom styles for the banner slider */
#home-navigation {
    position: relative;
}

.carousel-item {
    height: 50vh; /* Half viewport height for mobile */
    min-height: 300px; /* Minimum height to ensure content visibility */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 0;
}

[dir="rtl"] #bannerCarousel .carousel-control-prev-icon {
  transform: rotate(180deg); /* optional flip */
}

[dir="rtl"] #bannerCarousel .carousel-control-next-icon {
  transform: rotate(180deg); /* optional flip */
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 85%;
    padding: 15px;
}

.carousel-caption-custom h2 {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 15px;
    line-height: 1.2;
}

.carousel-caption-custom h6 {
    font-size: 0.95rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 20px;
    line-height: 1.4;
}

.carousel-caption-custom .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 25px;
}

/* Custom carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
    background-size: 100%, 100%;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
}

/* Custom indicators */
.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.6);
    border: none;
}

.carousel-indicators .active {
    background-color: rgba(255,255,255,1);
}

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
    .carousel-item img {
        object-fit: cover;
    }

    .carousel-item {
        height: 0vh;
        min-height: 183px;
    }

    .carousel-caption-custom {
        width: 90%;
        padding: 10px;
    }

    .carousel-caption-custom h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .carousel-caption-custom h6 {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .carousel-caption-custom .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .carousel-item {
        height: 50vh;
        min-height: 400px;
    }

    .carousel-caption-custom h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .carousel-caption-custom h6 {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .carousel-caption-custom .btn {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 6%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .carousel-item {
        height: 50vh;
        min-height: 450px;
    }

    .carousel-caption-custom h2 {
        font-size: 2.8rem;
    }

    .carousel-caption-custom h6 {
        font-size: 1.2rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 5%;
    }
}

/* Large screens (1440px and up) */
@media (min-width: 1440px) {
    .carousel-item {
        height: 50vh;
        min-height: 500px;
    }

    .carousel-caption-custom h2 {
        font-size: 3.2rem;
    }

    .carousel-caption-custom h6 {
        font-size: 1.3rem;
    }
}

/* Extra large screens (1900px and up) */
@media (min-width: 1900px) {
    .carousel-item {
        height: 50vh;
        min-height: 550px;
    }

    .carousel-caption-custom h2 {
        font-size: 3.5rem;
    }
}

/* Animation classes */
.fadeInUp {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* RTL support for carousel controls */
[dir="rtl"] .carousel-control-prev {
    right: 0;
    left: auto;
}

[dir="rtl"] .carousel-control-next {
    left: 0;
    right: auto;
}

/* Additional mobile improvements */
@media (max-width: 767px) {
    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Demo content styling */
.demo-content {
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
}

.card_blog_list .image-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 260px; /* same as image height to prevent layout shift */
  background: #f0f0f0;
}

.card_blog_list .image-wrapper .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

.card_blog_list .image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

/* Show image and hide spinner when loaded */
.card_blog_list .image-wrapper img:where(:not([src=""])) {
  opacity: 1;
}

.card_blog_list .image-wrapper img:where(:not([src=""])) + .spinner {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
