/*  Styles for the TRG Local SEO plugin  */

/* TRG Local SEO: trg-card-container grid for custom post types */
.trg-card-container {
    display: -ms-flexbox;
    -ms-flex-direction: row;
    -ms-flex-wrap: wrap;
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 30px;
}

.trg-card-container .trg-card {
    background-color: #eee;
    margin: 1em 1% 0 0;
    width: 32.33%;
    padding: 20px 20px 0;
    background-color: #f1f1f1;
    word-wrap: break-word;
    color: #666;
    font-size: 14pt;
    line-height: 1.5em;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
}

.trg-card-container h2 {
    padding-top: 10px;
    font-size: 24px;
    text-align: center;
    margin-top: -10px;
}

.trg-card-container .post-meta {
    display: none;
}

article.document p {
    display: none;
}

.trg-card-container p.trg-no-results {
    display: table;
}

@media all and (max-width: 1350px) {
    .trg-card-container .trg-card {
        width: 46%;
        margin-left: 2%;
        margin-right: 2%;
    }

    .trg-card-container h2 {
        font-size: 22px;
    }
}

@media all and (max-width: 850px) {
    .trg-card-container .trg-card {
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .trg-card-container h2 {
        font-size: 18px;
    }
}

.trg-card-container .trg-card:hover {
    opacity: 0.8;
}

.trg-cpt-section > .et_pb_row {
    width: 90%;
}

/* TRG Cards */
.trg-card-container .trg-card {
    -webkit-box-shadow: 0 10px 10px rgba(0, 0, 0, .1) !important;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .1) !important;
    padding: 0;
    background-color: #fafafa;
}

.trg-card-container .trg-card a {
    color: #666;
}

.trg-card-container .card-image-wrapper {
    padding-top: 56.25%;
    position: relative;
    width: 100%;
}

.trg-card-container .trg-card img {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -o-object-fit: cover;
    object-fit: cover;
}

.trg-card-container .trg-card h3 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
    font-size: 16px !important;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    /* background-color: rgba(0,0,0,0.06); */
}

.trg-card-container .trg-card.client-card h3,
.trg-card-container .trg-card.service-card h3,
.trg-card-container .trg-card.service_area-card h3 {
    background-color: rgba(0, 0, 0, 0.06);
}

.trg-card .card-contents {
    color: #666;
    font-size: 14px;
    padding: 5px 20px 20px;
    line-height: 1.8;
}

.trg-card-container .trg-card:hover {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    opacity: 1;
    -webkit-box-shadow: 0px 15px 15px rgba(0, 0, 0, .2) !important;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, .2) !important;
}

.trg-card-container .trg-card:hover,
.trg-card-container .trg-card a:hover {
    opacity: 1;
}

.trg-card-single .trg-card-container .trg-card {
    width: 100%;
}

/* TRG Local SEO: Client cards */
.client-card .card-image-wrapper {
    padding-top: 75%;
    /* padding-top: 64%; */
}

#cpt-client-section .trg-card-container {
    /* justify-content: space-between; */
    justify-content: center;
}

.client-card.trg-card {
    width: 29%;
}

@media (max-width: 768px) {
    .trg-card.client-card {
        width: 100%;
    }

    .trg-card.client-card .card-image-wrapper > img {
        width: 75%;
        height: auto;
        margin: auto;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    }
}

.client-card > article {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    height: 100%;
}

.client-card > article > h3 {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.06);
    flex: 1;
}

.client-card > article > .card-contents {
    flex: 10;
}

/* @media (max-width: 768px) {
	.client-card.trg-card {
	  width: 46%;
	}
  } */
/* .client-card.trg-card h3 {
	display: none;
  } */

/* TRG Local SEO: Project cards */
.trg-card-container .project-card h3 {
    font-size: 16px !important;
    text-align: center;
    /* padding: 20px 20px 10px; */
    font-weight: 600;
}

.trg-card.project-card {
    margin: 15px 5px;
}

/* Testimonial Cards */
.trg-card.testimonial-card {
    width: 29%;
    background-color: #F2B72E;
}

@media (max-width: 768px) {
    .trg-card.testimonial-card {
        width: 100%;
    }
}

.testimonial-card .card-image-wrapper {
    width: 150px;
    margin: 30px auto 0;
    padding: 0;
}

.trg-card.testimonial-card img {
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
    width: 150px;
    height: 150px;
    position: relative;
}

