/*
 Theme Name:  K9.5 Training Academy Divi Child Theme 

 Description: Custom Divi child theme developed for K9.5 Training Academy
 Author:      Tom Greer
 Template:    Divi
 Version:     2.5.1
*/

/* Theme customization starts here
-------------------------------------------------------------- */

:root {
    /* Standard colors for this website */
    --heading-color: #242424;
    --font-color: #242424;
    --link-color: #0032a0;
    --light-blue: #98caec;
    --blue: #0032a0;
    --dark-blue: #002f6d;
    --light-gold: #f2e5b3;
    --gold: #87714d;
    --light-orange: #ffe8b8;
    --orange: #ffb81d;
    --black: #000;
    --light-gray: #cfcdc9;
    --gray: #706c66;
    --dark-gray: #3b3935;


    /* Used for sticky footer. This is set via JavaScript */
    --header-height: 0px;
    /* Default values for global options */
    --page-loading-icon: url("images/sample-page-load-icon.svg");
    --highlight-color: #fff9c2;
}

/* Sticky Footer */

#page-container #et-boc {
    display: flex;
    flex-flow: column;
    min-height: calc(100vh - var(--header-height));
}

#et-main-area {
    display: flex;
    flex-flow: column;
}

#et-main-area,
#main-content {
    flex: 1 0 auto;
}


/* Header Elements - add extra space above */

/*
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0.5em 0;
}
*/ 

/* Ordered Lists - Move the list style position to outside and indent the list */

#left-area ol,
.comment-content ol,
.entry-content ol,
.et-l--body ol,
.et-l--footer ol,
.et-l--header ol,
body.et-pb-preview #main-content .container ol {
    list-style-position: outside;
    padding-left: 2em;
}

ol li {
    margin-bottom: 0.5em;
}


/* Unordered Lists - Indent the list */

#left-area ul,
.comment-content ul,
.entry-content ul,
.et-l--body ul,
.et-l--footer ul,
.et-l--header ul,
body.et-pb-preview #main-content .container ul {
    padding-left: 2em;
}

ol li {
    margin-bottom: 0.5em;
}


/* Footer Bottom Bar */

#footer-bottom .container {
    display: flex;
    flex-direction: row;
    max-width: 95%;
    width: 95%;
}

#footer-info,
#footer-bottom .et-social-icons,
#copyright {
    flex: 1 100%;
}

#footer-info {
    text-align: left;
}

#footer-bottom .et-social-icons {
    text-align: center;
}

#copyright {
    color: var(--footer-text-color);
    text-align: right;
}

#footer-bottom a:hover {
    color: var(--footer-link-hover-color) !important;
    opacity: 1;
}

@media all and (max-width: 780px) {
    #footer-bottom .container {
        flex-direction: column;
        justify-content: center;
    }
    #footer-info {
        text-align: center;
    }
    #copyright {
        text-align: center;
    }
}


/* Icons */

.icon_phone:before {
    font-family: 'ETmodules';
    content: "\e090";
    padding-right: 5px;
}

.icon_email:before {
    font-family: 'ETmodules';
    content: "\e076";
    padding-right: 5px;
}

.icon_sms::before {
    font-family: 'ETmodules';
    content: "\e066";
    padding-right: 5px;
}

.icon_www::before {
    font-family: 'ETmodules';
    content: "\e0e3";
    padding-right: 5px;
}


/* Reverse the order of columns in a row when in mobile view */

@media (max-width: 980px) {
    .flip-columns {
        display: flex;
        flex-direction: column-reverse !important;
    }
}


/* Style Read More Links that have been converted to buttons via JS */

.more-link {
    display: table;
    text-transform: capitalize;
    margin: 10px auto 0;
    font-size: 16px;
}

/* Mark Text - hightlight effect */

mark {
    background-color: var(--highlight-color);
}


/* Mobile Menu - collapse submenu items */

.trg_mobile_collapse_submenus #main-header .et_mobile_menu .menu-item-has-children>a,
.trg_mobile_collapse_submenus .et_pb_menu .et_mobile_menu .menu-item-has-children>a {
    background-color: transparent;
    position: relative;
}

