/*
Theme Name: Boedeker Plastics Custom Theme
Description: Custom WordPress theme converted from DNN skin for Boedeker Plastics
Version: 1.0
Author: Custom Development
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat|Roboto');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* .entry-header {
    display: none !important;
} */

.entry-footer {
    display: none !important;
}

/* Header Styles */
.site-header {
    background: #fff;
    border-top: 7px solid #213f79;
    border-bottom: 1px solid #929394;
}

.top-nav {
    background: #fff;
    padding: 10px 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.phone-link {
    font-weight: bold;
    color: #213f79;
    text-decoration: none;
    font-size: 16px;
}

.phone-link:hover {
    color: #b31942;
}

.main-nav {
    background: #fff;
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 20px;
}

.nav-menu a {
    color: #213f79;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
}

.nav-menu a:hover {
    color: #b31942;
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    z-index: 1000;
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #b31942;
}

/* Footer Styles */
.site-footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.footer-links li {
    margin: 0 15px 10px 0;
}

.footer-links a {
    color: #213f79;
    text-decoration: none;
}

.footer-links a:hover {
    color: #0a3161;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.social-links li {
    margin: 0 10px;
}

.social-links a {
    color: #213f79;
    font-size: 20px;
    text-decoration: none;
}

.social-links a:hover {
    color: #0a3161;
}

.archive-controls {
    display: flex;
    gap: 8px;
    margin: 8px 0 14px;
}

.archive-controls-label {
    color: #666;
    font-size: 14px;
    align-self: center;
}

.archive-controls .layout-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #213f79;
    border-radius: 6px;
    color: #213f79;
    text-decoration: none;
}

.archive-controls .layout-toggle:hover {
    background: #f0f4ff;
}

.archive-controls .layout-toggle.is-active {
    background: #213f79;
    color: #fff;
}

.archive-controls .layout-toggle i {
    font-size: 16px;
    line-height: 1;
}

/* Hero banner */
.hero {
    position: relative;
    background: #213f79;
    color: #fff;
    padding: 36px 0;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
}
.hero .hero__overlay { position:absolute; inset:0; background: rgba(0,0,0,0.35); }
.hero .hero__inner { position: relative; z-index: 1; }
.hero .hero__inner.container {
    padding-left: 22px;
    padding-right: 22px;
}
.hero .hero__title { margin: 0 0 10px; }
.hero .hero__content-row { display: block; }
.hero .hero__description {
    margin-top: 10px;
    max-width: 960px;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1.45;
    font-weight: 400;
}
.hero .hero__search { display:flex; gap:8px; align-items:center; }
.hero .hero__search input[type="search"] { 
    padding:8px 10px; 
    border-radius:6px; 
    border:1px solid #ddd; 
    min-width: 260px; 
    color: #333;
    background: #fff;
    font-size: 1rem;
}

@media (max-width: 640px){
  .hero { padding: 24px 0; }
  .hero .hero__inner.container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero .hero__description { font-size: 1.6rem; }
  .hero .hero__search input[type="search"] { min-width: 180px; }
}

@media (min-width: 992px){
  .hero .hero__content-row.has-description {
    display: grid;
    grid-template-columns: minmax(0, 33%) minmax(0, 67%);
    column-gap: 24px;
    align-items: start;
  }
  .hero .hero__content-row.has-description .hero__main {
    min-width: 0;
  }
  .hero .hero__content-row.has-description .hero__description-col {
    min-width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero .hero__content-row.has-description .hero__description {
    margin-top: 2px;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #213f79;
        cursor: pointer;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .footer-links li {
        margin: 5px 0;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #218838;
    color: #fff;
}

.btn-primary {
    background: #213f79;
}

.btn-primary:hover {
    background: #1a3266;
}

.btn-lg,
.btn-group-lg>.btn {
    padding: 10px 16px;
    font-size: 19px;
    line-height: 1.33333;
    border-radius: 6px
}

a.btn-contact {
    width: 293.32px !important;
}

#contact-us-footer {
    display: inline-block;
}

/* ===== Footer vertical rhythm (match DNN spacing) ===== */

/* shrink the overall footer padding */
.site-footer {
    padding: 24px 0 18px;
}

/* contact message + button block */
.contact-section {
    margin-bottom: 14px !important;
}

.contact-section h4 {
    margin: 0 0 10px;
    line-height: 1.25;
}

#contact-us-footer,
.contact-section .btn {
    margin-top: 8px;
}

/* first row of links under the button */
.footer-links {
    margin: 10px 0 12px;
}

.footer-links li {
    margin: 0 16px 0 0;
}

/* tighten link spacing */
.footer-links a {
    line-height: 1.25;
}

/* “ISO / ITAR / 21 CFR / FDA” row */
.compliance-links .footer-links {
    margin: 8px 0 12px;
}

/* social icons row */
.social-links {
    margin: 12px 0;
}

/* “Subscribe to Our Newsletter” row */
.newsletter-signup {
    margin: 8px 0 10px;
}

/* copyright / address line */
.footer-bottom {
    margin-top: 12px;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.25;
}

/* payment icons row (if shown) */
.payment-methods .social-links {
    margin: 10px 0 0;
}


/* Search Styles */
.search-form {
    position: relative;
}

.search-form input {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #213f79;
    cursor: pointer;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-white {
    color: #fff;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}



img.large-logo {
    height: 95px;
    width: auto;
}

/* ===== Top bar layout (single row ≥1426px; two rows below) ===== */

/* make the container a flex row */
#top-nav .container-fluid {
    display: flex;
    align-items: center;
    gap: 12px;
    /* space between left/right groups */
}

#top-nav {
    padding-left: 24px;
    padding-right: 24px;
}

/* left group: your WP Primary Menu wrapper */
#bop-primary-menu {
    /* or #bop-eyebrow-menu if that’s your id */
    flex: 1 1 auto;
    /* grows/shrinks; takes remaining space */
    min-width: 0;
    /* prevents overflow from flex children */
}

/* right group: language/login/cart/A-Z/search */
.bop-right-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    /* stays tight on the right */
    white-space: nowrap;
    /* keep controls on one line */
}

