/*

Theme Name: Hello One Call
Description: Hello One Call is a child theme of Hello Elementor
Author: Michael Hughes
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-one-call
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html

*/

/* override headings bottom margin */
h1, h2, h3, h4, h5, h6 {
    margin-block-end: .5rem;
    text-wrap: balance;
}
h1 a[href], h2 a[href], h3 a[href], h4 a[href], h5 a[href], h6 a[href] {
	text-decoration: inherit;
}

/* hero video aspect ratio */
.oc-page-hero {
    aspect-ratio: 1920 / 600;
}
.oc-page-hero video {
    height: auto !important;
}
@media screen and (max-width: 767px) {
    .oc-page-hero {
        aspect-ratio: 1 / 1;
        box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.25);
    }
    .oc-page-hero video {
        height: 100% !important;
    }
}

@media screen and (min-width: 1025px) {
	/* Override title width on Medical Equipment page */
	.page-id-426 .elementor-page-title {
		width: 50% !important;
	}
}

.oc-title-caption {
	display: block;
	font-style: italic;
	font-size: 1.25rem;
	color: var(--e-global-color-primary);
}

/* Aurora Background */
.oc-aurora-bg video {
    height: 100% !important;
}

/* footer menu headings */
.oc-footer-menu-heading a {
    font-weight: bold;
}
.oc-footer-menu-heading a:not(:hover, :active) {
    color: var( --e-global-color-primary ) !important;
}
.oc-footer-menu-heading a:not([href]):hover,
.oc-footer-menu-heading a:not([href]):focus,
.oc-footer-menu-heading a:not([href]):active {
    color: var( --e-global-color-primary ) !important;
    cursor: default;
    text-decoration: none;
}

/* remove underline from button hover */
.elementor-kit-6 button, .elementor-kit-6 input[type="button"], .elementor-kit-6 input[type="submit"], .elementor-kit-6 .elementor-button {
    text-decoration: none !important;
}

/* clickable captions for linked images */
.oc-clickable-caption img {
    position: relative;
    z-index: 3;
}
.oc-clickable-caption a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 30px;
    z-index: 2;
}
.oc-clickable-caption a:focus img,
.oc-clickable-caption a:hover img {
    transform: scale(1.1);
}
.oc-clickable-caption a:focus + figcaption,
.oc-clickable-caption a:hover + figcaption {
    text-decoration: underline;
}

/* equal width buttons */
.oc-equal-width-buttons .elementor-button {
    min-width: 175px;
}

/* fix elementor counter title alignment */
.oc-stat-video.elementor-widget-video .elementor-wrapper video {
    background-color: #ffffff;
}
.oc-stat-counter {
    width: 217px;
    height: 217px;
    margin: 36px;
    outline: solid 24px var( --e-global-color-701a5bc );
    outline-offset: 12px;
    border-radius: 50%;
}
.oc-stat-counter .elementor-counter-title {
    text-align: center !important;
	font-size: 19px;
}
.oc-stat-counter .premium-counter-value-wrap,
.oc-stat-counter .elementor-counter-number-wrapper {
    align-items: flex-end;
}
.oc-stat-counter .premium-counter-value-wrap .suffix,
.oc-stat-counter .elementor-counter-number-suffix {
    font-size: .875em;
    line-height: 1.02;
}

.oc-portal-circle {
    width: 280px;
    height: 280px;
    margin: 30px;
    outline: solid 20px var( --e-global-color-701a5bc );
    outline-offset: 10px;
    border-radius: 50%;
}
.oc-portal-circle .elementor-widget-button {
	position: static;
}
.oc-portal-circle a::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    border-radius: 50%;
}

/* apply css multiply border overlay */
.oc-multiply-border-overlay {
    position: relative;
}
.oc-multiply-border-overlay img {
    border-radius: 50%;
}
.oc-multiply-border-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    aspect-ratio: 1 / 1;
    border: solid 4rem var( --e-global-color-primary );
    border-radius: 50%;
    opacity: .5;
    mix-blend-mode: multiply;
}
.oc-multiply-border-overlay-sm::after {
    border-width: 2rem;
}

