/* ============================================
   HALASEH LAW FIRM - Main Stylesheet
   Professional Law Firm Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --navy: #0d1b2a;
    --navy-light: #1b2d45;
    --navy-dark: #060f1a;
    --gold: #c9a84c;
    --gold-light: #d4b85c;
    --gold-dark: #b08d3a;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --text-dark: #1a1a1a;
    --text-body: #444444;
    --text-light: #999999;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font-ar: 'Cairo', 'Tahoma', sans-serif;
    --font-en: 'Inter', 'Playfair Display', sans-serif;
    --font-heading: 'Playfair Display', 'Cairo', serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Clips stray sideways overflow (off-canvas menu, AOS slide-in transforms)
       without turning <html> into a scroll container, which would break the
       sticky navbar. `clip` is used instead of `hidden` for exactly that reason. */
    overflow-x: clip;
}

body {
    font-family: var(--font-en);
    color: var(--text-body);
    line-height: 1.7;
    background: var(--white);
    /* No overflow-x here: any non-visible overflow on <body> makes it the
       scrollport and kills `position: sticky` on the navbar. <html> clips. */
    -webkit-text-size-adjust: 100%;
}

body.lang-ar {
    font-family: var(--font-ar);
    direction: rtl;
}

body.lang-en {
    font-family: var(--font-en);
    direction: ltr;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }

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

.section {
    padding: 80px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: inherit;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.05rem;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--navy-dark);
    color: var(--gray-400);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 24px;
}

.top-bar-info a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info a:hover {
    color: var(--gold);
}

.lang-toggle {
    color: var(--gold) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-size: 0.8rem;
}

.lang-toggle:hover {
    background: var(--gold);
    color: var(--navy) !important;
}

/* --- Navbar --- */
.navbar {
    background: var(--navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 75px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--white);
}

.navbar-logo {
    height: 58px;
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links > li > a {
    color: var(--gray-300);
    padding: 26px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--gold);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

.nav-links > li > a .fa-chevron-down {
    font-size: 0.65rem;
    transition: var(--transition);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-top: 3px solid var(--gold);
}

.lang-en .dropdown {
    right: auto;
    left: 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--gray-100);
    color: var(--gold-dark);
    padding-right: 28px;
}

.lang-en .dropdown li a:hover {
    padding-right: 20px;
    padding-left: 28px;
}

.dropdown-cat-icon {
    width: 20px;
    text-align: center;
    color: var(--gold);
    margin-left: 8px;
    font-size: 0.8rem;
}

.lang-en .dropdown-cat-icon {
    margin-left: 0;
    margin-right: 8px;
}

.dropdown-mega li a {
    display: flex !important;
    align-items: center;
    font-weight: 500;
}

.dropdown-mega li a:hover .dropdown-cat-icon {
    color: var(--navy);
}

.nav-cta-btn {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    margin-inline-start: 16px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-cta-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggler span {
    width: 28px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero.hero-images-only {
    height: 70vh;
    min-height: 400px;
    align-items: stretch;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,0.9) 0%, rgba(13,27,42,0.7) 50%, rgba(13,27,42,0.85) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.lang-ar .hero-content h1 {
    font-family: var(--font-ar);
}

.lang-en .hero-content h1 {
    font-family: var(--font-heading);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dots .dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* --- Section Headers --- */
.section-tag {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.lang-ar .section-header h2 {
    font-family: var(--font-ar);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: #fff !important;
    font-weight: 500;
}

/* --- Our Message & Vision Sections --- */
.our-message-section {
    background: var(--white);
}

.our-vision-section {
    background: var(--gray-100);
}

.confidentiality-section {
    background: var(--white);
}

.confidentiality-content {
    max-width: 900px;
    margin: 0 auto;
}

.confidentiality-content p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-body);
    text-align: justify;
    margin-bottom: 18px;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-content p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-body);
    text-align: justify;
    margin-bottom: 18px;
}

/* Inline link inside running text (global `a` inherits colour, so make it visible) */
.text-link {
    color: var(--gold-dark);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}
.text-link:hover {
    color: var(--navy);
}

/* --- Values Section --- */
.values-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.values-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,0.88);
}

.values-section .container {
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.value-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 35px 30px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.value-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    opacity: 0.35;
    min-width: 55px;
    font-family: var(--font-en);
}

.value-card:hover .value-number {
    opacity: 1;
}

.value-content h3 {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 700;
}

.value-content p {
    font-size: 0.95rem;
    color: #fff !important;
    line-height: 1.9;
    text-align: justify;
    font-weight: 500;
}

/* --- About Preview --- */
.about-preview {
    background: var(--gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gold);
    color: var(--navy);
    padding: 20px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.lang-en .experience-badge {
    left: auto;
    right: -20px;
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.about-text .section-tag {
    display: block;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.9;
    text-align: justify;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 25px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

.highlight-item i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* --- Practice Areas Grid --- */
.practice-areas-section {
    background: var(--white);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.practice-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.practice-card:hover::before {
    transform: scaleX(1);
}

.practice-card-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.practice-card:hover .practice-card-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.practice-card-icon i {
    color: var(--gold);
    font-size: 1.4rem;
    transition: var(--transition);
}

.practice-card:hover .practice-card-icon i {
    color: var(--navy);
}

.practice-card h3 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 700;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-card-link {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.practice-card-link:hover {
    color: var(--navy);
    gap: 10px;
}

/* --- Practice Areas Page (Creative Redesign) --- */
.pa-category-section {
    padding: 70px 0 50px;
    background: var(--white);
}

.pa-category-section.pa-category-alt {
    background: var(--gray-100);
}

/* Category Header */
.pa-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.pa-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pa-category-icon i {
    color: var(--gold);
    font-size: 1.5rem;
}

.pa-category-info h2 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 4px;
    font-weight: 700;
}

.pa-category-info p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
}

.pa-category-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
    min-width: 60px;
}

.lang-ar .pa-category-line {
    background: linear-gradient(to left, var(--gold), transparent);
}

/* Cards Grid */
.pa-cards-grid {
    display: grid;
    gap: 24px;
}

.pa-cards-7 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pa-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Individual Card */
.pa-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 32px 28px 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pa-category-alt .pa-card {
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.pa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lang-ar .pa-card::before {
    transform-origin: right;
}

.pa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(13, 27, 42, 0.12);
    border-color: transparent;
}

.pa-card:hover::before {
    transform: scaleX(1);
}

/* Card Number */
.pa-card-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    transition: var(--transition);
    font-family: var(--font-en);
}

.lang-ar .pa-card-num {
    right: auto;
    left: 20px;
}

.pa-card:hover .pa-card-num {
    color: rgba(201, 168, 76, 0.15);
}

/* Card Icon */
.pa-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.06), rgba(13, 27, 42, 0.02));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pa-card-icon i {
    font-size: 1.3rem;
    color: var(--navy);
    transition: var(--transition);
}

