/* DUSUP homepage text-first layout. Loaded after the legacy theme styles. */
.home #home-slider { margin-top: 0; background: #f4f7fb; color: #012d6b; }
.home #home-slider .slide { min-height: 0; height: auto; padding: clamp(3.5rem, 8vw, 7rem) 1rem clamp(3rem, 6vw, 5rem); background: #f4f7fb; }
.home #home-slider .vcenter { position: static; }
.home #home-slider .vcenter .container, .home #home-slider .vcenter .row { height: auto; }
.home #home-slider .vcenter .content { width: 100%; max-width: 760px; height: auto; padding: 0; }
.home #home-slider .vcenter * { color: #012d6b; }
.home #home-slider h1 { margin-bottom: 1.5rem; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.08; }
.home #home-slider p { max-width: 48rem; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.5; }
.home #home-slider .readmore { border-color: #012d6b; }
.home #home-highlights { position: relative; top: auto; margin-top: 0; padding: 2rem 1rem; }
.home #home-highlights .row { gap: 1.5rem; }
.home #home-highlights .column { width: 100%; min-height: 0; height: auto; padding: 2.5rem; background-image: none; }
.home #home-highlights .moredetails { position: static; margin-top: 1.5rem; }
.home #our-story { background-image: none; padding: clamp(3.5rem, 7vw, 6rem) 1rem; }
.home #our-story .container, .home #our-story .row { width: 100%; }
.home #our-story .column { width: 100%; max-width: 760px; margin: 0 auto; }
.home #our-story .column img { display: none; }
.home #our-story h2 { margin-bottom: 1.5rem; }
.home #sustainability { max-width: 1400px; padding: 0 1rem; }
.home #sustainability > .row { align-items: stretch; gap: 1.5rem; }
.home #sustainability .certifications, .home #sustainability .sustainability { position: static; width: 100%; max-width: none; min-height: 0; padding: 2.5rem; }
.home #sustainability .certifications { background: #eef2f8; }
.home #sustainability .sustainability { background: #223e99; }
.home #sustainability .sustainability .bg { display: none; }
.home #sustainability .sustainability .excerpt { margin-bottom: 0; overflow-wrap: anywhere; }
.home #careers { padding: clamp(3.5rem, 7vw, 6rem) 1rem; }
.home #careers .careers { width: 100%; max-width: 760px; margin: 0 auto; padding: 0; }
.home #careers .visual { display: none; }
.home #contact .row { align-items: stretch; }
.home #contact .map, .home #contact .contact { width: 100%; max-width: none; }
.home #contact .map { min-height: 320px; }
.home #contact .map iframe { width: 100%; min-height: 320px; border: 0; }
@media (min-width: 768px) {
    .home #home-highlights .column { width: calc(33.333% - 1rem); }
    .home #sustainability > .row { flex-wrap: nowrap; }
    .home #sustainability .certifications { flex: 0 0 34%; }
    .home #sustainability .sustainability { flex: 1 1 auto; }
    .home #contact .map { flex: 1 1 66.666%; }
    .home #contact .contact { flex: 0 0 33.333%; }
}
@media (max-width: 767px) {
    .home #home-highlights .row, .home #sustainability > .row, .home #contact .row { display: block; }
    .home #home-highlights .column, .home #sustainability .certifications, .home #sustainability .sustainability, .home #contact .map, .home #contact .contact { margin-bottom: 1.5rem; }
    .home #home-highlights .column:last-child, .home #sustainability .sustainability, .home #contact .contact { margin-bottom: 0; }
}
@media (max-width: 390px) {
    .home #home-slider .slide, .home #home-highlights .column, .home #sustainability .certifications, .home #sustainability .sustainability { padding-right: 1.25rem; padding-left: 1.25rem; }
    .home #home-highlights, .home #sustainability, .home #our-story, .home #careers { padding-right: .75rem; padding-left: .75rem; }
}

/* Consolidated from homepage-textfirst-fix.css. Kept scoped to the DUSUP homepage. */
body.home #home-slider {
    display: none !important;
}

body.home #home-slider .slide,
body.home #home-slider .slick-arrow,
body.home #home-slider .slick-dots,
body.home #home-slider .sliderdots {
    display: none !important;
}

body.home #home-highlights {
    position: relative;
    top: auto !important;
    margin-top: 0 !important;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

body.home #home-highlights .row {
    align-items: stretch;
}

body.home #home-highlights .column {
    display: flex;
    flex-direction: column;
}

body.home #home-highlights .moredetails {
    margin-top: auto !important;
}

body.home #our-story {
    margin: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

body.home #our-story .column {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 1079px) {
    body.home #home-highlights {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    body.home #our-story {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 767px) {
    body.home #home-highlights .column {
        min-height: 0;
    }

    body.home #home-highlights .moredetails {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 390px) {
    body.home #home-highlights {
        padding-top: 1rem;
    }

    body.home #our-story {
        padding-top: 1rem;
    }
}

