/* ============================================================
   ALHUMAIDAN LEGAL - Main Stylesheet
   ============================================================
   Color Palette:
   --primary:   #2B6CA3   (main blue)
   --primary-dark: #1F5180
   --light-blue:#A5BDDC   (accent blue)
   --secondary:#54595F   (gray text)
   --text:     #797979   (body text)
   --accent:   #F7F7F7   (light bg)
   --dark:     #262626   (heading dark)
   ============================================================ */

:root {
    --primary: #2B6CA3;
    --primary-dark: #1F5180;
    --light-blue: #A5BDDC;
    --secondary: #54595F;
    --text: #797979;
    --accent: #F7F7F7;
    --dark: #262626;
    --white: #ffffff;
    --border: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Marcellus', Georgia, serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1em; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-pre-title {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title-wrap h2 {
    color: var(--dark);
    margin-bottom: 18px;
}

.section-title-wrap p {
    color: var(--text);
    font-size: 1.05rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid var(--primary);
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}
.btn i { font-size: 0.9em; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    gap: 30px;
}
.site-logo img {
    max-height: 83px;
    height: auto;
    width: auto;
}

@media (max-width: 768px) {
    .site-logo img {
        max-height: 56px;
    }
}
.site-nav ul {
    display: flex;
    gap: 35px;
}
.site-nav ul a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.site-nav ul a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.site-nav ul a:hover,
.site-nav ul a.active {
    color: var(--primary);
}
.site-nav ul a:hover::after,
.site-nav ul a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}
.lang-switch a:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.nav-close {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.5rem;
    color: var(--dark);
    background: none;
    border: none;
}

.nav-lang-mobile { display: none; }
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.nav-overlay.active { display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url('../images/kuwait.webp') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
    padding: 80px 0;
}
.hero-content {
    /* max-width: 700px; */
    position: relative;
    z-index: 2;
}
.hero-subtitle {
    color: var(--light-blue);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    display: inline-block;
}
.hero-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1.08;
    margin-bottom: 28px;
    font-weight: 400;
}
.hero-title span { display: block; }
.hero-title span:nth-child(2) { color: var(--white); margin-top: 0.25em; }
.hero-title .text-outline {
    color: transparent;
    -webkit-text-stroke: 1px #ffffff;
    text-stroke: 1px #ffffff;
    display: inline-block;
    font-family: var(--font-heading);
}
.hero-description {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 550px;
    color: rgba(255,255,255,0.9);
}

/* ============================================================
   HOME PAGE — TRANSPARENT HEADER OVER HERO
   ============================================================ */
body.home-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
body.home-page .site-header.scrolled {
    background: rgba(8,15,32,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    border-bottom-color: transparent;
}
/* Nav links stay light over the hero */
body.home-page .site-nav ul a { color: rgba(255,255,255,0.92); }
body.home-page .site-nav ul a:hover,
body.home-page .site-nav ul a.active { color: var(--light-blue); }
body.home-page .site-nav ul a::after { background: var(--light-blue); }

/* Language switcher styled for dark background */
body.home-page .lang-switch a {
    color: var(--white);
    border-color: rgba(255,255,255,0.45);
}
body.home-page .lang-switch a:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* Hamburger lines white on dark */
body.home-page .nav-toggle span { background: var(--white); }

/* Hero starts at top of page (header is fixed/overlaid) */
body.home-page .hero {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 90px;
}

/* Hero CTA button — outlined transparent style to match the reference */
body.home-page .hero .btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
    color: var(--white) !important;
    padding: 14px 38px;
}
body.home-page .hero .btn:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    padding: 100px 0;
    background: var(--accent);
    position: relative;
    overflow: hidden;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr;
    gap: 60px;
    align-items: center;
}

/* Left column: building image with blue card overlapping */
.about-image {
    position: relative;
    min-height: 540px;
    border-radius: 0 0 30px 0;
    overflow: hidden;
    background: url('../images/court.webp') left center/cover no-repeat;
    /* box-shadow: var(--shadow-lg); */
}
[dir="rtl"] .about-image {
    border-radius: 0 0 0 80px;
    background-position: right center;
}