.pa-card:hover .pa-card-icon {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.pa-card:hover .pa-card-icon i {
    color: var(--gold);
}

/* Card Content */
.pa-card h3 {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}

.pa-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

/* Card Explore Link */
.pa-card-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    transition: var(--transition);
    margin-top: auto;
}

.pa-card:hover .pa-card-explore {
    color: var(--navy);
    gap: 10px;
}

/* CTA Section */
.pa-cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    text-align: center;
}

.pa-cta-content {
    max-width: 550px;
    margin: 0 auto;
}

.pa-cta-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.pa-cta-content h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.pa-cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 30px;
}

.pa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.pa-cta-btn:hover {
    background: var(--white);
    color: var(--navy);
    gap: 12px;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .pa-category-section {
        padding: 50px 0 30px;
    }

    .pa-category-header {
        margin-bottom: 30px;
    }

    .pa-category-line {
        display: none;
    }

    .pa-cards-3 {
        grid-template-columns: 1fr;
    }

    .pa-cards-7 {
        grid-template-columns: 1fr;
    }

    .pa-category-info h2 {
        font-size: 1.3rem;
    }

    .pa-card-num {
        font-size: 2.2rem;
    }

    .pa-cta-content h2 {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pa-cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pa-cards-7 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Stats / Skills Section --- */
.stats-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,0.92);
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-value {
    color: var(--gold);
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gold);
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--gold);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--navy);
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 70px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- Footer --- */
.site-footer {
    background: var(--navy-dark);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.footer-about-text {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--gold);
}

.lang-en .footer-links a::before {
    content: '\f105';
}

.footer-links a:hover {
    color: var(--gold);
    padding-inline-start: 5px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.footer-contact-list i {
    color: var(--gold);
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.footer-contact-list a {
    color: var(--gray-400);
}

.footer-contact-list a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.lang-ar .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
    color: white;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    background: var(--navy);
    color: var(--gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    font-size: 1rem;
}

.lang-ar .back-to-top {
    right: auto;
    left: 100px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

/* --- Page Banner --- */
/* --- Analytics consent banner (2026-10-05) ---
   Fixed bottom bar above the floating WhatsApp/back-to-top buttons (999/998).
   Only rendered on the live host; hidden until main.js finds no stored choice. */
.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1001;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.35);
    font-size: 0.92rem;
    line-height: 1.8;
}
.consent-banner p {
    margin: 0;
    flex: 1;
}
.consent-banner a {
    color: var(--gold);
    border-bottom: 1px solid currentColor;
}
.consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.consent-btn {
    font: inherit;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid var(--gold);
    transition: var(--transition);
}
.consent-accept {
    background: var(--gold);
    color: var(--navy);
}
.consent-accept:hover {
    background: var(--gold-dark);
}
.consent-decline {
    background: transparent;
    color: var(--gold);
}
.consent-decline:hover {
    background: rgba(201, 168, 76, 0.15);
}
@media (max-width: 600px) {
    .consent-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px 16px;
    }
    .consent-actions .consent-btn {
        flex: 1;
    }
}

.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-pillars.jpg') center/cover;
    opacity: 0.08;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-banner p {
    color: var(--gray-300);
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--gray-400);
}

/* --- About Page --- */
.about-full .about-bio {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

.about-full .bio-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-full .bio-text h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.about-full .bio-text p {
    margin-bottom: 15px;
    line-height: 1.9;
    text-align: justify;
}

/* --- About Page Creative Sections --- */
.bio-subtitle {
    color: var(--gold-dark) !important;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-subtitle i {
    color: var(--gold);
}

/* Positions Grid */
.about-positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.about-position-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.about-position-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.about-position-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.about-position-card:hover .about-position-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.about-position-icon i {
    color: var(--gold);
    font-size: 1.3rem;
}

.about-position-card:hover .about-position-icon i {
    color: var(--navy);
}

.about-position-card h3 {
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.6;
}

/* Expertise Grid */
.about-expertise-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.about-expertise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-100);
    padding: 14px 24px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.about-expertise-item:hover {
    background: var(--navy);
    border-color: var(--navy);
}

.about-expertise-item i {
    color: var(--gold);
    font-size: 1rem;
}

.about-expertise-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.about-expertise-item:hover span {
    color: var(--white);
}

/* Qualifications & Legacy */
.about-quals-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
}

.about-quals-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,0.88);
}

.about-quals-section .container {
    position: relative;
    z-index: 1;
}

.about-quals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-qual-block {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 35px 30px;
}

