:root {
    /* Brand Colors */
    --color-primary: #9aa067;
    --color-secondary: #7b5947;
    --color-accent: #c77943;
    --color-dark: #45413c;
    --color-light-cream: #f3ddca;
    --color-light-peach: #f4c29f;

    /* Modern Gradient Variables */
    --gradient-navbar: linear-gradient(
        135deg,
        rgba(154, 160, 103, 0.9) 0%,
        rgba(123, 89, 71, 0.85) 50%,
        rgba(67, 61, 60, 0.9) 100%
    );

    --gradient-footer: linear-gradient(
        135deg,
        #45413c 0%,
        #7b5947 30%,
        #c77943 70%,
        #9aa067 100%
    );

    --gradient-accent: linear-gradient(90deg, #c77943 0%, #f4c29f 100%);
    --gradient-subtle: linear-gradient(135deg, #f3ddca 0%, #d7cbc4 100%);

    /* Text Colors for Contrast */
    --text-on-dark: #f3ddca;
    --text-on-light: #45413c;
    --text-on-gradient: #ffffff;
}

/* Base Styles for English/LTR */
body {
    font-family: "Poppins", sans-serif;
    font-family: "El Messiri", sans-serif;
    line-height: normal !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: relative;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.pd-100 {
    padding: 0 600px;
}
.h-100 {
    height: 100% !important;
}
.hero-content-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: white;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    opacity: 0;
    animation: fadeInTitle 1s ease 0.3s forwards;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
    }
}

[dir="rtl"] {
    text-align: right;
    font-family: "Poppins", sans-serif;
}

[dir="rtl"] .nav-links {
    /* margin-right: auto; */
    margin-left: 0;
}

[dir="rtl"] .logo {
    margin-right: 0;
    margin-left: 100px;
    margin-top: -10px;
}

[dir="rtl"] .social-sidebar {
    left: 25px;
    bottom: 100px;
    right: auto;
}

[dir="rtl"] .social-icons {
    align-items: flex-start;
}

[dir="rtl"] .footer-social-icons {
    justify-content: flex-start;
}

[dir="rtl"] .container {
    direction: rtl;
}

[dir="rtl"] .mobile-menu-toggle {
    margin-left: 0;
    margin-right: auto;
}

/* Adjust margins and paddings for RTL */
[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .nav-link:hover::after {
    width: 100%;
    right: 0;
}

/* RTL for home page */
[dir="rtl"] .about-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-btn::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .hero-btn:hover::after {
    right: 0;
    width: 100%;
}

/* RTL adjustments for goals container */
[dir="rtl"] .goal-column {
    text-align: right;
}

/* Footer RTL adjustments */
[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-social-icons {
    direction: ltr; /* Keep icons in same order */
}

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

/* Hero Banner  */
.custom_header .card_img {
    height: 100vh;
    position: relative;
}
.custom_header .card_img .img_parent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.custom_header .card_img .img_parent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.custom_header .img_after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.custom_header .img_after img {
    width: 100%;
    height: 100%;
}
.custom_header .header_content h5 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0;
}
.custom_header .header_content .wrap {
    max-width: 750px;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
    padding: 0 65px;
    padding-top: -50px;
}

/* Container RTL */
[dir="rtl"] .container {
    padding-right: 20px;
    padding-left: 20px;
}

.custom_header .header_content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}

.custom_header .header_content p {
    font-size: 1.2rem;
    color: #fff;
    margin: 30px 0;
}
.custom_header .header_content a {
    width: 228px;
    max-width: 100%;
    color: #fff;
    border: 1px solid white;
    border-radius: 30px;
    display: inline-block;
    padding: 13px;
    font-size: 1.3rem;
    text-align: center;
}

@media (max-width: 992px) {
    .custom_header .header_content .wrap {
        max-width: 98%;
        margin-right: 0;
        margin-left: auto;
        text-align: right;
        padding: 0 20px;
        padding-top: -50px;
    }
}
@media (max-width: 1440px) {
    .pd-100 {
        padding: 0 90px;
    }
}

@media (max-width: 1600px) {
    .pd-100 {
        padding: 0 100px;
    }
}
@media (max-width: 1920px) {
    .pd-100 {
        padding: 0 170px;
    }
}
/* Additional responsive classes */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .custom_header .header_content p {
        font-size: 0.9rem;
        color: #fff;
        margin: 30px 0;
    }
    .custom_header .header_content h5 {
        font-size: 2rem;
        font-weight: bold;
        color: #fff;
        margin-bottom: 0;
    }
}

/* Our Companies */

.following_company {
    background-color: #f1f2e7;
    padding: 54px 0;
    position: relative;
}
.following_company .company_wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.following_company .company_wave img {
    max-width: 100%;
}
.following_company .section_header {
    text-align: center;
    margin: 20px 0;
}
.following_company .section_header h5 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0 !important;
}
.following_company .company_card {
    position: relative;
    z-index: 3;
    width: 350px;
    margin-bottom: 0;
}
.following_company .company_card .card_icon {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.following_company .our-companies-cont {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
}
.following_company .company_card .card_icon img {
    width: 70%;
    height: 100%;
    object-fit: contain;
}
.following_company .company_card a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
}
.following_company .company_card a:hover {
    color: #000;
}
.following_company .company_card .card_content {
    padding: 20px 0;
    text-align: center;
}
.following_company .company_card h5 {
    font-size: 1.7rem;
    color: #7b5947;
    font-weight: bold;
    margin-top: 12px;
    text-align: center;
    margin-bottom: 0 !important;
}