.trg-card-container .testimonial-card h3 {
    color: #242424;
    font-size: 18px !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.trg-card.testimonial-card .card-contents {
    color: #242424;
}

.testimonial-title-org {
    text-align: center;
    font-weight: 600;
}

.trg-card .hover-read-more {
	opacity: 0;
	position: absolute;
	content: "Read More";
	color: #fff !important;
	background-color: #99070f;
	padding: 6px 20px;
	font-style: normal;
    font-weight: bold;
	transition: all 0.3s ease;
	bottom: 25px;
	left: 15px;
}

.trg-card article:hover .hover-read-more {
    opacity: 0.6;
}

.trg-card article:hover .hover-read-more:hover {
    opacity: 1;
    transform: scale(1.05);
}

/***********************************/
/*  TRG Local SEO: Archive Pages   */
/***********************************/
/* !!! NOTE:  Much of this may need removed as Areas archive and single pages underwent a major redesign  */
/* Area Archive | archive-area.php */
#display-area-cards .area-card-container li ul,
#display-area-cards .area-card-container li li,
#display-area-cards .area-card-container .area-card-body li {
    list-style: none;
}

#display-area-cards .area-card-container {
    background-color: rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 300px;
    padding: 10px;
    box-shadow: 0 10px 23px -11px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 7px;
}

#display-area-cards .area-card-container.no_body_content {
    /* background-color: unset;
	box-shadow: unset;
	border: unset; */
}

#display-area-cards .area-card-container.no_body_content > .area-card-header {
    margin-bottom: 0;
}

#display-area-cards > .et_pb_row.area-cards-row,
#display-area-cards > #area-cards-row.et_pb_row {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: flex-start;
}

#display-area-cards > #area-cards-row.et_pb_row:after {
    display: none;
}

#display-area-cards .area-card-state-link {
    display: inline-block;
    width: 95%;
    margin-bottom: 5px;
}

#display-area-cards .area-card-thumbnail-link {
    transition: all 0.3s;
}

#display-area-cards .area-card-container .area-card-title {
    color: #fff;
    margin-bottom: 0;
    padding-bottom: 0;
    font-weight: bold;
}

#display-area-cards .area-card-header {
    text-align: center;
    /* margin-top: -20px; */
    margin-bottom: 30px;
    background-color: #dbdbdb;
    padding: 0;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

#display-area-cards .area-card-header:hover {
    transform: scale(1.02) perspective(12em) rotateX(1deg);
}

#area-cards-row .area-card-body > li.page_item > a,
#area-cards-row .area-card-body > li.page_item_has_children li.page_item > a {
    border-radius: var(--button-border-radius);
    background-color: #098ee1;
    display: inline-block;
    color: #fff;
    padding: .3em 1em;
    width: 100%;
}

#display-area-cards .area-card-body {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-around;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.4);
    background-color: #dbdbdb;
    padding: 0.5em;
}

#display-area-cards .area-card-body > li.page_item {
    /* background-color: #dbdbdb; */
    /* box-shadow: 0 2px 6px -1px rgba(0,0,0,0.4); */
    /* margin-bottom: 12px; */
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 0.3em;
    padding-right: 0;
}

#display-area-cards .area-card-body > li.page_item:not(:last-child) {
    margin-bottom: 8px;
}

#display-area-cards .area-card-body > li.page_item_has_children > .children {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 0.3em;
    padding-right: 0;
    border-left: 2px solid #c2c2c2;
    margin-left: 1em;
    margin-top: 5px;
    margin-bottom: 5px;
}

#display-area-cards .area-card-body > li.page_item_has_children li.page_item > a {
    background-color: #146da3;
}

#display-area-cards .area-card-body > li.page_item a {
    transition: all 0.3s;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

#display-area-cards .area-card-body > li.page_item a:hover {
    transform: var(--button-hover-transform);
    box-shadow: var(--button-hover-box-shadow);
    opacity: 1;
}

#display-area-cards .area-card-body > li.page_item {
    border-left: 3px solid #c2c2c2;
}

#display-area-cards .area-card-body > li.page_item > a > h3,
#display-area-cards .area-card-body > li.page_item_has_children li.page_item > a > h3 {
    color: #fff;
    padding-bottom: 0;
    margin-bottom: 0;
    text-align: center;
}

#display-area-cards .area-card-body > li.page_item_has_children li.page_item > a > h3 {
    font-size: 20px;
}

/* TRG Local SEO: City Icons on County (area) Pages */
#display-area-cards .city-icon {
    height: 120px;
    object-fit: cover;
}

/* TRG Local SEO: County Icons on State (area) Pages */
#display-area-cards .county-icon {
    max-height: 200px;
    width: auto;
    margin-top: -20px;
}

/* TRG Local SEO: Area Tabs */
#ajax-display-areas {
    padding: 30px 0;
    min-height: 250px;
    width: 80%;
    max-width: 1080px;
    margin: auto;
}

#ajax-display-areas .area-tabs-wrapper {
    /* width: 80%; */
    /* max-width: 1080px; */
    width: 100%;
    margin: auto;
    overflow: hidden;
    /* background-color: #dfdfdf; */
    margin-bottom: 30px;
}

