﻿/* =================================================================
   Korry Electronics Custom Style Overrides
   Based on Porto Theme for Bootstrap 4
   ================================================================= */

/* Custom Brand Colors */
:root {
    --korry-green: #01A74A;
    --korry-dark: #1a1a1a;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Didact Gothic', sans-serif;
    letter-spacing: unset;
}

body {
    font-family: 'Open Sans', sans-serif;
}

/* Brand Color Applications */
a {
    color: #01A74A;
}

a:hover:not(.btn) {
    color: #01A74A;
}

/* Header & Navigation Overrides */
#header {
    font-family: 'Didact Gothic', sans-serif;
}

#header a {
    font-size: 14px !important;
}

.header-container {
    background: #000;
}

#header .header-logo.px-4 {
    padding-left: 0 !important;
}

html #header.header-transparent .header-container {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

html:not(.sticky-header-active) #header.header-transparent .header-body {
    background-color: rgba(0, 0, 0, 0.9);
}

#header .header-logo img {
    margin: 0 !important;
}

html.sticky-header-active #header .header-btn-collapse-nav.on-sticky-dark .hamburguer span,
html.sticky-header-active #header .header-btn-collapse-nav.on-sticky-dark .close span {
    background: white;
}

/* Navigation Color Overrides */
@media (min-width: 992px) {
    #header .header-nav-main nav > ul > li.dropdown.open > .dropdown-menu,
    #header .header-nav-main nav > ul > li.dropdown:hover > .dropdown-menu {
        margin-top: -3px;
    }

    html:not(.sticky-header-active) #header.header-transparent .header-nav-main nav > ul > li:not(.active):hover > a {
        color: #01A74A;
    }
}

#header .header-nav-main nav > ul > li > a {
    color: #FFF;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a.active:not(.btn) {
    color: #01A74A;
}

.dropdown-menu .navlabel a {
    color: #01A74A !important;
}

.navlabel {
    margin-left: -10px;
}

/* Logo Rotator */
.logo-wrapper {
    position: relative;
}

.logo-rotator {
    position: absolute;
    width: 100%;
    left: 36px;
    top: 75%;
    margin: 0;
}

html:not(.sticky-header-active) #header.header-transparent .header-body .logo-rotator span {
    color: #fff;
    text-align: right;
    padding-right: 2px;
}

.logo-rotator .is-visible {
    color: #fff;
    font-style: italic;
}

html #header.header-transparent .header-body .logo-rotator span {
    color: #fff;
}

.word-rotator {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #fff;
}

.word-rotator-words {
    text-align: right;
    padding-right: 2px;
}

.word-rotator-words b {
    display: none;
}

.word-rotator-words b.is-visible {
    display: inline;
}

/* Anchor Scroll Offset — compensates for fixed sticky navbar (72px sticky + 8px breathing room) */
html {
    scroll-padding-top: 80px;
}

/* Main Content Spacing */

/* Underlined Title Component */
.underline-title-wrapper {
    text-align: center;
}

.underlined-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 5px;
    display: inline-block;
    text-align: center;
}

.underlined-title:after {
    content: '';
    display: block;
    height: 2px;
    margin-top: 20px;
    width: 62%;
    margin: 1.5rem auto;
    background-color: #01A74A;
}

/* Marketing Containers */
.marketing-container {
    padding: 0px 0 !important;
}

ul.marketing-container.market-2-ul-container {
    margin-bottom: -4.5px;
}

.market-2-container .marketing-container {
    padding: 4px 0 !important;
}

.marketing-container li h1 {
    font-size: 23px !important;
    line-height: 27px !important;
}

/* Boxed Corner Container */
.boxed-corner-container {
    display: inline-block;
    position: relative;
}

.full-img-width {
    display: block;
    margin-bottom: 5px;
}

.full-img-width img {
    width: 100%;
    display: block;
}

.boxed-corner-container:before {
    content: '';
    position: absolute;
    display: inline-block;
    max-width: 30%;
    width: 80px;
    top: -7px;
    left: -7px;
    z-index: 1;
    max-height: 30%;
    height: 80px;
    background-color: rgba(1, 167, 74, 1);
}

.boxed-corner-container:after {
    content: '';
    position: absolute;
    display: inline-block;
    max-width: 30%;
    width: 80px;
    right: -7px;
    z-index: 0;
    bottom: -7px;
    max-height: 30%;
    height: 80px;
    background-color: rgba(1, 167, 74, 1);
}

