/*
 Theme Name:   Command Alkon Partners Theme
 Theme URI:    https://commandalkon.com
 Description:  Holds the custom child theme templates for the search and partner display pages.
 Author:       Josh Lambert
 Author URI:   https://centrevilletech.com
 Template:     Divi
 Version:      1.0.1
 */
 
#partner-container h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

#partner-container h2 {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 30px;
} 


#partner-container {
    width: 100%;
    max-width: 1280px;
    padding-left: 50px;
    padding-right: 50px;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;
    font-size: 16px;
}

#partner-body-container {
    display: flex;
    flex-wrap: wrap;
}

#top-image {
    width: 100%;
    height: 536px;
    max-height: 536px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    margin-bottom: 100px;
}

#partner-logo {
    max-width: 350px;
    margin-bottom: 20px;
    text-align: center;
}

.partner-logo {
    max-width: 350px;
    text-align: center;
	display: flex;
	justify-content: center;
	margin: 20px;
}

.sidebar-grey-boxes {
    padding: 30px;
    background-color: #f1f1f1;
    margin-bottom: 20px;
    text-align: left;
    max-width: 350px;
}

.sidebar-grey-boxes p {
    padding-bottom: 0px;
    line-height: 20px;
    font-weight: normal;
}

.sidebar-grey-boxes .title {
    font-weight: bold;
    margin-bottom: 5px;
}

.sidebar-grey-boxes a:href {
    color: #ef3f00;
}

.main-content {
    flex-grow: 1;
    max-width: 830px;
    padding-right: 80px;
}

.main-content h2 {
    margin-bottom: 10px !important;
}

#partner_description {
    font-weight: normal;
    line-height: 25px;
}

#partner_description p {
    margin-bottom: 12px;
}

/* Responsive design for mobile screens */
@media (max-width: 768px) {
    .main-content, .sidebar {
        flex: 1 0 100%;
        margin: 0;
        padding-right: 0px;
        margin-bottom: 80px;
    }
}



.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

#sidebar-line {
    border-color: #EEE;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 0px;
    margin-right: 0px;
    width: 60%;
}


#partner-container-list {
    width: 100%;
    max-width: 1280px;
    padding-left: 50px;
    padding-right: 50px;
    margin: 0 auto;
    padding-top: 35px;
    padding-bottom: 100px;
    font-size: 16px;
    display: flex;
}

#sidebar-line {
    height: 1px;
    width: 60%;
}

.sidebar-alt {
    flex: 0 0 385px;
    text-align: left;
}

.main-content-alt {
    flex-grow: 1;
    max-width: 795px;
    padding-right: 0px;
}

.partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Adjust gap between items as needed */
    justify-content: flex-start; /* Align items to the left */
}

.partner-entry {
    flex: 0 1 30%; /* Make items take up 30% and not grow but can shrink */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align items vertically */
    cursor: pointer;
    width: calc(33.333% - 20px); /* Adjust width for three items per row minus gap */
    box-shadow: 0px 0px 6px #AAAAAA;
    padding: 1rem;
    transition: all .35s ease-out;
	justify-content: center;
}

.partner-entry:hover {
    box-shadow: 0px 0px 6px #000;
}

.partner-entry a {
    color: inherit; /* Inherit text color from parent */
    text-decoration: none; /* Remove underline from links */
    width: 100%; /* Full width links for clickable area */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align items */
    height: 100%;
}

.partner-logo img {
    width: 100%;
    max-width: 120px;
    margin-bottom: 10px;
}

.partner-name {
    margin: 0; /* Remove default margins */
    text-align: center; /* Center-align the title */
}

.main-content-alt .partner-name {
    font-size: 20px;
}

/*
 * TOOLBAR
 */

#toolbar {
    padding-left: 50px;
    padding-right: 50px;
    margin: 0 auto;
    margin-top: 20px;
    max-width: 1280px;
    text-align: right;
    margin-top: 25px;
}

#search_fld {
    width: 500px;
    border-radius: 5px;
    border-color: #ACB5B9;
    border-style: solid;
    border-width: 1px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
    margin-right: 18px;
    background-image: url('http://partners.cadev.deployedweb.com/wp-content/themes/partners-child/Button.png');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

/*
 * Sidebar Filters
 */
 
.sidebar-alt h3 {
    font-family: Roboto;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.15000000596046448px;
    text-align: left;
}

a.filter-link {
    font-family: Roboto;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.25px;
    text-align: left;
    color: #000 !important;
}

a.filter-link:hover {
    color: #737373 !important;
}

.region-link.active, .industry-link.active, .group-link.active {
    color: #CC480F !important;
}

.sidebar_spacer {
    height: 30px;
}

/*
 * Show/Hide Terms Toggle
 */

.hidden {
    display: none !important;
}

a.show-more {
    color: #737373 !important;
}

.show-more-wrapper i {
    margin-left: 5px;
}

.clear_all_filters_container i {
    color: #737373;
}

/*
 * Mobile Fixes
 */
 
@media screen and (max-width: 1084px) {
    
    .partner-entry {
        flex-basis: 100%;
        width: auto;
    }

    #search_fld {
        width: 100%;
    }
    
    #toolbar {
        padding-left: 30px;
        padding-right: 30px;
    }

}

@media (max-width: 980px) {
  .et_pb_section {
    padding-top: 0px !important;
  }
}

#open_filters_btn {
    display: none;
}

#close_filters_btn {
    display: none;
}

@media (max-width: 600px) {

    #toolbar {
        padding-left: 0px;
        padding-right: 0px;
        margin-top: 0px;
        margin-bottom: 10px;
    }
    
    #partner-container-list {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 0px;
    }
    
    #toolbar {
        position: fixed;
        width: 100%;
        top: 50px;
        left: 0px;
        right: 0px;
        background-color: #FFF;
        padding-left: 28px;
        padding-right: 28px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .partners-list {
        margin-top: 35px;
    }
    
    .sidebar-alt {
        position: fixed;
        background: #FFF;
        left: 0px;
        right: 0px;
        top: 0px;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        overflow-y: scroll;
        height: 100%;
        padding-top: 120px;
        display: none;
    }
    
    #close_filters_btn {
        position: fixed;
        display: block;
        bottom: 66px;
        background-color: #EEE;
        left: 0px;
        right: 0px;
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
        border-top: 1px;
        border-width: 1px;
        border-color: navy;
        border-style: solid;
        cursor: pointer;
    }

    #open_filters_btn {
        position: fixed;
        display: block;
        bottom: 66px;
        background-color: #EEE;
        left: 0px;
        right: 0px;
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
        border-top: 1px;
        border-width: 1px;
        border-color: navy;
        border-style: solid;
        cursor: pointer;
    }
    
    .et-last-child {
        padding-top: 30px;
    }
    
    .et_pb_row_0 {
        min-height: 1000px;
    }

}
