/* --- GLOBAL VARIABLES (The Source of Truth) --- */
:root {
    /* Color Palette - We can update these values as we go */
    --primary-color: #6200ea; 
    --secondary-color: #03dac6;
    --bg-color: #ffffff;
    --text-main: #333333;
    --text-light: #888888;
    --app-bg-color: #f4f4f4; /* The background outside the phone view */

    /* Spacing & Borders */
    --border-radius: 12px;
    --standard-padding: 16px;

    --black: #000000;
    --white: #FFFFFF;


    --header-gradient: linear-gradient(90deg, #FFCC00 0%, rgba(255, 204, 0, 0.85) 40%, rgba(255, 204, 0, 0.3) 100%);
    --content-box-gradient: linear-gradient(180deg, rgba(217, 217, 217, 0) 0%, rgba(109, 109, 109, 0.5) 10%, #1F1F1F 100%);
    --get-a-quote-gradient: linear-gradient(90deg, #FFCC00 0%, rgba(255, 204, 0, 0.65) 35%, rgba(255, 204, 0, 0.3) 100%);
    --active-color: #D40511;
    --dhl-red: #D40511;
    --border-color: #DCDCDC;
    --dhl-yellow: #FFCC00;
    --footer-background: #F5F5F5;


}

@font-face {
    font-family: 'Delivery';
    src: url('https://lot.dhl.com/wp-content/themes/logistics-of-things-2021-v3/fonts/Delivery_W_Rg.woff') format('woff');
}

@font-face {
    font-family: 'Delivery Condensed';
    src: url('https://lot.dhl.com/wp-content/themes/logistics-of-things-2021-v3/fonts/Delivery_W_CdBlk.woff') format('woff');
    font-style: normal;
    font-weight: 900;
}

@font-face {
    font-family: 'Delivery Condensed Light';
    src: url('https://lot.dhl.com/wp-content/themes/logistics-of-things-2021-v3/fonts/Delivery_W_CdLt.woff') format('woff');
    font-style: normal;
    font-weight: 900;
}

/* --- SKELETON LOADING ANIMATION --- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    display: inline-block;
    position: relative;
    overflow: hidden;
    animation: shimmer 2s infinite linear; 
    border-radius: 4px;
    color: transparent !important; /* Hide any fallback text */
}

/* Specific Shapes */
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}
.skeleton-title {
    height: 1.5rem;
    margin-bottom: 0.75rem;
    width: 80%;
}
.skeleton-img {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #eee;
}
.skeleton-tag {
    width: 60px;
    height: 12px;
    margin-top: 5px;
}

/* Smooth Fade In for Real Content */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


.story-page .article-content .article-body-text a {
    color: #000 !important;
    text-decoration: underline !important;
}
.story-page .article-content .related-topics-list a {
    text-decoration: none !important;
}

.story-page .also-read-section a {
    text-decoration: none !important;
}

.story-page .also-read-section a:hover {
    text-decoration: none !important;
}

.story-page .article-content .article-body-text a:hover {
    color: #D40511 !important;
}


.story-page .article-content video {
    width: 100% !important;
    height: fit-content !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.story-page .article-content img, 
.story-page .article-content figure {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    object-position: center;
}

.story-page .article-content figure figcaption {
    padding-bottom: 1rem;
}

.story-page .article-content .acf-wysiwyg h3,
.story-page .article-content .acf-wysiwyg h2 {
    margin-bottom: 10px;
    font-family: 'Delivery Condensed', 'Delivery', sans-serif !important;
}

.story-page .article-content .acf-wysiwyg h3 strong,
.story-page .article-content .acf-wysiwyg h2 strong {
    margin-bottom: 10px;
    font-family: 'Delivery Condensed', 'Delivery', sans-serif !important;
}




/* Full screen overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-color: #ffffff; /* White background, or change to rgba(0,0,0,0.8) for dark */
    z-index: 9999; /* Make sure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* Smooth fade out */
}

/* Class to hide it */
.loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none; /* Allows user to click things underneath after it fades */
}

/* Optional: Resize the gif if needed */
.loader-gif {
    width: 80px; 
    height: auto;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}


/* --- Mobile Menu Container --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #FFCC00; /* DHL Yellow */
    z-index: 2000; /* High z-index to sit on top of everything */
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    /* Remove padding-top here, we use the header div instead */
    padding-bottom: 40px;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

/* Class to open it */
.mobile-menu.is-open {
    left: 0;
}

/* --- NEW: Header Section (X Button + Logo) --- */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px; /* Adjust based on your main header height */
    /* Sticky header ensures X button is always visible when scrolling */
    position: sticky; 
    top: 0;
    background-color: #FFCC00; 
    z-index: 10;
}

/* The X Button */
.menu-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #D40511; /* DHL Red or Black #000 depending on preference */
    padding: 5px;
    margin-right: 15px; /* Space between X and Logo */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.menu-close-btn i {
    font-size: 1.5rem; /* Make the X icon nicely visible */
}

/* The Logo */
.mobile-logo-wrapper {
    display: flex;
    align-items: center;
}

.mobile-app-logo {
    height: 24px; /* Matches your SVG height from the request */
    width: auto;
    display: block;
}

/* --- Inner Content --- */
.mobile-menu-inner {
    padding: 10px 20px;
}

/* Optional Overlay (Darkens background) */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    padding: 0 20px;
}

/* --- Navigation Links --- */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle divider */
}

.nav-link {
    display: block;
    padding: 15px 0;
    color: #000;
    font-weight: 700; /* Bold like screenshot */
    font-size: 1.1rem;
    text-decoration: none;
}

