@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #1E3A8A;
    --primary-dark: #3B82F6;
    --secondary-color: #3B82F6;
    --accent-color: #3B82F6;

    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;

    --dark-bg: #0F172A;
    --light-bg: #F8FAFC;
    --text-dark: #0F172A;
    --text-light: #F8FAFC;
    --text-muted: #64748B;
    --text-subtle: #334155;
    --border-color: #CBD5E1;
    --border-light: #E2E8F0;

    --font-family-base: 'Inter', Arial, sans-serif;
    --line-height-body: 1.6;
    --line-height-heading: 1.2;

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.45);
    --card-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
    --container-width: 1200px;
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: var(--line-height-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container,
.stats-container,
.services-container,
.contact-container,
.page-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.container,
.stats-container,
.services-container,
.contact-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    padding: 14px 28px;
    z-index: 1100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 10px;
    padding: 12px 24px;
}

.navbar .container {
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 170px;
    height: 48px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.15);
    transform-origin: left center;
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-links li a:not(.btn-primary)::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links li a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.nav-links li a:not(.btn-primary):hover::before,
.nav-links li a.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-primary,
.cta-btn,
.submit-btn,
input[type="submit"].btn-primary,
button.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.24);
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover,
.cta-btn:hover,
.submit-btn:hover,
input[type="submit"].btn-primary:hover,
button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.28);
    color: white !important;
}

/* =========================
   HERO
========================= */
.hero,
.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 170px 0 100px;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.35) 0%,
        rgba(15, 23, 42, 0.94) 50%,
        rgba(59, 130, 246, 0.18) 100%
    );
    color: white;
}

.hero::before,
.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12), transparent 30%);
    z-index: 0;
}

.hero-content,
.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero h1,
.contact-hero h1 {
    margin: 0 0 18px;
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #CBD5E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p,
.contact-hero p {
    margin: 0 auto 30px;
    max-width: 680px;
    font-size: 1.08rem;
    color: #CBD5E1;
}

/* =========================
   STATS
========================= */
.stats,
.stats-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.stat-box {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
}

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

.stat-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.stat-box h2,
.stat-box h3 {
    font-size: 2.2rem;
    margin: 0 0 8px;
    color: var(--text-dark);
    font-weight: 800;
}

.stat-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================
   SERVICES / CARDS
========================= */
.services,
.about,
.contact-section,
.team-section,
.values-section,
.story-section,
.mission-section {
    padding: 90px 0;
}

.services {
    background: white;
}

.services-container > h2,
.contact-form h2,
.contact-info h2,
.team-section h2,
.values-section h2,
.story-section h2,
.mission-text h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
    text-align: center;
}

.services-container > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px !important;
}

.service-grid,
.team-members-grid,
.team-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-box,
.team-member-box,
.team-member,
.value-card,
.contact-info,
.contact-form {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
}

.service-box,
.value-card {
    padding: 32px 26px;
    transition: 0.3s ease;
}

.service-box:hover,
.team-member-box:hover,
.team-member:hover,
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.service-box i,
.value-icon i,
.stat-icon i,
.info-item i,
.info-icon i {
    color: var(--primary-color);
}

.service-box i {
    font-size: 2rem;
    margin-bottom: 18px;
}

.service-box h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.service-box p {
    margin: 0;
    color: var(--text-muted);
}