.about-qual-block h3 {
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(201,168,76,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-qual-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-qual-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-qual-year {
    min-width: 55px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-en);
    text-align: center;
}

.about-qual-year i {
    font-size: 1.1rem;
}

.about-qual-text {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-positions-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .about-quals-grid {
        grid-template-columns: 1fr;
    }

    .about-expertise-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .about-expertise-item {
        border-radius: var(--radius);
    }
}

/* --- Why Firm Section --- */
.why-firm-section {
    background: var(--gray-100);
}

.why-firm-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}

.why-firm-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 35px 35px 35px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-firm-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: var(--transition);
}

.lang-en .why-firm-card::before {
    right: auto;
    left: 0;
}

.why-firm-card:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.lang-en .why-firm-card:hover {
    transform: translateX(5px);
}

.why-firm-card:hover::before {
    transform: scaleY(1);
}

.why-firm-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.25;
    font-family: var(--font-en);
    line-height: 1;
    min-width: 45px;
    transition: var(--transition);
}

.why-firm-card:hover .why-firm-number {
    opacity: 1;
}

.why-firm-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.why-firm-card:hover .why-firm-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.why-firm-icon i {
    color: var(--gold);
    font-size: 1.2rem;
    transition: var(--transition);
}

.why-firm-card:hover .why-firm-icon i {
    color: var(--navy);
}

.why-firm-body h3 {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 12px;
}

.why-firm-body p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 10px;
}

.why-firm-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .why-firm-card {
        flex-wrap: wrap;
        padding: 25px 20px;
        gap: 15px;
    }

    .why-firm-number {
        font-size: 1.8rem;
    }
}

/* --- Practice Area Detail --- */
.practice-detail {
    padding: 60px 0;
}

.practice-detail-content {
    max-width: 850px;
    margin: 0 auto;
}

.practice-detail-content h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 700;
}

.practice-detail-content p {
    margin-bottom: 18px;
    line-height: 2;
    text-align: justify;
    font-size: 1rem;
}

.practice-detail-content ol,
.practice-detail-content ul {
    margin: 20px 0;
    padding-inline-start: 25px;
}

.practice-detail-content li {
    margin-bottom: 12px;
    line-height: 1.8;
    list-style-type: decimal;
    padding-inline-start: 5px;
}

.practice-detail-content ul li {
    list-style-type: disc;
}

.practice-detail-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

.sidebar-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 30px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: block;
    padding: 10px 15px;
    color: var(--text-body);
    border-radius: var(--radius);
    font-size: 0.88rem;
    transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: var(--navy);
    color: var(--gold);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--gray-100);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    background: var(--white);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Form submission result (contact + careers) */
.form-status {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    line-height: 1.7;
    border: 1px solid transparent;
}

.form-status.is-success {
    background: #ecf7ef;
    border-color: #b7dfc2;
    color: #1e6b36;
}

.form-status.is-error {
    background: #fdf0ee;
    border-color: #f0c4bc;
    color: #9b2c1c;
}

/* Honeypot field — off-screen, never shown to people */
.form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
}

.site-form button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--navy);
    color: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-card i {
    font-size: 1.4rem;
    color: var(--gold);
    margin-top: 3px;
    width: 30px;
    text-align: center;
}

.info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--gold);
}

.info-card p,
.info-card a {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.info-card a:hover {
    color: var(--gold);
}

/* --- Team Section (for future use) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-card h4 {
    padding: 15px 15px 5px;
    font-size: 1rem;
    color: var(--navy);
}

.team-card span {
    display: block;
    padding: 0 15px 15px;
    font-size: 0.85rem;
    color: var(--gold-dark);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .practice-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-bar-info {
        display: none;
    }

    .top-bar-content {
        justify-content: center;
    }

    .navbar-toggler {
        display: flex;
    }

    .navbar-logo {
        height: 46px;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 30px;
        transition: 0.4s ease;
        overflow-y: auto;
        z-index: 1001;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }

    .lang-ar .navbar-menu {
        right: auto;
        left: -100%;
    }

    .navbar-menu.active {
        right: 0;
    }

    .lang-ar .navbar-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-links > li > a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links > li > a::after {
        display: none;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius);
        border-top: none;
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .dropdown li a {
        color: var(--gray-300);
        border-bottom-color: rgba(255,255,255,0.05);
        padding: 10px 20px;
    }

    .dropdown li a:hover {
        background: rgba(255,255,255,0.05);
        color: var(--gold);
    }

    .nav-cta-btn {
        margin: 20px 0 0;
        text-align: center;
    }

    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 25px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        text-align: center;
    }

    .about-image img {
        max-width: 350px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .practice-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-full .about-bio {
        grid-template-columns: 1fr;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .practice-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        bottom: -15px;
        left: 10px;
    }

    .lang-en .experience-badge {
        right: 10px;
    }
}

/* Nav overlay for mobile */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Publications Page
   ============================================ */

.publications-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.publications-intro p {
    line-height: 2;
    text-align: justify;
    font-size: 1.05rem;
    color: var(--text-body);
}

/* --- ACAMS Certificate Section --- */
.acams-section {
    background: var(--gray-100);
}
.acams-card {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.acams-image {
    flex: 0 0 55%;
    overflow: hidden;
}
.acams-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.acams-card:hover .acams-image img {
    transform: scale(1.03);
}
.acams-info {
    flex: 1;
    padding: 30px 30px 30px 0;
}
[dir="rtl"] .acams-info {
    padding: 30px 0 30px 30px;
}
.acams-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.acams-badge i {
    font-size: 1rem;
}
.acams-info h3 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.6;
}
.acams-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.acams-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.acams-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 500;
}
.acams-detail i {
    color: var(--gold);
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .acams-card {
        flex-direction: column;
        gap: 0;
    }
    .acams-image {
        flex: none;
        width: 100%;
    }
    .acams-info {
        padding: 24px !important;
    }
    .acams-info h3 {
        font-size: 1.15rem;
    }
}

