/*
Theme Name: CFH 2025 FSE
Author: Pilot Digital
Author URI: pilotdigital.com
Theme URI: 
Tags: full-site-editing
Text Domain: center-faith-health
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.1
Version: 1.0.0

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

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)
*/

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/

:root {
    
    --white: #FFFFFF;
    --black: #000000;
    /*--aqua-light: #E1F6F6;
    --coral-light: #FFC9C9;
    --yellow-light: #FFEC7B;
    --sea-blue: #04698D;
    --gray-blue: #675C70;
    --powder-blue: #8DD2E0;

    
    --wp--preset--font-family--openSans: var(--wp--preset--font-family--open-sans);*/
    
}

@media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

/* Typography
========================================================== */


/* @font-face {
    font-family: 'Sanchez';
    src: url('/wp-content/themes/thresholds-2023-fse/assets/fonts/Sanchez-Regular.ttf') format('truetype');
}


@font-face {
    font-family: 'Open Sans';
    src: url('/wp-content/themes/thresholds-2023-fse/assets/fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
} */

  
body {
  /*23 dont need, as the below fontnamefix patches in the openSans bug  font-family: 'Open Sans', sans-serif; */
    padding: 0 3rem;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    font-family: var(--wp--preset--font-family--raleway);
}

/* h1, h2, h3, h4, h5, h6 {
    font-family: 'Sanchez', serif;
} */

/* header styles */
.header-logo img {
    max-height: 85px;
    width: 100%;
}

/* navigation styles */
.top-right-nav {
    margin-bottom: 0.6rem;
}

.top-right-nav li:last-child,
.footer-nav li:last-child {
    border-left: 2px solid #C8C8C8;
    padding-left: 1.5rem;
}

.top-right-nav li::before,
.footer-nav li::before {
    height: 0.8rem;
    width: 0.8rem;
    align-self: flex-start;
    margin-top: 0.1rem;
    margin-right: 0.7rem;
}

.top-right-nav li:first-child::before,
.footer-nav li:first-child::before {
    content: url('/wp-content/themes/cfh-2025-fse/assets/svg/cfh-phone.svg');
}

.top-right-nav li:last-child::before,
.footer-nav li:last-child::before {
    content: url('/wp-content/themes/cfh-2025-fse/assets/svg/cfh-donation.svg');
}

/* home page hero */
@media only screen and (min-width: 768px) {
    .home .wp-block-cover.home-hero-cover > img.wp-block-cover__image-background {
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
    }
}
@media only screen and (min-width: 1024px) {
    .home .wp-block-cover.home-hero-cover > img.wp-block-cover__image-background {
        clip-path: polygon(0 0, 100% 0, 100% 86%, 0% 100%);
    }
}
@media only screen and (min-width: 1200px) {
    .home .wp-block-cover.home-hero-cover > img.wp-block-cover__image-background {
        clip-path: polygon(0 0, 100% 0, 100% 81%, 0% 100%);
    }
}

/* newsletter row */
@media only screen and (min-width: 1200px) {
    .slice-bottom,
    .wp-block-cover.home-newsletter-cover > img.wp-block-cover__image-background {
        clip-path: polygon(0 0, 100% 0, 100% 81%, 0% 100%);
    }
    .slice-both {
        clip-path: polygon(100% 0, 0% 15%, 0 100%, 0 100%, 100% 81%);
    }
}

