/**
Theme Name: CAFI
Author: Vladimir
Author URI: https://www.cunyallianceforinclusion.org/
Description: Child theme of Astra Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cafi
Template: astra
*/

html {
    overflow-y: scroll;
}

.link-nodecor,
.link-nodecor a {
    text-decoration: none !important;
}

.no-border table {
    border-width: 0px !important;
}

.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: none;	
}

.unclickable {
    pointer-events: none;
}

sup.fn {
    font-size: inherit;
    vertical-align: inherit;
    alignment-baseline: auto;
    position: static;
}

sup.fn::before {
    content: "[";
}

sup.fn::after {
    content: "]";
}

/* Theme header */
.ast-theme-transparent-header #masthead {
    position: initial !important;
}

.ast-hfb-header .site-footer {
    margin: 0;
}

.ast-site-title-wrap {
    display: inline-block;
    margin-left: 0.5em;
}

.entry-meta,
.entry-meta * {
    font-weight: normal;
}

.tribe-events-notices {
    text-align: center;
}

header.site-header .tribe-events-view--widget-events-list {
    margin: 0;
    line-height: 0;
}

header.site-header .tribe-common .tribe-common-h7  {
    font-size: 0.8rem;
}

header.site-header .site-header-above-section-center .tribe-events-widget-events-list__header,
header.site-header .site-header-above-section-center .tribe-events-widget-events-list__view-more {
    display: none;
}

header.site-header .ast-above-header-bar .site-above-header-wrap {
    min-height: 0;
}

header.site-header .ast-above-header-bar article {
    padding: 0 !important;
}

header.site-header .tribe-common-c-svgicon--featured {
    display: none;
}

/* Menu style */
/* switch is broken, two menus are shown */
@media (min-width: 922px) {
    #ast-mobile-header {
        display: none !important;
    }
}

.menu-item {
    border-bottom: 1px solid transparent !important;
}

.main-header-menu .sub-menu .menu-link {
    padding: 0.5em 0.8em;
}

.current-menu-item,
.current-menu-parent,
.current-page-ancestor {
    border-bottom: 1px solid black !important;
}

.text-justify,
.text-justify p,
.type-tribe_events p:not(.has-text-align-center) {
    text-align: justify;
}

/* Events */
.image-center figure {
    display: flex !important;
    align-items: center;
}

figure.wp-block-post-featured-image {
    margin-bottom: 2em;
}

time.tribe-events-calendar-list__event-date-tag-datetime span,
time.tribe-events-calendar-latest-past__event-date-tag-datetime span {
    font-size: 1.1rem !important;
}

time.tribe-events-calendar-latest-past__event-date-tag-datetime {
    padding-top: .5em !important;
}

.tribe-events-c-subscribe-dropdown {
    margin-top: 0;
    margin-bottom: 0;
}

article,
#tribe-events-pg-template,
section.tribe-common-l-container {
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
}

#tribe-events-content {
    margin-bottom: 0.5em !important;
}

:root {
    --tec-font-weight-bold: 400 600 !important;
}

.tribe-events-c-nav__list a {
    font-size: 1rem !important;
}

.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-text2 {
    font-weight: normal;
}

.tribe-events .tribe-events-calendar-month__header-column {
    width: 100%;
    background-color: var(--tec-color-background-messages);
    padding: 1em;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__header-column-title {
    text-align: center;
    font-weight: bold;
    font-size: 0.8em;
}

.tribe-events-pg-template {
    width: 100%;
}

.tribe-events-event-meta a,
.tribe-events-back a,
.tribe-events-sub-nav a {
    color: inherit;
    font-size: inherit !important;
    font-weight: inherit !important;
}

time.tribe-events-calendar-month__day-date-daynum {
    position: relative;
}

.tribe-events-calendar-month__day--current time.tribe-events-calendar-month__day-date-daynum::before {
    content: '';
    border: 2px solid var(--ast-global-color-0);
    border-radius: 50%;
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.tribe-events-event-meta a:hover,
.tribe-events-back a:hover,
.tribe-events-sub-nav a:hover {
    color: var(--tec-color-accent-secondary-hover);
}

/* list of Articles */
.article-links .wp-block-media-text__content > p:last-child {
    font-size: 0.9em;
}

.article-links .wp-block-post:last-of-type .wp-block-uagb-separator {
    display: none;
}

.article-links .wp-block-media-text__content {
    padding-left: 2em !important;
}

/* Pagination */
.ast-pagination .page-numbers {
    width: auto;
    height: auto;
    font-size: inherit;
    color: var(--ast-global-color-0);
}

.ast-pagination .next,
.ast-pagination .prev {
    position: relative;
    top: 0.15rem;
    float: none !important;
    font-size: 0px;
    height: 1rem !important;
    width: 1rem !important;
    padding: 0.5rem 1.25rem 1.5rem 0.75rem !important;
}

.ast-pagination .next::before {
    content: "\00BB";
    font-size: 1rem;
    line-height: 1rem;
}

.ast-pagination .prev::before {
    content: "\00AB";
    font-size: 1rem;
    line-height: 1rem;
}

.wp-block-query-pagination {
    gap: .25em;
    margin-bottom: 2em !important;
}

.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous,
.ast-pagination .page-numbers {
    border: 1px solid #ddd !important;
    border-radius: 2px;
    padding: .5em .75em;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
}

.wp-block-query-pagination-numbers .current,
.ast-pagination .current {
    border: 1px solid #1e90ff;
    background-color: #1e90ff !important;
    color: #fff;
}

.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover,
.ast-pagination a.page-numbers:hover
{
    background-color: #f0f0f0 !important;
    color: #1e90ff !important;
}

.wp-block-query-pagination .is-arrow-chevron {
    margin: 0 !important;
}

@media (max-width: 600px) {
    .article-links .wp-block-media-text__content {
        padding-left: 0 !important;
    }
	.entry-content ul, .entry-content ol {
	    padding-right: 20px;	
	}
}

@media (max-width: 921px) {
    .ast-mobile-header-wrap .ast-above-header-bar, .ast-above-header-bar .site-above-header-wrap {
        min-height: 0px;
    }
}