/*-------------------------------------------------------------
- Global
-------------------------------------------------------------*/

/*-------------------------------------------------------------
- CPT List
-------------------------------------------------------------*/
/* General container */
body.home .spinogenix_list_wrapper {
    padding-top: unset;
}
body .spinogenix_list_wrapper {
    border-bottom: none;
    padding-top: 40px;
}
body .spinogenix_list_wrapper .spinogenix_list_wrapper_inner:not(:last-child) {
    border-bottom: 1px solid;
    border-color: var(--fawn);
}
body .spinogenix_list_wrapper .spinogenix_list_wrapper_inner {
    padding: 10px 0;
    padding-top:20px;
}
body .spinogenix_list_wrapper_inner .spinogenix_list_view {
    display: flex;
}
/* Only apply min-height when there's an image */
body .spinogenix_list_wrapper_inner .spinogenix_list_view:has(.spinogenix_featured_image) {
    min-height: 150px;
}
/* Content area fills remaining space */
body .spinogenix_list_view_content {
    flex: 1;
}
.spinogenix_list_wrapper.spinogenix_featured_image {
    width: 33%;
    max-width: 380px;
    margin-right: 20px;
}

.spinogenix_featured_image img {
    border-radius: 5px;
}
.spinogenix_list_wrapper .spinogenix_featured_image {
    width: unset;
    padding-left: unset;
}
/* Padding for blog page */
body.page-id-42 .spinogenix_list_wrapper {
    padding-bottom: 60px;
}

/* Headings */
.spinogenix_list_wrapper h3 {
    margin-bottom: 20px;
}

.spinogenix_list_view h3 {
    font-family: "Lato", sans-serif;
    font-size: 22px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.spinogenix_list_view h3 a {
    text-decoration: none;
    color: #0B2D71; /* Dark Blue */
}

.spinogenix_list_view h3 a:hover {
    color: #0066B2; /* Medium Blue */
}

.spinogenix_list_title {
    color: #1e1a4a;
    width: 100%;
}

.spinogenix_list_title a {
    text-decoration: none;
    color: #1e1a4a;
}

.spinogenix_list_title a:hover {
    text-decoration: underline;
}

/* Date */
.spinogenix_single_date {
    font-weight: 500;
    font-size: 14px;
    font-family: "Lato", sans-serif;
    color: #6B6D6F; /* Dark Gray */
    margin-bottom: 10px;
}

/* Excerpt */
.spinogenix_list_view p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Filter buttons */
body .button_filter {
    margin: 40px 0;
}
body .button_filter {
    position: relative;
}
body .button_filter button.filter-btn {
    background-color: var(--teal);
    border-radius: 10rem;
    color: white;
    text-transform: uppercase;
    padding: .75rem 1rem;
    font-size: .75rem;;
    letter-spacing: .05rem;
    font-family: "area-normal", sans-serif;
    border: 1px solid #ebebeb;
}
body .button_filter button.filter-btn:hover, body .button_filter button.filter-btn.active {
    background-color: var(--drake);
}

/* Pagination */
.pagination_nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    text-align: center;
    padding: 40px 0 60px 0px;
}

/* Read More Button + Next/Prev Buttons */
.read-more-button, .previous_button a,
.next_button a  {
    background-color: var(--fawn);
    border-radius: 10rem;
    color: white;
    text-transform: uppercase;
    padding: .75rem 1.25rem;
    font-size: .6875rem;
    letter-spacing: .05rem;
    font-family: "area-normal", sans-serif;
    border: 1px solid #ebebeb;
    text-decoration: none;
}

.read-more-button:hover, .read-more-button:active, .previous_button a:hover,
.next_button a:hover  {
   background-color: var(--bronze);
    color: white;
}

/* Hide the default archive page after CPT Listview Title's element's overlay */
body.archive .page-header-bg-image:after {
    display:none;
}


/* ---------------------------------
--- POST LIST VIEW SUBMENU STYLES
---------------------------------*/
/* Set height for desktop */
.custom-submenu .wpb_row.vc_row-fluid.vc_row.full-width-section {
    height: 46px;
}

/* Remove height restriction on mobile */
@media (max-width: 768px) {
    .custom-submenu .wpb_row.vc_row-fluid.vc_row.full-width-section {
        height: auto !important;
    }
}

/* ---------------------------------
--- HERE TO HELP SHORTCODE STYLES 
---------------------------------*/
.here-to-help-section .row_col_wrap_12{
    display:flex;
    justify-content: center;
    align-content: center;
    gap: 30px
}
.here-to-help-section .row_col_wrap_12 .help-headshot{
    max-width: 150px;
}
.here-to-help-section .here-to-help-content .here-to-help-tel {
    padding-bottom: unset;
}
.here-to-help-section .here-to-help-content .here-to-help-email:before {
    content: '';
    background: url(/wp-content/uploads/2025/03/email-icon-color.svg);
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background-size: contain;
}
.here-to-help-section .here-to-help-content .here-to-help-tel:before {
    content: '';
    background: url(/wp-content/uploads/2025/03/phone-icon-color.svg);
    position: absolute;
    left: 0px;
    width: 28px;
    height: 28px;
    background-size: contain;
}
.here-to-help-section .here-to-help-content .here-to-help-tel {
    padding-bottom: 10px;
}
.here-to-help-section .here-to-help-content .here-to-help-email, .here-to-help-section .here-to-help-content .here-to-help-tel {
    position: relative;
    padding-left: 35px;
}

/*-------------------------------------------------------------
 - CPT on Home Page
------------------------------------------------------------ */ 
#latest-news-home .next_button,
#latest-news-home .previous_button
{
    display: none;
}

/*-------------------------------------------------------------
- Media Query
-------------------------------------------------------------*/
@media only screen and (max-width: 999px){
    #ajax-content-wrap .spinogenix_featured_image img {
        max-width: unset;
        width: unset;
    }
}
@media only screen and (max-width: 690px) {
    #ajax-content-wrap > .spinogenix_list_wrapper > .spinogenix_list_wrapper, #ajax-content-wrap .spinogenix_list_wrapper_inner > .spinogenix_list_view {
        flex-direction: column;
    }
    #ajax-content-wrap .spinogenix_featured_image img {
        width: 20%;
        height: auto;
    }
}

/*-------------------------------------------------------------
- News List View Mobile
-------------------------------------------------------------*/
@media screen and (max-width: 767px) {
    .news_list_view.spinogenix_list_view {
        flex-direction: column;
    }
    .spinogenix_list_wrapper_inner .spinogenix_list_view img.attachment-cpt_list_view_size.size-cpt_list_view_size {
        min-width: 0px !important;
        max-width: unset;
        height: 100px;
        width: auto
    }
    
    .spinogenix_featured_image.news_list_view.news_featured_image.vc_col-sm-4 {
        width: 0px !important;
        
    }
}