/* Floating blue card on top of the building image */
.about-image-content {
    position: absolute;
    top: 60%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
	height: 120%;
    background: url('../images/about_bg.webp') left center/cover no-repeat;
    border-radius: 30px 0;
    padding: 45px 38px;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 2;
}
[dir="rtl"] .about-image-content {
    right: auto;
    left: 0;
    border-radius: 0 16px 16px 0;
}

.about-image-icon {
    width: 100px;
    height: 100px;
    /* background: var(--white); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 0px;
}
.about-image-icon img { width: 100%; height: 100%; object-fit: contain; }
.about-small-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--light-blue);
    margin-bottom: 4px;
}
.about-big-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 22px;
    line-height: 1.1;
}
.about-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    border-left: 3px solid var(--light-blue);
    padding-left: 18px;
    margin: 0;
}
[dir="rtl"] .about-quote {
    border-left: none;
    border-right: 3px solid var(--light-blue);
    padding-left: 0;
    padding-right: 18px;
}

.about-content h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}
.about-content h2 {
    color: var(--dark);
    margin-bottom: 25px;
}
.about-content p {
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.85;
}
.about-philosophy {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    margin: 30px 0 20px;
    padding: 18px 22px;
    background: var(--white);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}
[dir="rtl"] .about-philosophy {
    border-left: none;
    border-right: 4px solid var(--primary);
}
.philosophy-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-top: 20px;
}
.philosophy-list-grid li {
    position: relative;
    padding-left: 28px;
    color: var(--secondary);
    font-weight: 500;
    line-height: 1.5;
}
.philosophy-list-grid li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.85rem;
    background: rgba(43,108,163,0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
[dir="rtl"] .philosophy-list-grid li {
    padding-left: 0;
    padding-right: 28px;
}
[dir="rtl"] .philosophy-list-grid li::before {
    left: auto;
    right: 0;
}

/* ============================================================
   SERVICES SECTION (HOMEPAGE GRID)
   ============================================================ */
.services-section {
    padding: 100px 0;
    background: var(--white);
}
.services-intro {
    max-width: 950px;
    margin: 0 auto 60px;
    text-align: center;
}
.services-intro p {
    color: var(--text);
    line-height: 1.85;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
    color: var(--white);
}
.service-card:hover .service-icon {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
.service-card:hover .service-link {
    color: var(--white);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 1.7rem;
    transition: var(--transition);
}
.service-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.35rem;
    transition: var(--transition);
}
.service-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 18px;
    transition: var(--transition);
}
.service-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

/* ============================================================
   CTA BANNER (homepage - full-bleed with bg image)
   ============================================================ */
.cta-banner {
    position: relative;
    padding: 110px 0;
    background: url('../images/Rectangle-9-copy-1.jpg') center center/cover no-repeat;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.cta-banner-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, rgba(31,81,128,0.92), rgba(43,108,163,0.85)); */
    z-index: 1;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner-content {
    max-width: 900px;
    margin: 0 auto;
}
.cta-banner-content h2 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.25;
    margin-bottom: 36px;
    font-weight: 400;
}
.btn-cta {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.6);
    color: var(--white) !important;
    padding: 14px 36px;
    backdrop-filter: blur(4px);
}
.btn-cta:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}

/* ============================================================
   PAGE TITLE BANNER (inner pages)
   ============================================================ */
.page-title-banner {
    position: relative;
    padding: 110px 0 90px;
    background: linear-gradient(rgb(0 84 132 / 53%), rgb(167 189 221 / 59%)), url(../images/page_banner.webp) top/cover no-repeat;
    color: var(--white);
    text-align: center;
}
.page-title-banner h1 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.breadcrumb a { color: var(--light-blue); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.5); }

/* ============================================================
   SERVICES PAGE - DETAILED
   ============================================================ */
.services-detail-section {
    padding: 90px 0;
    background: var(--white);
}
.services-page-intro {
    max-width: 950px;
    margin: 0 auto 60px;
    text-align: center;
}
.services-page-intro h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: var(--font-heading);
}
.services-page-intro p {
    color: var(--text);
    line-height: 1.85;
    font-size: 1.02rem;
}
/* ============================================================
   SERVICES PAGE - ACCORDION
   ============================================================ */