.publication-card {
    max-width: 980px;
    margin: 0 auto 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    align-items: stretch;
}

.publication-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.publication-cover {
    flex: 0 0 240px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
}
.publication-cover::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.publication-cover img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}
.publication-card:hover .publication-cover img {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), 0 6px 14px rgba(0, 0, 0, 0.22);
}

.publication-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.publication-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
}

.publication-title-wrap {
    flex: 1;
}

.publication-series {
    display: block;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.publication-title-wrap h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 8px;
}

.publication-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.publication-meta i {
    color: var(--gold);
    font-size: 0.8rem;
}

.publication-card-body {
    padding: 30px;
}

.publication-card-body p {
    line-height: 2;
    text-align: justify;
    margin-bottom: 15px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.publication-card-body p:last-child {
    margin-bottom: 0;
}

.publication-card-body .publication-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--navy);
}

.publication-cta a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.publication-cta a:hover {
    color: var(--gold-dark);
}

@media (max-width: 768px) {
    .publication-card {
        flex-direction: column;
    }

    .publication-cover {
        flex: 0 0 auto;
        padding: 30px 20px;
    }

    .publication-cover img {
        max-width: 180px;
    }

    .publication-card-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .publication-title-wrap h3 {
        font-size: 1.05rem;
    }

    .publication-card-body {
        padding: 20px;
    }

    .publication-card-body p {
        font-size: 0.9rem;
    }
}

/* ============================================
   CAREERS PAGE
   ============================================ */

/* Intro */
.careers-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.careers-intro-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.careers-intro-icon i {
    font-size: 2rem;
    color: var(--gold);
}

.careers-intro h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.careers-intro p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.9;
}

/* Why Join Section */
.careers-why-section {
    background: var(--gray-100);
}

.careers-why-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.careers-why-section .section-header h2 {
    font-size: 1.8rem;
    color: var(--navy);
    font-weight: 700;
}

.careers-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.careers-benefit-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.careers-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--gold);
}

.benefit-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

.careers-benefit-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.careers-benefit-card p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Open Positions */
.careers-positions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.careers-position-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--gold);
    transition: var(--transition);
}

.lang-en .careers-position-card {
    border-right: none;
    border-left: 4px solid var(--gold);
}

.careers-position-card:hover {
    box-shadow: var(--shadow-lg);
}

.position-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.position-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.position-icon i {
    font-size: 1.2rem;
    color: var(--gold);
}

.position-header h3 {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 2px;
}

.position-type {
    font-size: 0.82rem;
    color: var(--gold-dark);
    background: rgba(201, 168, 76, 0.12);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.careers-position-card > p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Application Form */
.careers-form-section {
    background: var(--gray-100);
}

.careers-form-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.careers-form-section .section-header h2 {
    font-size: 1.8rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 10px;
}

.careers-form-section .section-header p {
    color: var(--text-body);
}

.careers-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.careers-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.careers-form-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-body);
    background: var(--white);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 35px;
}

.lang-en .careers-form-wrapper select {
    background-position: right 15px center;
    padding-left: 15px;
    padding-right: 35px;
}

.careers-form-wrapper select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.careers-form-wrapper input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-body);
    background: var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

.careers-form-wrapper input[type="file"]:hover {
    border-color: var(--gold);
}

/* Careers Responsive */
@media (max-width: 992px) {
    .careers-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .careers-benefits-grid {
        grid-template-columns: 1fr;
    }

    .careers-form-grid {
        grid-template-columns: 1fr;
    }

    .careers-form-wrapper {
        padding: 25px;
    }

    .careers-position-card {
        padding: 20px;
    }
}

/* ============================================
   LEGAL PAGE (Privacy Policy & Terms)
   ============================================ */

/* Tab Bar */
.legal-tabs-bar {
    background: var(--navy);
    padding: 0;
    position: sticky;
    top: 60px;
    z-index: 90;
    border-bottom: 2px solid rgba(201, 168, 76, 0.2);
}

.legal-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
}

.legal-tab-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 18px 40px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

.legal-tab-btn:hover {
    color: var(--white);
}

.legal-tab-btn.active {
    color: var(--gold);
}

.legal-tab-btn.active::after {
    width: 80%;
}

.legal-tab-btn i {
    font-size: 0.95rem;
}

/* Layout */
.legal-page {
    padding-top: 50px;
    padding-bottom: 80px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.lang-ar .legal-layout {
    grid-template-columns: 1fr 260px;
}

/* Sidebar TOC */
.legal-sidebar {
    position: sticky;
    top: 140px;
}

.lang-ar .legal-sidebar {
    order: 2;
}

.lang-ar .legal-content {
    order: 1;
}

.legal-toc {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    border-top: 3px solid var(--gold);
}

.legal-toc h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.legal-toc h4 i {
    color: var(--gold);
}

.legal-toc nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-body);
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
    border-right: 3px solid transparent;
}

.lang-en .legal-toc-link {
    border-right: none;
    border-left: 3px solid transparent;
}

.legal-toc-link:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.legal-toc-link.active {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-dark);
    border-right-color: var(--gold);
    font-weight: 600;
}

.lang-en .legal-toc-link.active {
    border-left-color: var(--gold);
}

/* Intro Card */
.legal-intro-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.legal-intro-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.06);
}

.legal-intro-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.04);
}