/* kill Bootstrap float on navbar-right inside our flex row */
/* #top-nav .navbar-right { float: none !important; } */

/* keep menu items tidy */
#bop-primary-menu .navbar-nav {
    margin: 0;
}

#bop-primary-menu .navbar-nav>li>a {
    white-space: nowrap;
}

/* --- breakpoint behavior --- */
@media (min-width: 1426px) {
    #top-nav .container-fluid {
        flex-wrap: nowrap;
        /* one line */
        max-width: 1360px;
        /* center the bar like DNN */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1425px) {
    #top-nav .container-fluid {
        flex-wrap: wrap;
    }

    /* put tools on the first row, menu on the second */
    .bop-right-controls {
        order: 1;
        width: 100%;
        justify-content: flex-end;
    }

    #bop-primary-menu {
        order: 2;
        width: 100%;
        margin-top: 6px;
    }

    /* optional: slightly tighter gutters on small screens */
    #top-nav .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ensure the Google menu iframe overlays correctly if it opens near the edge */
.goog-te-menu-frame.skiptranslate {
    z-index: 999999 !important;
}


/* custom CSS */

.section-title {
    font-size: 2.5rem;
    /* Increased by 25% from 2rem */
    font-weight: 600;
    margin: 20px 0 40px;
    color: #333;
    text-align: center;
}

.section-separator-image img {
    max-width: 200px;
    margin-bottom: 20px;
}

.section-wrapper {
    padding: 25px !important;
}

@media (min-width: 768px) {
    #mobile-search {
        display: none;
    }
}

#mobile-search {
    margin-left: -1.5px;
}

div.headSearch {
    width: 15em;
}

img.large-logo {
    padding: 0 15px 0 15px;
}

@media (max-width: 767px) {
    div.headSearch {
        width: 100% !important;
        padding-bottom: 10px;
    }

}

div#mobile-menu {
    float: left;
    padding-left: 12.5px;
}

@media (max-width: 767px) {
    li#top-search {
        display: none;
    }
}

.feedback-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.underline-footer {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu-wrapper.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu a {
        padding: 15px 20px;
        display: block;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Breadcrumbs & back link layout */
.bop-breadcrumbs-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 5px 0;
    padding: 15px 0;
    /* padding-top: 8px; /* also not needed */
}

.bop-breadcrumbs-wrap .bop-back-link {
    /* display: inline-flex; */
    display: flex;
    align-items: center;
    line-height: 1.4;
    gap: 6px;
    color: #213f79;
    text-decoration: none;
    padding-top: 1.7px;
}

.bop-breadcrumbs-wrap .bop-back-link:hover {
    color: #b31942;
    text-decoration: none;
}

.bop-breadcrumbs-wrap .bop-back-link .fas,
.bop-breadcrumbs-wrap .bop-back-link .fa-solid,
.bop-breadcrumbs-wrap .bop-back-link i {
    vertical-align: middle;
    line-height: 1;
    position: relative;
    /* top: 1px; REMOVED BECAUSE IT WAS CAUSING THE BREADCRUMBS TO BE TOO FAR DOWN*/
}

@media (max-width: 576px) {
    .bop-breadcrumbs-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }
}

.bop-breadcrumbs {
    font-size: 14px;
    color: #666;
}

.bop-breadcrumbs span,
.bop-breadcrumbs a {
    display: inline-block;
}

.bop-breadcrumbs a {
    color: #213f79;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bop-breadcrumbs a:hover {
    color: #b31942;
    text-decoration: none;
}

.bop-breadcrumbs .breadcrumb_last {
    color: #999;
}

