/*
	Theme Name: MACMH WordPress Theme
	Theme URI: http://creatingdrew.com
	Description: Theme files for MACMH.
	Author: Drew Douglass.
	Author URI: http://creatingdrew.com
	Version: 1.9.2
	Tags: basetheme, bootstrap

	License: GNU General Public License v2.0
	License URI: http://www.gnu.org/licenses/gpl-2.0.html	
*/

/* =============================================================================
   Primary/global styles
   ========================================================================== */
/* default wordpress styles */
.entry-content img { margin:0 0 1.5em; }
.alignleft,img.alignleft { margin-right:1.5em; display:inline; float:left; }
.alignright,img.alignright { margin-left:1.5em; display:inline; float:right; }
.aligncenter,img.aligncenter { margin-right:auto; margin-left:auto; display:block; clear:both; }
.alignnone,img.alignnone { }
.wp-caption { margin-bottom:1.5em; text-align:center; padding-top:5px; }
.wp-caption img { border:0 none; padding:0; margin:0; }
.wp-caption p.wp-caption-text { line-height:1.5; font-size:10px; margin:0; }
.wp-smiley { margin:0!important; max-height:1em; }
blockquote.left { margin-right:20px; text-align:right; margin-left:0; width:33%; float:left; }
blockquote.right { margin-left:20px; text-align:left; margin-right:0; width:33%; float:right; }
.gallery dl { }
.gallery dt { }
.gallery dd { }
.gallery dl a { }
.gallery dl img { }
.gallery-caption { }
.size-full { }
.size-large { }
.size-medium { }
.size-thumbnail { }
.sticky { }
.bypostauthor { }

.ws-pre {
    white-space: normal !important;
}


html {
	scroll-behavior: smooth;
}


/* =============================================================================
   Connections Page
   ========================================================================== */

.header-img {
    background-image: url(https://cmham.flywheelstaging.com/wp-content/uploads/2019/01/shutterstock_151335704Zoomed.jpg);
    height: 48vh;
    background-size: cover;
    width: 97%;
    margin: 0 auto;
}

.page-template-template-connections #breadcrumbs {
    margin: 20px 0 -20px;
}

.mainContent h1 {
    border-bottom: 1px solid #3ca047 !important;
}

.intro-group-container .mainContent {
    padding-inline: 15px;
}



article.type-connection .post-content,
.articles-list .type-page .post-content{
	padding: 1.5em 1em 3rem;
    border: 1px solid #1C426A;
    border-top: none;
	border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    margin-bottom: 40px;
	position: relative;
}

.podcasts-list article.type-connection .post-content, .podcasts-list article.type-connection:last-child .post-content {
    padding: 28px 1em;
}
.podcasts-list article.type-connection h3 {
    padding: 13px 40px;
}

article.type-connection:last-child .post-content,
.articles-list .type-page:last-child .post-content{
    padding: 1.5em 1em 3rem;
    border: 1px solid #1C426A;
    border-top: none;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}





article.type-connection .post-content p,
article.type-connection .post-content a,
.articles-list .type-page .post-content p,
.articles-list .type-page .post-content a
{
    /* border-left: 1px solid green; */
    padding-inline: 25px;
}

