/*!
   Theme Name: Rapaport
   Theme URI: http://underscores.me/
   Author: BrandInfusion
   Author URI: https://brandinfusion.co.za/
   Description: Special Theme for DNet Rapaport
   Version: 1.0.0
   Tested up to: 5.4
   Requires PHP: 5.6
   License: GNU General Public License v2 or later
   License URI: LICENSE
   Text Domain: rapaport
   Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
   
   This theme, like WordPress, is licensed under the GPL.
   Use it to make something cool, have fun, and share what you've learned.
   
   Rapaport is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
   Underscores is distributed under the terms of the GNU GPL v2 or later.
   
   Normalizing styles have been helped along thanks to the fine work of
   Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
   */

@import 'assets/main.css';

.rap-com-style div,
.rap-com-style span,
.rap-com-style button,
.rap-com-style textarea,
.rap-com-style input,
.rap-com-style select,
.rap-com-style a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

.rap-com-style .search-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .2);
    z-index: 999999;
}

.rap-com-style .share-popup,
.rap-com-style .search-popup {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    width: 560px;
    margin-left: -280px;
    z-index: 9999991;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .37);
    background: #fff;
    padding: 50px 130px;
}

    .rap-com-style .share-popup .close,
    .rap-com-style .search-popup .close {
        position: absolute;
        top: 25px;
        right: 25px;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

        .rap-com-style .share-popup .close:before,
        .rap-com-style .share-popup .close:after,
        .rap-com-style .search-popup .close:before,
        .rap-com-style .search-popup .close:after {
            position: absolute;
            left: 8px;
            content: ' ';
            height: 16px;
            width: 2px;
            background-color: #575757;
        }

        .rap-com-style .share-popup .close:before,
        .rap-com-style .search-popup .close:before {
            transform: rotate(45deg);
        }

        .rap-com-style .share-popup .close:after,
        .rap-com-style .search-popup .close:after {
            transform: rotate(-45deg);
        }

    .rap-com-style .share-popup h3,
    .rap-com-style .search-popup h3 {
        font-size: 24px;
        font-weight: 500;
        text-align: center;
        margin-bottom: 10px;
    }

    .rap-com-style .search-popup form input[type="text"],
    .rap-com-style .search-popup form > select {
        width: 100%;
        padding: 7px 10px;
        margin-bottom: 11px;
        border-radius: 3px;
        border: 1px solid #DCE3EB;
        color: #575757;
        line-height: 1.56;
    }

    .rap-com-style .search-popup form .date {
        display: flex;
        align-items: center;
        margin-bottom: 11px;
    }

        .rap-com-style .search-popup form .date input {
            margin: 0 0 0 10px;
        }

    .rap-com-style .search-popup form input[type="submit"] {
        display: block;
        background: #00386E;
        border: 2px solid #00386E;
        border-radius: 25px;
        width: 110px;
        margin: auto;
        font-size: 14px;
        line-height: 1.6;
        font-weight: 600;
        color: #fff;
        padding: 5px 23px;
        cursor: pointer;
    }

        .rap-com-style .search-popup form input[type="submit"]:hover {
            background-color: #fff;
            color: #00386E;
        }

@media (max-width:767px) {
    .rap-com-style .share-popup,
    .rap-com-style .search-popup {
        top: 10%;
        left: 5%;
        width: 90%;
        margin: 0;
        padding: 20px 30px 30px 30px;
    }
}

.rap-com-style .posts-footer {
    text-align: center;
    margin-top: 50px;
}

    .rap-com-style .posts-footer .sort {
        display: inline-block;
        width: 100px;
        margin-right: 30px;
    }

    .rap-com-style .posts-footer .sort__box {
        width: 100px;
    }

    .rap-com-style .posts-footer .pagination {
        display: inline-block;
    }

.rap-com-style .pagination {
    padding: 0;
    list-style: none;
}

    .rap-com-style .pagination li {
        display: inline-block;
        margin: 0 16px;
    }

        .rap-com-style .pagination li,
        .rap-com-style .pagination li a {
            font-family: 'Montserrat';
            font-size: 16px;
            font-weight: 600;
            color: #9F9E9E;
            text-decoration: none;
        }

    .rap-com-style .pagination a:hover {
        color: #D2002D;
    }

    .rap-com-style .pagination li.active {
        color: #fff;
        background: #D2002D;
        padding: 3px 13px;
        margin: 0 9px;
    }

    .rap-com-style .pagination .firstpage a,
    .rap-com-style .pagination .lastpage a {
        text-indent: -9999px;
        font-size: 0;
        position: relative;
        top: 1px;
    }

        .rap-com-style .pagination .firstpage a:before,
        .rap-com-style .pagination .lastpage a:before {
            content: "";
            display: block;
            width: 0;
            height: 0;
            border-top: 7px solid transparent;
            border-bottom: 7px solid transparent;
            border-right: 12px solid #9F9E9E;
        }

        .rap-com-style .pagination .lastpage a:before {
            transform: rotate(180deg);
        }

        .rap-com-style .pagination .lastpage a:hover:before,
        .rap-com-style .pagination .firstpage a:hover:before {
            border-right: 12px solid #D2002D;
        }

.rap-com-style .search-popup .s-hidden {
    visibility: hidden;
    padding-right: 10px;
}

.rap-com-style .search-popup .select {
    cursor: pointer;
    display: block;
    position: relative;
    border: 1px solid #DCE3EB;
    width: 100%;
    margin-bottom: 11px;
    padding: 7px 10px;
    border-radius: 3px;
}

.rap-com-style .search-popup .styledSelect {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    padding: 7px 10px;
    color: #575757;
}

    .rap-com-style .search-popup .styledSelect:after {
        content: "";
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-color: #575757 transparent transparent transparent;
        position: absolute;
        top: 17px;
        right: 17px;
    }

    .rap-com-style .search-popup .styledSelect.active:after {
        transform: rotate(180deg);
        top: 12px;
    }

    .rap-com-style .search-popup .styledSelect:active,
    .rap-com-style .search-popup .styledSelect.active {
        background-color: #eee;
    }

.rap-com-style .search-popup .options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    margin: 0 0;
    padding: 0 0;
    list-style: none;
    border: 1px solid #ccc;
    background-color: white;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

    .rap-com-style .search-popup .options li {
        padding: 0 6px;
        margin: 0 0;
        padding: 0 10px;
    }

        .rap-com-style .search-popup .options li:hover {
            background-color: #00386e;
            color: white;
        }

.rap-com-style .share-popup {
    padding: 60px
}

    .rap-com-style .share-popup h3 {
        font-size: 24px;
        text-align: left;
        font-weight: 400;
        margin: 0;
        line-height: 27px;
    }

    .rap-com-style .share-popup .summary {
        display: flex;
        padding: 15px 0;
        font-size: 12px;
        font-weight: 500;
        border-bottom: 1px solid #C7C7C7;
        align-items: center;
    }

        .rap-com-style .share-popup .summary img {
            width: 36px;
            height: auto;
            margin-right: 7px;
        }

        .rap-com-style .share-popup .summary .copy-link {
            color: #000;
            margin-left: auto;
            padding-left: 27px;
            cursor: pointer;
            font-size: 14px;
            background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOS4wOTIiIGhlaWdodD0iOS43NjkiIHZpZXdCb3g9IjAgMCAxOS4wOTIgOS43NjkiPgogIDxnIGlkPSJJY29uX2ZlYXRoZXItbGluay0yIiBkYXRhLW5hbWU9Ikljb24gZmVhdGhlci1saW5rLTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0wLjUgLTkuNSkiPgogICAgPHBhdGggaWQ9ItCa0L7QvdGC0YPRgF8yNjQyIiBkYXRhLW5hbWU9ItCa0L7QvdGC0YPRgCAyNjQyIiBkPSJNMTIuMzc3LDEwLjVoMi4zMzFhMy44ODQsMy44ODQsMCwxLDEsMCw3Ljc2OUgxMi4zNzdtLTQuNjYxLDBINS4zODRhMy44ODQsMy44ODQsMCwxLDEsMC03Ljc2OUg3LjcxNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAzODZlIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIvPgogICAgPHBhdGggaWQ9ItCa0L7QvdGC0YPRgF8yNjQzIiBkYXRhLW5hbWU9ItCa0L7QvdGC0YPRgCAyNjQzIiBkPSJNMTIsMThoNi4yMTUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC01LjA2MiAtMy42MTYpIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDM4NmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgPC9nPgo8L3N2Zz4K");
            background-position: left center;
            background-repeat: no-repeat;
            flex: 0 0 100px;
        }

            .rap-com-style .share-popup .summary .copy-link:hover {
                text-decoration: underline;
                color: #00386E;
            }

    .rap-com-style .share-popup h4 {
        font-size: 16px;
        font-weight: 400;
        margin: 30px 0 20px 0;
        color: #575757;
    }

    .rap-com-style .share-popup .socials {
        margin-left: -15px;
    }

        .rap-com-style .share-popup .socials a {
            width: 100px;
            margin-bottom: 25px;
            display: inline-flex;
            flex-direction: column;
            font-size: 12px;
            font-weight: 400;
            color: #1A1A1A;
            text-align: center;
            text-decoration: none;
        }

            .rap-com-style .share-popup .socials a img {
                margin-bottom: auto;
                margin: 0 auto 10px auto;
            }


.rap-com-style .media_types label {
    display: grid;
    grid-template-columns: 5px auto;
    gap: 15px;
}

.rap-com-style .media_types input[type="checkbox"] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    appearance: none;
    /* For iOS < 15 */
    background-color: #fff;
    /* Not removed via appearance */
    margin: 3px 0 0 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

    .rap-com-style .media_types input[type="checkbox"]:checked {
        background-color: #00386e;
    }

    .rap-com-style .media_types input[type="checkbox"]::before {
        content: "";
        width: 0.65em;
        height: 0.65em;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
        transform: scale(0);
        transform-origin: bottom left;
        transition: 120ms transform ease-in-out;
        box-shadow: inset 1em 1em #fff;
        /* Windows High Contrast Mode */
    }

    .rap-com-style .media_types input[type="checkbox"]:checked::before {
        transform: scale(1);
    }

.rap-com-style .news__toggles__mobile {
    display: none;
}

@media (min-width:768px) {
    .rap-com-style .news__control.mobile {
        display: none !important;
    }
}

@media (max-width:767px) {
    .rap-com-style .news__control {
        display: none;
    }

    .rap-com-style .posts-footer .pagination {
        margin: 20px 0;
        width: 100%;
    }

    .rap-com-style .posts-footer .sort {
        margin: 0;
    }

    .rap-com-style .news__control.mobile {
        position: absolute;
        top: -12px;
        left: -30px;
        padding: 20px 30px 0 30px;
        background: #F2F2F2;
        width: calc(100% + 60px);
        margin: 0;
        z-index: 9;
    }

        .rap-com-style .news__control.mobile .news__sort {
            display: block;
            width: 100%;
        }

        .rap-com-style .news__control.mobile > h3 {
            font-size: 26px;
            margin-bottom: 15px;
        }

    .rap-com-style .news__toggles__mobile {
        display: flex;
        float: right;
        margin-top: 3px;
    }

    .rap-com-style .news__control .close {
        width: 28px;
        height: 28px;
        position: absolute;
        top: 15px;
        right: 25px;
        background-image: url('assets/images/content/close.svg');
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .rap-com-style .news__control.mobile .mobile-toggler {
        width: 100%;
        border: none;
        border-top: 1px solid #C7C7C7;
        padding: 5px 30px;
        margin: 0 -30px;
        width: calc(100% + 60px);
        font-size: 16px;
        font-weight: 500;
        position: relative;
        cursor: pointer;
    }

        .rap-com-style .news__control.mobile .mobile-toggler:after {
            content: "";
            display: block;
            border: solid #9F9E9E;
            border-width: 0 2px 2px 0;
            display: inline-block;
            padding: 5px;
            transform: rotate(45deg);
            -webkit-transform: rotate(45deg);
            position: absolute;
            top: 10px;
            right: 25px;
            transition: all 300ms;
        }

        .rap-com-style .news__control.mobile .mobile-toggler.active:after {
            top: 15px;
            transform: rotate(-135deg);
            -webkit-transform: rotate(-135deg);
        }

    .rap-com-style .news__control.mobile .sort,
    .rap-com-style .news__control.mobile .news__types {
        margin: 0;
    }


    .rap-com-style .news__toggles__mobile .filters-toggle {
        width: 22px;
        height: 22px;
        background-repeat: no-repeat;
        background-size: auto;
        display: inline-block;
        background-position: center;
        background-image: url('assets/images/icons/filter-toggle.svg');
        margin: 4px 0 0 20px;
        cursor: pointer;
    }

    .rap-com-style .news__control.mobile .news__types {
        padding: 12px 30px 7px 30px;
        margin: 0 -30px;
        width: calc(100% + 60px);
        border-top: 1px solid #C7C7C7;
    }

        .rap-com-style .news__control.mobile .news__types a {
            display: block;
            color: #707070;
            margin-bottom: 8px;
        }

            .rap-com-style .news__control.mobile .news__types a:hover,
            .rap-com-style .news__control.mobile .news__types a.active {
                color: #D2002D;
            }

    .rap-com-style .news__control.mobile .sort__options {
        position: unset;
        box-shadow: none;
        background: none;
    }

        .rap-com-style .news__control.mobile .sort__options.media_types {
            padding: 0 0 10px 0;
        }

        .rap-com-style .news__control.mobile .sort__options span {
            border: none;
        }

        .rap-com-style .news__control.mobile .sort__options label,
        .rap-com-style .news__control.mobile .sort__options a {
            padding: 4px 0;
            font-size: 15px;
            color: #707070;
        }

            .rap-com-style .news__control.mobile .sort__options a.active {
                color: #D2002D;
            }

    .rap-com-style .news__control.mobile .media_types label {
        gap: 20px;
    }

    .rap-com-style .news__control.mobile .sort__options a:hover {
        background: none;
    }
}

p.has-drop-cap:first-letter {
    float: left;
    margin: 0 10px 10px 0;
    font-size: 3.5em;
    font-weight: 500;
    line-height: 0.9;
}


/* Mega Menu Styles */
.rap-com-style .mega-menu-toggle {
    display: none;
}

.rap-com-style .mega-menu .mega-menu-item {
    position: initial;
}

.rap-com-style .mega-menu-item-has-children:hover > a {
    position: relative;
    z-index: 10;
}

@media (min-width:1024px) {
    .rap-com-style .mega-menu-item-has-children:hover > a:before {
        content: "";
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 15px 15px 15px;
        border-color: transparent transparent #F2F2F2 transparent;
        position: absolute;
        bottom: -1px;
        left: 50%;
        margin-left: -15px;
    }
}

.rap-com-style .mega-menu .mega-menu-item > ul.mega-sub-menu {
    display: none;
    width: 100%;
    top: 100%;
    left: 0;
    right: 0;
    background: #F2F2F2;
    padding: 25px;
    box-shadow: none;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    z-index: 9;
}

@media (min-width:1024px) {
    .rap-com-style .mega-menu .mega-menu-item-has-children:hover > ul.mega-sub-menu {
        display: block;
    }
}

.rap-com-style .mega-menu .mega-menu-item > ul.mega-sub-menu ul.mega-sub-menu a {
    width: auto;
    color: #1a1a1a;
    text-transform: uppercase;
    padding: 7px;
    font-weight: 500;
}

    .rap-com-style .mega-menu .mega-menu-item > ul.mega-sub-menu ul.mega-sub-menu a:hover {
        color: #00386e;
        text-decoration: underline;
    }

.rap-com-style .mega-menu .mega-menu-item > ul.mega-sub-menu ul.mega-sub-menu {
    display: flex;
    margin: auto;
    max-width: 840px;
    position: relative;
    left: 10px;
    background: #F2F2F2;
    float: none;
    box-shadow: none;
}

.rap-com-style .mega-menu .fullSize-mega-menu-item > ul.mega-sub-menu ul.mega-sub-menu {
    max-width: 1395px;
}

.rap-com-style .mega-menu .mega-menu-item > ul.mega-sub-menu ul.mega-sub-menu a.button {
    background: #00386E;
    border: 2px solid #00386E;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 17px;
    padding: 11px 23px;
    display: block;
    text-align: center;
    border-radius: 30px;
    margin: 0 0 0 auto;
    max-width: 180px;
}

    .rap-com-style .mega-menu .mega-menu-item > ul.mega-sub-menu ul.mega-sub-menu a.button:hover {
        background: none;
        color: #00386E;
    }

.rap-com-style .mega-menu .mega-menu-item > ul.mega-sub-menu ul.mega-sub-menu > li {
    flex: 1;
}

.rap-com-style .mega-menu-item-160 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(1) {
    flex: 2;
}

.rap-com-style .mega-menu-item-160 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(2) {
    flex: 3;
}

.rap-com-style .mega-menu-item-160 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(3) {
    flex: 2;
}

.rap-com-style .mega-menu-item-160 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(4) {
    flex: 2;
    display: flex;
    align-items: center;
}

.rap-com-style .mega-menu-item-77 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(1) {
    flex: 1;
}

.rap-com-style .mega-menu-item-77 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(2) {
    flex: 1;
}

.rap-com-style .mega-menu-item-77 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(3) {
    flex: 2;
}

    .rap-com-style .mega-menu-item-77 ul.mega-sub-menu ul.mega-sub-menu > li:nth-child(3) .button {
        margin-left: 80px
    }