.oc-wrap-balance {
    text-wrap: balance;
}
.oc-wrap-pretty {
    text-wrap: pretty;
}

.oc-square {
    aspect-ratio: 1 / 1;
}

.oc-carousel .swiper-pagination {
    top: auto !important;
    bottom: 0;
}
@media screen and (min-width: 768px) {
    .oc-carousel .swiper-slide.swiper-slide-active > .elementor-element {
        border-right: solid 2px var( --e-global-color-c5f9ba9 );
        
    }
}

/* css columns */
.oc-2-columns {
    column-count: 2;
    column-gap: 1em;
    column-width: 200px;
}
.oc-3-columns {
    column-count: 3;
    column-gap: 1em;
    column-width: 150px;
}

/* blog cards */
.oc-blog-card {
    position: relative;
}
.oc-blog-card .elementor-widget:has(a) {
    position: static;
}
.oc-blog-card a,
.oc-blog-card a:hover {
    font-weight: inherit !important;
	text-decoration: none !important;
}
.oc-blog-card a::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}
.oc-blog-card img {
    aspect-ratio: 1 / 1;
	width: 100% !important;
    height: auto !important;
    object-fit: cover;
    object-position: 75% center;
}

/* pagination */
.elementor-pagination:has(.page-numbers) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.elementor-pagination .page-numbers {
    display: block;
    width: 3.5ch;
    height: 3.5ch;
    margin: 0 !important;
    padding: 0 0 .15em 0 !important;
    line-height: 1;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px #979797;
    border-radius: 50%;
}

.elementor-pagination .page-numbers:hover,
.elementor-pagination .page-numbers:focus,
.elementor-pagination .page-numbers.current {
    background-color: var( --e-global-color-701a5bc ) !important;
    text-decoration: none !important;
}

.oc-archive-posts .elementor-post__excerpt {
    margin-bottom: 0 !important;
}
.oc-archive-posts .elementor-post__thumbnail__link {
    margin-bottom: 8px !important;
}
.oc-archive-posts .elementor-post__thumbnail {
    width: calc(100% - 10px);
    margin-left: 5px;
}
.oc-archive-posts .elementor-post__badge {
    display: none;
}
.oc-archive-posts .elementor-post__meta-data {
    border-top: none !important;
}

/* Leadership Team */
.oc-team-card-image-wrap {
    position: relative;
}
.oc-team-card-icon {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
}
.oc-team-card-icon .elementor-icon {
	display: block;
    background-color: var( --e-global-color-primary );
    border-radius: 50%;
	padding: .25rem;
	border: solid 2px #ffffff;
}
.oc-team-card.elementor-element-edit-mode .oc-team-card-icon {
	z-index: 3;
}
.oc-team-card:not(.elementor-element-edit-mode) .oc-team-card-bio {
    opacity: 0;
    transition: opacity .3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}
.oc-team-card-image-wrap:focus .oc-team-card-bio,
.oc-team-card-image-wrap:focus-within .oc-team-card-bio,
.oc-team-card-image-wrap:hover .oc-team-card-bio {
    opacity: 1;
}
.oc-team-card-bio {
    overflow-y: auto;
}

/* horizontal scroll */
.oc-h-scroll::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ffffff;
    z-index: 2;
}
@media screen and (min-width: 767px) {
    .oc-h-scroll::before {
        height: 100px;
        
    }
}
.oc-h-scroll-slide.elementor-element-edit-mode {
    background-color: var( --e-global-color-primary );
}

/* Events Calendar overrides */
.tribe-common-c-btn,
.tribe-common-c-btn-border {
	--tec-border-radius-default: 2em;
}
.tribe-common-c-btn {
	font-weight: normal !important;
}
.tribe-common-c-btn:hover {
	--tec-color-background-events-bar-submit-button-hover: var( --e-global-color-primary );
}

/* Mega Menu */
.oc-mega-menu .premium-menu-link-parent:hover {
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

.oc-mega-menu .oc-footer-menu-heading,
.oc-mega-menu .oc-hide-from-mega-menu {
	display: none;
}

.oc-mega-menu .premium-item-hovered > .premium-menu-link-parent:not(:hover):not(:focus)::after {
	opacity: 1;
}

