@media (max-width: 1137px) {
    .car-swiper .swiper-pagination {
        /*display: flex !important;*/
        /*flex-direction: row;*/
        /*justify-content: center;*/
        /*width: 100%;*/
        /*align-items: center;*/
        /*gap: 5px;*/
    }

    .car-swiper .swiper-pagination .swiper-pagination-bullet {
        display: block !important;
        width: 20px;
        height: 20px;
        background-color: #282828;
        opacity: 1;
    }

    .car-swiper .swiper-pagination .swiper-pagination-bullet-active {
        background-color: #000000;
    }

    .swiper.mySwiper .swiper-button-next,
    .swiper.mySwiper .swiper-button-prev {
        top: 50% !important;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .swiper.mySwiper .swiper-button-next {
        right: 20px;
        left: auto;
        transform: translateY(-50%) rotate(90deg);
        /* Rotate for horizontal swipe */
    }

    .swiper.mySwiper .swiper-button-prev {
        left: 20px;
        right: auto;
        transform: translateY(-50%) rotate(90deg);
        /* Rotate for horizontal swipe */
    }

    .swiper.mySwiper .swiper-button-next svg,
    .swiper.mySwiper .swiper-button-prev svg {
        width: 30px;
        height: 30px;
    }
}

/* --------------- Hero Section --------------- */
.hero {
    height: 400px;
    overflow: hidden;
}

.heroWrapper {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    z-index: 1;
    contain: strict;
    pointer-events: none;
}

.heroContent {
    width: 726px;
    min-height: 200px;
    top: 200px;
    position: absolute;
    right: 285px;
    text-align: end;
    color: #ffffff;
    z-index: 2;
    contain: layout style;
}

.slideTitle {
    position: relative;
    display: inline-block;
    text-align: right;
    width: 726px;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.4;
    min-height: 35px;
}

.slideTitle::after {
    content: "";
    position: absolute;
    right: 0px;
    bottom: -10px;
    width: 97.5px;
    height: 2px;
    background-color: #ffffff;
}

.heroContent p {
    width: 726px;
    min-height: 50px;
    font-weight: 500;
    font-size: 16px;
    line-height: 178%;
    margin: 30px 0;
    text-align: right;
}

.heroButton {
    position: absolute;
    right: 0;
    color: white;
    font-family: "Tajawal", sans-serif;
    border: none;
    background-color: #59a565;
    width: 130px;
    height: 50px;
    min-height: 50px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 300ms ease;
    contain: layout style paint;
}

.heroButton:hover {
    cursor: pointer;
    background-color: #4da05b;
}

.heroSlider {
    width: 181px;
    top: 60px;
    position: absolute;
    left: 276px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    gap: 5px;
    z-index: 2;
}

.up,
.down {
    background-color: #ffffff33;
    border-radius: 36px;
    cursor: pointer;
}

.up path,
.down path {
    fill: white;
}

.imgSlider {
    position: relative;
    height: 680px;
    width: 100%;
}

.slideImage {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    opacity: 1;
    will-change: opacity;
    contain: layout style paint;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section - Swiper Styles */
.hero-section {
    margin-bottom: 50px;
    min-height: 600px;
    height: calc(85vh - 72px);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.hero-section .app-wrapper {
    height: 100%;
}

.swiper.mySwiper {
    height: 100%;
    contain: layout style;
    visibility: visible;
}

.swiper-slide {
    height: 100%;
    /*min-height: 600px;*/
    contain: layout style paint;
    content-visibility: auto;
}

.swiper-slide img, .video-thumb {
    width: 100%;
    height: 100%;
    min-height: 600px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background-color: #f5f5f5;
}
.thumbs-swiper img, .thumbs-swiper .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    aspect-ratio: 172 / 124;
    object-fit: contain;
    border-radius: 16px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.swiper-slide img:hover, .video-thumb:hover {
    cursor: pointer;
}

.swiper.thumbs-swiper {
    user-select: none;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 20px;
    top: 50%;
    width: 180px;
    left: 280px;
    height: 700px;
    max-height: calc(85vh - 150px);
    transform: translateY(-50%);
    contain: layout style;
    opacity: 1;
    visibility: visible;
    overflow: visible;
}

.swiper.thumbs-swiper .swiper-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    align-items: center;
}

.swiper.thumbs-swiper .swiper-wrapper .swiper-slide {
    width: 180px;
    height: 90px !important;
    min-height: 115px;
    max-height: 90px;
    flex-shrink: 0;
    object-fit: cover;
    contain: layout style paint;
    aspect-ratio: 172 / 124;
    border-radius: 16px;
    overflow: hidden;
  margin: 0 !important;
}

.swiper.thumbs-swiper .heroContent {
    display: none;
}

.swiper.thumbs-swiper .overlay {
    display: none;
}

.swiper.thumbs-swiper .swiper-button-lock {
    display: block;
}

.swiper.thumbs-swiper .swiper-slide.swiper-slide-visible.swiper-slide-thumb-active {
    border-color: #4da05b;
    border-radius: 20px;
}

.swiper.thumbs-swiper .swiper-slide.swiper-slide-visible {
    border: 4px solid transparent;
}

.swiper-button-next,
.swiper-button-prev {
    pointer-events: auto !important;
    z-index: 10;
    cursor: pointer;
}

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

.swiper.thumbs-swiper .swiper-button-next {
    width: 35px;
    height: 35px;
    top: -40px;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
}

.swiper.thumbs-swiper .swiper-button-prev {
    width: 35px;
    height: 35px;
    bottom: 60px;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
}

.swiper-button-prev,
.swiper .swiper-button-next {
    position: absolute;
    top: 1000px;
    overflow: hidden;
}

.mobileSearchBar {
    align-items: center;
    direction: rtl;
}

.searchLogo {
    width: 32px;
    height: 32px;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Desktop Screens */
@media (min-width: 1537px) {
    .heroContent {
        right: clamp(285px, 15vw, 400px);
    }

    .swiper.thumbs-swiper {
        left: clamp(280px, 15vw, 350px);
        height: 560px;
    }



    .heroSlider {
        left: clamp(276px, 15vw, 350px);
    }
}

@media (min-width: 1900px) {
  .device-pixel-ratio-1-width-1920 .swiper.thumbs-swiper {
    transform:translateY(-42%);
  }
}

/* Desktop - Large */
@media (min-width: 1281px) and (max-width: 1536px) {
    .heroContent {
        right: 120px;
        width: clamp(600px, 38vw, 726px);
    }

    .heroContent p {
        width: 100%;
    }

    .slideTitle {
        width: 100%;
    }

    .swiper.thumbs-swiper {
      left: 180px;
      top: 57%;
      min-height: 560px;
      transform: translateY(-50%);
    }

    .heroSlider {
        left: 180px;
    }
}

/* Desktop - Medium */
@media (min-width: 1025px) and (max-width: 1280px) {
    .heroContent {
        right: 120px;
        width: clamp(500px, 35vw, 650px);
    }

    .heroContent p {
        width: 100%;
    }

    .slideTitle {
        width: 100%;
    }

    .swiper.thumbs-swiper {
        left: 100px;
        overflow: hidden;
    }

    .heroSlider {
        left: 100px;
    }
}

/* Hide thumbs-swiper on smaller screens */
@media (max-width: 1137px) {

    .heroSlider,
    .swiper.thumbs-swiper {
        display: none;
    }

}

.swiper-button-next {
    transform: rotate(270deg);
    padding: 0;
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        height: calc(90vh - 72px);
    }

    .heroImg {
        height: 100vh;
    }

    /* Fix swiper for tablet - disable vertical scroll conflict */
    .swiper.mySwiper {
        touch-action: pan-y;
    }

    .heroContent {
        max-width: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #ffffff;
        padding: 20px;
        z-index: 2;
        width: auto;
        right: auto;
    }

    .slideTitle {
        text-align: center;
        margin: 0 auto 20px;
        width: clamp(400px, 70vw, 535px);
        font-weight: 700;
        font-size: clamp(26px, 4vw, 30px);
    }

    .slideTitle::after {
        display: none;
    }

    .heroContent p {
        width: 100%;
        max-width: 90vw;
        padding: 0 20px;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: clamp(14px, 2.5vw, 16px);
        line-height: 1.6;
        margin: 20px 0 30px;
    }

    .heroButton {
        position: relative;
        background-color: #59a565;
        width: 153px;
        height: 50px;
        border-radius: 30px;
        font-size: 17px;
        font-weight: 500;
        margin: 0 auto;
        right: auto;
    }
}

/* Tablet Portrait & Mobile Landscape */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-section {
        height: calc(95vh - 72px);
        margin-bottom: 50px;
    }

    .heroImg {
        height: 100vh;
    }

    /* Fix swiper for mobile - disable vertical scroll conflict */
    .swiper.mySwiper {
        touch-action: pan-y;
        height: 100%;
    }

    .heroContent {
        max-width: 95%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #ffffff;
        padding: 20px;
        z-index: 2;
        width: auto;
        right: auto;
    }

    .slideTitle {
        text-align: center;
        margin: 0 auto 20px;
        width: clamp(300px, 80vw, 450px);
        font-weight: 700;
        font-size: clamp(22px, 5vw, 28px);
    }

    .slideTitle::after {
        display: none;
    }

    .heroContent p {
        width: 100%;
        max-width: 95vw;
        padding: 0 15px;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: clamp(14px, 3vw, 16px);
        line-height: 1.5;
        margin: 18px 0 25px;
    }

    .heroButton {
        position: relative;
        background-color: #59a565;
        width: clamp(120px, 30vw, 140px);
        height: 48px;
        border-radius: 30px;
        font-size: clamp(14px, 3.5vw, 16px);
        font-weight: 500;
        margin: 0 auto;
        right: auto;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        margin-bottom: 50px;
    }

    .video-controls.show {
        top: 24px;
    }

    .heroImg {
        height: 100%;
    }
    .hero-section .swiper.mySwiper .swiper-button-prev {
        left: 0;
        right: auto;
        transform: translateY(-50%) rotate(90deg);
    }
    .hero-section .swiper.mySwiper .swiper-button-next {
        right: 0;
        left: auto;
        transform: translateY(-50%) rotate(90deg);
    }
    /* Fix swiper for mobile - disable vertical scroll conflict */
    .swiper.mySwiper {
        touch-action: pan-y;
        height: 100%;
        overflow: hidden;
    }

    .heroContent {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #ffffff;
        padding: 15px;
        z-index: 2;
        width: auto;
        right: auto;
    }

    .slideTitle {
        text-align: center;
        margin: 0 auto 15px;
        width: clamp(250px, 90vw, 335px);
        font-weight: 700;
        font-size: clamp(20px, 6vw, 25px);
    }

    .slideTitle::after {
        display: none;
    }

    .heroContent p {
        width: 100%;
        max-width: 100vw;
        padding: 0 15px;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        font-size: clamp(13px, 4vw, 15px);
        line-height: 1.4;
        margin: 15px 0 20px;
    }

    .heroButton {
        position: relative;
        background-color: #59a565;
        width: clamp(110px, 35vw, 123px);
        height: 47px;
        border-radius: 30px;
        font-size: clamp(13px, 4vw, 17px);
        font-weight: 500;
        margin: 0 auto;
        right: auto;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 320px) {
    .hero-section {
        margin-bottom: 50px;
    }

    .heroContent {
        padding: 10px;
    }

    .slideTitle {
        width: 95%;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .heroContent p {
        font-size: 12px;
        line-height: 1.3;
        margin: 12px 0 15px;
        padding: 0 10px;
    }

    .heroButton {
        width: 100px;
        height: 44px;
        font-size: 12px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .slideImage {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .overlay {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .slideImage,
    .fade-in,
    .heroButton {
        transition: none;
        animation: none;
    }
}

/* Print Styles */
@media print {

    .hero-section,
    .swiper.thumbs-swiper,
    .heroSlider {
        display: none;
    }
}


/* ---------- Services ---------------- */

.services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    contain: layout style;
}

.services-head {
    width: 100%;
    text-align: center;
}

.home-page-title {
    font-weight: 700;
    font-size: 22px;
}

.home-page-desc {
    font-weight: 400;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 20px;
}

/* Mobile View */
@media (max-width: 767px) {
    .home-page-title {
        font-weight: 700;
        font-size: 20px;
    }

    .home-page-desc {
        font-weight: 300;
        font-size: 16px;
        margin-right: 15px;
        margin-left: 15px;
    }
}

/* ----------- Services Cards -------------- */
.ServicesCards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cardContent {
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: black;
    padding: 25px;
    gap: 15px;
}

.cardContent img {
    width: 132px;
    height: 132px;
    flex-shrink: 0;
}

.card-text {
    flex: 1;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.services-cards-title {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 20px;
}

.services-cards-desc {
    font-weight: 300;
    font-size: 16px;
    line-height: 165%;
}

.card-text h2 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 20px;
    word-wrap: break-word;
}

.card-text p {
    font-weight: 300;
    font-size: 16px;
    line-height: 165%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
}

/* Mobile View */
@media (max-width: 767px) {
    .ServicesCards {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
    }

    .cardContent {
        width: 100%;
        display: flex;
        justify-items: center;
        align-items: center;
        flex-direction: column;
        border: 1px solid #1111111a;
        border-radius: 30px;
    }

    .cardContent img {
        width: 112px;
        height: 100%;
    }

    .card-text {
        width: 100%;
        max-width: 373px;
        text-align: center;
        overflow: hidden;
        word-wrap: break-word;
    }

    .card-text h1 {
        font-weight: 600;
        font-size: 18px;
        margin: 0 30px;
    }

    .card-text p {
        text-align: center;
        font-weight: 300;
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Tablet screen */
@media (min-width: 768px) and (max-width: 1024px) {
    .ServicesCards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .cardContent {
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: row;
        border: 1px solid #1111111a;
        border-radius: 30px;
    }

    .cardContent img {
        width: 80px;
        height: 80px;
        margin: 37px 20px;
        padding: 0;
        flex-shrink: 0;
    }

    .card-text {
        flex: 1;
        overflow: hidden;
    }

    .card-text h1 {
        font-weight: 600;
        font-size: 15px;
    }

    .card-text p {
        font-weight: 400;
        font-size: 10px;
        line-height: 204%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Small laptop screen */
@media (min-width: 1025px) and (max-width: 1280px) {
    .ServicesCards {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
    }

    .cardContent {
        width: 459px;
    }

    .cardContent img {
        width: 125px;
        height: 125px;
        margin: 37px 25px 37px;
        flex-shrink: 0;
    }

    .card-text {
        flex: 1;
        overflow: hidden;
    }

    .card-text p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ---------- Partners ------------------- */

.partners-section {
    padding-top: 50px;
}

.partners-section .image-wrapper img {
  position: unset;
  transform: unset;
  aspect-ratio: unset;
  height: auto;
  width: auto;
  min-height: unset;
  background: transparent;
}

.partners-section .image-wrapper {
  margin: unset;
  width: auto;
  height: auto;
  /*min-width: 460px;*/
  /*width: unset;*/
  /*border-radius: 20px;*/
  /*overflow: hidden;*/
  /*background: white;*/
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  /*margin-inline-end: 70px;*/
}

.partners-section .image-wrapper {
  width: 610px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-section .image-wrapper img {
  width: 80%;
  max-width: 450px;
  z-index: 1;
  position: relative;
}

.partners-section .image-wrapper:before {
  content: "";
  position: absolute;
  inset: 9px 40px;
  background: #00000017;
  border-radius: 20px;
  transform: translateY(30px);
}



.swiper-pagination {
  display: flex;
  flex-direction: column;
  gap: 8px;
  top: 50% !important;
  flex-shrink: 0;
  position: absolute;
  transform: translateY(-50%);
  left: 20px !important;
  width: auto !important;
}

html[dir="ltr"] .swiper-pagination {
  left: auto !important;
  right: 20px !important;
}

.swiper-pagination-bullet {
  flex-shrink: 0;
}




.home-page-title span {
    color: #4da05b;
}

/* Mobile View */
@media (max-width: 767px) {
    .home-page-title {
        font-weight: 700;
        font-size: 20px;
    }

    .home-page-desc {
        font-weight: 300;
        font-size: 16px;
        margin-right: 15px;
        margin-left: 15px;
    }
}

/* -------------- Partners Cars -------------- */
#carCard {
    max-width: 1350px;
    width: 100%;
    height: 477px;
    display: flex;
    align-items: center;
    margin-top: 20px;
    background: linear-gradient(to right, #676767, #ffffff, #f2f2f2);
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    contain: layout style paint;
}

/* Swiper required styles */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-pagination {
    /*left: 60px !important;*/
    /*right: auto !important;*/
    /*text-align: left;*/
    /*position: absolute;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    /*gap: 5px;*/
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fade effect for car-swiper */
.car-swiper.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.car-swiper.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

.car-swiper.swiper-fade .swiper-slide-active,
.car-swiper.swiper-fade .swiper-slide-duplicate-active {
    pointer-events: auto;
}

.swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: #282828;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #000000;
}

.carContent {
    width: 1241px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    height: 477px;
    align-items: center !important;
}

.image-wrapper {
    margin-left: 9%;
    position: relative;
    width: 535px;
    height: 342px;
}

.car-background {
    position: absolute;
    width: 100%;
    background-color: #ffffff52;
    border-radius: 46px;
    height: 100%;
    z-index: 0;
}

.image-wrapper img {
    position: absolute;
    object-fit: contain;
    top: 32px;
    width: 100%;
    z-index: 1;
    transform: translateX(-5%);
}

.carText {
    margin-right: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-swiper-title {
    font-weight: 700;
    font-size: 25px;
    line-height: 156%;
    text-align: right;
}

.carText p {
    font-weight: 400;
    font-size: 15px;
    line-height: 156%;
    text-align: right;
    width: 100%;
    max-width: 477px;
    margin: 10px auto;
}

.car-swiper-desc {
    font-weight: 400;
    font-size: 20px;
    color: #656565;
    margin-top: 8px;
    margin-bottom: 20px;
}

.pal-service2 {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 400;
    font-size: 17px;
    text-align: right;
}

.pal-service2 li {
    font-weight: 400;
    font-size: 15px;
    line-height: 156%;
    text-align: right;
    width: 100%;
    max-width: 477px;
    margin: 10px auto;
    color: inherit;
}

/* Mobile */
@media (max-width: 767px) {
    .car-background {
        display: none !important;
    }

    .car-swiper-title {
        font-weight: 600;
        font-size: 23px;
        text-align: center;
    }

    .carText p {
        font-weight: 400;
        font-size: 15px;
        text-align: center;
    }

    .pal-service2 {
        list-style: none;
        padding: 0;
        margin: 0;
        font-weight: 400;
        font-size: 17px;
        text-align: center;
    }

    .pal-service2 li {
        font-weight: 400;
        font-size: 15px;
        line-height: 156%;
        text-align: center;
        width: 100%;
        max-width: 477px;
        margin: 10px auto;
        color: inherit;
    }

    #carCard {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 30px auto 0 auto;
        border-radius: 30px;
        background: linear-gradient(to bottom, #676767, #a7a7a7, #f2f2f2);
        padding: 20px;
        text-align: center;
    }

    .carContent {
        /*width: 100%;*/
        /*display: flex;*/
        /*flex-direction: column-reverse;*/
        /*justify-content: center;*/
        /*align-items: center;*/
        /*gap: 15px;*/
        /*position: relative;*/
    }

    .image-wrapper {
        width: 100%;
        max-width: 220px;
        height: auto;
        position: relative;
    }

    .image-wrapper img {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        z-index: 1;
        object-fit: contain;
    }

    .carText {
        width: 100%;
        max-width: 300px;
        font-weight: 700;
        font-size: 20px;
        line-height: 140%;
        text-align: center;
        margin: 0;
        z-index: 2;
    }

    .pal-service2 {
        list-style: none;
        padding: 0;
        margin: 0;
        font-weight: 400;
        font-size: 17px;
        text-align: center;
    }

    .pal-service2 li {
        font-weight: 400;
        font-size: 15px;
        line-height: 156%;
        text-align: center;
        width: 100%;
        max-width: 477px;
        margin: 10px auto;
        color: inherit;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .car-background {
        display: none !important;
    }

    #carCard {
        height: auto;
        margin: 30px auto;
        border-radius: 30px;
        background: linear-gradient(to right, #676767, #ffffff, #f2f2f2);
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .carContent {
        /*width: 100%;*/
        /*display: flex;*/
        /*flex-direction: column-reverse;*/
        /*justify-content: center;*/
        /*align-items: center;*/
        /*gap: 15px;*/
        /*position: relative;*/
    }

    .image-wrapper {
        width: 250px;
        height: auto;
    }

    .image-wrapper img {
        position: relative;
        top: 0;
        width: 100%;
    }

    .carText {
        width: 100%;
        max-width: 450px;
        font-weight: 700;
        font-size: 22px;
        line-height: 150%;
        text-align: center;
    }

    .car-swiper-title {
        font-weight: 600;
        font-size: 23px;
        text-align: center;
    }

    .carText p {
        font-weight: 400;
        font-size: 15px;
        text-align: center;
    }

    .pal-service2 {
        list-style: none;
        padding: 0;
        margin: 0;
        font-weight: 400;
        font-size: 17px;
        text-align: center;
    }

    .pal-service2 li {
        font-weight: 400;
        font-size: 15px;
        line-height: 156%;
        text-align: center;
        width: 100%;
        max-width: 477px;
        margin: 10px auto;
        color: inherit;
    }
}

/* Small laptop */
@media (min-width: 1025px) and (max-width: 1280px) {
    #carCard {
        max-width: 1000px;
        width: 100%;
        height: 420px;
        margin: 30px auto 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 30px;
        background: linear-gradient(to right, #676767, #ffffff, #f2f2f2);
        position: relative;
        overflow: hidden;
    }

    .carContent {
        /*width: 920px;*/
        /*margin: 0 auto;*/
        /*display: flex;*/
        /*justify-content: space-between;*/
        /*flex-shrink: 0;*/
        /*height: 420px;*/
        /*align-items: center;*/
    }

    .carText {
        width: 430px;
        font-size: 24px;
        line-height: 150%;
        margin-right: 30px;
    }

    .car-swiper-title {
        font-weight: 600;
        font-size: 24px;
        text-align: center;
    }

    .carText p {
        font-weight: 400;
        font-size: 15.5px;
        text-align: center;
    }

    .pal-service2 {
        list-style: none;
        padding: 0;
        margin: 0;
        font-weight: 400;
        font-size: 17px;
        text-align: center;
    }

    .pal-service2 li {
        font-weight: 400;
        font-size: 15px;
        line-height: 156%;
        text-align: center;
        width: 100%;
        max-width: 477px;
        margin: 10px auto;
        color: inherit;
    }

    .image-wrapper {
        width: 380px;
        height: 270px;
        position: relative;
    }

    .car-background {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #ffffff52;
        border-radius: 46px;
        z-index: 0;
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
        object-fit: contain;
        position: absolute;
        top: 32px;
        left: 0;
        z-index: 1;
        transform: translateX(-5%);
    }
}

/* Add to your existing CSS */
@media (max-width: 1137px) {
    .car-swiper .swiper-pagination {
        /*display: flex !important;*/
        /*flex-direction: row;*/
        /*justify-content: center;*/
        /*width: 100%;*/
        /*align-items: center;*/
        /*gap: 5px;*/
        /*!* Fix: Add initial positioning to prevent jump *!*/
        /*position: absolute !important;*/
        /*bottom: 20px !important;*/
        /*left: 50% !important;*/
        /*transform: translateX(-50%) !important;*/
        /*!* Hide initially to prevent flash *!*/
        /*opacity: 0;*/
        /*visibility: hidden;*/
        /*transition: opacity 0.3s ease, visibility 0.3s ease;*/
    }

    /* Show pagination only after swiper is initialized */
    .car-swiper.swiper-initialized .swiper-pagination {
        opacity: 1;
        visibility: visible;
    }

    .car-swiper .swiper-pagination .swiper-pagination-bullet {
        display: block !important;
        width: 20px;
        height: 20px;
        background-color: #282828;
        opacity: 1;
        transition: background-color 0.3s ease;
    }

    .car-swiper .swiper-pagination .swiper-pagination-bullet-active {
        background-color: #000000;
    }

    .swiper.mySwiper .swiper-button-next,
    .swiper.mySwiper .swiper-button-prev {
        top: 50% !important;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .swiper.mySwiper .swiper-button-next {
        right: 20px;
        left: auto;
        transform: translateY(-50%) rotate(90deg);
    }

    .swiper.mySwiper .swiper-button-prev {
        left: 20px;
        right: auto;
        transform: translateY(-50%) rotate(90deg);
    }

    .swiper.mySwiper .swiper-button-next svg,
    .swiper.mySwiper .swiper-button-prev svg {
        width: 30px;
        height: 30px;
    }
}
/* ---------------- News ----------------- */
#news {
    margin-top: 40px;
    padding: 0 15px;
    overflow-x: hidden;
    contain: layout style;
}

.newsCards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
}

/* Card Wrapper */
.newsCardLink {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* News Card */
/* -------------- newsCard ------------ */

#news {
    margin-top: 40px;
    padding: 0 15px;
    overflow-x: hidden;
}

.newsCards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
}

/* Card Wrapper */
.newsCardLink {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* News Card */
.news-cards-content {
    width: 100%;
    padding: 18px;
    margin: 0;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    contain: layout style paint;
}

.news-image-wrapper {
  height: 220px;
  display: block;
  overflow: hidden;
  border-radius: 15px;
}

.news-cards-image {
    /*border-radius: 15px;*/
    /*width: 100%;*/
}

.news-card-text {
    margin: auto;
    margin-top: 10px;
}

.news-card-title {
    font-weight: 700;
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.date {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #8c8c8c;
}

.newsPara {
    font-weight: 400;
    font-size: 15px;
    margin-top: 5px;
    line-height: 178%;
    padding-bottom: 20px;
}

.newsPara span {
    color: #4da05b;
    font-weight: 300;
    font-size: 15px;
    word-break: break-word;
    white-space: nowrap;
}


/* Mobile: 1 card */
@media (max-width: 767px) {
    .newsCards {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
    }

    .news-cards-content {
        width: 100%;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news-card-text {
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .newsPara {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 160%;
    }

    .newsPara span {
        display: inline;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: nowrap;
    }
}

/* Tablet: 2 cards */
@media (min-width: 768px) and (max-width: 1024px) {
    .newsCards {
        gap: 20px;
        padding: 0 15px;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .news-cards-content {
        width: 100%;
        margin-bottom: 10px;
    }

    .news-card-text {
        width: 100%;
        max-width: 372px;
        margin: auto;
    }
}

@media (max-width: 600px) {
    .newsCards {
        gap: 20px;
        padding: 0 15px;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }

}


/* Large Screens: 3 cards */
@media (min-width: 1281px) {
    .newsCards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Add this CSS for mobile pagination */
@media (max-width: 1137px) {
    .swiper-pagination {
        left: 10px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.5);
        opacity: 1;
    }

    .swiper-pagination-bullet-active {
        background: white;
    }

    /* Ensure horizontal layout */
    .mySwiper .swiper-wrapper {
        flex-direction: row !important;
    }

    .mySwiper .swiper-slide {
        width: 100% !important;
        height: auto !important;
    }
}


/* ---------------- Video Controls Styling ---------------- */
.video-controls {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
    display: none;
    gap: 4px;
    z-index: 15;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
    contain: layout style;
}

.video-controls.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.video-control-btn {
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    will-change: transform;
    contain: layout style paint;
}

.video-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.video-control-btn:hover::before {
    opacity: 1;
}

.video-control-btn:active {
    transform: scale(0.95);
}

.video-control-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.video-control-btn:hover svg {
    transform: scale(1.1);
}

/* Button States */
.video-control-btn.muted {
    background: rgba(220, 53, 69, 0.85);
    border-color: rgba(220, 53, 69, 0.6);
}

.video-control-btn.muted:hover {
    background: rgba(220, 53, 69, 0.95);
    border-color: rgba(220, 53, 69, 0.8);
}

.video-control-btn.paused {
    background: #4da05b;
    border-color: #5da66b;
}

.video-control-btn.paused:hover {
    background: #4da05b;
    border-color: #5da66b;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .video-controls {
        top: 15px;
        inset-inline-start: 15px;
        gap: 4px;
    }

    .video-control-btn {
        width: 36px;
        height: 36px;
    }

    .video-control-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .video-controls {
        top: 12px;
        inset-inline-start: 12px;
        gap: 4px;
    }

    .video-control-btn {
        width: 36px;
        height: 36px;
    }

    .video-control-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation for control appearance */
@keyframes controlsAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.video-controls.show {
    animation: controlsAppear 0.4s ease;
}

/* Focus states for accessibility */
.video-control-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.video-control-btn:focus:not(:focus-visible) {
    outline: none;
}



.logo-wrapper img {
  all: unset;
  max-width: 100%;
  /* position: absolute; */
  /* inset: 0; */
  width: 90%;
  height: 90%;
  object-fit: cover;
  transform: rotate(-45deg);
}

.logo-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 100px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ededed;
  border-radius: 30px;
  z-index: 1;
}

/*mobile changes*/

@media (max-width: 480px) {
  .partners-section .image-wrapper {
    max-width: 90%;
    height: 210px;
    position: relative;
  }

  .partners-section .image-wrapper img {
    width: 50%;
  }

  .carContent {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    width: auto;
    gap: 70px;
    margin-bottom: auto;
  }

  .swiper-slide.swiper-slide-next {}

  .swiper-slide {display: flex;align-items: center;justify-content: center;}

  .partners-section .image-wrapper:before {
    max-width: 70%;
    transform: translateX(-50%);
    width: 75vw;
    inset-inline-start: -3%;
  }

  #carCard {
    height: 460px;
  }

  .logo-wrapper {
    top: unset;
    transform: translate(-50%, 0%) rotate(45deg);
    width: 60px;
    border-radius: 10px;
    top: 40px;
  }
}