article.type-connection h3,
.articles-list .type-page h3{
    font-size: 1.5em;
    color: #ffffff;
    background: #1C426A;
	background-image: linear-gradient(45deg, #143855, transparent);
    margin: -10px 0 0;
    padding: 0.6em 1.8em;
	transition: background .63s;
	position: relative;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
	cursor: pointer;
}

article.type-connection:hover h3,
.articles-list .type-page:hover h3 {
    background: #3CA047;
/*	background-image: linear-gradient(45deg, #143855, transparent);*/
    cursor: pointer;
    transition: background .23s;
}

/*
.podcasts-list  article.type-connection:hover h3 {
    cursor: revert;
}
*/

article.type-connection h3::before, 
.articles-list .type-page h3::before {
    content: "";
    background-color: #3ca047;
    position: absolute;
    left: 12px;
    top: 17px;
    height: 15px;
    width: 15px;
    border: 1px solid #1c426a;
    outline: 2px solid #ffffff30;
    border-radius: 50px;
	transition: .53s background-color, .32s border, .12s outline;
}

article.type-connection:hover h3::before,
.articles-list .type-page:hover h3::before {
    background-color: #1c426a;
    border: 1px solid #2983e3;
    height: 13px;
    width: 13px;
    top: 18px;
    left: 13px;
    outline: 2px solid #ffffff73;
    transition: .48s .04s background-color, .18s border, .12s outline;
}


article.connection-type-articles p,
.articles-list .type-page p {
    margin-bottom: 20px;
}

article.connection-type-podcasts p.teaser {
    margin-bottom: 15px;
}




.connections-posts-group {
    display: flex;
    gap: 4%;
}

.connections-posts-group h2 {
    text-align: center;
	text-transform: uppercase;
	margin-bottom: 42px;
	font-weight: 200;
	letter-spacing: 4px;
}

.connections-posts-group .articles-list, .connections-posts-group .podcasts-list {
    width: 48%;
}

/*
.single-connection .col-md-4.col-md-pull-8 {
    position: sticky;
    top: 25px;
}
*/

/*Connections - Modal Content */
.post-content-modal-container {
	max-height: 0;
  	overflow: hidden;
  	transition: max-height 0.2s ease-out, opacity 0.12s ease-out, margin-top 0.18s ease-out;
}

span.modal-close {
    float: right;
    margin-right: 10px;
    cursor: pointer;
    font-size: 28px;
    position: absolute;
    top: -35px;
    right: -2px;
    z-index: 1;
}

.connections-modal-content {
	position: relative;
    padding: 10px 10px 6px;
	margin-top: 4px;
    border: 1px solid lightgray;
    border-radius: 8px;
    box-shadow: 0px 7px 15px 0px #c7c7c7;
}


.post-content-modal-container video, .post-content-modal-container audio {
    width: 100%;
}

a#read-more-btn {
    background-color: #3ca047;
    color: #fff;
    margin-left: 25px;
    padding: 7px 18px 9px 18px;
    border-radius: 3px;
	transition: background-color .29s;
}

a#read-more-btn:hover {
    background-color: #1c426a;
    transition: background-color .29s;
}

p#modal-btn{
    color: #fff;
    cursor: pointer;
    margin: 0;
    display: inline-block;
    position: relative;
    transition: color .23s, transform .24s, background-color .29s;
    background-color: #3ca047;
    padding-inline: revert;
    margin-left: 25px;
    border-radius: 3px;
    padding: 6px 46px 8px 18px;
}

p#modal-btn:hover,
article.connection-type-articles .post-content a:hover,
.articles-list .type-page .post-content a:hover{
    background-color: #1c426a;
}

p#modal-btn::before{
    content: "";
    position: absolute;
    background-color: transparent;
    bottom: 0;
    right: 27%;
    height: 1px;
    width: 42px;
    opacity: 0;
   	transition: opacity .18s .08s, transform .24s;
}

p#modal-btn:hover::before{
    opacity: 1;
	
}

p#modal-btn::after {
    font-family: 'Font Awesome 6 Free';
    content: "\f04b";
    color: #3ca047;
    font-size: 12px;
    font-weight: 900;
    position: absolute;
    right: 14px;
    line-height: 1.5;
    display: grid;
    place-items: center;
    top: 7px;
    background-color: #fff;
    border-radius: 50px;
    padding: 1px 4px 0 6px;
    transition: transform .24s;
}

p#modal-btn.active::after {
    transform: rotate(90deg);
}

p#modal-btn.active {
    background-color: #1c426a;
}

article.connection-type-articles .post-content a,
.articles-list .type-page .post-content a{
	position: relative;
	transition: color .23s, opacity .18s;
	
}
article.connection-type-articles .post-content a#read-more-btn::before,
.articles-list .type-page .post-content a#read-more-btn::before {
    content: "";
    position: absolute;
    background-color: transparent;
    bottom: -2px;
    left: 23px;
    height: 1px;
    width: 74px;
    opacity:0;
    transition: opacity .18s;
}
article.connection-type-articles .post-content a#read-more-btn:hover::before,
.articles-list .type-page .post-content a#read-more-btn:hover::before {
	opacity: 1;
}

.single-connection h1 {
    color: #1A5DAB;
    border-bottom: 1px solid #3ca047;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0 0 5px 0;
    margin: 15px 0 18px 0;
}

.single-connection video {
    height: 420px;
}

.single-connection audio {
    margin-top: 25px;
    width: 60%;
}

