@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Noto+Sans+Arabic:wght@100..900&display=swap");
@import url(https://fonts.googleapis.com/css?family=EB+Garamond:400,200,300,500,600,700,800);
@import url(https://fonts.googleapis.com/css?family=Inter:400,200,300,500,600,700,800);

/* Locale fonts: English = helvetica-neue-5, Arabic = alexandria-medium */
@font-face {
    font-family: "alexandria-medium";
    src: url("../fonts/alexandria-medium/alexandria-medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "helvetica-neue-5";
    src: url("../fonts/helvetica-neue-5/HelveticaNeueMedium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "helvetica-neue-5";
    src: url("../fonts/helvetica-neue-5/HelveticaNeueRoman.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    --title-font: "Helvetica Neue";
    --title-font-color: #000000;
    --body-font: "Inter";
    --body-font-size: 15px;
    --body-font-color: #000000;
}

/* English: Helvetica Neue (identity guide) */
body.lang-en {
    font-family:
        "helvetica-neue-5", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body.lang-en * {
    --body-font:
        "helvetica-neue-5", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --title-font:
        "helvetica-neue-5", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Arabic: Noto Sans Arabic */
body.lang-ar {
    font-family: "Noto Sans Arabic", sans-serif !important;
}

body.lang-ar * {
    --body-font: "Noto Sans Arabic", sans-serif;
    --title-font: "Noto Sans Arabic", sans-serif;
}

section {
    background: #ffffff;
}

#mainmenu {
    font-family: var(--body-font);
}

.de_testi.opt-2 blockquote {
    background: #ffffff !important;
}

/* CTA Contact Form - light background with bordered inputs */
#contact-us .cta-form-wrapper {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#contact-us .cta-contact-form .form-control {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #212529;
    padding: 12px 16px;
    border-radius: 4px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

#contact-us .cta-contact-form .form-control::placeholder {
    color: #6c757d;
}

#contact-us .cta-contact-form .form-control:focus {
    border-color: var(--primary-color, #fa6a2e);
    box-shadow: 0 0 0 3px rgba(250, 106, 46, 0.15);
    outline: none;
}

#contact-us .cta-contact-form .btn-custom {
    padding: 12px 32px;
    font-weight: 600;
    min-width: 160px;
}

/* Contact section: RTL and right alignment for Arabic */
html[dir="rtl"] #contact-us,
#contact-us[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] #contact-us .cta-contact-form .form-control,
#contact-us[dir="rtl"] .cta-contact-form .form-control {
    text-align: right;
}

html[dir="rtl"] #contact-us .small-border.sm-left,
#contact-us[dir="rtl"] .small-border.sm-left {
    margin-right: 0;
    margin-left: auto;
}

/* Ensure the team grid is uniform */
#our-team .f-profile {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    /* Keeps all boxes same height if names are long */
}

/* 1. Fix the Image Container */
#our-team .fp-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    /* Adjust this to your preferred height */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    /* Soft background for transparent/missing images */
}

/* 2. Fix the Image itself */
#our-team .fp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crops the image to fill the box without stretching */
    object-position: top;
    /* Keeps faces in view for headshots */
    display: block;
    transition: transform 0.5s ease;
}

/* 3. Hover Effect (Optional but nice for UX) */
#our-team .f-profile:hover .fp-image {
    transform: scale(1.1);
}

/* Footer quick links – RTL: icon on right side of link */
body.rtl footer .ul-style-2.s2 li:before,
html[dir="rtl"] footer .ul-style-2.s2 li:before {
    display: inline;
    margin-right: 0;
    margin-left: 15px;
}

body.rtl footer .ul-style-2.s2 li:after,
html[dir="rtl"] footer .ul-style-2.s2 li:after {
    display: none;
}

/* Home slideshow (above hero banner) */
.home-slideshow {
    margin-top: 0;
    overflow: hidden;
}

.home-slideshow .owl-carousel .item {
    position: relative;
    max-height: 500px;
    overflow: hidden;
}

.home-slideshow .owl-carousel .item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
}

.home-slideshow .slide-link {
    display: block;
    text-decoration: none;
}

.home-slideshow .slide-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 1rem;
}

/* Hero section slider */
#hero .hero-slider .item {
    position: relative;
    max-height: 400px;
    min-height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}

#hero .hero-slider .item img {
    width: 100%;
    height: 400px;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#hero .hero-slider-link {
    text-decoration: none;
    cursor: pointer;
    display: block;
    line-height: 0;
}

/* RTL: ensure slider images display correctly */
html[dir="rtl"] #hero .hero-slider .item,
body.rtl #hero .hero-slider .item {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] #hero .hero-slider .item img,
body.rtl #hero .hero-slider .item img {
    display: block !important;
    visibility: visible !important;
}

.dashboard-sidebar .nav-pills {
    --bs-nav-pills-link-active-bg: #c5a059;
    --bs-nav-pills-link-active-color: #fff;
}

.dashboard-sidebar .nav-link:hover:not(.active) {
    background: rgba(197, 160, 89, 0.08);
    color: #c5a059 !important;
}

.case_badge {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    background: #c5a059;
    color: #fff !important;
    height: 2rem;
    border-radius: 0.25rem;
}

.text-primary {
    color: #c5a059 !important;
}