/* Hero section*/

.hero {
    position: relative;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 350px;
    width: 100%;
    
}


.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


.hero > iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover trick — equivalent to object-fit: cover for iframes */
    width: 100vw;
    height: 56.25vw;       /* 9/16 = 0.5625 — keeps 16:9 based on width */
    min-height: 100%;
    min-width: 177.78vh;   /* 16/9 = 1.7778 — keeps 16:9 based on height */
    transform: translate(-50%, -50%);
    border: none;
    z-index: 1;            /* sit above the fallback image */
}



.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content{
    transform: translateY(33%);
    z-index: 2;
    text-align: left;
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    align-items: flex-start;
    margin-bottom: 1em;
    margin-left: clamp(1rem, 5vw, 3rem);
    max-width: 70%;
}

.hero-content h1,
.hero-content h3{
    font-size: 1rem;

}

.hero-content h1{
    margin: 0;
    color: var(--brand-white);
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 6px 20px rgba(0,0,0,0.6);
    border-left: 4px solid #fff;
    padding: .5em .5em 0;
}

.arabic-hero-title {
  color: white;
  align-self: center;
  margin-top:0;

}

.hero-content span {
    display: block;
    font-style: italic;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: 0.5px; 
    margin-top: .5em;   
}

.hero-btns-wrapper {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}


@media (min-width: 768px) {
    .hero-content {
        max-width: 85%;
    }
    
    .hero-content h1 {
        font-size: clamp(1.7rem, 4vw, 3rem);
    }
    .hero-content h3{
       font-size: clamp(1.2rem, 3vw, 1.5rem);

    }
}



.testimonials-section {
    padding: 3em 2em;
    background: linear-gradient(160deg, #faf7fc 0%, #f0e8f5 100%);
    border-radius: var(--border-radius-lg);
}



/* Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}


.testimonials-header p {
    color: #888;
    font-size: 1rem;
}

/* ── Masonry via CSS columns ── */
.masonry-grid {
    columns: 1;
    column-gap: 1.25rem;
}

@media (min-width: 600px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 960px) {
    .masonry-grid {
        columns: 3;
    }
}

/* Card */
.testimonial-card {
    break-inside: avoid;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(92, 42, 115, 0.07);
    border: 1px solid #ede6f3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block; /* required for correct masonry flow */
    width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(92, 42, 115, 0.14);
}

/* Decorative quote mark */
.testimonial-quote-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--brand-purple, #5c2a73);
    opacity: 0.2;
    font-family: Georgia, serif;
    margin-bottom: -0.5rem;
}

/* Quote text */
.testimonial-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.75;
    margin: 0.75rem 0 1rem;
}

/* Stars */
.testimonial-rating {
    font-size: 0.85rem;
    color: #f5a623;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Author row */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.875rem;
    color: #1a1a1a;
}

.testimonial-author span {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.1rem;
}

/* Avatar circle with initials */
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--avatar-color, #5c2a73);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   Vacancies — Banner / Strip Layout (Option D)
══════════════════════════════════════ */


.vacancies-wrapper {
    margin: 0 auto;
    max-width: 900px;
}

/* Header */
.vacancies-header {
    text-align: center;
    margin-bottom: 2em;
}



/* Board */
.vacancies-board {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e0ed;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(92, 42, 115, 0.08);
}

/* Row */
.vacancy-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #f0eaf5;
    transition: background-color 0.2s ease;
}

.vacancy-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vacancy-row:last-child {
    border-bottom: none;
}

.vacancy-row:hover {
    background-color: #faf7fc;
}

/* Urgent variant — subtle left accent */
.vacancy-row--urgent {
    border-left: 3px solid #e53935;
    padding-left: calc(1.75rem - 3px);
}

/* Description */
.vacancy-row-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
    padding-left: 0.1rem;
}

/* Left: title + department */
.vacancy-row-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 160px;
}

.vacancy-row-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.vacancy-row-dept {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.vacancy-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-type     { background-color: #ede6f3; color: var(--brand-purple, #5c2a73); }
.tag-remote   { background-color: #e0f2f1; color: #00695c; }
.tag-location { background-color: #fff3e0; color: #e65100; }
.tag-flexible { background-color: #e8eaf6; color: #3949ab; }
.tag-urgent   { background-color: #ffebee; color: #c62828; }

/* Right: Apply button */
.vacancy-row-btn {
    white-space: nowrap;
    background-color: var(--brand-purple, #5c2a73);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55em 1.4em;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.vacancy-row-btn:hover {
    background-color: #4a2160;
    transform: translateX(2px);
}

/* ── Mobile: stack title+tags, button full width ── */
@media (max-width: 599px) {
    .vacancy-row {
        padding: 1rem 1.25rem;
    }

    .vacancy-row-btn {
        width: 100%;
        text-align: center;
    }

    .vacancy-row-desc {
        font-size: 0.8rem;
    }
}