/* =========================
   CONTACT PAGE
========================= */
.contact-section {
    background: var(--light-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.contact-info,
.contact-form {
    padding: 34px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.info-item i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.info-item h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.info-item p {
    margin: 0;
    color: var(--text-muted);
}

/* floating labels form compatibility */
.contact-form .form-group {
    position: relative;
    margin-bottom: 22px;
}

.contact-form input,
.contact-form textarea,
.form-control,
.form-select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: var(--text-dark);
    padding: 14px 16px;
    font-family: var(--font-family-base);
    font-size: 0.98rem;
    transition: 0.3s ease;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.contact-form label {
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================
   WORK PAGE / FORMS
========================= */
.page-wrapper {
    padding: 70px 20px 100px;
}

.page-wrapper .col-md-8 {
    width: 100%;
}

.page-wrapper form {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 34px;
}

.page-wrapper .form-group label,
.page-wrapper .form-label,
.page-wrapper .control-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-danger {
    font-size: 0.9rem;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.language-block {
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    background: #fff !important;
}

.payment-detail-group {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px;
}

.back-link {
    color: var(--primary-color);
    font-weight: 700;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* =========================
   ABOUT PAGE
========================= */
.about {
    padding-top: 40px;
}

.team-member-box {
    padding: 28px 22px;
    text-align: center;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark) !important;
    margin-bottom: 6px;
}

.member-role {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.member-social-links,
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.member-social-links a,
.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    color: var(--primary-color);
    transition: 0.3s ease;
}

.member-social-links a:hover,
.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-3px);
}

/* =========================
   ALERTS / TABLE / SMALL
========================= */
.alert {
    max-width: 1200px;
    margin: 110px auto 20px;
    border-radius: 14px;
}

.alert-success {
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #0f5132;
}

/* =========================
   FOOTER
========================= */
.footer {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 80px 0 30px;
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(30, 58, 138, 0.22), transparent 60%),
        radial-gradient(700px 450px at 85% 35%, rgba(59, 130, 246, 0.18), transparent 60%),
        #0F172A;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.7), rgba(59, 130, 246, 0.7), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 50px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section h4 {
    font-size: 1.05rem;
    color: rgba(241, 245, 249, 0.95);
}

.footer-section p,
.footer-section ul li a {
    color: rgba(148, 163, 184, 0.92);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 24px;
    text-align: center;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.92rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
    .stats-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .page-wrapper form {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 12px 18px;
        top: 15px;
    }

    .navbar.scrolled {
        top: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        background: white;
        border-radius: 0 0 22px 22px;
        padding: 22px;
        flex-direction: column;
        gap: 22px;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero,
    .contact-hero {
        padding: 140px 0 70px;
    }

    .hero h1,
    .contact-hero h1 {
        font-size: 2.05rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .team-members-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 140px;
        height: 42px;
    }

    .nav-links .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 20px 40px !important;
    border-radius: 999px !important;
}

}
.nav-links .btn-primary:hover {
    color: white !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}
.nav-links li a.btn-primary,
.nav-links li a.btn-primary:link,
.nav-links li a.btn-primary:visited,
.nav-links li a.btn-primary:hover,
.nav-links li a.btn-primary:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.nav-links li a.work-btn,
.nav-links li a.work-btn:link,
.nav-links li a.work-btn:visited,
.nav-links li a.work-btn:hover,
.nav-links li a.work-btn:active,
.nav-links li a.work-btn:focus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 170px !important;
    padding: 10px 30px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    white-space: nowrap !important;
}

/* =========================
   LANGUAGE TOGGLE
========================= */
.lang-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.10);
    color: var(--primary-color);
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.18);
    transition: 0.3s ease;
}

.lang-pill:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}

/* keep work button white */
.nav-links li a.work-btn,
.nav-links li a.work-btn:link,
.nav-links li a.work-btn:visited,
.nav-links li a.work-btn:hover,
.nav-links li a.work-btn:active,
.nav-links li a.work-btn:focus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 185px !important;
    padding: 14px 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    white-space: nowrap !important;
}

.logout-btn,
.logout-btn:hover,
.logout-btn:focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* =========================
   RTL SUPPORT
========================= */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    direction: rtl;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .contact-hero-content,
html[dir="rtl"] .services-container,
html[dir="rtl"] .footer-section,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .page-wrapper form,
html[dir="rtl"] .about {
    text-align: right;
}

html[dir="rtl"] .contact-container,
html[dir="rtl"] .stats-container,
html[dir="rtl"] .service-grid,
html[dir="rtl"] .team-members-grid,
html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .info-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .member-social-links,
html[dir="rtl"] .social-icons {
    justify-content: flex-start;
}

html[dir="rtl"] .logo-img {
    transform-origin: right center;
}

html[dir="rtl"] .form-group label,
html[dir="rtl"] .form-label,
html[dir="rtl"] .control-label,
html[dir="rtl"] .form-check-label {
    text-align: right;
}

