/* ===================================================================================

* Theme Name: Logistify Child
* Theme URI: https://themexriver.com/wp/logistify
* Author: ThemeXriver
* Author URI: https://themeforest.net/user/themexriver
* Description: Transportation & Logistics WordPress Theme
* Version: 1.0.1
* Template: logistify
* Text Domain: logistify-child
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready
* Tested up to: 6.6
* Requires PHP: 7.4

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of logistify updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */

/* MAL MARITIME — GLOBAL PAGE BACKGROUND OVERRIDE */

html,
body,
body.elementor-page,
#page,
.site,
.site-content,
#content,
.elementor {
    background-color: #FBF6EA !important;
}

/* =========================================================
   MAL MARITIME — HERO SLIDER SUBTITLE & CTA BUTTON
   ========================================================= */

/* Subtitle */
.elementor-element-becd45e .laa-subtitle-1 {
    background: #DED0B3 !important;
    color: #161E4F !important;
}

/* Button */
.elementor-element-becd45e .laa-pr-btn-1.has-white .laa-pr-btn-1-left {
    background: #01204F;
}

.elementor-element-becd45e .laa-pr-btn-1.has-white .text::before,
.elementor-element-becd45e .laa-pr-btn-1.has-white .text::after {
    color: #FFFFFF;
}

/* Arrow box */
.elementor-element-becd45e .laa-pr-btn-1.has-white .laa-pr-btn-1-right {
    background: #FFFFFF;
    border-color: #01204F;
    color: #01204F;
}

/* IMPORTANT: connector between text and arrow */
.elementor-element-becd45e .laa-pr-btn-1.has-white svg * {
    fill: #01204F;
}

/* Hover */
.elementor-element-becd45e .laa-pr-btn-1.has-white:hover .laa-pr-btn-1-left {
    background: #B8873C;
}

.elementor-element-becd45e .laa-pr-btn-1.has-white:hover .laa-pr-btn-1-right {
    background: #FFFFFF;
    border-color: #B8873C;
    color: #B8873C;
}

.elementor-element-becd45e .laa-pr-btn-1.has-white:hover svg * {
    fill: #B8873C;
}

/* =========================================================
   MAL MARITIME — TX ABOUT WIDGET CTA button colors
   ========================================================= */

/* Main button background */
.elementor-widget-tx_about .laa-pr-btn-1 .laa-pr-btn-1-left {
    background: #01204F;
}

/* Button text — normal state */
.elementor-widget-tx_about .laa-pr-btn-1 .text::before,
.elementor-widget-tx_about .laa-pr-btn-1 .text::after {
    color: #FFFFFF;
}

/* Arrow box — normal state */
.elementor-widget-tx_about .laa-pr-btn-1 .laa-pr-btn-1-right {
    background: #FFFFFF;
    border-color: #01204F;
    color: #01204F;
}

/* Connector between text and arrow */
.elementor-widget-tx_about .laa-pr-btn-1 svg * {
    fill: #01204F;
}

/* Hover — main button */
.elementor-widget-tx_about .laa-pr-btn-1:hover .laa-pr-btn-1-left {
    background: #B8873C;
}

/* Hover — arrow box */
.elementor-widget-tx_about .laa-pr-btn-1:hover .laa-pr-btn-1-right {
    background: #FFFFFF;
    border-color: #B8873C;
    color: #B8873C;
}

/* Hover — connector */
.elementor-widget-tx_about .laa-pr-btn-1:hover svg * {
    fill: #B8873C;
}

/* Hover — button text */
.elementor-widget-tx_about .laa-pr-btn-1:hover .text::before,
.elementor-widget-tx_about .laa-pr-btn-1:hover .text::after {
    color: #FFFFFF;
}

/* =========================================================
   MAL MARITIME — Fade Heading Colors
   ========================================================= */

/* Malmaritime: fix faded headings site-wide */
:is(h1,h2,h3,h4,h5,h6).txaa-split-text-3-ani
div[style*="color: rgb(246, 36, 89)"] {
    color: #B8873C !important;
    opacity: 10 !important;
}