@media screen and (max-width: 500px) {
    .following_company .our-companies-cont {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px !important;
    }
}
@media screen and (min-width: 992px) and (max-width: 1226px) {
    .following_company .company_card {
        position: relative;
        z-index: 3;
        width: 300px;
        margin-bottom: 0;
    }

    .following_company .our-companies-cont {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
    }
}

/* Contact Us Section Styles */
.contact_us_section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    /* padding: 100px 0; */
    position: relative;
    overflow: hidden;
}

.contact_us_section .img_behind {
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.1;
    z-index: 1;
}

.contact_us_section .img_behind img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.contact_us_section .section_header {
    text-align: center;
    margin-bottom: 60px;
}

.contact_us_section .section_header h5 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #7b5947;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.contact_us_section .section_header h5::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #7b5947, #d9bacb);
    border-radius: 2px;
}

.contact_us_section .section_header .section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.6;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper:hover,
.contact-info-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Form Styles */
.form_style .alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.form_style .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.form_style .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.form_style .btn-close {
    padding: 0.5rem 0.5rem;
    margin-left: auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #7b5947;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-label::after {
    content: "*";
    color: #dc3545;
    margin-left: 3px;
}

.form-label.optional::after {
    display: none;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #7b5947;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(94, 108, 140, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Privacy Policy Checkbox */
.form-check {
    padding-left: 0;
    margin-bottom: 25px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(94, 108, 140, 0.25);
}

.form-check-label {
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.form-check-label a {
    color: #7b5947;
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn_submit {
    text-align: center;
    margin-top: 10px;
}

.submit-btn {
    width: 178px;
    max-width: 100%;
    color: #fff;
    border: 1px solid #c77943;
    border-radius: 30px;
    display: inline-block;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    background-color: #c77943;
    text-decoration: none;
    transition: all 0.4s ease;
    /* margin-bottom: 40px; */
    font-weight: 500;
}

.submit-btn:hover {
    background-color: white;
    color: #7b5947;
    border: 2px solid #7b5947;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px #7b5947;
    padding: 14px;
}
.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
}

/* Contact Information Styles */
.contact_info .info-section,
.contact_info .map-section {
    margin-bottom: 0px;
}
.contact_info .info-section h6 {
    margin-top: 0px;
}

.contact_info h6 {
    color: #7b5947;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    margin-top: 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 17px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.3s ease;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: #c77943;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1.2rem;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: #7b5947;
}

.info-values {
    display: flex;
    flex-direction: column;
    gap: 5px;
    direction: ltr;
}

/* Map Styles */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    border: none;
    height: 330px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-content-wrapper {
        gap: 40px;
    }

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

@media (max-width: 992px) {
    .contact_us_section {
        padding: 80px 0;
    }

    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    .contact_us_section .img_behind {
        right: -300px;
        width: 800px;
        height: 800px;
    }
}

@media (max-width: 768px) {
    .contact_us_section {
        padding: 60px 0;
    }

    .contact_us_section .section_header h5 {
        font-size: 2.2rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 30px 25px;
    }

    .submit-btn {
        max-width: 100%;
        padding: 15px 30px;
    }

    .info-item {
        padding: 15px 0;
    }

    .info-icon {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }

    .info-icon i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .contact_us_section {
        padding: 50px 0;
    }

    .contact_us_section .section_header h5 {
        font-size: 1.8rem;
    }

    .contact_us_section .section_header .section-subtitle {
        font-size: 1rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 25px 20px;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .info-label {
        font-size: 0.85rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .contact_us_section .img_behind {
        display: none;
    }
}

/* RTL Support */
[dir="rtl"] .contact_us_section .img_behind {
    right: auto;
    left: -200px;
}

[dir="rtl"] .info-icon {
    margin-right: 0;
    margin-left: 20px;
}

[dir="rtl"] .form-check-input {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .submit-btn {
    gap: 10px;
}

[dir="rtl"] .form-check {
    padding-right: 0;
}
[dir="rtl"] .form-control {
    direction: rtl;
}

@media (max-width: 992px) {
    [dir="rtl"] .contact_us_section .img_behind {
        left: -300px;
    }
}
/* Projects Page */
.custom_braedcrumb .card_img {
    height: 500px;
    position: relative;
}
.projects_header .card_img .img_parent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.projects_header .card_img .img_parent img,
.projects_header .card_img .img_parent video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.custom_braedcrumb .img_after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        to top,
        rgba(255, 255, 255, 0),
        rgba(25, 25, 25, 0.49),
        rgba(15, 15, 15, 0.87),
        #272425
    );
}
.projects_header .wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    color: #fff;
    width: 100%;
}
.projects_header .wrap h5 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 0px;
    padding-bottom: 10px;
    /* border-bottom: 2px solid #f0f0f0; */
    margin-top: 0;
}