@media (max-width: 768px) {
    .bop-breadcrumbs {
        font-size: 12px;
    }
    .bop-breadcrumbs-wrap {
        gap: 12px;
        margin-top: 10px;
    }
}

/* Ensure FA6 brand icons render in footer regardless of legacy FA4 CSS */
.site-footer .social-links i.fab,
.site-footer .social-links i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
    font-style: normal;
}

/* List/grid view item styles */
.cards-grid .list-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.list-row .thumb-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.list-row .thumb-ratio img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.list-row .list-title { margin: 0 0 6px; }
.list-row .list-cats { font-size: 12px; color: #666; margin-bottom: 4px; }
.list-row .list-excerpt { margin: 8px 0 6px; }

@media (max-width: 768px) {
    .cards-grid .list-row { grid-template-columns: 1fr; }
}

/* Grid view cards */
.cards-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .cards-grid.view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .cards-grid.view-grid { grid-template-columns: 1fr; }
}

.cards-grid.view-grid .card {
    background: #eeeeee;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 16px;
}

.cards-grid.view-grid .card-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f7f7;
}

.cards-grid.view-grid .card-thumb img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.cards-grid.view-grid .card-body { padding-top: 12px; }
.cards-grid.view-grid .card-cats { font-size: 12px; color: #666; margin-bottom: 6px; }
.cards-grid.view-grid .card-title { 
    margin: 8px 0 6px; 
    font-size: 1.25rem;
    min-height: 2.4em; /* Approximately 2 lines */
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cards-grid.view-grid .card-excerpt { 
    margin: 8px 0 10px; 
    min-height: 3.6em; /* Approximately 2 lines of text */
    line-height: 1.8;
    overflow: hidden;
}

.cards-grid.view-grid .card-readmore {
    color: #213f79;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cards-grid.view-grid .card-readmore:hover {
    color: #b31942;
    text-decoration: none;
}

/* Taxonomy Pills */
.taxonomy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pill:hover {
    background: #213f79;
    color: #fff;
    text-decoration: none;
}

.pill__count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 500;
}

.pill:hover .pill__count {
    background: rgba(255,255,255,0.2);
}

/* Case Studies CTA */
.case-studies-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.case-studies-cta .cta-content h3 {
    color: #213f79;
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.case-studies-cta .cta-content p {
    color: #6c757d;
    margin: 0 0 20px;
    font-size: 1.1rem;
}

.case-studies-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.case-studies-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 63, 121, 0.3);
}

/* Plastics Insights CTA */
.plastics-insights-cta {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.plastics-insights-cta .cta-content h3 {
    color: #1976d2;
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.plastics-insights-cta .cta-content p {
    color: #424242;
    margin: 0 0 20px;
    font-size: 1.1rem;
}

.plastics-insights-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.plastics-insights-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}


/* List view excerpt styling */
.list-excerpt {
    min-height: 3.6em; /* Approximately 2 lines of text */
    line-height: 1.8;
    overflow: hidden;
    margin: 8px 0 10px;
}

.list-readmore {
    color: #213f79;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.list-readmore:hover {
    color: #b31942;
    text-decoration: none;
}

/* List view title styling */
.list-title {
    min-height: 2.4em; /* Approximately 2 lines */
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 8px 0 6px;
    font-size: 1.25rem;
}

/* Responsive hero heights */
@media (max-width: 768px) {
    .hero {
        min-height: 300px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 250px !important;
    }
}

/* === Titlebar Base === */
.bop-titlebar {
    width: 100%;
  }
  
  /* Color mode (title inside bar) */
  .bop-titlebar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 20px;
  }
  
  .bop-titlebar__title {
    margin: 0;
    color: #ffffff !important;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.1;
  }
  
  /* If logo is present */
  .bop-titlebar__right {
    flex: 0 0 auto;
  }
  
  .bop-titlebar__logo {
    max-height: 100px;
    width: auto;
    display: block;
  }
  
  /* === Image mode (banner image, title below) === */
  .bop-titlebar--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    /* height is set inline in PHP via style="height: Npx;" */
    width: 100%;
  }
  
  /* Spacer no longer needed since height is controlled inline */
  /* .bop-titlebar__image-spacer { height: 110px; } */
  
  .bop-titlebar__title-below {
    margin: 18px 0 10px;
    color: #222;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.15;
  }
  
  /* === Responsive tweaks === */
  @media (max-width: 991px) {
    .bop-titlebar__title {
      font-size: 32px;
    }
    .bop-titlebar__logo {
      max-height: 44px;
    }
    .bop-titlebar__title-below {
      font-size: 28px;
    }
  }
  
  @media (max-width: 575px) {
    .bop-titlebar__inner {
      padding: 16px 0;
      gap: 14px;
    }
    .bop-titlebar__title {
      font-size: 26px;
    }
    .bop-titlebar__title-below {
      font-size: 24px;
      margin: 14px 0 8px;
    }
  }
  
  section.bop-titlebar.bop-titlebar--color {
    margin: 0 0 10px 0;
}