#ajax-display-areas #city-area-cards-wrapper {
    width: 100%;
    margin: auto;
}

#ajax-display-areas .area-tabs-scroller {
    height: 150px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    /* overflow-y: scroll;
	overflow-x: hidden;
	transform: rotate(270deg) translateX(-100%);
	transform-origin: top left; */
    margin-bottom: -30px;
    padding-bottom: 21px;
    /* padding-top: 21px;
	box-sizing: content-box;
	background-color: #f9f9f9; */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

#ajax-display-areas .area-tabs-scroller::before,
#ajax-display-areas .area-tabs-scroller::after {
    font-family: "ETmodules";
    position: absolute;
    font-size: 60px;
    z-index: 1;
    cursor: pointer;
    display: none;
}

#ajax-display-areas .area-tabs-scroller::before {
    content: "\34";
    left: -1px;
}

#ajax-display-areas .area-tabs-scroller::after {
    content: "\35";
    right: -1px;
}

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

    /* #ajax-display-areas .area-tabs-wrapper, */
    #ajax-display-areas {
        width: 90%;
    }
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    white-space: nowrap;
    width: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    list-style: none;
    padding: 0 20px !important;
    height: 100%;
    margin: 0;
    /* box-shadow: inset 0 0 15px rgba(0,0,0,0.2); */
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list::-webkit-scrollbar {
    display: none;
    background: transparent;
    width: 0;
    height: 0;
}

#ajax-display-areas .area-tabs-scroller::-webkit-scrollbar {
    display: none;
    background: transparent;
    width: 0;
    height: 0;
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list > li.tab-item {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 80px;
    max-height: 80px;
    min-height: 80px;
    background-color: #efefef;
    font-size: 22px;
    font-weight: bold;
    margin-right: 10px;
    margin-left: 10px;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-out;
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list > li.tab-item:first-child {
    margin-left: 0;
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list > li.tab-item:last-child {
    margin-right: 0;
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list > li.tab-item:hover {
    transform: translateY(-8px);
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list > li.current.tab-item {
    /* current/active item */
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.3);
    background-color: #fcfcfc;
}

#ajax-display-areas .area-tabs-scroller ul.tabs-list > li.tab-item > .control {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

#ajax-display-areas .control > .state-icon {
    position: absolute;
    border: 1px solid #cfcfcf;
}

#ajax-display-areas .control > .state-title {
    position: absolute;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1)
}

/* TRG Local SEO: State Area Tabs */
#state-area-tabs > .tabs-list {}

#state-area-tabs ul.tabs-list {
    white-space: wrap;
}

#state-area-tabs .control {
    text-align: center;
}

/* TRG Local SEO: County Area Tabs */
#county-area-tabs {
    height: 150px;
}

#county-area-tabs li.tab-item > .control {
    white-space: normal;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
}

/* TRG Local SEO: New Areas pages (redesign) */
.area-card-link {
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    background: unset;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.area-card-link:hover {
    /* opacity: 1; */
}

.area-card-link > h2 {
    color: #fff;
    font-weight: bold;
    font-size: 32px;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.7);
}

.area-card-container {
    position: relative;
    transition: all 0.15s ease;
}

.area-card-container:hover {
    opacity: 0.75;
}

/* TRG Local SEO: General Archive Pages */
body.post-type-archive .pagination {
    width: 100%;
    margin: auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px;
}

body.post-type-archive .display-cards-section,
body.post-type-archive-project .display-cards-section.project-section,
body.post-type-archive-client .display-cards-section.client-section,
body.post-type-archive-service .display-cards-section.service-section,
body.post-type-archive-testimonial .display-cards-section.testimonial-section {
    background-color: #535353 !important;
}

body.post-type-archive-project .pagination a,
body.post-type-archive-testimonial .pagination a {
    color: #fff;
}

body.post-type-archive #left-area {
    padding: 23px 0px 0px !important;
}

/* Project Archive */
body.post-type-archive-project .projects-interested > .et_pb_row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Testimonial Archive */
body.post-type-archive-testimonial .testimonial-section .et_pb_row {
    width: 100%;
}

/*******************************/
/* TRG Local SEO: Single Pages */
/*******************************/

/*    Single Areas    */
/* Single State Page */
#area-state-post-title-section > .et_pb_row {
    display: flex;
    flex-flow: row nowrap;
}

.et-db #et-boc #area-state-img-column {
    margin-bottom: 0;
}

#area-state-post-title-section h1 {
    display: inline-block;
    margin-bottom: 0;
    padding-bottom: 0;
}

#area-state-post-title-section #area-state-title-column {
    display: flex;
    align-items: center;
}