.boxed-corner-container img {
    position: relative;
    z-index: 5;
}

/* Alternating Tiles */
.alternating-tile1 > a {
    border: solid 1px rgba(0, 0, 0, .2);
}

.even-odd-list > li:nth-child(2n+2) {
    background-color: #2e2e2e;
}

.even-odd-list > li {
    background-color: #1b1b1b;
    padding: 20px;
    margin: 0px;
    color: white !important;
}

/* Cookie Consent Popup */
.popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    border-top: 3px solid #01A74A;
}

.popup.show {
    display: block;
}

.popup .cntr2 {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.popup a.cls {
    display: inline-block;
    background-color: #01A74A;
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 10px;
}

.popup a.cls:hover {
    background-color: #018a3d;
}

.popup a.Prpl {
    color: #01A74A;
    text-decoration: underline;
}

/* Utility Classes */
.text-2 {
    font-size: 16px;
}

.text-3 {
    font-size: 18px;
}

.mb-6 {
    margin-bottom: 60px;
}

.width-50 {
    max-width: 50%;
}

.color-box-grey {
    background-color: #d6d6d6;
}

.incomplete {
    color: orange;
}

.dne {
    color: red;
}

/* Footer Overrides */
#footer p {
    color: #eee;
}

.footer-text-white * {
    color: #eee !important;
}

.footer-text-white a:hover {
    color: #01A74A;
}

#footer ul.footer-text-white li:hover {
    left: 5px;
}

#footer ul.footer-text-white li {
    left: 0px;
    transition: ease .4s;
}

/* Revolution Slider Overrides */
.rev_slider li.slide-overlay.slide-overlay-level-9 .slotholder:after {
    opacity: .5;
}

.home-slider-wrapper, .tp-fullwidth-forcer {
    height: 500px !important;
}

.slider-text {
    margin-top: 60px;
    padding-bottom: 20px;
    text-align: center !important;
    line-height: 30px;
    color: #FFF !important;
}

.shortbanner {
    height: 350px;
    padding-top: 150px;
    background-image: url('../img/slides/home-slide1.png');
    background-size: cover;
}

/* Tabs & Tables */
.tab-pane img {
    max-width: 100%;
}

table.BoxedTable {
    background: #e7e8d2;
    border: 1px solid #000 !important;
}

table.BoxedTable tr,
table.BoxedTable th,
table.BoxedTable td {
    border-color: #000 !important;
    color: #000
}

/* Responsive Adjustments */
@media only screen and (min-width: 1240px) {
    .center-text-1240 li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    main {
        /* padding-top: 80px; */
    }
}

/* Form Pages — restore visible borders that Porto's theme-elements.css removes.
   Porto sets .form-control { border-color: transparent } globally as a design choice
   for its styled marketing components, but our utility forms (RMA, Switch Configurator)
   need standard visible inputs.  Scoped to the two form page body classes. */
.pg-rma-request .form-control,
.pg-389-series-config .form-control {
    border-color: #ced4da;
    background-color: #fff;
}

.pg-rma-request .form-control:focus,
.pg-389-series-config .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Page-Specific Overrides */
.pg-company .marketing-container li:hover h1,
.pg-customer-service .marketing-container li:hover h1 {
    top: 42%;
}

#history .alternating-tile1 img {
    height: 100px !important;
    width: auto !important;
}

#history .alternating-tile1 a {
    cursor: context-menu;
    background-color: #eee;
}

.pdf-alternate-color a:hover {
    text-decoration: underline;
}

span.vxz {
    display: flex;
}

span.vxz b {
    padding-right: 14px;
}

/* =================================================================
   Responsive Design Fixes
   ================================================================= */