/* --- MOBILE MENU DROPDOWN STYLES --- */
.mobile-nav-list .has-dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dropdown-toggle .toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Active State (When dropdown is open) */
.dropdown-toggle.is-active {
    color: #D40511 !important; /* DHL Red */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle divider line */
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.dropdown-toggle.is-active .toggle-icon {
    transform: rotate(180deg); /* Points up */
}

/* Dropdown Inner Content */
.dropdown-menu-content {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 15px;
}

.dropdown-block {
    margin-bottom: 25px;
}

.dropdown-block:last-child {
    margin-bottom: 0;
}

.block-title {
    font-family: 'Delivery Condensed', sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #000; /* Black bottom border per design */
    padding-bottom: 8px;
    margin-bottom: 10px;
    margin-top: 0;
}

.block-desc {
    font-family: 'Delivery', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

/* Red Outline Button */
.btn-outline-red {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid #D40511;
    color: #D40511;
    background-color: transparent;
    font-family: 'Delivery', sans-serif;
    font-size: 15px;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-outline-red:hover {
    background-color: #D40511;
    color: #fff;
}

/* Dropdown styling */
.nav-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-toggle {
    background: none;
    border: none;
    font-size: 1rem;
}
.sub-menu {
    display: none; /* Hidden by default */
    list-style: none;
    padding-left: 15px;
    padding-bottom: 10px;
}
.sub-menu li a {
    display: block;
    padding: 8px 0;
    color: #333;
    font-size: 1rem;
    text-decoration: none;
}
.nav-item.dropdown-active .sub-menu {
    display: block;
}
.nav-item.dropdown-active .dropdown-toggle i {
    transform: rotate(180deg);
}

/* --- Language Selector --- */
.language-selector-wrapper {
    display: none !important;
    opacity: none !important;
    visibility: none !important;
    margin-bottom: 30px;
}
.custom-select {
    position: relative;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    border: 1px solid #000;
}
.custom-select .globe-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}
.lang-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    appearance: none; /* Remove default arrow */
    outline: none;
}
.custom-select .arrow-icon {
    position: absolute;
    right: 15px;
    pointer-events: none;
}

/* --- Newsletter --- */
.newsletter-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 1rem;
    outline: none;
}

.input-group .submit-btn {
    background-color: #D40511; /* DHL Red */
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.2rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.terms-checkbox a {
    color: #000;
    text-decoration: underline;
}

.sample-link {
    font-weight: 800;
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
    text-transform: uppercase;
}




/* Single CSS */

/* --- ACF Layout Styles --- */

.dhl-red-text {
    color: #D40511 !important;
}
.article-lead-text {
    font-family: "Delivery Condensed Light", sans-serif; /* Optional: if you want that look */
    font-weight: 100;
}

/* 1. Quote */
.acf-quote {
    border-left: 4px solid #D40511; /* DHL Red */
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
    color: #333;
}

/* 2. Full Width Image */
.acf-full-img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* 3. Side by Side */
.acf-side-by-side {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}
.acf-side-img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* 4. Key Takeaways */
.acf-takeaways {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}
.acf-takeaways ul {
    padding-left: 20px;
}
.acf-takeaways li {
    margin-bottom: 10px;
}

/* 5. Outbound Box (The Card Design) */
.story-page .article-content a.outbound-card {
    text-decoration: none !important;
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.3s;

}
.outbound-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.outbound-img-wrapper {
    width: 35%;
    min-width: 120px;
}
.story-page .article-content .outbound-img-wrapper img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}
.outbound-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.outbound-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.outbound-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.outbound-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.outbound-cta {
    color: #D40511;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

/* 6. Callout Box */
.acf-callout {
    background: #FFCC00; /* DHL Yellow */
    padding: 25px;
    margin: 25px 0;
    border-radius: 4px;
}
.callout-head { margin-top: 0; font-weight: 800; }

/* 7. Gallery */
.acf-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}
.gallery-caption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* 8. Video */
.acf-video-wrapper {
    margin: 30px 0;
}
.video-thumb { position: relative; width: 100%; height: auto; }
.play-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem; color: #fff; text-shadow: 0 0 10px rgba(0,0,0,0.5);
}



/* Resources article css*/

/* --- Resource PDF Styles --- */
.resource-pdf-intro {
    margin-bottom: 40px;
}

/* Key Takeaways with Checkmarks (2nd Screenshot) */
.resource-takeaways-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.resource-takeaways-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}
.resource-takeaways-list li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #D40511; /* DHL Red */
    font-size: 1.2rem;
}

/* Download Button */
.download-btn {
    display: inline-block;
    background-color: #D40511;
    color: #fff;
    padding: 15px 40px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}
.download-btn:hover {
    background-color: #b0040e;
}

/* Image Slider (3rd Screenshot) */
.resource-slider-wrapper {
    margin: 40px 0;
    width: 100%;
    overflow: hidden;
}
.resource-slide-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Download Form (4th Screenshot) --- */
.download-form-modal {
    display: none; /* Hidden by default */
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.download-form-modal.active {
    display: block;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
    border-radius: 4px;
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}


/* interactive content css */

.free-form-html iframe {
    width: 100% !important;
}



/* --- CUSTOM DHL LOADER --- */
.dhl-loader {
    border: 4px solid #f1f1f1; /* Light grey track */
    border-top: 4px solid #D40511; /* DHL Red spinner */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: dhl-spin 1s linear infinite;
    margin: 20px auto; /* Centers it perfectly */
}

@keyframes dhl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}