.legal-intro-badge {
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.legal-intro-badge i {
    font-size: 1.5rem;
    color: var(--gold);
}

.legal-intro-card h2 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.legal-intro-card p {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.legal-intro-card p:last-child {
    margin-bottom: 0;
}

/* Section Cards */
.legal-section-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.legal-section-card:hover {
    box-shadow: var(--shadow-lg);
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.legal-section-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.3;
    font-family: var(--font-en);
    min-width: 45px;
    line-height: 1;
}

.legal-section-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-section-icon i {
    font-size: 1rem;
    color: var(--gold);
}

.legal-section-header h3 {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 700;
    flex: 1;
}

.legal-section-body {
    padding: 25px 30px;
}

.legal-section-body p {
    font-size: 0.93rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 12px;
}

.legal-section-body p:last-child {
    margin-bottom: 0;
}

.legal-section-body h4 {
    font-size: 1rem;
    color: var(--navy);
    margin: 20px 0 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-section-body h4 i {
    color: var(--gold);
    font-size: 0.9rem;
}

.legal-section-body ul {
    padding: 0;
    margin: 10px 0;
}

.legal-section-body ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--text-body);
}

.lang-ar .legal-section-body ul li {
    padding: 6px 20px 6px 0;
}

.legal-section-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.lang-ar .legal-section-body ul li::before {
    left: auto;
    right: 0;
}

/* Sub-cards (for numbered sub-items) */
.legal-sub-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.legal-sub-card {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.lang-en .legal-sub-card {
    border-right: none;
    border-left: 3px solid transparent;
}

.legal-sub-card:hover {
    border-right-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.lang-en .legal-sub-card:hover {
    border-left-color: var(--gold);
}

.legal-sub-num {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-en);
    margin-top: 2px;
}

.legal-sub-card h5 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 700;
}

.legal-sub-card p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 0;
}

/* Consent Card */
.legal-consent-card {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
    border: 2px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    position: relative;
}

.legal-consent-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.legal-consent-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.legal-consent-card p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 10px;
}

.legal-consent-card p:last-child {
    margin-bottom: 0;
}

/* Mobile TOC Toggle */
.legal-toc-toggle {
    display: none;
    background: var(--navy);
    color: var(--gold);
    border: none;
    width: 100%;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Legal Responsive */
@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 220px 1fr;
    }
    .lang-ar .legal-layout {
        grid-template-columns: 1fr 220px;
    }
}

@media (max-width: 768px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }
    .lang-ar .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        order: 0 !important;
    }

    .legal-content {
        order: 1 !important;
    }

    .legal-toc {
        display: none;
    }

    .legal-toc.open {
        display: block;
    }

    .legal-toc-toggle {
        display: flex;
    }

    .legal-tab-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .legal-section-header {
        padding: 18px 20px;
    }

    .legal-section-body {
        padding: 18px 20px;
    }

    .legal-section-num {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .legal-intro-card {
        padding: 25px;
    }

    .legal-intro-card h2 {
        font-size: 1.25rem;
    }

    .legal-tabs-bar {
        top: 0;
    }
}


/* ==========================================================================
   Practice Area – Rich Content Layout (.pa-*)
   Used by State Security Court and other detailed practice area pages
   ========================================================================== */

.pa-rich {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Reset list styles inherited from .practice-detail-content */
.pa-rich ul,
.pa-rich ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pa-rich ul li,
.pa-rich ol li {
    list-style-type: none;
    padding-inline-start: 0;
}

/* Hook / Intro */
.pa-hook {
    border-inline-start: 4px solid var(--gold);
    padding: 5px 25px;
}
.pa-hook-lead {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 15px !important;
    text-align: start !important;
}
.pa-hook p {
    line-height: 1.9;
    margin-bottom: 12px !important;
    text-align: start !important;
}
.pa-hook-warning {
    background: rgba(201, 168, 76, 0.08);
    border-radius: var(--radius);
    padding: 14px 18px !important;
    color: var(--navy);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px !important;
    margin-bottom: 0 !important;
}
.pa-hook-warning i {
    color: var(--gold-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Expertise Card */
.pa-expertise {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pa-expertise::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.pa-expertise-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.pa-expertise h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-weight: 700;
}
.pa-expertise p {
    color: rgba(255, 255, 255, 0.92) !important;
    line-height: 1.9;
    margin-bottom: 25px !important;
    text-align: center !important;
    font-size: 1.05rem;
}
.pa-expertise-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold-light);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}
.pa-expertise-tagline i {
    color: var(--gold);
}

/* Generic section block */
.pa-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: 0 2px 10px rgba(13, 27, 42, 0.04);
}
.pa-section-title,
.practice-detail-content h2.pa-section-title {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}
.pa-section-title i {
    color: var(--gold);
    font-size: 1.3rem;
}

/* Services list (checkmark icons) */
.pa-services-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--gray-200);
    line-height: 1.7;
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0 !important;
}
.pa-services-list li:last-child {
    border-bottom: none;
}
.pa-services-list li i {
    color: var(--gold);
    font-size: 1.15rem;
    margin-top: 4px;
    flex-shrink: 0;
}
/* Rich service item — title + description (used in money-laundering and other detailed service pages) */
.pa-services-list li > div {
    flex: 1;
}
.pa-services-list li > div > strong {
    display: block;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.pa-services-list li > div > p {
    margin: 0 !important;
    line-height: 1.75;
    color: var(--gray-600);
    text-align: start !important;
}

/* Why-choose list */
.pa-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gray-100);
    border-radius: 6px;
    margin-bottom: 10px !important;
    line-height: 1.7;
    color: var(--gray-700);
    transition: var(--transition);
}
.pa-why-list li:hover {
    background: rgba(201, 168, 76, 0.08);
    transform: translateX(0);
}
.pa-why-list li i {
    color: var(--gold);
    font-size: 0.85rem;
    margin-top: 7px;
    flex-shrink: 0;
}

/* CTA box */
.pa-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    text-align: center;
    padding: 45px 35px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.pa-cta::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--gold);
}
.pa-cta-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}
.pa-cta h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.pa-cta p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.85;
    margin-bottom: 25px !important;
    text-align: center !important;
    max-width: 600px;
    margin-inline: auto !important;
}