/* =====================================================================================
   MAL MARITIME — Service Section Slider Card & Slider Control(prev & next)
   ===================================================================================== */

/* Malmaritime: service card hover background and readable text */
.log-service-item-5:hover .item-text {
    background-color: #B8873C !important;
}

.log-service-item-5:hover .item-text,
.log-service-item-5:hover .item-text h3,
.log-service-item-5:hover .item-text h3 a,
.log-service-item-5:hover .item-text p {
    color: #FFFFFF !important;
}

.log-ser-nav-5 .log-ser-prev-5:hover,
.log-ser-nav-5 .log-ser-next-5:hover {
    border: 1px solid #B8873C !important;
    background: transparent !important;
    color: #B8873C !important;
}

.log-ser-nav-5 .log-ser-prev-5:hover i,
.log-ser-nav-5 .log-ser-next-5:hover i {
    color: #01204F !important;
}

/* =========================================================
   MAL MARITIME — Info Box Hover Color
   ========================================================= */

/* Keep the foreground circle white */
.log-feature-item-1::before,
.log-feature-item-1::after {
    background-color: #FFFFFF;
}

/* Change the rear circle from green to Malmaritime navy on hover */
.log-feature-item-1:hover::before {
    background-color: #01204F !important;
}

/* =========================================================
   MAL MARITIME — TX Heading Style 1 - Width
   ========================================================= */

.log-section-title-1 {
    width: 100% !important;
    max-width: none !important;
}

.log-section-title-1 .section_title,
.log-section-title-1 .tx-description {
    width: 100% !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
}

/* =========================================================
   MAL MARITIME — TX Info Box Style 3
   ========================================================= */

/* Widget and card height */
.elementor-widget-tx_info_box[data-settings*="style_3"],
.elementor-widget-tx_info_box[data-settings*="style_3"] .elementor-widget-container,
.elementor-widget-tx_info_box[data-settings*="style_3"] .tx-infoBox {
    height: 100%;
}

.elementor-widget-tx_info_box[data-settings*="style_3"] .log-service-item-1 {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 32px;
    box-sizing: border-box;
}

/* Consistent icon container */
.elementor-widget-tx_info_box[data-settings*="style_3"] .service-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Consistent icon image size */
.elementor-widget-tx_info_box[data-settings*="style_3"] .service-icon img {
    display: block;
    width: 80px !important;
    height: 80px !important;
    max-width: 100%;
    object-fit: contain;
}

/* Allow text to use the remaining card width */
.elementor-widget-tx_info_box[data-settings*="style_3"] .service-text {
    flex: 1 1 0;
    min-width: 0;
}

/* Heading colour */
.elementor-widget-tx_info_box[data-settings*="style_3"] .service-text .ser_title,
.elementor-widget-tx_info_box[data-settings*="style_3"] .service-text .ser_title a {
    color: #01204F !important;
    font-weight: 700;
}