.bubble {
    height: 50px;
    width: 50px;
    background-size: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    outline: 2px solid #bbdfcc;
    position: absolute;
    bottom: 113px;
    right: 341px;
    z-index: 1;
	display: none;
}

.single-connection aside#main-sidebar .sidebar-item.featured-image {
	display: block !important;
}


/* Weekly Updates Styles */

.row.archive-weekly-updates-list {
    float: left;
    width: 69.5%;
	margin-right: 10px;
}

.weekly-updates-list section .post-content, 
.content-wrap.single-weekly-update-article section .post-content{
    padding: 20px;
    margin-bottom: 20px;
}

.weekly-updates-list section .post-content.bg-none {
    padding: 20px 0;
}

.weekly-updates-list section:has(h2) .post-content {
    margin-bottom: 0;
}

.weekly-updates-list section h2, 
.single-weekly-update section h2{
    font-size: 30px;
    font-weight: 500;
	margin: 0 0 15px;
}

.weekly-updates-list section h3 {
	margin: 10px 0;
}

.weekly-updates-list section h3 strong {
    color: #dc575a;
}

.weekly-updates-list .post-content li, 
.single-weekly-update .post-content li{
    margin-bottom: 20px;
	position: relative;
}

.weekly-updates-list .post-content li::before, 
.single-weekly-update .post-content li::before{
    display: inline-block;
    width: 1em;
    content: "•";
    color: #3375b3;
    font-size: 33px;
    position: absolute;
    left: -19px;
    top: -17px;
}

.weekly-updates-list section .bg-color,
.single-weekly-update-article section .bg-color {
    transition: box-shadow .38s;
}
.weekly-updates-list section:hover .bg-color, 
.single-weekly-update-article section:hover .bg-color{
    box-shadow: 0px 11px 12px 0px #0000002e;
}

/*
.content-wrap.single-weekly-update.active {
    display: block;
}
.content-wrap.single-weekly-update {
    display: none;
}
*/

.content-wrap.single-weekly-update {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease-in-out;
}

.weekly-updates-list h1 {
    cursor: pointer;
    text-align: center;
    margin: 0px 0 27px 0 !important;
    padding-bottom: 30px !important;
	transition: border-bottom .5s .08s;
/*
    padding: 20px !important;
    border-bottom: none !important;
    background-color: #3ca047;
    color: #fff !important;
*/
}

/*
.weekly-updates-posts-group section p:first-of-type {
    padding-top: 25px;
    margin-top: 25px;
    border-top: 2px solid #2789582e;
}
*/

.mainContent article:first-of-type h1.post-title__weekly-update:first-of-type {
    margin-top: 64px !important;
}

.mainContent h1.post-title__weekly-update {
	transition: border-bottom .5s .38s, margin .7s .15s, padding .95s;
}

.mainContent h1.post-title__weekly-update.active {
    border-bottom: 1px solid transparent !important;
	transition: border-bottom .5s .18s, margin .7s .15s, padding .95s;
	margin: 47px 0 0 0 !important;
	padding: 0 0 3px !important;
}

.page-template-template-weekly-updates .mainContent .bg-blue a {
    color: #162532;
}

.single-weekly-update {
    line-height: 1.8;
}

.modal-content h1 {
    max-width: 27ch;
    text-align: center;
    font-size: 21px;
}

.modal-wrap {
	display:none;
}

.modal-wrap.active {
	display:revert;
    position: fixed;
    height: 100vh;
    width: 100vw;
    padding-top: 10%;
    z-index: 1;
	backdrop-filter: blur(6px);
	background-color: #00000036;
}

.modal-wrap.active .modal-content {
    min-height: 300px;
    padding: 30px;
    display: grid;
    place-items: center;
    background-color: white;
    width: fit-content;
	max-width: 90%;
    margin: 0 auto;
	border-radius: 0;
}

.modal-content .logo {
    height: 58px;
}

.img-wrap {
    margin-bottom: 16px;
}

form#member-form button {
    margin-top: 10px;
    padding: 6px 20px;
    width: 100%;
	transition: background .58s;
}
form#member-form button:hover {
    background: #174e9b;
    transition: background .28s;
}
form#member-form #member-select, form#member-form input {
    display: block;
    height: 40px;
    margin-bottom: 10px;
    width: 100%;
    padding: 0 5px;
}

.modal-content p {
    margin-top: 20px;
}
div#result-message {
	display:none; /* This will trigger to show with JS*/
    padding: 20px 20px 0;
    color: #c51717;
    font-weight: 600;
}