.services-accordion {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.accordion-item {
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.accordion-item.is-open {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
}
[dir="rtl"] .accordion-header { text-align: right; }
.accordion-header:hover { background: var(--primary-dark); }

.accordion-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.accordion-title { flex: 1; }

/* Open state — keep header same color (matches the reference look) */
.accordion-item.is-open .accordion-header { background: var(--primary); }

.accordion-body {
    background: var(--white);
    border-top: 1px solid var(--border);
}
.accordion-body[hidden] { display: none; }
.accordion-body-inner {
    padding: 30px 36px 36px;
}
[dir="rtl"] .accordion-body-inner { padding: 30px 36px 36px; }

.accordion-desc {
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 20px;
}

/* Key services list — checkmarks */
.service-key-list h4 {
    color: var(--primary);
    margin: 18px 0 14px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
}
.service-key-list ul {
    margin-bottom: 22px;
    list-style: none;
    padding: 0;
}
.service-key-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 0.97rem;
    line-height: 1.6;
}
.service-key-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary);
    font-size: 0.95rem;
}
[dir="rtl"] .service-key-list li {
    padding-left: 0;
    padding-right: 30px;
}
[dir="rtl"] .service-key-list li::before {
    left: auto;
    right: 0;
}

/* Who we serve callout */
.service-who-serve {
    margin-top: 22px;
    padding: 14px 0 0;
    color: var(--secondary);
    font-size: 0.97rem;
    line-height: 1.6;
}
.service-who-serve strong {
    color: var(--dark);
    font-weight: 700;
    margin-right: 6px;
}
[dir="rtl"] .service-who-serve strong {
    margin-right: 0;
    margin-left: 6px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
    padding: 90px 0;
    background: var(--white);
}
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.contact-intro h4 {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: stretch;
}
.contact-info-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.contact-info-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/about_bg.webp') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}
.contact-info-box > * { position: relative; z-index: 1; }

.contact-info-box .pre-title {
    color: var(--light-blue);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    display: block;
}
.contact-info-box h2 {
    color: var(--white);
    margin-bottom: 35px;
}
.contact-info-block {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.contact-info-block h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-info-block h4 i {
    color: var(--light-blue);
    font-size: 1.1rem;
}
.contact-info-block p,
.contact-info-block a {
    color: rgba(255,255,255,0.9);
    font-size: 0.97rem;
    line-height: 1.7;
    text-decoration: none;
}
.contact-info-block a:hover { color: var(--light-blue); }
.contact-info-block strong { color: var(--white); }

/* Contact form */
.contact-form-wrap {
    background: var(--accent);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.contact-form-wrap .pre-title {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.contact-form-wrap h2 {
    color: var(--dark);
    margin-bottom: 12px;
}
.contact-form-wrap > p {
    color: var(--text);
    margin-bottom: 30px;
    font-size: 0.97rem;
    line-height: 1.7;
}

/* Form fields */
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.92rem;
}
.form-group label .required { color: #e74c3c; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition);
}
.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43,108,163,0.1);
}

.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error {
    border-color: #e74c3c;
}
.form-error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 16px;
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.92rem;
	text-align:center !important;
	width: 30%;
}
.radio-item:hover { border-color: var(--primary); }
.radio-item input[type="radio"] { accent-color: var(--primary); cursor: pointer; }
.radio-item input[type="radio"]:checked + span { color: var(--primary); font-weight: 500; }
.radio-item:has(input:checked) {
    background: rgba(43,108,163,0.08);
    border-color: var(--primary);
}

.form-footer-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(43,108,163,0.06);
    border-left: 3px solid var(--primary);
    color: var(--secondary);
    font-size: 0.85rem;
    border-radius: 4px;
    font-style: italic;
}
[dir="rtl"] .form-footer-note {
    border-left: none;
    border-right: 3px solid var(--primary);
}

