/*
Theme Name: Medin Child Theme
Theme URI: http://www.portotheme.com/wordpress/medin/
Author: p-themes
Author URI:   https://themeforest.net/user/p-themes/
Template: medin
Description: This is a child theme for Medin.
Version: 1.8.14
Text Domain: medin-child
*/

/*  [ Add your custom CSS below ]
================================ */

/* General Additional CSS */
.btn-svg-fix>svg{
    vertical-align: middle;
    height: 1em;
    width: 1em;
    margin-bottom: 3px;
}

.service-box-image-align-right{
	text-align:right!important;
}
.service-box-caption{
	left:0;
}

a {
    color: var(--color_content_l);
}

/* Fix anchor links */
h2[id]{
	scroll-margin-top: 72px;
}

/* Quicklinks tweaks */

.quickLinks .col:nth-child(1) > .link.active {
	background-color: #ebe6e6;
	color: #9a5f71;
}
.quickLinks .col:nth-child(2) > .link.active {
	background-color: #f0ebeb;
	color: #a1677c;
}
.quickLinks .col:nth-child(3) > .link.active {
	background-color: #f4f1f1;
	color: #a77087;
}
/* Space for extended quick links, have used tailwind shades generator for colour variations but cannot find original list. */
/*
.quickLinks .col:nth-child(4) > .link.active {
    color: #a77087;
}
.quickLinks .col:nth-child(5) > .link.active {
    color: #a77087;
}
.quickLinks .col:nth-child(6) > .link.active {
    color: #a77087;
}
*/

.quickLinks.closed .quickLinks-open {
    top: 90px;
}

.quickLinks .google-map {
    width: 330px;
}

@media (max-width:1229px){
	.quickLinks .google-map {
        width: 300px;
    }
}

/* Footer Tweaks */
footer .footer-bottom p {
    color: white;
}

.m-footer-logo-title{
	display:none;
}

ul.footer-regulatory{
    list-style: none;
    margin: 0;	
}

footer .menu{
	list-style: none;
    /*margin: 0;*/
}