.et-db #et-boc #area-state-img-column {
    margin-right: 7%;
}

@media screen and (max-width: 980px) {
    .et-db #et-boc #area-state-img-column {
        margin-right: 7%;
    }
}

@media screen and (max-width: 467px) {
    .et-db #et-boc #area-state-post-title-section > .et_pb_row.et_pb_row_fullwidth {
        flex-flow: column nowrap;
        width: 90% !important;
    }

    #area-state-post-title-section > .et_pb_row > .et_pb_column:first-child {
        order: 2;
    }

    #area-state-featured-image {
        text-align: right;
    }

    #area-state-img-column {
        margin-right: 0;
    }

    #area-state-post-title-section #area-state-title-column {
        margin-bottom: 30px;
    }
}

/* TRG Local SEO: Single County Page */
#area-county-post-title-section > .et_pb_row {
    display: flex;
    flex-flow: row nowrap;
}

#area-county-post-title-section h1 {
    display: inline-block;
    margin-bottom: 0;
    padding-bottom: 0;
}

#area-county-featured-image img {
    height: 100%;
    width: auto;
    max-height: 180px;
    margin-bottom: -60px;
}

#area-county-post-title-section #area-county-img-column {
    max-width: 150px;
    margin-right: 0 !important;
}

#area-county-post-title-section #area-county-title-column {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 980px) {
    #area-county-featured-image img {
        margin-bottom: -84px;
    }
}

@media screen and (max-width: 467px) {
    .et-db #et-boc #area-county-post-title-section > .et_pb_row.et_pb_row_fullwidth {
        flex-flow: column nowrap;
        width: 90% !important;
    }

    #area-county-post-title-section > .et_pb_row > .et_pb_column:first-child {
        order: 2;
    }

    #area-county-featured-image {
        text-align: right;
    }

    #area-county-featured-image img {
        margin-bottom: -95px;
        margin-top: 20px;
    }
}

.single .et_pb_post {
    margin-bottom: 0;
}

.single #main-content .container {
    padding-top: 30px;
}

/* TRG Local SEO: Single (Divi builder) CPT Pages */
body:matches(.single-service,
.single-client,
.single-landing_page) .et_pb_fullwidth_section h1.entry-title {
    padding: 0;
    margin: 0;
}

body:matches(.single-service,
.single-client,
.single-landing_page) .et_pb_fullwidth_section .et_pb_title_container {
    padding: 30px 0;
}

.single-service h1.entry-title,
.single-client h1.entry-title,
.single-testimonial h1.entry-title
/* Single Service Pages */

/* TRG Local SEO: Single Testimonial Pages */
.single-testimonial #et-main-area {
    padding-top: 25px;
}

.single-testimonial #main-content .container {
    width: 100%;
    max-width: unset;
}

.single-testimonial.et_right_sidebar #left-area {
    width: 80%;
    max-width: 1080px;
    margin: auto auto 30px;
}

.single-testimonial .testimonial-section {
    background-color: #424242;
    padding: 30px 0;
}

.single-testimonial .testimonial-section h2 {
    color: #fff;
}

.single .testimonial img {
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
    min-width: 150px;
}

.single .testimonial-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-flow: row wrap;
}

.single-testimonial .testimonial-wrapper .testimonial-related-links {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    /* margin-top: 16px; */
}

.single-testimonial .testimonial-wrapper .testimonial-related-links > .et_pb_button_wrapper {
    margin-top: 20px;
}

.single-testimonial .testimonial-wrapper .testimonial-related-links > .et_pb_button_wrapper:first-child {
    margin-right: 25px;
}

.single .testimonial .entry-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-top: 0;
}

.single .testimonial .et_pb_column {
    width: 100%;
}

.single .testimonial .et_pb_testimonial {
    margin-bottom: 10px;
}

.single .testimonial .et_post_meta_wrapper {
    margin-right: 30px;
}

.single-testimonial .testimonial-section .et_pb_row,
.single-testimonial article.testimonial {
    width: 90%;
    margin: auto;
}

@media (max-width: 981px) {
    .single-testimonial.et_right_sidebar #left-area {
        /* width: 90% !important; */
    }

    .single-testimonial .testimonial-section .et_pb_row {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .single .testimonial-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .single .testimonial .et_post_meta_wrapper {
        margin: 0 30px 30px;
        -ms-flex-item-align: center;
        align-self: center;
    }

    .single .testimonial .et_pb_post {
        margin-bottom: 0;
        margin: 0 5%;
    }
}

/* Service Areas Page: Filter & Sort Dropdowns */
.trg-lseo-filter-and-order-bar {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .trg-lseo-filter-and-order-bar {
        flex-flow: column nowrap;
    }
}