/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

:root {
    --md-gray: #A6A6A6;
    --lt-gray: #F3F3F3;
    --gray: #DFDFDF;
    --blue: #2087E4;
    --shadow:  0 2px 12px 0 rgb(0 12 33 / 9%);
    --prim: #2087E4;
    --sec: #000D21;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -ms-font-smoothing: antialiased;
    font-smoothing: antialiased;
    overflow: hidden;
}

.single-directory .content-area {
    padding-right: 0;
    border: none;
}
/*
=========================================
      BRAND TITLE OPTIONS
=========================================
*/


.brand-wrap {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
}

.brand-fav img {
    border: 1px solid var(--md-gray);
    width: 108px;
    border-radius: 50%;
    height: 108px;
    object-fit: cover;
}

.directory-brand-wrap .brand-fav img{
    object-position: 50% 1%;
}

.coming-soon {
    width: 108px;
    height: 108px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    text-align: center;
    background: var(--lt-gray);
    border-radius: 50%;
    text-transform: uppercase;
    font-weight: 600;
}

.brand-socials a {
    width: 30px;
    height: 30px;
    background: #000;
    display: inline-block;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: #fff;
    font-size: 15px;
    transition: 0.3s;
}

.brand-socials a:hover {
    transform: translate(0, -8px);
}

section.brand-wrap.single-brand-wrap {
    grid-template-columns: 1fr 200px;
}

.single-brand-wrap p.company-title {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
}

.single-brand-social {
    display: flex;
    justify-content: flex-end;
}

.brand-data h2 {
    margin: 0;
    font-weight: 600;
    font-size: 35px;
}

p.company-title {
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .brand-wrap,
    section.brand-wrap.single-brand-wrap {
        grid-template-columns: 1fr;
    }
    .single-brand-social {
        justify-content: flex-start;
    }
}

/*
=========================================
ADDRESS | PHONE | EMAIL OPTIONS
=========================================
*/

.info-grid-container {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.contact-button-block a {
    background: #dfdfdf;
    padding: 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
    line-height: 1.2;
}

.contact-button-block a:hover {
    background: var(--prim);
    color: white;
}

.info-section {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.icon-container {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue);
    border-radius: 5px;
    color: #6c757d;
}

.icon-container i {
    font-size: 16px;
    color: white;
}

.info-container {
    flex: 1;
    min-width: 0;
}

.info-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.info-details p {
    margin: 0;
}

.street-address {
    margin-bottom: 0.25rem;
}

.phone-link,
.email-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-link:hover,
.email-link:hover {
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/************************************
    HOME/SINGLE CAT CARDS
************************************/

.direct-card-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    position: relative;
}

a.direct-cat-card {
    background: #fff;
    padding: 25px 25px 35px;
    border-radius: 15px;
    min-height: 250px;
    display: block;
    transition: 0.3s;
    position: relative;
    z-index: 5;
}

a.direct-cat-card:hover {
    transform: translate(0, -8px);
    cursor: pointer;
}

.direct-cat-card .lordicon-img {
    height: 100px;
    width: 100px;
}

.direct-cat-card h4 {
    margin-top: 20px;
}

.direct-cat-card .icon-cat {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
}

.direct-cat-card .icon-cat i {
    font-size: 70px;
    color: var(--prim);
}

.direct-card-wrapper-single {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/*Single Cards*/
.direct-cat-card-single .block-cat {
    background: var(--prim);
    box-shadow: var(--shadow);
    border-radius: 5px;
    padding: 8px 10px;
    transition: 0.3s;
    color: white;
    text-align: center;
    font-size: 16px;
}

.direct-cat-card-single .block-cat-industry {
    background: var(--sec);
}

/* Ensure the icon div keeps its width when it IS there */
.icon-cat {
    width: 80px;
}

.direct-cat-card-single .block-cat:hover {
    transform: translate(0, -8px);
    cursor: pointer;
}

.direct-cat-card-single .icon-cat {
    height: 80px;
    width: 80px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.direct-cat-card-single .icon-cat i {
    font-size: 50px;
    color: var(--blue);
}

.direct-cat-card-single .block-cat h6 {
    margin-bottom: 0;
    font-size: 18px;
}


@media screen and (max-width: 1450px) {
    .direct-card-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }

    .direct-card-wrapper .direct-cat-card:nth-last-of-type(-n+2) {
        display: none;
    }
}

@media screen and (max-width: 1100px) {
    .direct-card-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .direct-card-wrapper .direct-cat-card:nth-last-of-type(-n+4) {
        display: none;
    }
}

@media screen and (max-width: 768px) {

    .direct-card-wrapper {
        grid-template-columns: 1fr;
    }
    .direct-card-wrapper-single {
        grid-template-columns: 1fr;

    }
}

/*
=========================================
    EVENT OPTIONS
=========================================
*/

.rw-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
}


.event-grid {
    display: grid;
    grid-template-columns: 15px 1fr;
    grid-gap: 15px;
}

article.post-card-wrapper {
    box-shadow: var(--shadow);
    border-radius: 12px;
    position: relative;
    z-index: 5;
    background: #fff;
}

article.post-card-wrapper.single-event-wrapper {
    margin-bottom: 20px;
}
.post-inner-card {
    padding: 22px;
    padding-bottom: 80px;
}

.post-inner-card.single-event-data {
    padding-bottom: 22px;
}

#slick-articles .post-inner-card {
    padding-bottom: 22px;
}

