/* ==========================================================================
   1. GLOBAL BUTTONS, EFFECTS & HOVERS
   ========================================================================== */
.zpbutton-type-primary:hover {
    background-color: #009ddc !important;
    border-color: #009ddc !important;
}

.zpbutton-type-primary:hover,
.zpbutton-type-primary:hover span {
    color: #ffffff !important;
}

/* UI Enhancement: Trending Courseware Image Hover & Shadow Transitions */
.course-hover-effect img {
    transition: transform 0.3s ease, filter 0.3s ease !important;
    margin: 15px !important;  
}

.course-hover-effect img:hover {
    transform: translateY(-6px) !important;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.15)) !important;
}

/* ==========================================================================
   2. MEGA MENU (NAVIGATION)
   ========================================================================== */
.zpmmcontainer .zpcontainer,
.zpmmcontainer .zpmm-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.zpmmcontainer .zprow {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    gap: 5px !important; 
    margin: 0 !important;
}

.zpmmcontainer .zpcol {
    flex: 1 !important;
    padding: 0 !important;
}

/* Primary Navigation Headings (Category Titles) */
.zpmm-title .zpmm-element-textcontent {
    font-size: clamp(10.5px, 0.9vw, 12.5px) !important;  
    font-weight: 800 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important;
    color: #009ddc !important;
    border-bottom: 2px solid #f0f0f0 !important; 
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
    display: block !important;
    white-space: normal !important;
    word-break: normal !important; 
    overflow-wrap: normal !important; 
    hyphens: none !important; 
}

/* Secondary Navigation Items (Course Links Formatting) */
.zpmm .zpmm-inner .zpmm-element.zpmm-text a,
.zpmm .zpmm-inner .zpmm-element.zpmm-text a span,
.zpmm .zpmm-inner .zpmm-element.zpmm-text a .zpmm-element-textcontent {
    font-size: clamp(10.5px, 0.8vw, 12px) !important;  
    font-weight: 500 !important; 
    text-transform: none !important; 
    color: #444444 !important; 
    word-break: keep-all !important; 
    word-wrap: normal !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
}

/* Interactive State: Secondary Navigation Hover Effects */
.zpmm .zpmm-inner .zpmm-element.zpmm-text a {
    display: inline-block !important; 
    width: 100% !important;
    line-height: 2 !important; 
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-bottom: none !important; 
    padding-bottom: 0px !important;
}

.zpmm .zpmm-inner .zpmm-element.zpmm-text a:hover span {
    color: #009ddc !important; 
    transform: translateX(4px) !important;
    display: inline-block !important;
}

/* UX Fix: Eliminate Menu Hover Dead Zones via Invisible Pseudo-element */
div[data-megamenu-content] {
    margin-top: -20px !important; 
    padding-top: 20px !important; 
}

div[data-megamenu-content]::before {
    content: '' !important;
    position: absolute !important;
    top: -10px !important;
    left: 0 !important;
    width: 100% !important;
    height: 10px !important;
    background: transparent !important;
}

/* ==========================================================================
   3. PRODUCT LISTINGS & CARDS (COLLECTION PAGES)
   ========================================================================== */
/* Typography: Truncate Product Names to 2 Lines & Enforce Uniform Height */
.theme-product-name,
.theme-product-name a,
.theme-product-list-style-16 .theme-product-name,
.theme-product-list-style-16 .theme-product-name a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    min-height: 2.8em !important;
    text-align: center !important; 
}

/* Rendering Fix: Reset Default Image Backgrounds & Clear Pseudo-elements */
.theme-product-image-area, 
.theme-product-image-area picture, 
.theme-product-image-area div, 
.theme-product-list-style-16 .theme-product-image-area {
    background: #ffffff !important;
    background-image: none !important;
    background-color: #ffffff !important;
    border-radius: 0px !important;
}

.theme-product-image-area::before,
.theme-product-image-area::after,
.theme-product-box-content .theme-product-image-area::before,
.theme-product-box-content .theme-product-image-area::after {
    display: none !important;
    background: none !important;
    content: none !important;
    opacity: 0 !important;
}

/* Image Asset Alignment: Enforce Contain Fit and Structural Positioning */
.theme-product-image-area picture img,
.theme-product-list-style-16 .theme-product-box-content .theme-product-image-area picture img {
    object-fit: contain !important;
    padding: 0px !important; 
    width: 90% !important; 
    height: auto !important; 
    position: static !important; 
    margin: 10px auto !important;
    display: block !important;
    transform: none !important;
}