/* Disclaimer */
.pa-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--gray-100);
    border-inline-start: 3px solid var(--gold);
    padding: 18px 22px;
    border-radius: 6px;
    font-size: 0.92rem;
}
.pa-disclaimer > i {
    color: var(--gold);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.pa-disclaimer strong {
    display: block;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 1rem;
}
.pa-disclaimer p {
    margin: 0 !important;
    line-height: 1.7;
    color: var(--gray-700);
    text-align: start !important;
}

/* Mobile */
@media (max-width: 768px) {
    .pa-rich {
        gap: 25px;
    }
    .pa-expertise,
    .pa-section,
    .pa-cta {
        padding: 28px 20px;
    }
    .pa-hook-lead {
        font-size: 1.2rem;
    }
    .pa-section-title,
    .practice-detail-content h2.pa-section-title,
    .pa-expertise h3,
    .pa-cta h3 {
        font-size: 1.2rem;
    }
    .pa-expertise-tagline {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}


/* Expertise card – extended variant (subtitle + body) used by drug-crimes etc. */
.pa-expertise-subtitle {
    color: var(--gold-light) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    margin-top: -10px !important;
    margin-bottom: 22px !important;
    text-align: center !important;
    font-style: italic;
}
.pa-expertise-body {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid rgba(201, 168, 76, 0.22);
    text-align: start;
}
.pa-expertise-body p {
    text-align: start !important;
    margin-bottom: 14px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    line-height: 1.95;
    font-size: 1rem;
}
.pa-expertise-body p:last-child {
    margin-bottom: 0 !important;
}


/* Warning callout – used for "Before any step..." style boxes */
.pa-warning {
    background: rgba(201, 168, 76, 0.07);
    border-inline-start: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 28px 30px;
}
.pa-warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 18px;
}
.pa-warning-header i {
    color: var(--gold-dark);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.pa-warning > p {
    margin-bottom: 12px !important;
    color: var(--gray-700);
    text-align: start !important;
}
.pa-warning ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
}
.pa-warning ul li {
    padding: 8px 0 8px 22px;
    padding-inline-start: 22px;
    padding-inline-end: 0;
    position: relative;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 0 !important;
    list-style: none !important;
}
.pa-warning ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    inset-inline-start: 0;
    top: 11px;
    font-size: 0.85rem;
}
.pa-warning-closer {
    background: var(--navy);
    color: #fff;
    padding: 14px 22px;
    border-radius: 6px;
    margin-top: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.3px;
}

/* Emphasis callout – pull-quote style block (light + dark variants) */
.pa-emphasis {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, rgba(13, 27, 42, 0.04) 100%);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius);
    padding: 32px 35px;
    text-align: center;
    position: relative;
}
.pa-emphasis-title {
    font-size: 1.4rem !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.pa-emphasis-title i {
    color: var(--gold);
    font-size: 1.3rem;
}
.pa-emphasis p {
    color: var(--gray-700) !important;
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}
.pa-emphasis p:last-child {
    margin-bottom: 0 !important;
}

/* Dark variant – dramatic navy with gold */
.pa-emphasis-dark {
    background: var(--navy);
    background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-color: var(--gold);
    color: #fff;
}
.pa-emphasis-dark .pa-emphasis-title {
    color: var(--gold) !important;
}
.pa-emphasis-dark p {
    color: rgba(255, 255, 255, 0.92) !important;
}
.pa-emphasis-dark .pa-emphasis-highlight {
    color: var(--gold-light);
    font-weight: 600;
}
.pa-emphasis .pa-emphasis-highlight {
    color: var(--gold-dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pa-warning,
    .pa-emphasis {
        padding: 22px 20px;
    }
    .pa-emphasis-title {
        font-size: 1.2rem !important;
    }
}


/* ==========================================================================
   Nested Submenu (.has-subdropdown / .dropdown-sub)
   Used by Practice Areas → القانون الجنائي
   ========================================================================== */

.has-subdropdown {
    position: relative;
}

/* The nested submenu is independent of .dropdown so the outer mobile-open
   rule (.has-dropdown.open .dropdown) doesn't auto-expand it. */
.dropdown-sub {
    position: absolute;
    top: -3px;
    right: 100%;
    margin-right: 0;
    min-width: 280px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 110;
}
.lang-en .dropdown-sub {
    right: auto;
    left: 100%;
    transform: translateX(-10px);
}
.has-subdropdown:hover > .dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-sub li a {
    display: flex !important;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.dropdown-sub li:last-child a {
    border-bottom: none;
}
.dropdown-sub li a:hover {
    background: var(--gray-100);
    color: var(--gold-dark);
    padding-right: 28px;
}
.lang-en .dropdown-sub li a:hover {
    padding-right: 20px;
    padding-left: 28px;
}
.dropdown-sub li a:hover .dropdown-cat-icon {
    color: var(--navy);
}

/* Submenu indicator arrow */
.submenu-arrow {
    margin-inline-start: auto;
    font-size: 0.7rem;
    color: var(--gold);
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.3s;
}
.has-subdropdown:hover > a .submenu-arrow {
    opacity: 1;
}
.dropdown-mega .has-subdropdown > a {
    justify-content: flex-start;
}

/* Mobile: collapse-in-place instead of fly-out */
@media (max-width: 768px) {
    .dropdown-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border-top: none;
        border-radius: 0;
        margin-top: 6px;
        display: none;
    }
    .lang-en .dropdown-sub {
        transform: none;
    }
    .has-subdropdown.open > .dropdown-sub {
        display: block;
    }
    .dropdown-sub li a {
        color: var(--gray-300);
        border-bottom-color: rgba(255, 255, 255, 0.05);
        padding-inline-start: 42px;
    }
    .dropdown-sub li a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--gold);
        padding-right: 42px;
    }
    .has-subdropdown.open > a .submenu-arrow {
        transform: rotate(-90deg);
        opacity: 1;
    }
}