/* AJAX response */
.form-response {
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 18px;
    font-size: 0.93rem;
    display: none;
}
.form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Honeypot - hidden from users, visible to bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer-bg-decoration {
    position: absolute;
    inset: 0;
    background: url('../images/about_bg.webp') right center/auto 100% no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1.5fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-logo-col { padding-right: 20px; }
.footer-logo {
    background: var(--white);
    padding: 5px;
    border-radius: 8px;
    height: auto;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 22px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--light-blue);
}
[dir="rtl"] .footer-col h4::after { left: auto; right: 0; }
.footer-col p {
    color: rgba(255,255,255,0.75);
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 10px;
}
.footer-col a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--light-blue); }
.footer-col a i {
    color: var(--light-blue);
    margin-right: 8px;
    width: 16px;
}
[dir="rtl"] .footer-col a i { margin-right: 0; margin-left: 8px; }
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 16px;
}
[dir="rtl"] .footer-links li { padding-left: 0; padding-right: 16px; }
.footer-links li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--light-blue);
    font-size: 0.8rem;
}
[dir="rtl"] .footer-links li::before {
    left: auto;
    right: 0;
    content: '\f104';
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin: 0;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow-md);
    font-size: 1rem;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
[dir="rtl"] #back-to-top { right: auto; left: 30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .about-grid { grid-template-columns: 1fr; gap: 0; }
    .about-image { min-height: 460px; max-width: 600px; margin: 0 auto 40px; border-radius: 0 0 60px 0; }
    [dir="rtl"] .about-image { border-radius: 0 0 0 60px; }
    .about-image-content { width: 78%; padding: 35px 28px; }
    .contact-grid { grid-template-columns: 1fr; gap: 35px; }
    .cta-banner { padding: 80px 0; }
}

