/* =========================================================
   PAGE BREADCRUMB / HERO BANNER (Unified for all inner pages)
   Senet - Shared Styles for Breadcrumb/Hero
   ========================================================= */

.hero-sourcing,
.page-breadcrumb-hero {
    position: relative;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* padding: 100px 0 80px 0; */
    /* min-height: 480px; */
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-sourcing .hero-overlay,
.page-breadcrumb-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 30%,
        rgba(255, 255, 255, 0.85) 34%,
        rgba(255, 255, 255, 0.6) 39%,
        rgba(255, 255, 255, 0.35) 44%,
        rgba(255, 255, 255, 0.15) 49%,
        rgba(255, 255, 255, 0.05) 54%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-sourcing .dot-map,
.page-breadcrumb-hero .dot-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-sourcing .container,
.page-breadcrumb-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: flex-start;
}

.hero-sourcing .hero-content,
.hero-sourcing .hero-copy,
.page-breadcrumb-hero .hero-content,
.page-breadcrumb-hero .hero-copy {
    max-width: 540px;
    width: 100%;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.hero-sourcing .hero-eyebrow,
.page-breadcrumb-hero .hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b8860b;
    margin-bottom: 12px;
    display: block;
    text-align: left !important;
}

.hero-sourcing h1,
.page-breadcrumb-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a2530;
    margin-bottom: 15px;
    text-align: left !important;
}

.hero-sourcing h1 span,
.page-breadcrumb-hero h1 span {
    color: #c68a27;
}

.hero-sourcing .hero-line,
.page-breadcrumb-hero .hero-line {
    width: 50px;
    height: 3px;
    background-color: #c68a27;
    margin: 0 0 20px 0;
    border-radius: 2px;
}

.hero-sourcing .lead,
.page-breadcrumb-hero .lead {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 25px;
    text-align: left !important;
    max-width: 380px;
}

.hero-sourcing .hero-cta,
.page-breadcrumb-hero .hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
}

.hero-sourcing .btn-gold-gradient,
.page-breadcrumb-hero .btn-gold-gradient,
.hero-sourcing .btn-gold,
.page-breadcrumb-hero .btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(170, 119, 28, 0.3);
    transition: all 0.3s ease;
}

.hero-sourcing .btn-gold-gradient:hover,
.page-breadcrumb-hero .btn-gold-gradient:hover,
.hero-sourcing .btn-gold:hover,
.page-breadcrumb-hero .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 119, 28, 0.4);
    color: #ffffff !important;
}

.hero-sourcing .btn-gold-gradient svg,
.page-breadcrumb-hero .btn-gold-gradient svg,
.hero-sourcing .btn-gold svg,
.page-breadcrumb-hero .btn-gold svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-sourcing .btn-gold-gradient:hover svg,
.page-breadcrumb-hero .btn-gold-gradient:hover svg,
.hero-sourcing .btn-gold:hover svg,
.page-breadcrumb-hero .btn-gold:hover svg {
    transform: translateX(4px);
}

/* =========================================================
   RTL ARABIC FIX: "الكلام مايروحش يمين"
   In breadcrumb only, keep alignment strictly on the LEFT
   ========================================================= */

[dir="rtl"] .hero-sourcing,
[dir="rtl"] .page-breadcrumb-hero,
html[dir="rtl"] .hero-sourcing,
html[dir="rtl"] .page-breadcrumb-hero {
    direction: ltr !important;
}

[dir="rtl"] .hero-sourcing .container,
[dir="rtl"] .page-breadcrumb-hero .container {
    direction: ltr !important;
    display: flex !important;
    justify-content: flex-start !important;
}

[dir="rtl"] .hero-sourcing .hero-content,
[dir="rtl"] .hero-sourcing .hero-copy,
[dir="rtl"] .page-breadcrumb-hero .hero-content,
[dir="rtl"] .page-breadcrumb-hero .hero-copy {
    direction: ltr !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .hero-sourcing .hero-content *,
[dir="rtl"] .hero-sourcing .hero-copy *,
[dir="rtl"] .page-breadcrumb-hero .hero-content *,
[dir="rtl"] .page-breadcrumb-hero .hero-copy * {
    text-align: left !important;
}

[dir="rtl"] .hero-sourcing .hero-line,
[dir="rtl"] .page-breadcrumb-hero .hero-line {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .hero-sourcing .hero-cta,
[dir="rtl"] .page-breadcrumb-hero .hero-cta {
    justify-content: flex-start !important;
}

[dir="rtl"] .hero-sourcing .hero-overlay,
[dir="rtl"] .page-breadcrumb-hero .hero-overlay {
    left: 0 !important;
    right: auto !important;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.86) 40%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
}

/* =========================================================
   MOBILE RESPONSIVENESS (<= 768px)
   Switches background to --bg-mobile
   ========================================================= */

@media (max-width: 768px) {
    .hero-sourcing,
    .page-breadcrumb-hero {
        background-image: var(--bg-mobile, var(--bg-desktop)) !important;
        background-position: center top !important;
        background-size: cover !important;
        min-height: 480px !important;
        padding: 60px 0 !important;
        align-items: flex-start !important;
    }

    .hero-sourcing .hero-overlay,
    .page-breadcrumb-hero .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 255, 255, 0.8) 45%,
            rgba(255, 255, 255, 0.25) 100%
        ) !important;
    }

    .hero-sourcing .hero-content,
    .hero-sourcing .hero-copy,
    .page-breadcrumb-hero .hero-content,
    .page-breadcrumb-hero .hero-copy {
        max-width: 100% !important;
    }

    .hero-sourcing h1,
    .page-breadcrumb-hero h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-sourcing,
    .page-breadcrumb-hero {
        min-height: 420px !important;
        padding: 50px 0 40px 0 !important;
    }

    .hero-sourcing h1,
    .page-breadcrumb-hero h1 {
        font-size: 1.85rem !important;
    }
}
