
/* ==========================================
   BD LOGISTICS - MEDIALOGISTIEK
   ========================================== */

.media-logistiek { 
    --ml-green: #7AC323;
    --ml-green-dark: #5b9d2b;
    --ml-text:  rgb(89, 87, 79);;
    --ml-card-bg: #f7f7f3;
    width: 100%;
    color: var(--ml-text);
    font-family: inherit;
}

.media-logistiek *,
.media-logistiek *::before,
.media-logistiek *::after {
    box-sizing: border-box;
}

.media-logistiek .ml-container {
    width: min(100% - 64px, 1350px);
    margin-inline: auto;
}

.media-logistiek a {
    text-decoration: none;
}

/* ==========================================
   HERO
   ========================================== */

.media-logistiek .ml-hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 505px;

    background-image: var(--ml-hero-image, none);
    background-color: #354b42;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

.media-logistiek .ml-hero__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.39);
    pointer-events: none;
}

.media-logistiek .ml-hero__container {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: flex-end;
}

.media-logistiek .ml-hero__content {
    width: 51%;
    max-width: 665px;

    padding: 55px 0 65px;
}

.media-logistiek .ml-hero__title {
    margin: 0;

    color: #fff;

    font-size: clamp(32px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.7px;
}

.media-logistiek .ml-hero__accent {
    width: 98px;
    height: 11px;

    margin-top: 18px;

    background: var(--ml-green);
}

.media-logistiek .ml-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 67px;
    margin-left: -225px;
}

/* ==========================================
   HERO BUTTONS
   ========================================== */

.media-logistiek .ml-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    min-height: 48px;
    padding: 11px 23px;

    border: 2px solid var(--ml-green);
    border-radius: 50px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

.media-logistiek .ml-button:hover {
    transform: translateY(-2px);
}

.media-logistiek .ml-button--primary {
    background: var(--ml-green);
    color: #fff;
}

.media-logistiek .ml-button--primary:hover {
    background: var(--ml-green-dark);
    border-color: var(--ml-green-dark);
    color: #fff;
}

.media-logistiek .ml-button--outline {
    background: #fff;
    color: var(--ml-green-dark);
}

.media-logistiek .ml-button--outline:hover {
    background: var(--ml-green);
    color: #fff;
}

.media-logistiek .ml-button__arrow {
    font-size: 25px;
    font-weight: 400;
    line-height: 0.8;
}

/* ==========================================
   SECONDARY NAVIGATION
   ========================================== */

.media-logistiek .ml-navigation {
    position: relative;
    z-index: 5;

    background: #fff;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.09);
}

.media-logistiek .ml-navigation__inner {
    display: flex;
    align-items: center;
    margin-left: 0px;
    min-height: 59px;
    gap: 58px;
}

.media-logistiek .ml-navigation__brand {
    color: var(--ml-green);

    font-size: 18px;
    font-weight: 800;

    white-space: nowrap;
}

.media-logistiek .ml-navigation__links {
    display: flex;
    align-items: center;
    gap: 49px;
}

.media-logistiek .ml-navigation__menu,
.media-logistiek .ml-navigation__links > ul {
    display: flex;
    align-items: center;
    gap: 49px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.media-logistiek .ml-navigation__menu > li,
.media-logistiek .ml-navigation__links > ul > li {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.media-logistiek .ml-navigation__menu > li > a,
.media-logistiek .ml-navigation__links > ul > li > a,
.media-logistiek .ml-navigation__links > a {
    color: #242424;

    font-size: 16px;
    font-weight: 500;

    white-space: nowrap;
    text-decoration: none;

    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.media-logistiek .ml-navigation__menu > li > a:hover,
.media-logistiek .ml-navigation__menu > li.current-menu-item > a,
.media-logistiek .ml-navigation__menu > li.current-menu-ancestor > a,
.media-logistiek .ml-navigation__menu > li.current_page_item > a,
.media-logistiek .ml-navigation__menu > li.menu-item-has-children:hover > a,
.media-logistiek .ml-navigation__menu > li.menu-item-has-children:focus-within > a,
.media-logistiek .ml-navigation__links > ul > li > a:hover,
.media-logistiek .ml-navigation__links > ul > li.current-menu-item > a,
.media-logistiek .ml-navigation__links > ul > li.current-menu-ancestor > a,
.media-logistiek .ml-navigation__links > ul > li.current_page_item > a,
.media-logistiek .ml-navigation__links > ul > li.menu-item-has-children:hover > a,
.media-logistiek .ml-navigation__links > ul > li.menu-item-has-children:focus-within > a,
.media-logistiek .ml-navigation__links > a:hover {
    color: var(--ml-green-dark);
}

/* Dropdown arrow on parent items */
.media-logistiek .ml-navigation__menu > li.menu-item-has-children > a::after,
.media-logistiek .ml-navigation__links > ul > li.menu-item-has-children > a::after {
    content: "▾";
    margin-left: .35rem;
    color: currentColor;
    font-size: 1.4em;
    display: inline-block;
    transition: transform 500ms ease;
    line-height: 1;
}

.media-logistiek .ml-navigation__menu > li.menu-item-has-children:hover > a::after,
.media-logistiek .ml-navigation__menu > li.menu-item-has-children:focus-within > a::after,
.media-logistiek .ml-navigation__links > ul > li.menu-item-has-children:hover > a::after,
.media-logistiek .ml-navigation__links > ul > li.menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
}

/* ==========================================
   DROPDOWN SUB-MENU (MAIN MENU STYLE)
   ========================================== */

.media-logistiek .ml-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: .5rem;
    padding: .25rem 0;
    margin-top: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
            opacity .15s ease,
            transform .15s ease,
            visibility .15s ease;

    z-index: 50;
}

/* Dropdown triangle */
.media-logistiek .ml-navigation .sub-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 22px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    filter: drop-shadow(0 -1px 0 var(--gray-200));
}