/* --- 1. Marketing container 3-column grid reflow --- */
/* At tablet (≤768px): 2 items per row */
@media (max-width: 768px) {
    .marketing-container li {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* Undo 3n clip-path offsets that assume 3-col layout */
    .marketing-container li:nth-child(3n-2) .clipped,
    .marketing-container li:nth-child(3n) .clipped,
    .marketing-container .clipped {
        clip-path: none;
    }
    /* Tile title sizing */
    .marketing-container li h1 {
        font-size: 16px !important;
        line-height: 20px !important;
    }
}

/* At phone (≤576px): 1 item per row */
@media (max-width: 576px) {
    .marketing-container li {
        flex: 0 0 100%;
        max-width: 100%;
        height: 160px;
    }
    .marketing-container li h1 {
        font-size: 18px !important;
        line-height: 22px !important;
        width: 80%;
    }
    /* Show subtitles as static text on phone (no hover needed) */
    .marketing-container li p {
        opacity: 1;
        font-size: 13px;
        top: 65%;
        width: 99%;
    }
    .market-2-container {
        margin-top: 40px;
        margin-bottom: 30px;
    }
}

/* --- 2. Contact strip "Contact Us" button spacing --- */
/* Both the product assistance strip and the home page CTA */
@media (max-width: 767px) {
    .contact-us-strip-container .col-md-3,
    .skew-cta .col-md-3 {
        margin-top: 1.25rem;
    }
}

/* --- 3. Customer Service supplier document list overflow fix --- */
.supplier .pdf-lists ul li a {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* --- 3. Tab panel two-column rows stack on mobile --- */
@media (max-width: 767px) {
    .products-tabs .tab-pane .row > .col,
    .products-tabs .tab-pane .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .aerospace-tabs.vertical-tabs-wrapper {
        flex-direction: row;
    }

    .aerospace-tabs .vertical-tabs {
        flex-direction: column;
        flex-wrap: wrap;
        border-bottom: 1px solid #dee2e6;
        border-right: none;
        min-width: 75px;
    }
}

/* --- 4. Rep-tile and rep2-tile wrapping --- */
/* At tablet: 2 per row */
@media (max-width: 991px) {
    .rep-tile,
    .rep2-tile {
        width: 50%;
        height: auto;
        min-height: 180px;
    }
}
/* At phone: full width */
@media (max-width: 576px) {
    .rep-tile,
    .rep2-tile {
        width: 100%;
        float: none;
        height: auto;
        min-height: unset;
    }
    .rep-tile p,
    .rep-tile h3,
    .rep2-tile p,
    .rep2-tile h3 {
        max-width: 100%;
    }
}

/* --- 5. Company page T&C section text width --- */
@media (max-width: 767px) {
    .pg-company .width-50 {
        max-width: 100%;
    }
    .pg-company #capabilities .lead {
        max-width: 100%;
    }
}

/* --- 6. Customer Service supplier document list overflow --- */
.supplier .pdf-lists {
    width: 100%;
    max-width: 600px;
}
@media (max-width: 640px) {
    .pg-customer-service .pdf-lists li,
    .supplier .pdf-lists li {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* --- 7. Home page icon-box-style-4 icon sizing on mobile --- */
@media (max-width: 576px) {
    .icon-box.icon-box-style-4 .icon-box-icon img {
        max-width: 60px !important;
        width: 60px !important;
        height: 60px !important;
    }
    .home-slide-logo {
        max-width: 100%;
        height: auto;
        width: auto !important;
    }
}

/* --- 8. Clipped-image-about left margin — remove on mobile --- */
@media (max-width: 767px) {
    .clipped-image-about {
        margin-left: 0;
    }
    .clipped-image-about .col-md-5,
    .clipped-image-about .col-md-7 {
        padding: 0 15px;
    }
}

/* --- 9. Market pages: remove fixed heights on bullet/card rows at mobile --- */
@media (max-width: 767px) {
    ._content_commercial li {
        height: auto !important;
    }
    ._commercial_transport .row-dup-grey {
        height: auto !important;
        padding: 12px 0;
    }
    /* Aerospace vertical tabs: collapse to horizontal tabs on mobile */
    .aerospace-tabs .vertical-tabs-wrapper {
        flex-direction: column;
    }
}

/* --- 10. Touch states for marketing tiles and hotspots --- */
/* Mirror the :hover state using a JS-toggled class for touch devices */
.marketing-container li.touch-active .item-overlay {
    opacity: 1;
}
.marketing-container li.touch-active h1 {
    top: 42%;
}
.marketing-container li.touch-active p {
    opacity: 1;
    top: 62%;
}

/* Hotspot tooltip: show on touch-open */
#hotspotImg .hot-spot.touch-open .tooltip {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Osano overrides */

/* .osano-cm-info__info-dialog-header.osano-cm-info-dialog-header, */
.osano-cm-info-dialog-header__header.osano-cm-header,
.osano-cm-view__description.osano-cm-description,
.osano-cm-list-item__description.osano-cm-description > p {
    color: #FFFFFF;
}