/* UI Standardization: Uniform Alignment for Filmstrip 'View All' Action Buttons */
.zpfilmstrip-viewall-button .zpbutton-wrapper.zpbutton.zpbutton-type-primary.zpbutton-size-md.zpbutton-style-none {
    border-radius: 8px !important;
    padding: 14.08px !important;
    min-height: 40.16px !important;
    min-width: 130px !important;
    font-size: 14.08px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.zpfilmstrip-viewall-button .zpbutton-wrapper.zpbutton-size-md .theme-viewall-text {
    font-size: 14.08px !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   4. PRODUCT DETAIL PAGE (PDP)
   ========================================================================== */
/* Primary Call-to-Action: 'Add to Cart' Button Overrides */
.theme-product-detail-container button[data-addtocart],
.theme-product-detail-container .zpbutton-type-primary,
.theme-product-detail-container .theme-add-to-cart-btn,
.theme-product-detail-container button[data-addtocart]:hover,
.theme-product-detail-container .zpbutton-type-primary:hover,
.theme-product-detail-container .theme-add-to-cart-btn:hover {
    background-color: #009ddc !important;
    border-color: #009ddc !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Media Container: Main Product Image Layout Constraints */
img#product-image {
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important; 
    display: block !important;
    background-color: transparent !important;
}

/* Flex Layout: Center Alignment Wrapper for PDP Media */
.theme-product-detail-image-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important; 
    padding-top: 20px !important;
    width: 100% !important;
}

/* ==========================================================================
   5. FOOTER & NEWSLETTER FORM
   ========================================================================== */
/* Base Styling: Footer Anchor Tags and Transitions */
.zpdark-section-bg a:not(.zpbutton-wrapper),
.zpdark-section-bg a:not(.zpbutton-wrapper) span,
.theme-footer a, 
.theme-footer a span {
    color: #444444 !important; 
    text-decoration: none !important; 
    transition: all 0.3s ease !important;
}

.zpdark-section-bg a:not(.zpbutton-wrapper):hover,
.zpdark-section-bg a:not(.zpbutton-wrapper):hover span,
.theme-footer a:hover, 
.theme-footer a:hover span {
    color: #009ddc !important; 
    padding-left: 4px !important; 
}

/* Form Layout: Flexbox Structure for Newsletter Subscription */
.custom-footer-form form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.custom-footer-form input[type="email"],
.custom-footer-form input[type="text"] {
    padding: 12px 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #333333 !important;
}

.custom-footer-form input::placeholder,
.theme-footer input::placeholder {
    color: #888888 !important;
    opacity: 1 !important; 
}

.custom-footer-form input[type="email"]:focus {
    border-color: #009ddc !important;
    outline: none !important;
}

/* Form Submission: Newsletter Action Button Overrides */
.custom-footer-form button,
.custom-footer-form input[type="submit"],
.custom-footer-form input[type="button"] {
    background-color: #009ddc !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: none !important;
}

.custom-footer-form button:hover,
.custom-footer-form input[type="submit"]:hover {
    background-color: #007eb5 !important;
}

.custom-footer-form .zpbutton-type-primary,
.custom-footer-form .zpbutton-type-primary span,
.custom-footer-form button,
.custom-footer-form button span {
    color: #ffffff !important;
}

/* ==========================================================================
   6. SKU, PRODUCT LABELS & DYNAMIC ACCORDIONS
   ========================================================================== */
/* Component Layout: Flex Column Stacking for Title and Ratings */
.theme-product-name-rating {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.theme-product-name,
.theme-product-name a {
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: left !important;
    width: 100% !important;
    margin-bottom: 4px !important; 
}

/* Typography & Alignment: Global SKU Identifier */
.sku {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 12px !important; 
    color: #666666 !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

/* Contextual Override: SKU Alignment within PDP Scope */
.theme-product-detail-container .sku {
    text-align: left !important;
    font-size: 15.5px !important;
    margin-top: 6px !important;
}

details[name="product-details"] summary.theme-prod-content-summary span {
    font-size: 0 !important; 
}
details[name="product-details"] summary.theme-prod-content-summary span::before {
    content: "Product Details and Outline" !important;
    font-size: 16px !important; 
}

/* ==========================================================================
   7. CART DRAWER OVERFLOW FIXES
   ========================================================================== */
.theme-sliding-cart-container,
.theme-content-container,
.theme-shopping-cart-table-container {
    overflow-x: hidden !important;
}

.theme-cart-table-row {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 10px !important;
    overflow: hidden !important;
}

.theme-cart-table-row img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    max-width: none !important;
}

.theme-cart-table-row > div {
    min-width: 0 !important;
}

.theme-cart-table-row .theme-product-name,
.theme-cart-table-row .theme-product-name a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.theme-cart-table-row [class*="price"] {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding-right: 15px !important;
}

.theme-cart-table-row [class*="delete"] {
    flex-shrink: 0 !important;
    margin-right: 10px !important;
}

/* ==========================================================================
   8. COOKIE BANNER OVERRIDES
   ========================================================================== */
#zpconsent-manage,
#zpconsent-manage:hover,
#zpconsent-manage:focus {
    background: #009ddc !important;
    color: #ffffff !important;
    border: 1px solid #009ddc !important;
}

#zpconsent-decline,
#zpconsent-declined,
#zpconsent-decline:hover,
#zpconsent-decline:focus,
#zpconsent-declined:hover,
#zpconsent-declined:focus {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* Normalization: Reset Dimension and Animation Properties for Banner Controls */
#zpconsent-manage,
#zpconsent-decline,
#zpconsent-declined,
#zpconsent-manage:hover,
#zpconsent-decline:hover,
#zpconsent-declined:hover,
#zpconsent-manage:focus,
#zpconsent-decline:focus,
#zpconsent-declined:focus {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 10px 22px !important;
    white-space: nowrap !important;
    line-height: normal !important;
    height: auto !important;
    border-radius: 6px !important;
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   9. MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */
/* Layout Fix: Auto-height for Search Suggestion Overlay on Mobile Headers */
.theme-mobile-header-fixed .theme-search-suggestion-overlay {
    height: auto;
}

/* Breakpoint: Small Desktops & Landscape Tablets (Max: 991px) */
@media (max-width: 991px) {
    .zcs_mobile_heading .zpheading {
        font-size: 28px !important; 
        line-height: 1.3 !important;
    }
}

/* Breakpoint: Standard Mobile Viewports & Portrait Tablets (Max: 768px) */
@media (max-width: 768px) {
    .zpstorecollection-container,
    .zpfilmstrip {
        padding-left: 25px !important; 
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    .theme-product-box-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .theme-product-name {
        margin-left: 5px !important; 
        text-align: center !important;
    }
    
    .theme-product-list-style-16 .theme-cart-button,
    .theme-cart-button.zpbutton-full-width {
        width: 90% !important;
        max-width: 90% !important;
        margin: 0 auto !important; 
        display: block !important;
    }
    
    .theme-mobile-header-nav-wrapper {
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    .theme-mobile-header-icon-wrapper {
        padding-right: 8px !important;
    }
    
    .theme-mobile-header-icon {
        margin-right: 4px !important;
    }
    
    .theme-cart-table-row {
        gap: 8px !important;
        padding: 12px !important;
    }
}

/* Breakpoint: Legacy Small Mobile Devices (Max: 400px) */
@media (max-width: 400px) {
    .theme-product-list-style-16 .theme-product-box {
        min-width: 85% !important;
        max-width: 85% !important;
        flex: 0 0 85% !important;
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   10. ACCOUNT & ORDER MANAGEMENT OVERRIDES
   ========================================================================== */
/* Access Control: Hide Specific Data Fields in User Account Dashboard */
#userAccountContentArea .zpmo-dashboard-content > li:nth-last-child(1),
#userAccountContentArea .zpmo-dashboard-content > li:nth-last-child(2) {
    display: none !important;
}

/* Access Control: Disable/Hide 'Cancel Order' Action in Order History */
.zpmo-cancel-order-btn {
    display: none !important;
}

/* Access Control: Disable/Hide 'Request Cancellation' in Order Details */
a[data-request-cancel] {
    display: none !important;
}

/* UI Control: Suppress 'Non-returnable' Badge Visibility */
.theme-prod-non-returnable {
    display: none !important;
}


/* ==========================================================================
   11. BLOG POST CONTENT WIDTH
   ========================================================================== */

/* Center blog article content at a maximum width of 850px */
main[data-zs-app="blogpost"] .blogpost-container {
    width: 100% !important;
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Add comfortable spacing on mobile */
@media (max-width: 767px) {
    main[data-zs-app="blogpost"] .blogpost-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}



/* ==========================================
   11. BLOG POST CONTENT WIDTH
   ========================================== */

/* Center article content at a readable width */
main[data-zs-app="blogpost"] .blogpost-container {
    width: 100% !important;
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Mobile article padding */
@media (max-width: 767px) {
    main[data-zs-app="blogpost"] .blogpost-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* ==========================================
   12. BLOG POST TYPOGRAPHY
   ========================================== */

/* Automatically generated blog post title */
main[data-zs-app="blogpost"] .theme-blog-heading-author h1,
main[data-zs-app="blogpost"] .theme-blog-heading-author .theme-blog-heading {
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto 18px !important;
}

/* Article H2 headings - Poppins Bold */
main[data-zs-app="blogpost"] .blogpost-container h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 24px 0 16px !important;
    text-align: left !important;
}

/* Article H3 headings - Poppins SemiBold */
main[data-zs-app="blogpost"] .blogpost-container h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 18px 0 12px !important;
    text-align: left !important;
}

/* Article paragraphs */
main[data-zs-app="blogpost"] .blogpost-container p {
    font-size: 17px !important;
    line-height: 1.75 !important;
    margin-bottom: 18px !important;
    text-align: left !important;
}


/* ==========================================
   13. MOBILE BLOG TYPOGRAPHY
   ========================================== */

@media (max-width: 767px) {

    /* Blog post title */
    main[data-zs-app="blogpost"] .theme-blog-heading-author h1,
    main[data-zs-app="blogpost"] .theme-blog-heading-author .theme-blog-heading {
        font-size: 30px !important;
        padding: 0 16px;
    }

    /* H2 headings */
    main[data-zs-app="blogpost"] .blogpost-container h2 {
        font-size: 24px !important;
    }

    /* H3 headings */
    main[data-zs-app="blogpost"] .blogpost-container h3 {
        font-size: 20px !important;
    }
}


/* ==========================================
   LOGICAL OPERATIONS INSIGHTS & NEWS HEADER
   Yellow hero style
   ========================================== */

/* Main hero container */
.theme-pages-full-stretch .theme-blog-h1 {
    position: relative !important;
    isolation: isolate;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;

    background: #FFCC00 !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;

    padding: 95px 30px 105px !important;
    margin: 0px auto 25px !important;
    text-align: center !important;

    /* Hide any existing visual heading text */
    font-size: 0 !important;
    line-height: 0 !important;

    /* Curved white bottom edge */
    border-radius: 0 0 50% 50% / 0 0 7% 7% !important;
    overflow: hidden !important;
}

/* Main Insights & News title */
.theme-pages-full-stretch .theme-blog-h1::before {
    content: "Logical Operations Insights & News" !important;
    display: block !important;

    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;

    font-family: 'Poppins', sans-serif !important;
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -1.5px !important;
    color: #101828 !important;
    text-align: center !important;

    max-width: 1050px;
    margin: 0 auto 25px !important;
    padding: 0 !important;
}

/* Introductory subtitle */
.theme-pages-full-stretch .theme-blog-h1::after {
    content: "Explore industry insights, practical training resources, and the latest news and announcements from Logical Operations." !important;
    display: block !important;

    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-image: none !important;

    font-family: 'Poppins', sans-serif !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    letter-spacing: normal !important;
    color: #101828 !important;
    text-align: center !important;

    max-width: 760px;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Tablet */
@media (max-width: 991px) {
    .theme-pages-full-stretch .theme-blog-h1 {
        padding: 75px 25px 85px !important;
    }

    .theme-pages-full-stretch .theme-blog-h1::before {
        font-size: 44px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .theme-pages-full-stretch .theme-blog-h1 {
        width: calc(100% - 16px) !important;
        padding: 60px 22px 70px !important;
        margin: 0px auto 20px !important;
    }

    .theme-pages-full-stretch .theme-blog-h1::before {
        font-size: 34px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 20px !important;
    }

    .theme-pages-full-stretch .theme-blog-h1::after {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }
}




/* Logical Operations — Compact Desktop Mega Menus */

@media screen and (min-width: 992px) {

  /* About Us and Resources — 320px */
  div[data-megamenu-content="125679000000114899"],
  div[data-megamenu-content="125679000000122541"] {
    width: 320px !important;
    max-width: 320px !important;
    min-width: 0 !important;
  }

  /* Move each menu toward its navigation label */
  div[data-megamenu-content="125679000000114899"] {
    margin-left: 440px !important;
  }

  div[data-megamenu-content="125679000000122541"] {
    margin-left: 780px !important;
  }
}