.trg_mobile_collapse_submenus #main-header .et_mobile_menu .menu-item-has-children>a:hover,
.trg_mobile_collapse_submenus .et_pb_menu .et_mobile_menu .menu-item-has-children>a:hover {
    background-color: rgba(0, 0, 0, .03);
    border: 1px solid red;
}

.trg_mobile_collapse_submenus #main-header .et_mobile_menu .menu-item-has-children>a::after,
.trg_mobile_collapse_submenus .et_pb_menu .et_mobile_menu .menu-item-has-children>a::after {
    font-family: 'ETmodules';
    text-align: center;
    speak: none;
    font-weight: bold;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    margin-right: -15px;
    margin-top: 0.2em;
}

.trg_mobile_collapse_submenus #main-header .et_mobile_menu .menu-item-has-children>a:after,
.trg_mobile_collapse_submenus .et_pb_menu .et_mobile_menu .menu-item-has-children>a:after {
    font-size: 16px;
    content: '\43';
    top: 5px;
    right: 10px;
}

.trg_mobile_collapse_submenus #main-header .et_mobile_menu .menu-item-has-children.visible>a:after,
.trg_mobile_collapse_submenus .et_pb_menu .et_mobile_menu .menu-item-has-children.visible>a:after {
    content: '\42';
}

.trg_mobile_collapse_submenus #main-header .et_mobile_menu ul.sub-menu,
.trg_mobile_collapse_submenus .et_pb_menu .et_mobile_menu ul.sub-menu,
.trg_mobile_collapse_submenus .et-db #et-boc .et-l .et_pb_menu .et_mobile_menu li ul.sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0;
    transition: all 1.5s ease-in-out;
}

.trg_mobile_collapse_submenus #main-header .et_mobile_menu li.visible>ul.sub-menu,
.trg_mobile_collapse_submenus .et_pb_menu .et_mobile_menu li.visible>ul.sub-menu,
.trg_mobile_collapse_submenus .et-db #et-boc .et-l #main-header .et_mobile_menu li.visible>ul.sub-menu,
.trg_mobile_collapse_submenus .et-db #et-boc .et-l .et_pb_fullwidth_menu .et_mobile_menu li.visible>ul.sub-menu,
.trg_mobile_collapse_submenus .et-db #et-boc .et-l .et_pb_menu .et_mobile_menu li.visible>ul.sub-menu {
    display: block !important;
    opacity: 1;
    visibility: visible !important;
}


/* Display Posts */

.trg-posts-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px; 
}

.trg-posts {
    width: 250px;
    border: 1px solid var(--light-gold);
    background-color: white;
    transition: 0.3s ease-in-out;
    color: var(--font-color);
}

.trg-posts .trg-image-wrap {
    /*padding-top: 75%;*/
    display: block;
    position: relative;
    background-color: white;
}

.trg-posts .trg-image-wrap img {
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    aspect-ratio: 3/2;
    display: block;
}

.trg-posts .trg-content-wrap h3 {
    font-size: 18px !important;
    line-height: 1.5em;
    margin: 0;
}

.trg-posts .trg-content-wrap {
    padding: 10px;
}

.trg-posts .trg-content-wrap p {
    font-size: 15px;
    line-height: 1.5em;
    color: var(--font-color);
}

/* Header Shrink on Scroll */
.reduce-section-padding {
    transition: all 0.9s ease-out 0s;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.reduce-header-logo {
    max-width: 80px !important;
}

.reduce-header-button {
    font-size: 16px !important;
}

.reduce-header-space {
    height: 96px;
}

@media only screen and (max-width: 400px) {
    #header-space {
        height: 22.25vw;
    }
}

.increase-row-width {
    transition: all 0.9s ease-out 0s;
    width: 100% !important;
}
 
.slow-transition {
    transition: all 0.9s ease-out 0s;
}
 
/* Mobile Menu */
.et_mobile_menu {
    left: unset;
    right: 0;
    width: 50vw;
    margin-top: 5px;
}