html[dir="rtl"] .back-link {
    display: inline-block;
}

@media (max-width: 768px) {
    html[dir="rtl"] .nav-links {
        text-align: right;
    }
}

/* ===== Arabic layout fixes ===== */
html[dir="rtl"] .navbar .container {
    flex-direction: row !important;
}

html[dir="rtl"] .logo {
    order: 2 !important;
}

html[dir="rtl"] .nav-links {
    order: 1 !important;
    direction: rtl;
    justify-content: flex-start !important;
}

html[dir="rtl"] .hamburger {
    order: 3 !important;
}

/* About page social icons centered in Arabic too */
html[dir="rtl"] .team-member-box {
    text-align: center !important;
}

html[dir="rtl"] .member-social-links {
    justify-content: center !important;
    align-items: center !important;
}

/* Contact page info aligned right in Arabic */
html[dir="rtl"] .contact-info {
    text-align: right !important;
}

html[dir="rtl"] .contact-info h2,
html[dir="rtl"] .contact-info h3,
html[dir="rtl"] .contact-info p {
    text-align: right !important;
}

html[dir="rtl"] .info-item {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    text-align: right !important;
}

html[dir="rtl"] .info-item > div {
    text-align: right !important;
    width: 100%;
}

html[dir="rtl"] .info-item i {
    flex-shrink: 0;
}

/* Mobile Arabic navbar */
@media (max-width: 768px) {
    html[dir="rtl"] .navbar .container {
        flex-direction: row !important;
    }

    html[dir="rtl"] .nav-links {
        text-align: right !important;
        align-items: flex-end !important;
    }
}
/* ===== Mobile Arabic menu centering ===== */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-links {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html[dir="rtl"] .nav-links li {
        width: 100%;
        display: flex !important;
        justify-content: center !important;
    }

    html[dir="rtl"] .nav-links li a,
    html[dir="rtl"] .nav-links li form {
        text-align: center !important;
        justify-content: center !important;
    }

    html[dir="rtl"] .nav-links li a.work-btn {
        min-width: 230px !important;
    }
}

/* ===== Footer social icons always visible on phone ===== */
.footer .social-icons {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.footer .social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer .social-icons a i {
    display: inline-block !important;
    font-size: 1.1rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 768px) {
    .footer .social-icons {
        justify-content: center !important;
    }

    html[dir="rtl"] .footer .social-icons {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .footer-section .social-icons,
    .footer-social .social-icons,
    .footer .social-icons {
        display: flex !important;
    }

    .footer-section .social-icons a,
    .footer-social .social-icons a,
    .footer .social-icons a {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #fff !important;
    }

    .footer-section .social-icons a i,
    .footer-social .social-icons a i,
    .footer .social-icons a i {
        color: #fff !important;
    }
}
/* Mobile footer: force social section to stay visible */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 24px !important;
    }

    .footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .footer .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 26px !important;
        margin-bottom: 24px !important;
    }

    .footer .footer-section {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer .footer-section h3,
    .footer .footer-section h4,
    .footer .footer-section p,
    .footer .footer-section ul,
    .footer .footer-section li {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer .footer-section ul {
        padding: 0 !important;
    }

    .footer .social-icons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 14px !important;
        width: 100% !important;
    }

    .footer .social-icons a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer .social-icons a i {
        display: inline-block !important;
        font-size: 18px !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
        line-height: 1 !important;
    }

    .footer-bottom {
        margin-top: 10px !important;
        text-align: center !important;
    }

    html[dir="rtl"] .footer .footer-content,
    html[dir="rtl"] .footer .footer-section,
    html[dir="rtl"] .footer .social-icons {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
html[dir="rtl"] .navbar,
html[dir="ltr"] .navbar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

html[dir="rtl"] .navbar .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Remove conflicting order overrides that shift the navbar visually */
html[dir="rtl"] .logo {
    order: 0 !important;
}

html[dir="rtl"] .nav-links {
    order: 0 !important;
    justify-content: flex-end !important;
}

html[dir="rtl"] .hamburger {
    order: 0 !important;
}