/* Dropdown list items and links */
.media-logistiek .ml-navigation .sub-menu li {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
}

.media-logistiek .ml-navigation .sub-menu li a {
    display: flex;
    align-items: center;
    padding: .4rem .9rem .4rem 1.4rem;
    background: #fff;
    border-radius: 0;
    color: #848374;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.media-logistiek .ml-navigation .sub-menu li a:hover,
.media-logistiek .ml-navigation .sub-menu li.current-menu-item > a,
.media-logistiek .ml-navigation .sub-menu li.current_page_item > a {
    background: var(--gray-100);
    color: var(--green);
}

/* Dropdown bullet */
.media-logistiek .ml-navigation .sub-menu li a::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    margin-right: .5rem;
    position: relative;
    top: -.05rem;
    flex-shrink: 0;
}

/* Show standard dropdown on hover, focus and mobile open */
.media-logistiek .ml-navigation__menu > li:hover > .sub-menu,
.media-logistiek .ml-navigation__menu > li:focus-within > .sub-menu,
.media-logistiek .ml-navigation__links > ul > li:hover > .sub-menu,
.media-logistiek .ml-navigation__links > ul > li:focus-within > .sub-menu,
.media-logistiek .ml-navigation .menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nested dropdown (if additional level is present) */
.media-logistiek .ml-navigation .sub-menu .sub-menu {
    top: -1px;
    left: 100%;
    margin-left: .25rem;
}

.media-logistiek .ml-navigation .sub-menu .sub-menu::before {
    display: none;
}

/* ==========================================
   WORDPRESS CONTENT
   ========================================== */

.media-logistiek .ml-page-content {
    padding: 35px 0 45px;
    background: #fff;
}

.media-logistiek .ml-page-content__inner {
    width: 100%;
}

/* Gutenberg columns */

.media-logistiek .ml-page-content
.wp-block-columns {
    display: flex;
    gap: 26px;

    margin-top: 0;
    margin-bottom: 25px;
}

.media-logistiek .ml-page-content
.wp-block-column {
    min-width: 0;
}

/* ==========================================
   GUTENBERG SERVICE CARDS

   Add class "ml-service-card" to a
   Gutenberg Group block.
   ========================================== */