/* ============================================================
   Articles / Blog
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.article-card-media {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--navy);
}

.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-media img {
    transform: scale(1.06);
}

.article-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.article-card-placeholder i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.85;
}

.article-card-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-date {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.article-card-date i {
    color: var(--gold);
    margin-inline-end: 5px;
}

.article-card-title {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.article-card-title a {
    color: var(--navy);
    transition: var(--transition);
}

.article-card-title a:hover {
    color: var(--gold-dark);
}

.article-card-excerpt {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 18px;
    flex: 1;
}

.article-card-link {
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.article-card-link:hover {
    gap: 12px;
    color: var(--navy);
}

.articles-empty {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-500);
    padding: 40px 0;
}

/* --- Single article --- */
.article-single {
    max-width: 820px;
    margin: 0 auto;
}

.article-single-meta {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.article-single-meta i {
    color: var(--gold);
    margin-inline-end: 6px;
}

.article-single-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.article-single-image img {
    width: 100%;
    display: block;
}

.article-single-body {
    font-size: 1.02rem;
    line-height: 2;
    color: var(--gray-700);
}

/* Copy protection — deters text selection / copying of article content */
.no-copy,
.no-copy * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.no-copy img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.article-single-body p {
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

.article-single-body h3 {
    color: var(--navy);
    font-size: 1.35rem;
    margin: 32px 0 14px;
    padding-inline-start: 14px;
    border-inline-start: 4px solid var(--gold);
}

.article-single-body h4 {
    color: var(--gold-dark, #a8862f);
    font-size: 1.12rem;
    font-weight: 700;
    margin: 26px 0 10px;
}

.article-single-body .article-byline {
    color: var(--navy);
    font-size: 0.98rem;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--gray-200);
}

.article-single-body ul,
.article-single-body ol {
    margin: 0 0 20px;
    padding-inline-start: 24px;
}

.article-single-body li {
    margin-bottom: 10px;
    text-align: justify;
    text-justify: inter-word;
}

.article-draft-note {
    margin: 0 0 18px;
    padding: 10px 16px;
    background: #fff4d6;
    border: 1px solid #e0b400;
    border-radius: var(--radius);
    color: #7a5c00;
    font-weight: 600;
}

.article-source {
    margin: 30px 0 0;
    padding: 14px 18px;
    background: var(--gray-100);
    border-inline-start: 3px solid var(--gold);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-body);
}
.article-source i {
    color: var(--gold-dark);
    margin-inline-end: 6px;
}
.article-source a {
    color: var(--gold-dark);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

/* Reader share buttons (article.php) */
.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 26px 0 0;
}
.article-share-label {
    font-weight: 600;
    color: var(--navy);
    margin-inline-end: 4px;
}
.article-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.article-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-x { background: #000; }
.share-copy { background: var(--navy); }
.share-copy.is-copied { background: var(--gold); color: var(--navy); }

.article-single-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ============================================================
   Location / Maps
   ============================================================ */
/* Directions link inside the contact address card */
.info-card-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gold-dark);
    transition: var(--transition);
}

.info-card-directions:hover {
    color: var(--navy);
}

/* Full-width interactive map on the contact page */
.contact-map-section {
    line-height: 0;
}

.contact-map {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
    filter: grayscale(0.2);
}

/* Small clickable map preview in the footer */
.footer-map {
    position: relative;
    display: block;
    margin-top: 20px;
    height: 160px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;          /* clicks fall through to the wrapping link */
    filter: grayscale(0.3);
}

.footer-map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(13, 27, 42, 0.35);
    opacity: 0;
    transition: var(--transition);
}

.footer-map-overlay i {
    color: var(--gold);
}

.footer-map:hover .footer-map-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .contact-map {
        height: 320px;
    }
}

/* ============================================================
   MOBILE REFINEMENTS — 2026-09-16
   Everything below intentionally lives at the end of the file so
   it wins over the earlier per-section media queries on ties.
   ============================================================ */

/* Panel-only chrome never shows on the desktop bar.
   Declared before the media block below so the block wins on ties. */
.nav-panel-head,
.nav-panel-contact {
    display: none;
}

/* ---- 1. Off-canvas navigation (phones + small tablets) ----
   Raised from 768px to 991px: the 7-item desktop bar plus the CTA
   does not fit a tablet or a landscape phone, and a hover dropdown
   is unusable on touch. */