/* Description colour and readability */
.elementor-widget-tx_info_box[data-settings*="style_3"] .service-text p {
    color: #2E365B !important;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-widget-tx_info_box[data-settings*="style_3"] .log-service-item-1 {
        gap: 16px;
        padding: 24px;
        min-height: 280px;
    }

    .elementor-widget-tx_info_box[data-settings*="style_3"] .service-icon {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .elementor-widget-tx_info_box[data-settings*="style_3"] .service-icon img {
        width: 64px !important;
        height: 64px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .elementor-widget-tx_info_box[data-settings*="style_3"] .log-service-item-1 {
        gap: 16px;
        padding: 24px;
        min-height: 0;
        height: auto;
    }

    .elementor-widget-tx_info_box[data-settings*="style_3"] .service-icon {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }

    .elementor-widget-tx_info_box[data-settings*="style_3"] .service-icon img {
        width: 56px !important;
        height: 56px !important;
    }
}



/* =========================================================
   MALMARITIME — GLOBAL TX INFO BOX STYLE 9
   Applies to matching timeline widgets across the website
   ========================================================= */

/* Consistent timeline icon circle */
.tx_info_box .inner-icon {
    position: relative !important;
    width: 130px !important;
    height: 130px !important;
    margin: 0 auto 28px !important;
    border: 1px solid #DED0B3 !important;
    border-radius: 50% !important;
    background: #FFFDF8 !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Centre the icon */
.tx_info_box .icon-pro {
    position: absolute !important;
    inset: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Icon styling */
.tx_info_box .icon-pro i {
    display: inline-block !important;
    font-size: 48px !important;
    line-height: 1 !important;
    color: #B8873C !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Process number */
.tx_info_box .inner-icon > span {
    position: absolute !important;
    top: 4px !important;
    right: -2px !important;
    z-index: 5;
    color: #161E4F !important;
    background: #FAF6EC !important;
    padding: 2px 5px;
}

/* Consistent text alignment */
.tx_info_box .inner-text {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    text-align: center !important;
    box-sizing: border-box;
}

/* Heading spacing and alignment */
.tx_info_box .inner-text h3 {
    min-height: 2.5em;
    margin-bottom: 14px;
}

/* Description */
.tx_info_box .inner-text p {
    min-height: 7em;
    line-height: 1.6;
}

/* Tablet */
@media (max-width: 1024px) {
    .tx_info_box .inner-icon {
        width: 120px !important;
        height: 120px !important;
    }

    .tx_info_box .icon-pro i {
        font-size: 38px !important;
    }

    .tx_info_box .inner-text {
        max-width: 200px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .tx_info_box .inner-icon {
        width: 120px !important;
        height: 120px !important;
    }

    .tx_info_box .inner-text {
        max-width: 100%;
    }

    .tx_info_box .inner-text h3,
    .tx_info_box .inner-text p {
        min-height: 0;
    }
}


/* =====================================================
   Malmaritime FAQ — Left Side Styling
   ===================================================== */

/* 1. Subtitle: light background, dark text */
.elementor-element-b1cfbc4 .laa-subtitle-1 {
    background-color: #DED0B3 !important;
    color: #01204F !important;
    -webkit-text-fill-color: #01204F !important;
}

/* 2. Main heading: brand navy */
.elementor-element-b1cfbc4 .laa-scn-title-1 {
    color: #01204F !important;
    -webkit-text-fill-color: #01204F !important;
}

/* 3. Faded split-text heading: gold */
:is(h1,h2,h3,h4,h5,h6).txaa-split-text-3-ani
div[style*="color: rgb(246, 36, 89)"] {
    color: #B8873C !important;
    -webkit-text-fill-color: #B8873C !important;
    opacity: 1 !important;
}

/* 4. Gold accent and heading full stop */
.elementor-element-b1cfbc4 .laa-scn-title-1 .gold-accent,
.elementor-element-b1cfbc4 .laa-scn-title-1 span:last-child {
    color: #B8873C !important;
    -webkit-text-fill-color: #B8873C !important;
    opacity: 1 !important;
}

/* 4. Contact text and all heading tags */
.elementor-element-b1cfbc4 .laa-faq-1-content p,
.elementor-element-b1cfbc4 .laa-faq-1-content :is(h1,h2,h3,h4,h5,h6) {
    color: #2E365B !important;
    -webkit-text-fill-color: #2E365B !important;
}

/* 5. Phone number: default navy */
.elementor-element-b1cfbc4 .laa-faq-1-content a[href^="tel:"] {
    color: #01204F !important;
    -webkit-text-fill-color: #01204F !important;
    transition: color 0.2s ease;
}

/* 6. Phone number: gold on hover */
.elementor-element-b1cfbc4 .laa-faq-1-content a[href^="tel:"]:hover {
    color: #B8873C !important;
    -webkit-text-fill-color: #B8873C !important;
}


/* MAL Maritime – Contact Hero Subtitle */
.laa-contact-1-scn-title .laa-subtitle-1.hero-subtitle {
   background: #DED0B3 !important;
   color: #161E4F !important;
}

/* MAL Maritime – Contact Hero Description */
.laa-contact-1-scn-title p.tx-description {
    color: #FFFFFF !important;
	margin-top: 20px !important;
    line-height: 1.6 !important;
}