.rw-event-link {
    display: inline-block;
    border-top: 1px solid var(--sec);
    width: 100%;
    padding: 12px 22px;
    text-transform: uppercase;
    color: var(--sec);
    font-weight: 500;
    border-radius: 0 0 12px 12px;
    position: absolute;
    bottom: 0;
}

.rw-event-link:hover {
    background: var(--prim);
    color: white;
}


.rw-post-link {
    display: inline-block;
    text-transform: uppercase;
    color: var(--sec);
    font-weight: 500;
}

.rw-post-link:hover {
    color: var(--prim);
}

.event-feat-image img {
    object-fit: cover;
    width: 100%;
    height: 330px;
    border-radius: 5px;
}

h5.event-title {
    margin: 20px auto;
    font-weight: 600;
}

a.card-cat {
    text-transform: uppercase;
    color: var(--md-gray);
    margin: 15px 0 0;
    display: inline-block;
}

h5.card-title {
    margin: 0 0 20px;
    font-weight: 600;
    font-size: 25px;
}

.card-title.board-title {
    margin-bottom: 0;
}

.hide-event-data {
    display: none;
}

@media screen and (max-width: 1150px) {
    .rw-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .rw-card-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*
=========================================
    DIRECTORY OPTIONS
=========================================
*/

.rw-directory-link {
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 20px;
    background: var(--sec);
    border-radius: 0 0 12px 12px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

.rw-directory-link:hover {
    background: var(--prim);
    color: #fff;
}

#slick-directory .card-title {
    margin-bottom: 0;
}

.brand-wrap.directory-brand-wrap {
    margin-bottom: 25px;
}

.directory-brand-wrap .brand-data {
    text-align: right;
    position: relative;
    top: 3px;
}

.directory-brand-wrap .brand-socials {
    margin-top: 8px;
}

.brand-divider {
    background: var(--lt-gray);
    width: 100%;
    height: 1px;
    position: absolute;
    margin: 0 -20px;
    top: 76px;
    z-index: 0;
}

.directory-cat {
    text-transform: uppercase;
    color: var(--md-gray);
    display: inline-block;
    line-height: 1.0;
    font-size: 14px;
}

#slick-directory .post-main-details {
    margin-top: 20px;
}

#slick-directory .post-inner-card p {
    margin-bottom: 5px;
}

.mobile-social {
    display: none;
}


@media screen and (max-width: 1200px) {
    .brand-socials a {
        width: 27px;
        height: 27px;
        font-size: 13px;
        line-height: 27px;
    }

    .single-directory-card .mobile-social {
        display: block;
    }

    .single-directory-card .directory-brand-wrap .brand-data {
        display: none;
    }

}

@media screen and (max-width: 768px) {
    .directory-brand-wrap .brand-socials,
    .directory-brand-wrap .brand-data {
        display: none;
    }

    .mobile-social {
        display: block;
    }
}


/************************************
       SLICK SLIDERS
************************************/

#slick-events .slick-list {
    padding-right: 100px !important;
    padding-left: 0px !important;
}

#slick-articles .slick-list {
    padding-right: 0 !important;
    padding-left: 100px !important;
}

.slick-slide {
    margin-left: 15px;
    margin-right: 15px;
}

.slick-list {
    margin-left: -15px;
    margin-right: -15px;
}

#slick-directory .slick-slide,
#slick-directory .slick-list {
    margin-left: 5px;
    margin-right: 5px;
}