/* Homepage tweaks and fixes */
.icn-text .icn-text-circle {
    background-image: linear-gradient(to right, var(--main_color) 0%, #9A5F71 100%);
}

.icn-text-alt {
	display: block;
	max-width:600px;
}

.icn-text-alt .icn-text-alt-icn {
    padding-top: 8px;
    padding-left: 0;
    padding-bottom: 8px;
}

.icn-text-alt > * + * {
	margin-left: 0;
}

.btn-gradient, body:not(.touch) .btn-gradient:focus {
  background-image: linear-gradient(to right, var(--main_color) 0%, #9A5F71 100%) !important;
}

.header-video-container {
    position: relative;
    width: 100vw; /* Full viewport width */
    height: 60vh; /* Adjust for desired height */
    max-height: 720px; /* Prevents excessive height on large screens */
    overflow: hidden;
    background: #000; /* Fallback background */
}

@media (max-width: 1000px) {
	.header-video-container {
		height:40vh;
	}
}

/* Responsive Vimeo Video */
.header-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Maintain 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.header-video-fallback {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
}/* Fallback Image if Video Autoplay Fails */

.no-autoplay .header-video-fallback {
    display: block;
}/* Show fallback image if autoplay is blocked */

.no-autoplay .header-video-container iframe {
    display: none;
}

.header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4vh;
    pointer-events: none;
}

.header-video-overlay > * , .header-video-overlay .header-video-button-wrapper, .header-video-overlay .header-video-loading{
    pointer-events: auto;
	transition: opacity 0.5s ease;
}

.header-video-overlay .header-video-button-wrapper{
	opacity: 0;
	display:none;
}

/* Show state */
.header-video-overlay .show {
    opacity: 1;
    display: block;
    pointer-events: auto;
}

/* Hide state (opacity goes to 0, display set to none via JS after transition) */
.header-video-overlay .hide {
    opacity: 0;
    pointer-events: none;
}

@media (max-width:1000px){
	.header-video-overlay .header-video-loading{
		width: 200px;
	}
}

/* Popup Maker Styles */
.popup-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.popup-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Privacy Policy Tweaks */
body.privacy-policy .quickLinks{
	display: none;
}

/* Landing Page Style */
.landing-header{
	width:100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.landing-header .logo-img{
	max-width:200px;
}

div#timer {
    padding-top: 16px;
    font-size: 20px;
}

a.btn-link {
    color: white;
    background-color: var(--main_color);
    padding: 10px 12px;
    border-radius: 20px;
}

.btn-link svg.icon {
    color: white;
}

a.btn-link:hover {
    border: 2px var(--main_color) solid;
}

/* Blog Page Styles */
.tt-blog-sidebar .icon.icon-check-mark-1 {
    display: none;
}

.tt-blog-sidebar ul.category-list li {
    padding-left: 0px !important;
}

.tt-blog-sidebar .widget_text ul {
    list-style: none;
    margin: 0;
}

.tt-blog-sidebar div.post-image{
	width:77px;
	height:77px;
}


.tt-blog-sidebar div.post-image a{
	width:100%;
	height:100%;
	display:block;
}

.tt-blog-sidebar div.post-image a img{
	width: 100%;
    Height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

/* Events Calendar Tweaks */
.tribe-events .tribe-events-c-search__button, .tribe-events button.tribe-events-c-search__button {
	background-color:var(--main_color);
}


.tribe-events .tribe-events-c-search__button:focus, .tribe-events .tribe-events-c-search__button:hover, .tribe-events button.tribe-events-c-search__button:focus, .tribe-events button.tribe-events-c-search__button:hover {
    background-color: #a1677c;
}

.tribe-common .tribe-common-c-btn-border, .tribe-common a.tribe-common-c-btn-border {
	border: 1px solid var(--main_color);
	color:var(--main_color);
}

.single-tribe_events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button.tribe-events-c-subscribe-dropdown__button--active, .single-tribe_events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:focus, .single-tribe_events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:focus-within, .single-tribe_events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:hover, .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button.tribe-events-c-subscribe-dropdown__button--active, .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:focus, .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:focus-within, .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:hover {
    background-color: var(--main_color);
    color: white;
}

.tribe-common .tribe-common-c-svgicon {
    color: inherit;
}

.single-tribe_events .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__content, .tribe-block__events-link .tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__content {
    width: auto;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
	padding-bottom: 20px;
}

.tribe-events .tribe-events-c-view-selector__button:before{
	background-color: var(--main_color);
}

ul.tribe-events-c-view-selector__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

li.tribe-events-c-view-selector__list-item.tribe-events-c-view-selector__list-item--list.tribe-events-c-view-selector__list-item--active {
    flex: 0 1 auto;
    max-width: 100%;
}

a.tribe-events-c-view-selector__list-item-link {
    white-space: nowrap;
}

.tribe-events .tribe-events-calendar-month__day-cell--selected, .tribe-events .tribe-events-calendar-month__day-cell--selected:focus, .tribe-events .tribe-events-calendar-month__day-cell--selected:hover {
    background-color: #e7e7e7;
}

.tribe-events .tribe-events-calendar-month__mobile-events-icon--event {
    background-color: var(--main_color);
}

/*.tribe-common .tribe-common-c-svgicon {
    color: var(--main_color);
}*/

.tribe-events-meta-group a, .tribe-events-event-meta a, .tribe-events-event-meta a:visited {
    color: var(--main_color);
}

.tribe-events-event-meta a:focus, .tribe-events-event-meta a:hover, .tribe-events-event-meta a:focus, .tribe-events-event-meta a:hover {
    color:  #a1677c;
}

.tribe-events-single-event-title {
	color: var(--main_color);
}

li.tribe-events-c-view-selector__list-item.tribe-events-c-view-selector__list-item--day {
    display: none;
}

svg.tribe-common-c-svgicon.tribe-common-c-svgicon--dot.tribe-common-c-loader__dot {
    color: var(--main_color);
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-events-bar--border {
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tribe-events-event-meta.primary, .tribe-events-event-meta.secondary {
        width: 50%;
    }
	.tribe-events-venue-map {
        width: 280px;
    }
}
	
/* Nav bar tweaks and fixes */
.navbar-toggler, button.navbar-toggler:hover, button.navbar-toggler:focus{
	color:var(--color_header_l);
}

h1.header-logo__wrapper {
	padding-top:16px;
	padding-bottom:16px;
}

.quickLinks .col > .link > [class*='icon-'] {
	margin-bottom:4px;	
}

@media (max-width: 1023px) {
	.header-nav .nav-item > .nav-link{
		color:var(--color_header_menu_sub_l);
	}
	.header-nav .nav-item.active > .nav-link, header .header-nav .nav-item > .nav-link:hover {
    color: var(--color_header_menu_sub_l_h);