/* Text-first content layout for the remaining homepage sections. */
body.home #our-story {
    padding-right: 1rem;
    padding-left: 1rem;
    text-align: left;
}

body.home #our-story .container,
body.home #our-story .row {
    width: 100%;
}

body.home #our-story .row {
    margin-right: 0;
    margin-left: 0;
}

body.home #our-story .column {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0;
    padding: 0;
}

body.home #our-story h2 {
    margin-bottom: 1.5rem;
}

body.home .noc_wrap {
    margin: 0;
    overflow-x: visible;
    padding: 1.5rem 0;
}

body.home #sustainability {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 1rem;
}

body.home #sustainability > .row {
    display: block;
    align-items: stretch;
    gap: 1.5rem;
    margin: 0;
}

body.home #sustainability .certifications,
body.home #sustainability .sustainability {
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    margin: 0 0 1.5rem;
    padding: 2rem;
    align-self: stretch;
}

body.home #sustainability .certifications {
    background: #eef2f8;
    color: #012d6b;
}

body.home #sustainability .certifications h2 {
    color: #012d6b;
    margin-top: 0;
}

body.home #sustainability .certifications a {
    color: #012d6b;
}

body.home #sustainability .sustainability {
    background: #223e99;
}

body.home #sustainability .sustainability h2 {
    margin-top: 0;
}

body.home #sustainability .sustainability .bg {
    display: none;
}

body.home #sustainability .sustainability .excerpt {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

body.home #sustainability .certifications .row {
    margin-right: 0;
    margin-left: 0;
}

body.home #careers {
    margin: 0;
    padding: 1.5rem 1rem;
}

body.home #careers .container,
body.home #careers .row {
    width: 100%;
}

body.home #careers .row {
    margin-right: 0;
    margin-left: 0;
}

body.home #careers .careers {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0;
    padding: 0;
}

body.home #careers .careers h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

body.home #careers .visual {
    display: none;
}

body.home #contact .row {
    display: block;
    margin: 0;
}

body.home #contact .container2 {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

body.home #contact .map,
body.home #contact #map-canvas-wrap,
body.home #contact .mapouter,
body.home #contact .gmap_canvas {
    display: none;
}

body.home #contact .contact {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 2.5rem 1rem;
    background: #012d6b;
}

body.home #contact .contact h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

body.home #contact .contact ul {
    margin: 0;
}

body.home #contact .contact li {
    padding-left: 0;
    background-image: none;
}

@media (min-width: 900px) {
    body.home #sustainability > .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    body.home #sustainability .certifications {
        flex: 0 0 34%;
        margin-bottom: 0;
    }

    body.home #sustainability .sustainability {
        flex: 1 1 auto;
        margin-bottom: 0;
    }

    body.home #contact .contact {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (min-width: 768px) {
    body.home #sustainability {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    body.home #sustainability {
        max-width: 1240px;
    }
}

@media (min-width: 1440px) {
    body.home #sustainability {
        max-width: 1400px;
    }
}

@media (max-width: 899px) {
    body.home .noc_wrap {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    body.home #sustainability .certifications,
    body.home #sustainability .sustainability {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    body.home #sustainability .sustainability {
        margin-bottom: 0;
    }

    body.home #careers {
        padding-top: 1rem;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 390px) {
    body.home #our-story,
    body.home #careers,
    body.home #contact .contact {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    body.home #sustainability {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    body.home #home-highlights {
        padding-bottom: .75rem;
    }

    body.home #our-story {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    body.home .noc_wrap {
        padding-top: .75rem;
        padding-bottom: .75rem;
    }

    body.home #careers {
        padding-top: .75rem;
        padding-bottom: 1rem;
    }

    body.home #sustainability .certifications,
    body.home #sustainability .sustainability {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }
}

/* About Us, Supply Chain, and NOC text-first pages: remove image-column layout effects without changing CMS markup. */
#header.about-us-parent-textfirst,
.inner-page-banner-section.about-us-parent-textfirst {
    display: none;
    height: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
}

#page.about-us-textfirst-page .articles-listing,
#page.dusup-textfirst-supply-chain .articles-listing,
#page.dusup-textfirst-noc .articles-listing {
    align-items: stretch;
}

#page.about-us-textfirst-page .articles-listing > .col-md-4,
#page.dusup-textfirst-supply-chain .articles-listing > .col-md-4,
#page.dusup-textfirst-noc .articles-listing > .col-md-4 {
    display: none;
}

#page.about-us-textfirst-page .articles-listing > a.excerpt,
#page.dusup-textfirst-supply-chain .articles-listing > a.excerpt,
#page.dusup-textfirst-noc .articles-listing > a.excerpt {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