/* Fix top of Page Container */
#page-container {
	padding-top: 0 !important;
}

/* Add margin to page header when user is logged in to accomodate WP admin bar */
.logged-in #section-padding {
	margin-top: 32px;
}

/* Disable hamburger menu on the footer menu */
#k95-footer-menu.et_pb_menu .et_pb_menu__menu, #k95-footer-menu.et_pb_fullwidth_menu .et_pb_menu__menu {
    display: flex!important;
}
 
#k95-footer-menu .et_mobile_nav_menu {
    display: none;
}

@media only screen and (max-width: 980px) {
    #k95-footer-menu .et_pb_menu__wrap {
    	justify-content: center !important;
    }
}

@media only screen and (max-width: 767px) {
    #k95-footer-menu.et_pb_menu__wrap {
    	justify-content: center !important;
    }
}

/* K9.5 Header */
@media only screen and (max-width: 980px) {
    #k95-hdr-logo-col, #k95-hdr-menu-col {
        width: 25% !important
    }
    #k95-hdr-button-col {
        width: 50% !important
    }
}

/* Force image to fill the column */
.k95-full-height-image-column {
	height: auto;
}
/* Set the height of the image module */
.k95-full-height-image-column .et_pb_image {
	height: 100%;
}

/* Set the height of the image container */
.k95-full-height-image-column .et_pb_image_wrap {
	height: 100%;
}

/* Set the height and fit of the actual image */
.k95-full-height-image-column img {
	object-fit: cover;
	height: 100%;
}

/* Galleries */

/* Set image sizes to square */
.k95-gallery-square img {
	aspect-ratio: 1/1;
	object-fit: cover;
}

/* Price Tables */

.k95-price-table tr {
  line-height: 3em;
}

.k95-price-table td {
  border: none;
}

.k95-price-table td:first-of-type {
  padding-right: 10px;
}

.k95-price-table table {
  border: none;
  font-size: 20px;
  background: #464239;
}

.k95-price-table tr {
  line-height: 2.5em;
}

.k95-price-table tr:nth-of-type(2n+1) {
  background: #5e5a52;
}

.k95-price-table td {
  padding: 0 1em;
}

.k95-price-table table {
  margin-bottom: 1em;
}

/* Set groomer images to square */
.k95-groomer-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Single Events Not Using the Divi Builder */
.single-event.et-db:not(.et_pb_pagebuilder_layout) #page-container #et-boc .et-l .et_pb_row_1_tb_body {
	width: 80% !important;
    max-width: 1080px !important;
    margin: 30px auto !important;
}

/* Event Cards */
.trg-event {
	background-color: var(--light-gold);
    box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.3);
    border: none;
}

.trg-event a {
    color: --var(--font-color);
}

.trg-event.cat-special-event {
	background-color: var(--light-gray);
}
.trg-event.cat-fundraiser {
	background-color: var(--light-orange);
}
.trg-event.cat-board-meeting {
	background-color: var(--light-blue);
}

.trg-event .trg-event-cat {
	color: color: var(--font-color);
	text-align: center;
	font-weight: bold;
}

.cat-special-event .trg-event-cat {
	background-color: var(--gray);
	color: white;
}

.cat-fundraiser .trg-event-cat {
	background-color: var(--orange);
}

.cat-board-meeting .trg-event-cat {
	background-color: var(--dark-blue);
	color: white;
}

.trg-event article {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.trg-event .trg-content-wrap h3 {
    color: var(--heading-color);
    font-size: 18px;
    line-height: 1.25em;
    text-align: center;
}

.trg-event-meta {
	font-size: 14px;
	line-height: 1.25em;
	padding-bottom: 10px;
    font-weight: bold;
}

.trg-event-meta .trg-event-datetime, 
.trg-event-meta .trg-event-venue {
	font-weight: bold;
	color: var(--heading-color);
}

.trg-event .et_pb_button.more-link {
	margin-top: auto;
	margin-bottom: 10px;
}