.hero-swiper-wrapper {
    position: relative;
    width: 100%;
    height: 668px; /* Adjust based on preferred height */
    overflow: hidden;
    width: 1920px;
    max-width: 100%;
    margin: 0 auto;
}

.main-hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.hero-play-pause-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.hero-control-btn {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #05538E;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-controls-container .css-arrow {
    background-color: #358FAF;
}

.hero-controls-container .css-arrow::after {
    border-top: 2px solid #358FAF;
    border-left: 2px solid #358FAF;
}

.hero-control-btn svg {
    width: 12px; /* Scaled for 32px container */
    height: 12px;
}

/* Optical alignment for the Triangle (Play) */
.play-btn svg {
     /* Shifts the triangle right to look centered */
}

.container-hero {
    max-width: 1705px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start; /* Aligns text to the right in RTL */
    padding-bottom: 100px;
}

.hero-text-box {
    max-width: 650px;
    text-align: right;
}

.hero-main-title {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 35px;
    font-weight: 400;
    margin-inline: 0;
}

/* --- Buttons --- */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.btn-hero {
    padding: 14px 45px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
    height: 60px;
}

.btn--orange { background-color: #F15A22; }
.btn--lime { background-color: #A9B724; }

.btn-hero:hover { transform: translateY(-3px); opacity: 0.9; }

/* --- Custom Controls UI (Bottom Right) --- */
.hero-controls-container {
    position: absolute;
    bottom: 150px;
    right: 140px; /* Moves to the left side in RTL as per JPG */
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.hero-nav {
    position: static !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    background: #ffffff;
    border-radius: 50%;
    color: #fff !important;
}

.hero-nav::after {font-size: 12px !important;font-weight: 900;color: #358FAF;display: none;}

.hero-dots {
    position: static !important;
    width: auto !important;
    display: flex;
    gap: 8px;
}

.swiper-button-prev {
    transform: rotate(180deg);
}

.hero-dots .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.4;
    margin: 0 !important;
    width: 16px;
    height: 6px;
    border-radius: 100px;
}

.hero-dots .swiper-pagination-bullet-active {
    opacity: 1;
    background: #72CAC9 !important; /* Active dot is Lime */
}

/* Responsive */
@media (max-width: 992px) {
    .hero-main-title { font-size: 38px; }
    .hero-swiper-wrapper { height: 500px; }
    .hero-actions { flex-direction: column; width: fit-content; }
}

.home-news-section {
    padding: 80px 0;
    background-color: #E8F3FF; /* Subtle contrast for home sections */
    width: 1920px;
    max-width: 100%;
    margin: 0 auto;
}

.home-news-title{
    font-weight: 700;
    font-size: 42px;
    line-height: 46px;
    margin-bottom: 40px;
}

.home-news-title strong{
    font-weight: 800;
}

.container-1705 {
    max-width: 1705px;
    margin: 0 auto;
    padding: 0 20px;
    color: #373536;
}


.projects-gallery-section {
    max-width: 1920px;
    margin: 120px auto;
    padding: 0 20px;
    text-align: center;
}

.projects-container {
    display: grid;
    /* Strict 4-column lock for desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 30px;
    margin-top: 50px;
    width: 100%;
}

.projects-container .project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    min-width: 0; /* Prevents overflow breaking the 4-col grid */
}

.projects-container .card-content {
    margin: -40px auto 0 auto;
    width: 366px;
    padding: 16px 20px;
}

.project-card:hover {
    transform: translateY(-10px);
}

.projects-gallery-title{
    font-weight: 700;
    font-size: 42px;
    color: #373536;
}


@media (max-width: 1024px) {
    .projects-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .projects-container { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — HOME PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Hero + Service Box Wrapper ──────────────────────────── */
.hero-with-service {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

/* On desktop: service box is absolutely overlaid on the hero */
.hero-with-service .quick-service-box {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}

/* ── Ticker ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ticker-container {
        padding: 0 16px;
    }
    .ticker-item {
        font-size: 13px;
    }
}

/* ── Hero — Tablet ───────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-swiper-wrapper {
        height: 500px;
    }
    .hero-main-title {
        font-size: clamp(32px, 5vw, 52px);
    }
    .hero-actions {
        flex-direction: row;
        gap: 12px;
        width: fit-content;
    }
    /* Service box doesn't fit beside hero on tablet; hide it
       (it reappears as a static block below the hero on mobile) */
    .hero-with-service .quick-service-box {
        display: none;
    }
}

/* ── Hero — Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-swiper-wrapper {
        height: 340px;
    }
    .hero-main-title {
        font-size: clamp(22px, 7vw, 36px);
        margin-bottom: 10px;
        line-height: 1.2;
    }
    .hero-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .container-hero {
        padding: 0 20px 50px;
    }
    .btn-hero {
        padding: 10px 22px;
        font-size: 15px;
        height: auto;
        border-radius: 10px;
    }
    .hero-controls-container {
        bottom: 12px;
        right: 12px;
        padding: 6px 12px;
        gap: 10px;
    }
    /* Show service box as a normal block directly below the hero */
    .hero-with-service .quick-service-box {
        display: block;
        position: static;
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
        min-height: auto;
    }
}


/* ── Projects Gallery ────────────────────────────────────── */
@media (max-width: 768px) {
    .projects-gallery-section {
        margin: 60px auto;
        padding: 0 16px;
    }
    .projects-gallery-title {
        font-size: clamp(22px, 6vw, 40px);
    }
    .projects-container {
        gap: 40px 0;
        margin-top: 30px;
    }
    /* Fix card-content overflow on small screens */
    .projects-container .card-content {
        width: calc(100% - 32px);
        margin: -36px auto 0;
        padding: 14px;
    }
    .card-title {
        font-size: 17px;
    }
    .card-excerpt {
        font-size: 15px;
        line-height: 1.5;
    }
    .card-image-wrapper {
        height: 230px;
    }
}