@media (max-width: 768px) {
    .section, .about-section, .services-section, .services-detail-section, .contact-section { padding: 60px 0; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 70px 30px 30px;
        z-index: 100;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    [dir="rtl"] .site-nav {
        right: auto;
        left: -100%;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    .site-nav.active { right: 0; }
    [dir="rtl"] .site-nav.active { right: auto; left: 0; }
    .nav-close { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul li { border-bottom: 1px solid var(--border); }
    .site-nav ul li a { display: block; padding: 14px 0; }
    .nav-lang-mobile {
        display: block;
        /* margin-top: 20px; */
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }
    .nav-lang-mobile a {
        display: inline-block;
        padding: 10px 20px;
        background: var(--primary);
        color: var(--white);
        border-radius: 30px;
    }
    .lang-switch { display: none; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    [dir="rtl"] .footer-col h4::after { left: 50%; right: auto; transform: translateX(-50%); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .philosophy-list-grid { grid-template-columns: 1fr; }
    .hero { min-height: 70vh; padding: 60px 0; }
    body.home-page .hero {
        min-height: 88vh;
        padding-top: 130px;
        padding-bottom: 60px;
        background-position: -500px;
    }
    body.home-page .site-header { background: rgba(8,15,32,0.85); }
    .contact-info-box, .contact-form-wrap { padding: 35px 10px; }
    .page-title-banner { padding: 70px 0 60px; }

    .about-image { min-height: 380px; }
    .about-image-content { width: 86%; padding: 28px 22px; }
    .about-big-title { font-size: 1.9rem; }

    .accordion-header { padding: 14px 16px; font-size: 0.97rem; gap: 12px; }
    .accordion-body-inner { padding: 22px 20px 26px; }

    .cta-banner { padding: 70px 0; }
    .cta-banner-content h2 { font-size: 1.7rem; margin-bottom: 26px; }

.about-image{
	display: none;
}

/* Mobile: drawer has a WHITE background, so undo the home-page white-link override */
body.home-page .site-nav ul a {
    color: var(--dark);
}
body.home-page .site-nav ul a:hover,
body.home-page .site-nav ul a.active {
    color: var(--primary);
}
body.home-page .site-nav ul a::after {
    background: var(--primary);
}

.radio-group {
    gap: 10px;
}
.radio-item {
	padding: 4px;
}

.about_container {
    padding: 0 15px !important;
}

.form-group label {
    font-size: 13px;
}


}

.eng_icon{
	float: left !important;
    margin-top: 5px !important;
}

.about_container {
	width: 100% !important;
    padding: 0;
    margin: 0;
}

   JOIN US (CAREER) PAGE
   ============================================================ */

/* Banner: change breadcrumb separator to a blue dot */
.breadcrumb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-blue);
    margin: 0 8px;
    vertical-align: middle;
}

.join-us-section {
    padding: 50px 0;
    background: var(--white);
}
.join-us-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: stretch;
}

/* ---------- LEFT column — solid blue info box ---------- */
.join-us-left {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 55px 45px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.join-us-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/about_bg.webp') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}
.join-us-left > * { position: relative; z-index: 1; }

/* Pretitle (e.g. "LAWYER FORMS") */
.join-us-left .pre-title {
    color: var(--light-blue);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

/* Big title */
.join-us-left-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1.2;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Description text */
.join-us-left-text {
    color: rgba(255,255,255,0.92);
    line-height: 1.85;
    font-size: 1rem;
}
.join-us-left-text p { margin-bottom: 16px; }
.join-us-left-text p:last-child { margin-bottom: 0; }

/* Optional info-block style (for later — icon + heading + content) */
.join-us-left-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.join-us-left-block:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.join-us-left-block h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.join-us-left-block h4 i { color: var(--light-blue); font-size: 1.05rem; }
.join-us-left-block p { color: rgba(255,255,255,0.9); line-height: 1.7; margin: 0; }

/* ---------- RIGHT column — light gray form panel ---------- */
.join-us-right {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 55px 45px;
}

/* Pretitle (e.g. "DROP YOUR RESUME") */
.join-us-right .pre-title {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* Form heading */
.join-us-form-title {
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.25;
    margin-bottom: 14px;
    font-weight: 400;
}
.join-us-form-subtitle {
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Section heading inside the form (Personal Information / etc) */
.join-form-section-title {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 28px 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.join-form-section-title:first-of-type { margin-top: 8px; }

/* Form rows / groups */
.join-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.join-form-row.join-form-row-inline { grid-template-columns: 1fr; }
.join-form-group { margin-bottom: 20px; position: relative; }
.join-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.92rem;
}
.join-form-group label .required { color: #e74c3c; margin-left: 2px; }
[dir="rtl"] .join-form-group label .required { margin-left: 0; margin-right: 2px; }

/* Boxed white inputs (matching contact form) */
.join-form-group input[type="text"],
.join-form-group input[type="email"],
.join-form-group input[type="tel"],
.join-form-group input[type="date"],
.join-form-group input[type="number"],
.join-form-group select,
.join-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition);
}
.join-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
[dir="rtl"] .join-form-group select {
    background-position: left 14px center;
    padding-right: 16px;
    padding-left: 38px;
}
.join-form-group textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}
.join-form-group input:focus,
.join-form-group select:focus,
.join-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43,108,163,0.1);
}
.join-form-group input.has-error,
.join-form-group select.has-error,
.join-form-group textarea.has-error {
    border-color: #e74c3c;
}

/* File inputs — dashed border style */
.join-form-group input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px dashed var(--border);
    background: var(--white);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}
.join-form-group input[type="file"]:hover { border-color: var(--primary); }
.join-form-group input[type="file"]::-webkit-file-upload-button,
.join-form-group input[type="file"]::file-selector-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    margin-right: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.join-form-group input[type="file"]::-webkit-file-upload-button:hover,
.join-form-group input[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}
[dir="rtl"] .join-form-group input[type="file"]::-webkit-file-upload-button,
[dir="rtl"] .join-form-group input[type="file"]::file-selector-button {
    margin-right: 0;
    margin-left: 12px;
}

/* Inline error message */
.join-form-group .form-error-msg {
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 4px;
    min-height: 14px;
}

/* Submit button — match contact form button (primary pill) */
.join-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}
.join-form-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.join-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alternative email line */
.join-form-alt {
    margin-top: 26px;
    padding: 14px 18px;
    background: rgba(43,108,163,0.06);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.6;
}
[dir="rtl"] .join-form-alt {
    border-left: none;
    border-right: 3px solid var(--primary);
}
.join-form-alt strong { color: var(--secondary); margin-right: 4px; }
[dir="rtl"] .join-form-alt strong { margin-right: 0; margin-left: 4px; }
.join-form-alt a { color: var(--primary); font-weight: 500; }
.join-form-alt a:hover { color: var(--primary-dark); text-decoration: underline; }

@media (max-width: 768px) {

.join-us-grid {
    display: contents;
}

.join-us-left {
    padding: 10px;
	margin-bottom: 20px;
}

.join-us-right {
    padding: 10px;
}

}