/* ============================================================
   HERO — FORCE LEFT ALIGNMENT (override any parent centering)
   ============================================================ */

.hero.hero-has-slides {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    min-height: 88vh;
    padding: 0 !important;
}

/* Kill any inherited centering on the content block */
.hero.hero-has-slides .hero-content {
    margin: 0 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    max-width: 640px;
    width: 100%;
    padding: 0 24px 0 clamp(32px, 7vw, 120px) !important;
    text-align: left !important;
    align-items: flex-start !important;
    position: relative;
    z-index: 2;
    display: block;
}

/* Headline */
.hero.hero-has-slides .hero-content h1,
.hero.hero-has-slides .hero-content #heroTitle {
    text-align: left !important;
    margin: 0 0 18px 0 !important;
    max-width: 620px;
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(11, 59, 77, 0.5);
}

/* Subtitle / Arabic line */
.hero.hero-has-slides .hero-content p,
.hero.hero-has-slides .hero-content #heroSubtitle {
    text-align: left !important;
    margin: 0 0 28px 0 !important;
    max-width: 520px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(11, 59, 77, 0.4);
}

/* Buttons row — left aligned */
.hero.hero-has-slides .hero-content .hero-buttons,
.hero.hero-has-slides .hero-content #heroButtons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none;
}

/* Ensure buttons don't stretch or center themselves */
.hero.hero-has-slides .hero-content .hero-buttons .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 13px 26px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.16,1,.3,1),
                box-shadow .25s ease,
                background .25s ease;
}

/* Gradient: strong on the LEFT so text reads, fades to the right */
.hero.hero-has-slides::before {
    background: linear-gradient(
        90deg,
        rgba(11, 59, 77, 0.88) 0%,
        rgba(11, 59, 77, 0.6) 35%,
        rgba(11, 59, 77, 0.25) 65%,
        rgba(11, 59, 77, 0.05) 100%
    ) !important;
    z-index: 1;
    pointer-events: none;
}

/* Dots — move to bottom-left, aligned with text */
.hero.hero-has-slides .hero-dots {
    position: absolute;
    left: clamp(32px, 7vw, 120px);
    bottom: 40px;
    transform: none !important;
    justify-content: flex-start;
    z-index: 3;
}

/* ------------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .hero.hero-has-slides { min-height: 78vh; }

    .hero.hero-has-slides .hero-content {
        padding: 0 22px !important;
        max-width: 100%;
    }

    .hero.hero-has-slides .hero-content h1,
    .hero.hero-has-slides .hero-content #heroTitle {
        font-size: clamp(1.7rem, 6.5vw, 2.3rem);
    }

    .hero.hero-has-slides .hero-content p,
    .hero.hero-has-slides .hero-content #heroSubtitle {
        font-size: 0.95rem;
    }

    .hero.hero-has-slides .hero-dots {
        left: 22px;
        bottom: 22px;
    }

    /* Buttons stack nicely on small screens but stay left */
    .hero.hero-has-slides .hero-content .hero-buttons {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }

    .hero.hero-has-slides .hero-content .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
