/* --- CSS VARIABLES FOR THEME RECOLORING --- */
/* The colors match the 'Sout Alebtikar' Logo and visual identity */
:root {
    /* Primary Accent Color - Copper/Bronze (from Logo doors) */
    --primary-color: #B87333;
    --primary-hover: #9c6028;

    /* Secondary Accent Color - Dark Teal (from Logo text) */
    --secondary-color: #006666;
    --secondary-hover: #004d4d;

    /* Dark Text Color - Dark Grey/Charcoal */
    --text-color: #333333;

    /* Background Color - Off-White/Cream */
    --bg-color: #FDFDF5;
}

/* --- LOGO SIZE ADJUSTMENT --- */
.site-logo .logo {
    max-height: 70px !important;
    height: auto;
    width: auto;
    max-width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

@media (max-width: 768px) {
    .site-logo .logo {
        max-height: 50px !important;
    }
}

/* --- CUSTOM COLOR OVERRIDES --- */
/* Applying Document Background gently without forcing everything */
body {
    background-color: var(--bg-color);
}

/* General Text overrides (no !important to avoid breaking sliders/footers) */
h1,
h2,
h3,
h4,
h5,
h6,
.site-title a,
.site-description,
.box-title,
.widget-title,
body {
    color: var(--text-color);
}

/* Light Header & Topbar Text for better contrast */
.topbar-office,
.office-switcher .current-office,
.site-menu .main-nav>ul>li>a,
.site-extra-text .title,
.site-extra-text .desc,
.topbar-right .widget,
#topbar,
#masthead .site-menu .main-nav>ul>li>a {
    color: #ffffff !important;
}

/* --- CONTRAST & BUTTON FIXES --- */
/* Base Buttons: Teal with White Text */
.mf-btn,
.mf-btn-2,
.mf-btn-3,
.btn,
button,
input[type="submit"],
.rev-btn {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
}

/* Button Hovers: Copper with White Text */
.mf-btn:hover,
.mf-btn-2:hover,
.mf-btn-3:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover,
.rev-btn:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Fix dark text on primary background elements from the theme */
.main-background-color,
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span,
.preloader {
    color: #ffffff !important;
}

/* Ensure the main navigation uses light color by default, with elegant Copper hovers */
.site-menu .main-nav>ul>li>a {
    color: #ffffff !important;
}

.site-menu .main-nav>ul>li:hover>a,
.site-menu .main-nav>ul>li.active>a {
    color: var(--primary-color) !important;
}

/* Base selection color overlay */
::selection {
    background: var(--primary-color);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-color);
    color: #fff;
}


/* --- RTL (Right-to-Left) & LTR SUPPORT --- */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Reversing Floats for RTL */
[dir="rtl"] .topbar-left {
    float: right !important;
    text-align: right !important;
}

[dir="rtl"] .topbar-right {
    float: left !important;
    text-align: left !important;
}

[dir="rtl"] .site-logo {
    float: right;
}

[dir="rtl"] .site-extra-text,
[dir="rtl"] .site-menu,
[dir="rtl"] .navbar-toggle {
    float: left;
}

[dir="rtl"] .main-nav>ul>li {
    float: right;
}

[dir="rtl"] .mf-btn {
    float: left;
}

/* Theme specific Margin and Padding fixes for RTL */
[dir="rtl"] .socials-inline li:first-child {
    padding-right: 0;
    padding-left: 5px;
}