.slick-track {
    display: flex !important;
    margin-top: 15px;
    margin-bottom: 15px;
}

.slick-slide {
    height: inherit !important;
}

.slider-overflow {
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 992px) {
    #slick-events .slick-list {
        padding-right: 25px !important;
    }

    #slick-articles .slick-list {
        padding-left: 25px !important;
    }
}


/*
=========================================
		HOME SEARCH
=========================================
*/

form#agencySearchHome {
    background: #fff;
    box-shadow: var(--shadow);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 50;
}

input#agencyKeywordHome {
    border-color: #6C6C6C;
    background: #fff;
}

.home-keywords {
    width: 26.1%;
    margin-right: .5%;
}

.agencyKeywordHome {
    height: 50px;
}

button.agencySubmitHome {
    border-radius: 5px;
    background: var(--sec);
    border: 1px solid var(--sec);
    width: 20%;
    display: inline-block;
    height: 50px;
    text-transform: uppercase;
}

button.agencySubmitHome:hover {
    background: var(--prim);
    border: 1px solid var(--prim);
}

#home-selects span.select2.select2-container.select2-container--default {
    width: 98% !important;
}

#home-selects .select2-container--default .select2-selection--single {
    border: 1px solid #6C6C6C;
}

.agencySelectWrapperHome {
    width: 90%;
    display: flex;
    gap: 10px;
}

.home-county,
.home-service {
    width: 100%
}

.select2-container .select2-selection--single {
    height: 50px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 50px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
}

    .clear-search-link {
        position: absolute;
        bottom: 5px; /* Adjust as needed */
        right: 31px; /* Adjust as needed */
        color: #585858;
        text-decoration: none;
        font-size: 14px;
        cursor: pointer;
        z-index: 10;
        text-align: right;
    }
    
    .clear-search-link:hover {
        color: #333;
        text-decoration: underline;
    }


@media screen and (max-width: 768px) and (min-width: 320px) {

    form#agencySearchHome {
        align-items: flex-start;
        flex-direction: column;
    }

    /*.home-keywords label,*/
    /*.home-keywords br,*/
    /*.home-service label,*/
    /*.home-county br,*/
    /*.home-county label,*/
    /*.home-service br {*/
    /*    display: none;*/
    /*}*/

    .agencySelectWrapperHome {
        flex-direction: column;
        width: 100%;
    }

    .home-keywords {
        width: 100%;
        margin-right: 0;
    }

    button.agencySubmitHome {
        width: 100%;
        margin-top: 15px;
    }

    .home-county,
    .home-service {
        margin-top: 15px;
    }

    #home-selects span.select2.select2-container.select2-container--default {
        width: 100% !important;
    }


}

/************************************
  PODCAST CARD
************************************/

.member-podcasts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }
        
        a.podcast-card {
            background: #fff;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
            color: inherit;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        a.podcast-card:hover {
            transform: translateY(-8px);
            box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
        }

             .podcast-card-image {
            width: 100%;
            min-height: 200px;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .podcast-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            aspect-ratio: 16 / 9;
        }
        
        
        .podcast-card:hover .podcast-card-image img {
            transform: scale(1.05);
        }

        .podcast-card-title {
            font-size: 18px;
            margin: 0;
            color: #000;
            margin-bottom: 20px;
        }
        
        .podcast-card-excerpt,
        .podcast-date {
            font-size: 16px;
            line-height: 1.6;
            color: #7D89A0;
        }

        .podcast-card-excerpt {
              margin-bottom: 20px;
              }
        
        .podcast-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 20px;
        }
    
        
        .podcast-listen-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: #0073aa;
            font-weight: 500;
            font-size: 14pxem;
            transition: color 0.2s ease;
        }
        
        .podcast-card:hover .podcast-listen-btn svg {
            background: #52D4F8;
        }
        
 .podcast-listen-btn svg {
    width: 33px;
    height: 33px;
    background: #2087E4;
    border-radius: 50%;
    color: white;
 }

        
        @media (max-width: 768px) {
            .member-podcasts-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }


/************************************
  POST PAGINATION
************************************/


.rw-pagination {
    text-align: center;
    margin-top: 50px;
}

.rw-pagination .page-numbers {
    background: var(--sec);
    padding: 15px;
    border-radius: 3px;
    color: #fff;
}

.rw-pagination .page-numbers.current,
.rw-pagination .page-numbers:hover {
    background: var(--prim);
}