.resources-block ul li {
    filter: drop-shadow(0px 3px 4px #C8C8C8);
    background: white;
    border-radius: 1rem;
}

.resources-block ul li a {
    padding: 0.75rem 1.5rem;
    
}

.resources-block ul li a::after {
    content: url('/wp-content/themes/cfh-2025-fse/assets/svg/cfh-arrow-right.svg');
    height: auto;
    width: 2rem;
    display: inline-block;
    position: relative;
    top: -2px;
    margin-left: 0.35rem;
}
/* misc extra helpers */
.entry-content {
    position: relative;
}
.full-width {
    margin-left: -3rem;
    margin-right: -3rem;
}

.full-width-container {
    width: calc(100vw - 15px);
    margin-left: calc(-50vw + 50% + 7px);
}

.wp-block-button__link::after {
    content: url('/wp-content/themes/cfh-2025-fse/assets/svg/cfh-arrow-right.svg');
    height: auto;
    width: 2rem;
    display: inline-block;
    position: relative;
    top: -2px;
    margin-left: 0.35rem;
}

.event-register-linl .wp-block-post-excerpt__more-link {
    font-weight: 500;
    text-decoration: underline;
}

.event-register-link .wp-block-post-excerpt__more-link::after {
    content: url('/wp-content/themes/cfh-2025-fse/assets/svg/cfh-arrow-right.svg');
    height: auto;
    width: 2rem;
    display: inline-block;
    position: relative;
    top: -2px;
    margin-left: 0.35rem;
}

.event-register-link .wp-block-post-excerpt__more-link {
    text-decoration: underline;
    font-weight: 500;
    color: #1D68A8;
}

.list-style-none {
    list-style-type: none;
}

.query-events li.cfh_events > .wp-block-columns {
    filter: drop-shadow(0px 3px 4px #C8C8C8);
    background: white;
    border-radius: 1.25rem;
}

.w-100 {
    width: 100% !important;
}

.post-header-element .wp-block-cover,
.page-hero-cover {
    min-height: 130px;
    clip-path: polygon(0 0, 100% 0, 100% 65%, 0% 100%);
}

.event-info-list li::before {
    margin-right: 0.5rem;
}

.date-item::before {
    content: url('/wp-content/themes/cfh-2025-fse/assets/img/calendar-icon.png');
}

.time-item::before {
    content: url('/wp-content/themes/cfh-2025-fse/assets/img/clock-icon.png');
}

.pin-item::before {
    content: url('/wp-content/themes/cfh-2025-fse/assets/img/pin-icon.png');
}

.tribe-events-calendar-list__event-title-link,
.tribe-events-calendar-list__event-description,
.tribe-events-calendar-list__event-datetime,
.tribe-events-search-container,
.tribe-events-c-subscribe-dropdown__button,
.tribe-events-c-nav__list,
.tec-block__archive-events .tribe-common .tribe-common-b2,
.tribe-events-c-top-bar__datepicker-desktop,
.tribe-common-c-btn,
h4.tribe-events-calendar-list__event-title {
    font-family: var(--wp--preset--font-family--raleway);
}

h4.tribe-events-calendar-list__event-title {
    font-size: 2rem;
}
.tribe-common,
.tribe-common-h--alt {
    font-family: var(--wp--preset--font-family--raleway) !important;
}

.single-tribe_events .tribe-blocks-editor .tribe-events-single-event-title {
    line-height: 3rem;
    font-size: 2.25rem;
}

.wp-block-latest-posts__list time {
    padding: 0.5rem 0;
}

.wp-block-latest-posts__post-title {
    font-size: 1.75rem;
    color: #1D68A8;
    line-height: 2.25rem;
}

.wp-block-latest-posts__list > li {
    margin-bottom: 4rem;
    border-top: 1px solid #EEEEEE;
    padding-top: 4rem;
}

.wp-block-latest-posts__list > li:first-child {
    border-top: 0 none;
}

.post-type-archive-tribe_events .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.tribe-events-calendar-list__event-datetime {
    font-weight: 700;
}

h2 {
    line-height: 3rem;
}

ul.wp-block-page-list {
    list-style-type: none;
    padding-left: 0;
    padding: 1rem;
    margin-top: 0;
}

ul.wp-block-page-list ul {
    padding-left: 1rem;
    list-style-type: none;
}
ul.wp-block-page-list li {
    padding: 0.5rem;
}

ul.wp-block-page-list li a {
    padding: 0.5rem;
}

/* Force ALL submenus open for this navigation only */
.expanded-nav.wp-block-navigation .wp-block-navigation__submenu-container,
.expanded-nav .wp-block-navigation__submenu-container {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;

	/* common hide mechanisms */
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	transform: none !important;

	/* menus often position submenus absolutely; make it behave like a tree */
	position: static !important;
	inset: auto !important;
	pointer-events: auto !important;
}

/* Hide the toggle buttons if you want “always expanded” behavior */
.expanded-nav .wp-block-navigation-submenu__toggle,
.expanded-nav .wp-block-navigation__submenu-icon {
	display: none !important;
}

/* Optional: indent children so it looks like a hierarchy */
.expanded-nav .wp-block-navigation__submenu-container {
	padding-left: 1.25rem;
	margin-top: 0.25rem;
    border: 0 none;
}

.wp-block-navigation .wp-block-navigation-item {
    flex-direction: column;
    align-items: flex-start;
}

header .wp-block-navigation .wp-block-navigation-item,
.footer-mm .wp-block-navigation .wp-block-navigation-item{
    flex-direction: row;
}

.expanded-nav.wp-block-navigation .wp-block-navigation__submenu-container, .expanded-nav .wp-block-navigation__submenu-container {
    width: 100%;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
    border: 0 none;
}

nav.expanded-nav {
    margin-top: 0;
    padding: 1.5rem 1rem;
}




@media only screen and (max-width: 600px) {
    .wp-block-navigation__responsive-container-content {
        padding: 2rem;
    }

    .wp-block-navigation__responsive-container-close {
        margin-right: 2rem;
    }
    .wp-block-navigation__responsive-container-content li.wp-block-navigation-item.wp-block-navigation-link > a {
        font-weight: bold;
        color: var(--wp--preset--color--primary);
        font-size: 1.5rem;
    }
    .wp-block-cover .wp-block-post-title {
        max-width: 100% !important;
    }
    header .wp-block-group.is-vertical {
        align-items: center;
    }
    header .header-logo {
        text-align: center;
    }
    button.wp-block-navigation__responsive-container-open {
        font-weight: bold !important;
        background: var(--wp--preset--color--primary);
        color: white !important;
        padding: 1rem 1.5rem;
        border-radius: 0.5rem;
    }
    main {
        margin-top: 0 !important;
    }
}

.tribe-events-single-event-title {
    display: none !important;
}