@media (max-width: 991px) {

    .navbar-toggler {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }

    .navbar-toggler span {
        transform-origin: center;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .navbar-toggler.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar-toggler.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar .container {
        min-height: 66px;
    }

    .navbar-logo {
        height: 44px;
    }

    /* Panel: slides in with a transform (no left/right animation, which
       is what previously leaked ~65px of sideways scroll in RTL). */
    .navbar-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        height: auto;
        width: min(86vw, 340px);
        max-width: none;
        padding: 0 0 24px;
        gap: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        z-index: 1005;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
    }

    .lang-ar .navbar-menu {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }

    .navbar-menu.active,
    .lang-ar .navbar-menu.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    }

    /* Panel header — logo + close */
    .nav-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 8px;
    }

    .nav-panel-logo {
        height: 40px;
        width: auto;
    }

    .nav-close {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.07);
        border: none;
        border-radius: 50%;
        color: var(--gold);
        font-size: 1.1rem;
        cursor: pointer;
    }

    .nav-close:active {
        background: rgba(201, 168, 76, 0.25);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0 14px;
    }

    .nav-links > li > a {
        padding: 15px 10px;
        min-height: 50px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: space-between;
    }

    .nav-links > li > a::after {
        display: none;
    }

    .nav-links > li > a .fa-chevron-down {
        font-size: 0.8rem;
        margin-inline-start: auto;
        transition: transform 0.3s ease;
    }

    .has-dropdown.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    .has-dropdown.open > a {
        color: var(--gold);
    }

    /* Collapsible sub-lists inside the panel */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.04);
        min-width: 0;
        margin: 6px 0 10px;
        display: none;
    }

    .lang-en .dropdown {
        left: auto;
    }

    .has-dropdown.open > .dropdown {
        display: block;
    }

    .dropdown li a,
    .dropdown-mega li a {
        padding: 13px 16px;
        min-height: 46px;
        font-size: 0.9rem;
        color: var(--gray-300);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .dropdown li a:hover,
    .dropdown li a:active {
        background: rgba(255, 255, 255, 0.06);
        color: var(--gold);
        padding-right: 16px;
        padding-left: 16px;
    }

    .dropdown-all a {
        color: var(--gold) !important;
        font-weight: 700;
    }

    .dropdown-sub {
        margin: 6px 0 4px;
    }

    .dropdown-sub li a {
        padding-block: 12px;
        min-height: 44px;
    }

    .nav-cta-btn {
        margin: 18px 14px 0;
        padding: 14px 20px;
        text-align: center;
        font-size: 0.95rem;
    }

    /* Quick contact strip at the bottom of the panel */
    .nav-panel-contact {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin: 22px 14px 0;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-panel-contact a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        padding: 8px 10px;
        color: var(--gray-300);
        font-size: 0.85rem;
        border-radius: var(--radius);
    }

    .nav-panel-contact a i {
        width: 20px;
        text-align: center;
        color: var(--gold);
        font-size: 1rem;
    }

    .nav-panel-contact a:active {
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Touch devices at desktop widths: a hover dropdown cannot be opened by
   tapping, so the first tap opens it (JS adds .open) and the second
   follows the link. */
@media (min-width: 992px) {
    .has-dropdown.open > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-subdropdown.open > .dropdown-sub {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

/* ---- 2. Top bar: was an empty dark strip on phones ---- */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.72rem;
        padding: 6px 0;
    }

    .top-bar-info {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar-info a {
        gap: 5px;
    }

    .top-bar-info a span {
        direction: ltr;
    }

    .top-bar .container {
        padding: 0 12px;
    }
}

@media (max-width: 380px) {
    .top-bar-info a:first-child span {
        display: none;   /* keep the mail icon, drop the long address */
    }
}

/* ---- 3. Floating buttons stacked in one narrow column ----
   Side by side they covered ~175px of a 390px screen and sat on top of
   body copy and the phone field in the contact form. */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 16px;
        right: 14px;
        animation: none;
    }

    .lang-ar .whatsapp-float {
        right: auto;
        left: 14px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 76px;
        right: 18px;
    }

    .lang-ar .back-to-top {
        right: auto;
        left: 18px;
    }
}

/* ---- 4. Rhythm: 80px section padding is a lot of dead space on a phone ---- */
@media (max-width: 768px) {
    .section {
        padding: 52px 0;
    }

    .section-header {
        margin-bottom: 34px;
    }

    .section-header h2 {
        font-size: 1.55rem;
        line-height: 1.4;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .section-tag {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .page-banner {
        padding: 46px 0 34px;
    }

    .container {
        padding: 0 16px;
    }
}

/* ---- 5. Justified Arabic text tears itself apart at ~350px of column ---- */
@media (max-width: 768px) {
    .about-text p,
    .vision-content p,
    .value-content p,
    .confidentiality-content p,
    .about-full .bio-text p,
    .why-firm-body p,
    .practice-detail-content p,
    .publications-intro p,
    .publication-card-body p,
    .article-single-body p,
    .article-single-body li,
    .legal-body p,
    .legal-body li {
        text-align: start;
        line-height: 1.85;
    }

    .vision-content p,
    .confidentiality-content p,
    .publications-intro p {
        font-size: 0.98rem;
    }
}

/* ---- 6. Forms: sub-16px inputs make iOS Safari zoom the page on focus ---- */
@media (max-width: 768px) {

    .form-group input,
    .form-group textarea,
    .form-group select,
    .careers-form-wrapper select,
    .careers-form-wrapper input[type="file"] {
        font-size: 16px;
        padding: 13px 14px;
    }

    .form-group textarea {
        height: 130px;
    }

    .contact-form-wrapper,
    .careers-form-wrapper {
        padding: 22px 18px;
    }

    .site-form button[type="submit"] {
        width: 100%;
    }
}

/* ---- 7. Odds and ends ---- */
@media (max-width: 768px) {

    /* AOS slides in from the side by 100px — in RTL that pushed the whole
       document sideways. Slide up instead on small screens. */
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(0, 40px, 0);
    }

    .hero,
    .hero.hero-images-only {
        height: 46vh;
        min-height: 260px;
    }

    .navbar-brand .navbar-logo {
        max-width: 60vw;
        object-fit: contain;
    }

    .footer-links a {
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    iframe {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.4rem;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 13px 26px;
        font-size: 0.95rem;
    }
}

/* ---- 8. Legal page: tab bar sticks under the 66px mobile navbar ---- */
@media (max-width: 991px) {
    .legal-tabs-bar {
        top: 66px;
    }

    .legal-tab-btn {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
}

/* ---- 9. Screen-reader-only text (2026-09-16) ----
   The homepage hero is images-only by client decision, so the page carried no
   <h1> at all — bad for search and for screen readers alike. The heading is
   present in the markup and read aloud; it just is not painted. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Developer credit under the copyright line (2026-10-08) */
.footer-bottom p { margin: 0; }
.footer-bottom .footer-credit { margin-top: 6px; font-size: 0.78rem; }
.footer-credit a { color: var(--gray-500); text-decoration: none; border-bottom: 1px dotted currentColor; }
.footer-credit a:hover { color: var(--gold); }