.media-logistiek .ml-page-content
.wp-block-group.ml-service-card {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 20px;

    min-height: 151px;
    padding: 20px 25px;

    background: var(--ml-card-bg);
    border-radius: 18px;

    color: var(--ml-text);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.media-logistiek .ml-page-content
.wp-block-group.ml-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Service card image */

.media-logistiek .ml-service-card
.wp-block-image {
    flex: 0 0 125px;
    margin: 0;
}

.media-logistiek .ml-service-card
.wp-block-image img {
    display: block;

    width: 125px;
    height: 110px;

    object-fit: contain;
}

/* Service card heading */

.media-logistiek .ml-service-card
.wp-block-heading {
    flex: 1;
    min-width: 0;

    margin: 0;

    color: var(--ml-text);

    font-size: clamp(19px, 1.7vw, 25px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.4px;
}

/* Service card buttons */

.media-logistiek .ml-service-card
.wp-block-buttons {
    margin: 0;
}

.media-logistiek .ml-service-card
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    padding: 0;

    border: 1.5px solid var(--ml-green);
    border-radius: 50%;

    background: transparent;
    color: var(--ml-green-dark);

    font-size: 25px;
    line-height: 1;

    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}

.media-logistiek .ml-service-card
.wp-block-button__link:hover {
    background: var(--ml-green);
    color: #fff;
}

/* ==========================================
   STANDARD GUTENBERG CONTENT
   ========================================== */

.media-logistiek .ml-page-content p {
    line-height: 1.7;
}

.media-logistiek .ml-page-content
.wp-block-image img {
    max-width: 100%;
}

.media-logistiek .ml-page-content
.wp-block-button:not(.ml-service-card .wp-block-button)
.wp-block-button__link {
    border-radius: 50px;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1100px) {

    .media-logistiek .ml-hero__content {
        width: 58%;
    }

    .media-logistiek .ml-hero__actions {
        margin-left: 0;
        margin-top: 40px;
    }

    .media-logistiek .ml-navigation__inner {
        gap: 30px;
    }

    .media-logistiek .ml-navigation__links,
    .media-logistiek .ml-navigation__menu,
    .media-logistiek .ml-navigation__links ul {
        gap: 24px;
    }

    .media-logistiek .ml-page-content
    .wp-block-columns {
        gap: 15px;
    }

    .media-logistiek .ml-page-content
    .wp-block-group.ml-service-card {
        gap: 12px;
        padding: 18px;
    }

    .media-logistiek .ml-service-card
    .wp-block-image {
        flex-basis: 85px;
    }

    .media-logistiek .ml-service-card
    .wp-block-image img {
        width: 85px;
        height: 95px;
    }

    .media-logistiek .ml-service-card
    .wp-block-heading {
        font-size: 19px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {

    .media-logistiek .ml-container {
        width: calc(100% - 36px);
    }

    /* Hero */

    .media-logistiek .ml-hero {
        min-height: 540px;
        align-items: flex-end;

        background-position: 37% center;
    }

    .media-logistiek .ml-hero__overlay {
        background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.15),
                rgba(0, 0, 0, 0.78)
        );
    }

    .media-logistiek .ml-hero__container {
        justify-content: flex-start;
    }

    .media-logistiek .ml-hero__content {
        width: 100%;
        max-width: none;

        padding: 80px 0 35px;
    }

    .media-logistiek .ml-hero__title {
        font-size: clamp(30px, 7vw, 39px);
        line-height: 1.12;
    }

    .media-logistiek .ml-hero__accent {
        width: 75px;
        height: 7px;

        margin-top: 20px;
    }

    .media-logistiek .ml-hero__actions {
        margin-top: 32px;
        margin-left: 0;
        gap: 12px;
    }

    .media-logistiek .ml-button {
        padding: 12px 17px;
        font-size: 13px;
    }

    /* Navigation */

    .media-logistiek .ml-navigation__inner {
        min-height: 65px;
        margin-left: 0px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 12px;
        padding: 15px 0;
    }

    .media-logistiek .ml-navigation__brand {
        font-size: 17px;
    }

    .media-logistiek .ml-navigation__links {
        width: 100%;
        gap: 24px;

        overflow-x: auto;
        padding-bottom: 5px;

        scrollbar-width: thin;
    }

    .media-logistiek .ml-navigation__links a {
        font-size: 14px;
    }

    /* Content */

    .media-logistiek .ml-page-content {
        padding: 25px 0 35px;
    }

    .media-logistiek .ml-page-content
    .wp-block-columns {
        flex-direction: column;
        gap: 15px;
    }

    .media-logistiek .ml-page-content
    .wp-block-column {
        flex-basis: auto !important;
        width: 100%;
    }

    /* Cards */

    .media-logistiek .ml-page-content
    .wp-block-group.ml-service-card {
        min-height: 130px;
        padding: 15px 20px;
        gap: 15px;
    }

    .media-logistiek .ml-service-card
    .wp-block-image {
        flex-basis: 100px;
    }

    .media-logistiek .ml-service-card
    .wp-block-image img {
        width: 100px;
        height: 100px;
    }

    .media-logistiek .ml-service-card
    .wp-block-heading {
        font-size: 22px;
    }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 380px) {

    .media-logistiek .ml-hero__title {
        font-size: 28px;
    }

    .media-logistiek .ml-button {
        width: 100%;
        justify-content: space-between;
    }

    .media-logistiek .ml-service-card
    .wp-block-image {
        flex-basis: 85px;
    }

    .media-logistiek .ml-service-card
    .wp-block-image img {
        width: 85px;
    }

    .media-logistiek .ml-service-card
    .wp-block-heading {
        font-size: 19px;
    }
}

/* BD Logistics Service Cards pattern */

.media-logistiek .ml-service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.media-logistiek .ml-service-cards > .wp-block-column {
    min-width: 0;
    margin: 0;
}

.media-logistiek .ml-service-card {
    position: relative;
    height: 100%;
}

.media-logistiek .ml-service-card
.wp-block-button__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (max-width: 1100px) {
    .media-logistiek .ml-service-cards {
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .media-logistiek .ml-service-cards {
        grid-template-columns: 1fr;
    }
}

/* Gutenberg editor preview */

.editor-styles-wrapper .ml-service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;

    min-height: 151px;
    padding: 20px 25px;

    background: #f7f7f3;
    border-radius: 18px;
}

.editor-styles-wrapper .ml-service-card
.wp-block-image img {
    width: 125px;
    height: 110px;
    object-fit: contain;
}

.editor-styles-wrapper .ml-service-card
.wp-block-heading {
    flex: 1;
    margin: 0;
    color: #003b32;
    font-size: 24px;
}

.editor-styles-wrapper .ml-service-card
.wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;
    padding: 0;

    border: 1.5px solid #65c900;
    border-radius: 50%;

    background: transparent;
    color: #51a900;
}