#page.about-us-parent-textfirst-page .articles-listing > a.excerpt {
    min-height: 0;
    height: auto;
    padding: 2rem 4rem 2rem 2rem;
}

#page.dusup-textfirst-supply-chain .articles-listing {
    margin-top: 1rem;
}

#page.dusup-textfirst-noc .articles-listing {
    margin-top: 1.25rem;
}

#page.dusup-textfirst-supply-chain .articles-listing > a.excerpt,
#page.dusup-textfirst-noc .articles-listing > a.excerpt {
    min-height: 0;
    height: auto;
}

#page.dusup-textfirst-supply-chain .articles-listing > a.excerpt {
    padding: 1.5rem 4rem 1.5rem 1.5rem;
}

#page.dusup-textfirst-noc .articles-listing > a.excerpt {
    padding: 24px 48px 24px 24px;
}

/* News listing and standard news posts: text-first layout without changing CMS content. */
#page.dusup-textfirst-news .articles-listing {
    align-items: stretch;
    margin-top: 1.25rem;
}

#page.dusup-textfirst-news .articles-listing > .col-md-4 {
    display: none;
}

#page.dusup-textfirst-news .articles-listing > a.excerpt {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    min-height: 0;
    height: auto;
    padding: 24px 48px 24px 24px;
}

#page.dusup-textfirst-news-single .content {
    min-height: 0;
    height: auto;
}

/* News articles: keep the footer at the viewport bottom only when the article is short. */
body:has(> #page.dusup-textfirst-news-single) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body:has(> #page.dusup-textfirst-news-single) > .header_wrap,
body:has(> #page.dusup-textfirst-news-single) > #page.dusup-textfirst-news-single,
body:has(> #page.dusup-textfirst-news-single) > #footer {
    flex-shrink: 0;
}

body:has(> #page.dusup-textfirst-news-single) > #page.dusup-textfirst-news-single {
    flex-grow: 1;
}

html.admin-bar body:has(> #page.dusup-textfirst-news-single) {
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
    html.admin-bar body:has(> #page.dusup-textfirst-news-single) {
        min-height: calc(100vh - 46px);
        min-height: calc(100dvh - 46px);
    }
}

#page.about-us-textfirst-page > .row > .sidebar ul.menu > .menu-item > a,
#page.dusup-textfirst-supply-chain > .row > .sidebar ul.menu > .menu-item > a,
#page.dusup-textfirst-noc > .row > .sidebar ul.menu > .menu-item > a {
    position: static;
    top: auto;
    display: block;
    width: 100%;
    height: auto;
    padding: 1.25rem 2rem;
    background: #223e99;
    color: #fff;
}

#page.about-us-textfirst-page > .row > .sidebar ul.menu > .menu-item > .sub-menu,
#page.dusup-textfirst-supply-chain > .row > .sidebar ul.menu > .menu-item > .sub-menu,
#page.dusup-textfirst-noc > .row > .sidebar ul.menu > .menu-item > .sub-menu {
    position: static;
    top: auto;
    right: auto;
    margin-right: 0;
    padding: 1.5rem 1.5rem;
    background: #ededed;
}

#page.about-us-textfirst-page > .row > .sidebar ul.menu > .menu-item > .sub-menu li a,
#page.dusup-textfirst-supply-chain > .row > .sidebar ul.menu > .menu-item > .sub-menu li a,
#page.dusup-textfirst-noc > .row > .sidebar ul.menu > .menu-item > .sub-menu li a {
    color: #012d6b;
}

@media (max-width: 767px) {
    #page.about-us-textfirst-page > .row,
    #page.dusup-textfirst-supply-chain > .row,
    #page.dusup-textfirst-noc > .row {
        flex-direction: column;
    }

    #page.about-us-textfirst-page > .row > .content,
    #page.dusup-textfirst-supply-chain > .row > .content,
    #page.about-us-textfirst-page > .row > .sidebar,
    #page.dusup-textfirst-supply-chain > .row > .sidebar,
    #page.dusup-textfirst-noc > .row > .content,
    #page.dusup-textfirst-noc > .row > .sidebar {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    #page.about-us-textfirst-page > .row > .content,
    #page.dusup-textfirst-supply-chain > .row > .content,
    #page.dusup-textfirst-noc > .row > .content {
        order: 2;
    }

    #page.about-us-textfirst-page > .row > .sidebar,
    #page.dusup-textfirst-supply-chain > .row > .sidebar,
    #page.dusup-textfirst-noc > .row > .sidebar {
        order: 1;
        margin-top: 0;
        margin-bottom: 2rem;
        padding-right: 0;
        padding-left: 0;
    }

    #page.dusup-textfirst-noc .articles-listing > a.excerpt {
        padding: 20px 40px 20px 18px;
    }

    #page.dusup-textfirst-news .articles-listing > a.excerpt {
        padding: 20px 40px 20px 18px;
    }
}