[dir="rtl"] .socials-inline li:last-child {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .mf-icon-box.icon_position-left .mf-icon {
    float: right;
    margin-right: 0;
    margin-left: 20px;
}

[dir="rtl"] .topbar-office .phone {
    float: right;
    margin-left: 15px;
    margin-right: 0;
    padding-right: 0;
}

[dir="rtl"] .topbar-office .time {
    float: right;
    padding-right: 0;
}

[dir="rtl"] .induscity-office-location-widget ul.topbar-office {
    float: right;
}

/* --- FINAL BRANDING REFINEMENTS (Based on Screenshot) --- */

/* 1. Fix Why Choose Us Section Overlay (from Yellow to Teal/Copper) */
.whychooseus_1 {
    background-color: rgba(0, 102, 102, 0.9) !important;
    /* Deep Teal for clean contrast */
    margin-top: -100px !important;
}

/* 2. Fix the "Featured" middle box to highlight it with Copper */
.mf-icon-box.box-light.featured {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* 3. Fix Progress Bars (Production, etc.) */
.vc_progress_bar .vc_single_bar .vc_bar {
    background-color: var(--primary-color) !important;
}

/* 4. Fix Top Bar Switcher (California background) */
.induscity-office-location-widget .office-switcher {
    background-color: var(--primary-color) !important;
}

.induscity-office-location-widget .office-switcher ul {
    background-color: var(--primary-color) !important;
}

/* 5. Fix Slider Welcome Text ("WELCOME TO LEADING") */
.rev-midtext {
    color: var(--primary-color) !important;
}

/* 6. Fix Footer and General Icon Accents */
.footer-widgets .widget-title:after,
.mf-heading-primary:after {
    background-color: var(--primary-color) !important;
}

.footer-widgets .footer-widget-contact .detail i,
.footer-widgets ul li:hover:before {
    color: var(--primary-color) !important;
}

.footer-social a:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* --- SLIDER RESPONSIVENESS REFINEMENTS --- */
.rev_slider_wrapper {
    height: auto !important;
}

/* Ensure images cover the slider area without stretching */
.rev_slider .tp-bgimg.defaultimg {
    background-size: cover !important;
    background-position: center center !important;
}

/* Fix for first slide (slider.png) - ensure it fills the width and height without stretching */
.rev_slider li:first-child .tp-bgimg,
.rev_slider li:first-child .rev-slidebg {
    background-size: cover !important;
    background-position: center center !important;
}

/* Set a min-height for the first slide based on the image ratio (525/1920) */
.rev_slider_wrapper .rev_slider {
    min-height: 300px;
}

/* Adjust top padding/margin for smaller sliders if needed */
@media (max-width: 767px) {

    #slider1,
    .rev_slider {
        min-height: 200px !important;
    }
}

/* --- SUCCESS PARTNERS MARQUEE --- */
.partners-section {
    padding: 60px 0;
    background: #fdfdf5;
    overflow: hidden;
    direction: ltr;
    /* Ensure left-to-right calculation for animation */
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
}

.marquee-track {
    display: flex;
    gap: 30px;
    padding: 0 15px;
    width: max-content;
}

.track-right {
    animation: scroll-right 30s linear infinite;
}

.track-left {
    animation: scroll-left 30s linear infinite;
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.partner-logo {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.partner-logo:hover {
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.partner-logo img {
    max-width: 75%;
    max-height: 75%;
    opacity: 1;
    transition: 0.3s;
    /* filter: grayscale(100%); */
}

.partner-logo:hover img {
    opacity: 1;
    /* filter: grayscale(0%); */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .partner-logo {
        width: 140px;
        height: 80px;
    }

    .marquee-track {
        gap: 15px;
    }

    .partners-section {
        padding: 40px 0;
    }
}

/* --- FAQ ACCORDION --- */
.custom-panel {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.custom-panel .panel-heading {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    padding: 0;
    border-radius: 8px !important;
}

.custom-panel .panel-title a {
    display: block;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color) !important;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-left: 50px;
    /* Space for the icon on the left */
}

.custom-panel .panel-title a:hover,
.custom-panel .panel-title a[aria-expanded="true"] {
    color: var(--primary-color) !important;
    background-color: #fff;
}

/* Plus/Minus icon */
.custom-panel .panel-title a::after {
    content: '\f067';
    /* fa-plus */
    font-family: 'FontAwesome';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.custom-panel .panel-title a[aria-expanded="true"]::after {
    content: '\f068';
    /* fa-minus */
}

.custom-panel .panel-body {
    padding: 20px 25px;
    border-top: 1px solid #eee !important;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    background-color: #fff;
}

/* --- FIX WHITE BACKGROUND ON JPG IMAGES --- */
.about-image img,
#services .blog-wrapper .entry-thumbnail img {
    mix-blend-mode: multiply;
    background-color: transparent !important;
}

/* Fix shadow for transparent about image */
.about-image img {
    box-shadow: none !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Ensure services containers are transparent to show the section background */
#services .blog-wrapper,
#services .blog-wrapper .entry-thumbnail,
#services .blog-wrapper .entry-thumbnail a {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}