/* ==========================================
   MOBILE NAVIGATION
   ========================================== */

.media-logistiek .ml-navigation__submenu-toggle {
    display: none;
}

@media (max-width: 767px) {

    .media-logistiek .ml-navigation__inner {
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 14px 0;
    }

    .media-logistiek .ml-navigation__brand {
        margin-bottom: 10px;
    }

    .media-logistiek .ml-navigation__links {
        display: block;
        width: 100%;
        overflow: visible;
        padding: 0;
        border-top: 1px solid #e8ebe6;
    }

    .media-logistiek .ml-navigation__menu,
    .media-logistiek .ml-navigation__links > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .media-logistiek .ml-navigation__menu > li,
    .media-logistiek .ml-navigation__links > ul > li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid #e8ebe6;
    }

    .media-logistiek .ml-navigation__menu > li > a,
    .media-logistiek .ml-navigation__links > ul > li > a {
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
        padding: 11px 8px;
        white-space: normal;
        line-height: 1.35;
    }

    .media-logistiek .ml-navigation__menu > li.menu-item-has-children > a::after,
    .media-logistiek .ml-navigation__links > ul > li.menu-item-has-children > a::after {
        display: none;
    }

    .media-logistiek .ml-navigation__submenu-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 2px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--ml-text);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .media-logistiek .ml-navigation__submenu-toggle::before {
        content: "⌄";
        font-size: 24px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .media-logistiek .ml-navigation__submenu-toggle[aria-expanded="true"]::before {
        transform: rotate(180deg);
    }

    .media-logistiek .ml-navigation__submenu-toggle:focus-visible {
        outline: 2px solid var(--ml-green-dark);
        outline-offset: 1px;
    }

    .media-logistiek .ml-navigation .sub-menu {
        position: static;
        flex: 1 0 100%;
        min-width: 0;
        margin: 0 0 10px;
        padding: 4px 8px;
        transform: none;
        border: 0;
        border-radius: 8px;
        background: var(--ml-card-bg);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .media-logistiek .ml-navigation .sub-menu::before {
        display: none;
    }

    .media-logistiek .ml-navigation .sub-menu li a {
        min-height: 44px;
        padding: 10px 8px;
        background: transparent;
        white-space: normal;
        line-height: 1.35;
    }

    .media-logistiek .ml-navigation .sub-menu li a:hover,
    .media-logistiek .ml-navigation .sub-menu li.current-menu-item > a,
    .media-logistiek .ml-navigation .sub-menu li.current_page_item > a {
        border-radius: 5px;
        background: #e9eee5;
    }

    /* Keep links available when scripts are disabled; JavaScript adds this class after setup. */
    .media-logistiek .ml-navigation--js .menu-item-has-children > .sub-menu {
        display: none;
    }

    .media-logistiek .ml-navigation--js .menu-item-has-children.is-open > .sub-menu {
        display: flex;
    }
}