.page-template-template-weekly-updates #breadcrumbs {
    padding-top: 30px;
}

.page-template-template-weekly-updates #breadcrumbs a,
.page-template-template-weekly-updates #breadcrumbs a:visited {
    color: #3ca047;
}

aside#weekly-update-sidebar .col-md-4 {
    background-color: #f1efeb;
    padding: 20px;
    margin-top: 65px;
	width: 30%;
	position: sticky;
    top: 50px;
}

aside#weekly-update-sidebar .widget.widget_block.widget_archive a:hover, 
.old-archive-wrap a:hover {
    color: #3ca047;
}

.widget.widget_block.widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.wp-block-archives-list.wp-block-archives li {
    border-bottom: 1px solid #cecece;
    padding-block: 5px;
}

#searchwp-form-1 input[type=submit]:hover {
    background-color: #174e9b !important;
}
#searchwp-form-1 input[type=submit] {
    border: none !important;
    padding: 6px 12px !important;
    transition: background-color .28s !important;
    background-color: #008000 !important;
    color: #fff;
}

input.swp-input--search.swp-input {
    border: 1px solid #00000087;
}

.swp-rp-page-header .page-title {
    color: #174e9b;
}

.swp-result-item--info-container .entry-title a {
    color: #008000 !important;
}

mark.searchwp-highlight {
    background-color: #0d7dba17 !important;
    font-weight: 500;
}

.single-weekly-update .mainContent h1 {
    text-align: center;
}

.old-archive-wrap {
    padding-top: 5px;
}


/* Style for expandable button and content */
/*
.expand-toggle {
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    right: -8px;
    bottom: -18px;
    color: #3ca047;
    font-size: 60px;
    line-height: 0;
    height: 40px;
    width: 40px;
    background-color: #fff;
    border-radius: 50% !important;
}
*/

.button-wrapper {
    display: grid;
    place-items: center;
    height: 40px;
    width: 40px;
    background-color: #fff;
    position: absolute;
    right: -8px;
    bottom: -18px;
    border-radius: 50% !important;
}

.expand-toggle {
	cursor: pointer;
    background: none;
    border: none;
    color: #1a5dab;
    font-size: 60px;
    line-height: 0;
    padding: 0;
}

.is_expanded button.expand-toggle {
	margin-bottom: 10px;
}

.full-content {
    transition: max-height 1s ease;
}
	
article.weekly-update section,
.content-wrap.single-weekly-update-article section{
    position: relative;
}





/* =============================================================================
   Media styles
   ========================================================================== */
@media only screen and (min-width: 1200px) {
	
}

@media only screen and (max-width: 992px) {
	.row.archive-weekly-updates-list {
		float: revert;
		width: 100%;
		margin-right: 0px;
		margin-left: 0;
	}
	aside#weekly-update-sidebar .col-md-4 {
		width: 100%;
		position: revert;
		margin-top: 30px;
	}
	.page-template-template-weekly-updates section.content {
		display: flex;
		flex-direction: column-reverse;
	}
	aside#weekly-update-sidebar {
		width: 97%;
		margin: 0 auto;
	}
	aside#weekly-update-sidebar img {
		width: 100%;
	}
}




@media only screen and (max-width: 768px) {
	.connections-posts-group {
    	flex-direction: column-reverse;
	}
	.connections-posts-group .articles-list, .connections-posts-group .podcasts-list {
    	width: 100%;
		max-width: 560px;
    	margin: 0 auto;
	}
	

	
	
	
	
	
	
	
}
/* =============================================================================
   Print Styles - Disabled because clients always ask why the page doesn't print like the screen.
   ========================================================================== 
 
@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; }
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } 
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } 
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
} */










/* ========================== */
/* = BEGIN FIX FOR DV TEAMS = */
/* ========================== */


.dv-team-mod {
    display: flex; /* Align ul elements in a row */
    flex-wrap: wrap; /* Allow wrapping to the next row */
    justify-content: center; /* Center align the content */
    gap: 30px; /* Add consistent spacing between items */
    margin: 0 auto; /* Center the section */
    padding: 20px 0; /* Add top/bottom padding */
}

.dv-team-mod ul {
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    align-items: center; /* Center align content inside items */
}






/* ========================== */
/* =  END FIX FOR DV TEAMS  = */
/* ========================== */